Page 1 of 1

Sending a chat or emote using the agent name?

Posted: Fri Aug 31, 2007 1:54 pm
by SunTzu
For the methods board.sendChat() & board.sendEmote(), in addition to just a string message, you can specify it to use the agent name using LuxAgent sender.

For the life of me, though, I can't figure out what to put as the sender...

Posted: Fri Aug 31, 2007 2:17 pm
by RandomGuy
I haven't implemented it yet, but try

board.sendChat("whatever", this);

because your bot should implement the LuxAgent class, that the method is looking for.

Posted: Fri Aug 31, 2007 2:39 pm
by SunTzu
That worked, thanks!