Il semble que les cookies ne soient pas activés dans votre navigateur. Veuillez activer les cookies pour garantir une expérience du site optimale.
Affichage des résultats 1 à 4 sur 4

Discussion: Identifying IMs

  1. #1
    Date d'inscription
    avril 2013
    Messages
    42

    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
    Date d'inscription
    juin 2009
    Localisation
    UK
    Messages
    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
    Date d'inscription
    juin 2009
    Localisation
    UK
    Messages
    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
    Date d'inscription
    avril 2013
    Messages
    42
    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.

 

 

Règles de messages

  • Vous ne pouvez pas créer de nouvelles discussions
  • Vous ne pouvez pas envoyer des réponses
  • Vous ne pouvez pas envoyer des pièces jointes
  • Vous ne pouvez pas modifier vos messages
  •  

La session de ce formulaire a expiré. Vous devez recharger la page.

Recharger