• Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • TellRecevied event is misbehaving.

    Discussion in 'Community Developer Forum' started by parrot, Feb 23, 2015.

    1. parrot

      parrot Community Developer

      Joined:
      Feb 5, 2012
      Messages:
      222
      Likes Received:
      7
      Trophy Points:
      18
      Hi, so im not sure about the proper channels to report this so im making this thread.

      Im looking into a bug in my plugin "alertme" but while investigating I noticed that the event for tells isnt behaving like im expecting it should. i tried striking up a conversation with another player using this debug code:


      Code:
       private void TellReceived(object sender, ff14bot.Managers.ChatEventArgs e)
              {
                  Log.Bot.print("event triggered");
                  Log.Bot.print("author: " + e.ChatLogEntry.SenderDisplayName + "\r\n" + e.ChatLogEntry.Contents); 
              }
      
      //log.bot.print() = Logging.Write()
      
      1. messages sent by me got logged as being sent by the recipient.
      2. Event triggers on replies according to first printout but the second line which prints the message author and content fails.

      I have either misunderstood the api or theres a problem here (offset change?). Whispering myself seem to work like expected though.
       
      Last edited: Feb 23, 2015
    2. mastahg

      mastahg Administrator Staff Member

      Joined:
      Feb 27, 2011
      Messages:
      5,343
      Likes Received:
      383
      Trophy Points:
      83
      Sorry forgot to take a look at this, looks like i used the wrong message filter for the tellrecevied event, its fixed for the next version but until then you can use the messagerecevied event and check that the message type is MessageType.Tell_Receive
       
    3. parrot

      parrot Community Developer

      Joined:
      Feb 5, 2012
      Messages:
      222
      Likes Received:
      7
      Trophy Points:
      18
      thank you
       

    Share This Page