Page 2 of 2 FirstFirst 1 2
Results 11 to 14 of 14

Thread: Logging in a Bot

  1. #11
    Junior Member
    Join Date
    Feb 2009
    Posts
    29

    Default

    For those curious, chatbotScript does not pick up event messages by default. I ended up modifying ChatManager.java to call a special event handler function in my chatbotScript every time it handles processEvent. My function then checks if it's a kmail or whatever and does stuff appropriately.

    Thanks, though!

  2. #12
    Developer Grotfang's Avatar
    Join Date
    Jun 2009
    Location
    United Kingdom
    Posts
    585

    Default

    Quote Originally Posted by Lilac View Post
    For those curious, chatbotScript does not pick up event messages by default. I ended up modifying ChatManager.java to call a special event handler function in my chatbotScript every time it handles processEvent. My function then checks if it's a kmail or whatever and does stuff appropriately.
    I'm not surprised it doesn't pick up on them. My question is should it? If so, how should it?

  3. #13

    Default

    I think it'd be nice to see them register as messages with an empty-string sender (since that's guaranteed never to be a player's name). Also makes for fairly trivial "ignore event" handling. I would suggest leaving all "type of event" parsing to the scripter, for simplicity. (NB: My $0.02 only)
    Before you ask, please check the FAQ.
    Veracity: My "humble opinion" trumps your "humble opinion". IMHO.

  4. #14

    Default

    I have no idea how it should be represented, but I would absolutely love if this could be done. I've always wanted my bot to act upon receiving a kmail, but I didn't want to go through the trouble of loading messages.php every minute or whatever.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •