Skip to content
View in the app

A better way to browse. Learn more.

WRobot

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Party leader channel id?

Featured Replies

Hi I'm using Party Chat commands which reads party chat and does lua/c++ commands accordingly, this is very usefull for when im running my 5 man bot group but I've got a problem where it can only read chat from party members and not the party leader.

 

This is the code where it reads the chat

 

while (chat.ActuelRead != Channel.GetMsgActuelInWow && Products.IsStarted)
                {
                    var msg = chat.ReadMsg();
                    if (!string.IsNullOrWhiteSpace(msg.Msg) &&
                        ((int)msg.Channel == 49 || msg.Channel == ChatTypeId.PARTY))
                    {
                        foreach (var c in PartyChatCommandSettings.CurrentSetting.Commands)
                        {
                            if (c.IsValid() && string.Equals(c.CommandChat.Trim(), msg.Msg.Trim(), StringComparison.CurrentCultureIgnoreCase))
                            {
                                c.Run();
                                break;
                            }
                        }
                    }
                }

If i change leader then the leader won't be able to litsen to the commands anymore. I need my bots being able to litsen to the leader because that's where I have all the logic for queuing and joining dungeons.

 

Thanks in advance!

  • Author

I fixed this problem by adding 

Logging.Write("Channel = " + ((int)msg.Channel) + " (message: " + msg.Msg + ")");

just above       var msg = chat.ReadMsg(); in the party chat .cs script and I read in the log what ID the channel had. I found that the party leader had channel 51 insted of normal party which was 2. This could be different in any privaate server so do this check if party leader does not work

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.