Page 2 of 2
Re: Switch path's on death?
Posted: Mon Aug 01, 2011 7:18 am
by Edamh
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
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?
Re: Switch path's on death?
Posted: Mon Aug 01, 2011 8:08 am
by rock5
That's correct. Only onLoad can be used in the waypoint file.
Re: Switch path's on death?
Posted: Mon Aug 01, 2011 6:09 pm
by Administrator
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:
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?
Posted: Sun Aug 07, 2011 4:23 pm
by botje
well, i finally died today xd
but it didnt work, so i am open for suggestions >.<
Botje
Re: Switch path's on death?
Posted: Sun Aug 07, 2011 9:42 pm
by rock5
What didn't work? Which code were you using? What happened? What did you observe?
Re: Switch path's on death?
Posted: Mon Aug 08, 2011 5:15 am
by botje
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?
Posted: Mon Aug 08, 2011 5:58 am
by rock5
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?
Re: Switch path's on death?
Posted: Mon Aug 08, 2011 6:31 am
by botje
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