how to get my own character name

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Post Reply
Message
Author
Rickster
Posts: 291
Joined: Sun Oct 24, 2010 4:23 pm

how to get my own character name

#1 Post by Rickster » Sat Nov 27, 2010 7:14 pm

When I am playing RoM i know which char I play.
But my bot doesn´t :D

Is there a way, to get the char name with the bot functions?

User avatar
Administrator
Site Admin
Posts: 5307
Joined: Sat Jan 05, 2008 4:21 pm

Re: how to get my own character name

#2 Post by Administrator » Sat Nov 27, 2010 7:23 pm

Why would you need that?

Anyways, player.Name contains the name of the player.

User avatar
Giram
Posts: 191
Joined: Thu Aug 26, 2010 3:34 pm
Location: Finland

Re: how to get my own character name

#3 Post by Giram » Sat Nov 27, 2010 7:43 pm

I founded it very helpfull for daily quests. When my bot goes through all 8 chars it usually crashes or not but if it does i know where it was going. Then i can continue faster than going through all chars to see who has done all dailies.

Rickster
Posts: 291
Joined: Sun Oct 24, 2010 4:23 pm

Re: how to get my own character name

#4 Post by Rickster » Sat Nov 27, 2010 8:13 pm

Administrator wrote:Why would you need that?

Anyways, player.Name contains the name of the player.
I am botting with three bots, all using the same script.
When triggered they all run to the mailbox and send their stuff by the postbox ... but, they are sending it to on of the three chars currently botting.
And sending a mail to the char himself results in an error, when using Rocks UMM addon, and stoping the script.
Even when playing and sending a mail to yourself you are told, that you can´t send mail to your self. Doesn´t matter, but while botting it stops with error.

With your hint I can check who I am, and not send mail if I am the receiver.

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

Re: how to get my own character name

#5 Post by MinMax » Sun Nov 28, 2010 7:12 am

Try this in your code

printf(" "..player.Name.. " ==> " ..dailyQuestCount.."\n");

with player.name you should be able to code something . ( select the player in a loop to be not an activ mailbox sender )

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 0 guests