Bot pauses after death, can't figure out how to fix this.

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Post Reply
Message
Author
ginokid
Posts: 35
Joined: Tue Jul 28, 2009 10:30 pm

Bot pauses after death, can't figure out how to fix this.

#1 Post by ginokid » Wed Jul 29, 2009 4:04 pm

Hi Guy's I started using this bot yesterday, with some fiddling I got it to work well.

The main problem I'm having now is when my character dies the bot "pauses". How do I make it respawn and keep botting after death?

I made sure I have the following things in my profile, I have the resurrect hot key macro in my bar and the key is set properly & I have the return "TRAVEL" waypoint xml also.

Code: Select all

1) Returning after death:
When your character dies, it may optionally resurrect and return to botting. In order to do this, you must set:

      * A return path in profile options
      * A resurrection macro in profile hotkeys


If you haven't already, set up a macro (type /macro in the game's chat). Your macro should contain this code:
Code:
/wait 1
/script AcceptResurrect();

Code: Select all

2) Waypoint scripting specifics:
You are able to customize your waypoints a bit more by editing them by hand. This allows you to set per-waypoint instructions and scripts.

      type
            This allows you to set the type of waypoint this is. Currently, only the following types are accepted:
                  NORMAL : A normal waypoint; attack anything in the way.
                  TRAVEL : Walk directly to the waypoint; do not target and attack unless provoked.

            Example: <waypoint x="1234" z="5678" type="TRAVEL"></waypoint>
Here is my profile:

Code: Select all

<profile>
    <options>
        <option name="HP_LOW" value="50" />
        <option name="HP_LOW_POTION" value="50" />
        <option name="MP_LOW_POTION" value="50" />
        <option name="COMBAT_TYPE" value="melee" />
        <option name="COMBAT_DISTANCE" value="200" />
        <option name="ANTI_KS" value="false" />
        <option name="WAYPOINTS" value="new.xml" />
        <option name="RETURNPATH" value="return.xml" />
        <option name="PATH_TYPE" value="waypoints" />
        <option name="WANDER_RADIUS" value="80" />
        <option name="WAYPOINT_DEVIATION" value="50" />
        <option name="LOOT" value="true" />
        <option name="LOOT_TIME" value="2000" />
        <option name="LOOT_DISTANCE" value="100" />
        <option name="ENERGY_STORAGE_1" value="rage" />
        <option name="ENERGY_STORAGE_2" value="energy" />
        <option name="POTION_COOLDOWN" value="15" />
        <option name="MAX_FIGHT_TIME" value="30" />
        <option name="DOT_PERCENT" value="90" />
    </options>
    <friends>
        <friend name="friendsname1" />
        <friend name="friendsname2" />
        <friend name="friendsname3" />
        <friend name="friendsname4" />
        <friend name="friendsname5" />
        <friend name="friendsname6" />
    </friends>
    <hotkeys>
        <hotkey name="HP_POTION" key="VK_7" />
        <hotkey name="MP_POTION" key="VK_MINUS" />
        <hotkey name="ATTACK" key="VK_1" />
        <hotkey name="RES_MACRO" key="VK_EQUAL" />
    </hotkeys>
    <skills>
        <skill name="WARRIOR_SLASH" hotkey="VK_2" priority="100" />
        <skill name="WARRIOR_TACTICAL_ATTACK" hotkey="VK_3" priority="75" />
        <skill name="WARRIOR_THUNDERING" hotkey="VK_4" priority="50" />
        <skill name="WARRIOR_FRENZY" hotkey="VK_5" priority="25" />
        <skill name="WARRIOR_ENRAGED" hotkey="VK_6" priority="20" />
    </skills>
    
    <onLeaveCombat>-- Additional Lua code to execute after killing an enemy</onLeaveCombat>
    <onSkillCast>-- Additional Lua code to execute when casting a skill
-- Note: arg1 contains the skill being used.
-- i.e. arg1.Name will be the name of the skill being cast.</onSkillCast>
</profile>

d003232
Posts: 1252
Joined: Wed Jun 03, 2009 4:27 pm

Re: Bot pauses after death, can't figure out how to fix this.

#2 Post by d003232 » Wed Jul 29, 2009 5:58 pm

I just did an update with SVN 107. It will now print out the reasons for not automatic returning.

Pls do the SVN update and look for the reason.

Some people also have a:

Code: Select all

	<onDeath>
		-- Additional Lua code to execute on death
		pauseOnDeath(); -- Stop the script
	</onDeath>
in there profile. In that case just delete the 'pauseOnDeath();'. That seems not to be your case.
The RoM Bot Online Wiki needs your help!

FactorY
Posts: 7
Joined: Sun Aug 02, 2009 9:00 pm

Re: Bot pauses after death, can't figure out how to fix this.

#3 Post by FactorY » Tue Aug 04, 2009 9:51 am

i have this problem too, so i went searching
my solution for you is:

goto functions.lua and search "have died"

you should see this
function pauseOnDeath()
local sk = startKey;
if( getVersion() >= 100 ) then sk = getStartKey(); end;
cprintf(cli.red, "You have died... Sorry.\n");
printf("Script paused until you revive yourself. Press %s when you\'re ready to continue.\n",
getKeyName(sk))
logMessage("Player died.\n");
stopPE();
end
just delete the stopPE() bit and u should be set

d003232
Posts: 1252
Joined: Wed Jun 03, 2009 4:27 pm

Re: Bot pauses after death, can't figure out how to fix this.

#4 Post by d003232 » Tue Aug 04, 2009 9:54 am

FactorY wrote:i have this problem too, so i went searching

apparently under functions.lua, i searched "have died" and found the pause scripting there

i just deleted the Stop() or w.e function and it works fine now =]
There is a reason to run to the 'pauseOnDeath() ' :-)

Just update to the newest SVN version and you will get a message, what is missing to do it automatic.
The RoM Bot Online Wiki needs your help!

akira2102
Posts: 51
Joined: Sat Jul 18, 2009 2:10 pm

Re: Bot pauses after death, can't figure out how to fix this.

#5 Post by akira2102 » Thu Aug 20, 2009 3:10 pm

I got an error message on ressurection before that says i should turn on the option "automatic_ressurect_on_death" or somethin like that. Is this new?

And a REALLY strange behaviour also I don't think it has anything to do with the bot is that when I click on the ressurect macro when I'm still alive then I die and get teleported to the last place of death.. o_O Has someone else that problem?

d003232
Posts: 1252
Joined: Wed Jun 03, 2009 4:27 pm

Re: Bot pauses after death, can't figure out how to fix this.

#6 Post by d003232 » Thu Aug 20, 2009 3:14 pm

akira2102 wrote:I got an error message on ressurection before that says i should turn on the option "automatic_ressurect_on_death" or somethin like that. Is this new?

And a REALLY strange behaviour also I don't think it has anything to do with the bot is that when I click on the ressurect macro when I'm still alive then I die and get teleported to the last place of death.. o_O Has someone else that problem?
Yes thats new. Just set it to "true" and everything should be ok.

And yes, that's a RoM bug ... and you get debts point everytime you click it :-(
The RoM Bot Online Wiki needs your help!

akira2102
Posts: 51
Joined: Sat Jul 18, 2009 2:10 pm

Re: Bot pauses after death, can't figure out how to fix this.

#7 Post by akira2102 » Thu Aug 20, 2009 3:51 pm

Do U have a reference where I can look for all the new commands?

d003232
Posts: 1252
Joined: Wed Jun 03, 2009 4:27 pm

Re: Bot pauses after death, can't figure out how to fix this.

#8 Post by d003232 » Thu Aug 20, 2009 4:43 pm

akira2102 wrote:Do U have a reference where I can look for all the new commands?
I'm sorry not. Most of the documentation is in the main bot description and in the waypoint how to. And you could search for SVN topics.
The RoM Bot Online Wiki needs your help!

akira2102
Posts: 51
Joined: Sat Jul 18, 2009 2:10 pm

Re: Bot pauses after death, can't figure out how to fix this.

#9 Post by akira2102 » Thu Aug 20, 2009 5:27 pm

Ok. But can u please give me the right command for that resurrection option. I can find it anywhere. Thanks.

d003232
Posts: 1252
Joined: Wed Jun 03, 2009 4:27 pm

Re: Bot pauses after death, can't figure out how to fix this.

#10 Post by d003232 » Thu Aug 20, 2009 5:40 pm

akira2102 wrote:Ok. But can u please give me the right command for that resurrection option. I can find it anywhere. Thanks.
It's yellow printed in the protocal of your MM window. But for you :-)

Code: Select all

<option name="RES_AUTOMATIC_AFTER_DEATH" value="true" />
Have fun!
The RoM Bot Online Wiki needs your help!

akira2102
Posts: 51
Joined: Sat Jul 18, 2009 2:10 pm

Re: Bot pauses after death, can't figure out how to fix this.

#11 Post by akira2102 » Fri Aug 21, 2009 4:06 pm

LoL. Sry. I already saw it in the MM Window and I also wrote it in my profile...I just forgot.. -_- <--- Should sleep a bit more. But thanks! =)

Post Reply

Who is online

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