active char

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Post Reply
Message
Author
MinMax
Posts: 46
Joined: Mon Dec 21, 2009 6:45 am

active char

#1 Post by MinMax » Tue Nov 09, 2010 2:51 pm

a simple question, maybe i am blind or i have blackout

Is there a function in rombot to read out the active char name. ( i want to trigger the waypoints files by the active char when i use autologin )

User avatar
jduartedj
Posts: 599
Joined: Sat Dec 19, 2009 12:18 am
Location: Lisbon
Contact:

Re: active char

#2 Post by jduartedj » Tue Nov 09, 2010 3:57 pm

MinMax wrote:a simple question, maybe i am blind or i have blackout

Is there a function in rombot to read out the active char name. ( i want to trigger the waypoints files by the active char when i use autologin )
it must be something like player.name or so! Liek i've said before:" Hey, admins! Isn't there some documentation on the classes and their methods/properties?"
I use The rom Wiki a lot but you can always check th file player.lua and search for a property like name!
Thanks for reading! :D

Some of you might find this useful: RoM-bot Wiki
User Functions Repository (and other useful files): Addon Repo
Latest SVN updates: SVN updates

runensammler
Posts: 13
Joined: Mon Apr 06, 2009 6:20 am

Re: active char

#3 Post by runensammler » Tue Nov 09, 2010 4:28 pm

Hi.

Code: Select all

accountname = RoMScript("GetAccountName();");
gives you the - yes right - the accountname :D

and in

Code: Select all

player.Name
ist the name of the actual player stored.

MinMax
Posts: 46
Joined: Mon Dec 21, 2009 6:45 am

Re: active char

#4 Post by MinMax » Tue Nov 09, 2010 4:54 pm

Thx, for help . I knew that the solution must be simple. It was to simple for me :)

Post Reply

Who is online

Users browsing this forum: Baidu [Spider], Bing [Bot] and 3 guests