We have detected that cookies are not enabled on your browser. Please enable cookies to ensure the proper experience.
Results 1 to 3 of 3
  1. #1
    Join Date
    Jun 2011
    Location
    EU
    Posts
    845

    Chat.Received() - Sender information (IMs)?

    Example: Someone say "Hello" in world chat.

    If I recieve this chat message we can use Turbine.Chat.Received(sender, args) and get the following information:

    Message: [World] PlayerName: 'Hello'
    ChatType: 38
    Sender: MyName <--- For some reason, it always says that I am the sender of the message!

    If I want to know who is the actual sender of the message, I can easily extract the player's name from args["Message"] using string.find and string.sub.

    Now my problem is: How to find out the sender's name if I recieved an IMs?
    Surprisingly in this case the args["Message"] is only the actual message (not including the player's name)!

    Does anyone have an idea how to get the sender's name of incoming IMs?



    Thank you in advance!
    Eruadarion | Captain | on Gwaihir [EU-DE]
    www.avorthalier.eu

  2. #2
    Join Date
    Mar 2007
    Posts
    1,455
    Unfortunately, the chat message Sender is one of those long standing known issues that has never been fixed. AFAIK, there is no way to tell the sender of a /tell and all other messages incorrectly report the local player as the sender. That was one of the odd tweaks I had to make for my multi-player card game, the client had to include the player's name in the body of the message for any /tells to the host so that the host would be able to parse the name in order to know which client sent the /tell.

  3. #3
    Join Date
    Jun 2011
    Location
    EU
    Posts
    845
    Thank you for clarifying, Garan!

    I sent you another PM...^^
    Eruadarion | Captain | on Gwaihir [EU-DE]
    www.avorthalier.eu

 

 

Posting Permissions

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

This form's session has expired. You need to reload the page.

Reload