I thought that you could add RoM bot events to waypoint files and that those RoM bot events within the waypoint file would override the respective sections in the character's profile? Or can you only add onLoad parameters but not onDeath (nor other RoM bot events) within the waypoint file?lisa wrote:Edit sorry totally didn't read the bit where you put ondeath into the Wp
ondeath is an event for your profile, not WP
Switch path's on death?
Re: Switch path's on death?
Re: Switch path's on death?
That's correct. Only onLoad can be used in the waypoint file.
- Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
- I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
- How to: copy and paste in micromacro
________________________
Quote:- “They say hard work never hurt anybody, but I figure, why take the chance.”
- Ronald Reagan
- Administrator
- Site Admin
- Posts: 5344
- Joined: Sat Jan 05, 2008 4:21 pm
Re: Switch path's on death?
If you really wanted to, for some reason, I suppose you could override the player's events from within a waypoint onLoad event. I'm not sure why you would need to do that, though.
Here is an example:
Here is an example:
Code: Select all
<onLoad><![CDATA[
settings.profile.events.onDeath = function ()
-- This is now the player's onDeath event.
end
]]></onLoad>
Re: Switch path's on death?
well, i finally died today xd
but it didnt work, so i am open for suggestions >.<
Botje
but it didnt work, so i am open for suggestions >.<
Botje
Re: Switch path's on death?
What didn't work? Which code were you using? What happened? What did you observe?
- Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
- I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
- How to: copy and paste in micromacro
________________________
Quote:- “They say hard work never hurt anybody, but I figure, why take the chance.”
- Ronald Reagan
Re: Switch path's on death?
Code: Select all
<onDeath><![CDATA[
RoMScript("BrithRevive();");
waitForLoadingScreen()
yrest(settings.profile.options.WAIT_TIME_AFTER_RES);
player:update();
if RoMScript("GetZoneID()") == 11 then
loadPaths("Dragonfang/CyclopsShop");
end
]]></onDeath>this, and it just doesnt fire at all.
Botje
Re: Switch path's on death?
So that's in your profile, right? And it didn't revive? You found him still dead? And what did you see in the MM window? What was it doing when it died?
- Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
- I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
- How to: copy and paste in micromacro
________________________
Quote:- “They say hard work never hurt anybody, but I figure, why take the chance.”
- Ronald Reagan
Re: Switch path's on death?
yes, its in my profile.
character was resurrected, but no pathswitch etc, so it tried to go on his way, but got stuck obviously xd
Botje
character was resurrected, but no pathswitch etc, so it tried to go on his way, but got stuck obviously xd
Botje