Page 1 of 1
active char
Posted: Tue Nov 09, 2010 2:51 pm
by MinMax
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 )
Re: active char
Posted: Tue Nov 09, 2010 3:57 pm
by jduartedj
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!
Re: active char
Posted: Tue Nov 09, 2010 4:28 pm
by runensammler
Hi.
Code: Select all
accountname = RoMScript("GetAccountName();");
gives you the - yes right - the accountname
and in
ist the name of the actual player stored.
Re: active char
Posted: Tue Nov 09, 2010 4:54 pm
by MinMax
Thx, for help . I knew that the solution must be simple. It was to simple for me
