using info from function that posts directly to system chat

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Post Reply
Message
Author
User avatar
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

using info from function that posts directly to system chat

#1 Post 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)
Remember no matter you do in life to always have a little fun while you are at it ;)

wiki here http://www.solarstrike.net/wiki/index.php?title=Manual
User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

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

#2 Post 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.
  • Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
  • I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
  • How to: copy and paste in micromacro
    ________________________
    Quote:
    • “They say hard work never hurt anybody, but I figure, why take the chance.”
          • Ronald Reagan
User avatar
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

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

#3 Post 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.
Remember no matter you do in life to always have a little fun while you are at it ;)

wiki here http://www.solarstrike.net/wiki/index.php?title=Manual
Post Reply