We have detected that cookies are not enabled on your browser. Please enable cookies to ensure the proper experience.
Results 1 to 4 of 4

Thread: Identifying IMs

  1. #1

    Identifying IMs

    Me again.

    Still footwetting. Possibly up to ankles by now. (Either that or already in over my head!...)

    I've been playing with the Chat functionality. I can receive chat events on all the channels, including the IM channel (channel #6).

    However, unlike the other channels, that one seems to be lacking the "in game" prefix as part of its chatMessage field: I get just the IMed text, not the "XXX tells you" prefix.

    As with - as far as I can tell - absolutely every single Chat event, the chatSender field is the character's name (which makes it, if that's so, a pointless parameter).


    Do any of the lua gurus around (lurus?) know how to determine the identity of the sender of an IM that's received by the Turbine.Chat package?


    thanks!

  2. #2
    Join Date
    Jun 2009
    Location
    UK
    Posts
    1,461
    I thought that the message started with the name of the player who sent the message, or maybe that changed. I'll have a look later if I get time.
    [CENTER][SIZE=3][B]Galuhad | Narvelan[/B]
    Lore Breakers of Eldar[/SIZE]

    [URL="http://www.lotrointerface.com/list.php?skinnerid=3762"]Plugins[/URL] | [URL="https://www.lotro.com/forums/showthread.php?538975-Accounts-for-New-Players"]New Player Guide[/URL] | [URL="http://www.twitch.tv/galuhad"]Twitch[/URL]
    [/CENTER]

  3. #3
    Join Date
    Jun 2009
    Location
    UK
    Posts
    1,461
    Ok, I've had a look at this and I see what you mean. All the other channels seem to include who posted the message, but for tells it is not the case.

    Here is the table dump of a random global message args:

    Code:
    {
    ["Message"] = [globallff] Wyaran: 'wts [Relic Removal Scroll] pst'
    ["Sender"] = Narvelan
    ["ChatType"] = 28
    }
    In comparison to an IM message:

    Code:
    Scrarden tells you, 'tell'
    
    {
    ["ChatType"] = 6
    ["Sender"] = Narvelan
    ["Message"] = tell
    }
    Sender always seems to be the character being played, though I've no idea why. Perhaps we can ask for this to be fixed at some point please?
    [CENTER][SIZE=3][B]Galuhad | Narvelan[/B]
    Lore Breakers of Eldar[/SIZE]

    [URL="http://www.lotrointerface.com/list.php?skinnerid=3762"]Plugins[/URL] | [URL="https://www.lotro.com/forums/showthread.php?538975-Accounts-for-New-Players"]New Player Guide[/URL] | [URL="http://www.twitch.tv/galuhad"]Twitch[/URL]
    [/CENTER]

  4. #4
    Yes, that's just what I've found.

    And with no way to tell who sent the tell.

    I'm guessing that this is a bug - that that currently-useless 'sender' parameter is actually *supposed* to be telling us who initiated a chat. (The speaker, the teller, the emoter, the entity which made the attack or did the damage, etc.) Perhaps the code is improperly passing the 'receiver' rather than the 'sender' value?

    The fix should be to:
    a) Add the "<Person> tells you:" prefix to the chatMessage for IMs, to bring it in line with how it works everywhere else.
    b) Fix the sender parameter so that it gives the entity from which the chat message originated, not the player.

 

 

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