Page 1 of 1

using info from function that posts directly to system chat

Posted: Tue May 24, 2011 9:11 pm
by lisa
Ok so I want to use the in game function

Code: Select all

AskPlayerInfo("Player Name")
to get the players information. Trouble is when you use this function it posts the information to the system chat directly. Any thoughts on how to use this information without having to use the event monitor, or maybe that is the easiest way to go. Hmm

Could start the event monitor just before using the function and then stop the monitor straight after getting the info.

Format posted is
charname (guildname) class1 (lvl) class2 (lvl) zone race (sex)
set out exactly like this. If no guild then it just doesn't post the guild section and would be
charname class1 (lvl) class2 (lvl) zone race (sex)

Re: using info from function that posts directly to system c

Posted: Wed May 25, 2011 4:38 am
by rock5
I don't see any other way to get it, other than using the event monitor like I showed you. Because that info only exists in the chat window and the chat window can only be accessed by monitoring the chat event.

Yes you can start and stop the system event monitoring but you don't really need to. The example I showed you only gets the last system message. When you use that option it clears the log for that event. So every time you get the system message it clears the log.

Re: using info from function that posts directly to system c

Posted: Wed May 25, 2011 6:39 am
by lisa
Yeah I was mainly curious if using that script might return a table or something else that can be used but it seems to just post directly to system chat, so event monitoring would be the easiest and probably only way to use that function in the way I want.