Page 1 of 1

how to get my own character name

Posted: Sat Nov 27, 2010 7:14 pm
by Rickster
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?

Re: how to get my own character name

Posted: Sat Nov 27, 2010 7:23 pm
by Administrator
Why would you need that?

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

Re: how to get my own character name

Posted: Sat Nov 27, 2010 7:43 pm
by Giram
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.

Re: how to get my own character name

Posted: Sat Nov 27, 2010 8:13 pm
by Rickster
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.

Re: how to get my own character name

Posted: Sun Nov 28, 2010 7:12 am
by MinMax
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 )