Switch path's on death?

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Message
Author
User avatar
Edamh
Posts: 106
Joined: Tue May 24, 2011 11:56 pm

Re: Switch path's on death?

#21 Post 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?
User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: Switch path's on death?

#22 Post by rock5 »

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
User avatar
Administrator
Site Admin
Posts: 5344
Joined: Sat Jan 05, 2008 4:21 pm

Re: Switch path's on death?

#23 Post 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>
User avatar
botje
Posts: 656
Joined: Wed Oct 27, 2010 7:17 am

Re: Switch path's on death?

#24 Post by botje »

well, i finally died today xd

but it didnt work, so i am open for suggestions >.<

Botje
User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: Switch path's on death?

#25 Post by rock5 »

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
User avatar
botje
Posts: 656
Joined: Wed Oct 27, 2010 7:17 am

Re: Switch path's on death?

#26 Post 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
User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: Switch path's on death?

#27 Post 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?
  • 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
User avatar
botje
Posts: 656
Joined: Wed Oct 27, 2010 7:17 am

Re: Switch path's on death?

#28 Post 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
Post Reply