Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
When.PlayerMessage NICK
01-12-2019, 01:10 PM (This post was last modified: 01-12-2019 01:10 PM by seypher.)
Post: #1
Rainbow When.PlayerMessage NICK
Helo, is possible to get player nick using "When.PlayerMessage"?
The script is to: when player say "word" in chat, appears his nick on HUD.Display(NICK).

Quote:When.PlayerMessage(scriptfunc, word)
Exit()

{scriptfunc}
HUD.Display(GET PLAYER NICK)

*NOTE*: ALREADY TRIED "!Str.Match.0" and "!Str.Match.1"
Give Reputation to this user

BUY MY SCRIPTS:
1. [BBot] EXIVA LAST NAME
2. [BBot] PARTY SHARED ALERT
3. [BBot] PUBLIC SHARING AFK LEADER
3. [BBot] PRIVATE SHARING AFK LEADER
Find all posts by this user
Quote this message in a reply
01-12-2019, 03:53 PM
Post: #2
RE: When.PlayerMessage NICK
Hello,

When will set some variables starting with Message
Message.isSystem
Message.Pos.X
Message.Text
Message.Author.Level
Message.Author.Name <- here you go

To see what variables you have, please go to Variables and filter for Message after a When was triggered (the variables are only set when required by a macro 'When.??Message').
Give Reputation to this user

Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)