Private server globals are not received

Hey, i am trying to create a plugin based on global messages

I am using the handle_chat event listener as stated here:
https://projecthax.gitbook.io/phbot-plugins/phbot-api/events#handle_chat-t-player-msg

normal messages do arrive to the handle chat event listener, but when a global message is received i cant seem to see handle_chat being triggered, also in the bot, under chat in global tab there are no messages ( i am 100% connected ;))

the private server is syntix online
version 220 (i think its that, because of the VSRO json file for private servers)
any idea what to do?

Custom globals aren’t going to show up. You will need to manually parse the chat packets.

Hey Ryan, thanks for the quick reply
any direction you can give me on that?

i am kind of new at this, i am wondering if i should handle
handle_joymax(opcode, data)
or
handle_silkroad(opcode, data)

and then understand from the data if its a message?

It would be sent through handle_joymax. You would have to receive a global chat message then figure out how it gets parsed.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.