What to do, if I wan't the bot to logout on death?

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Post Reply
Message
Author
jätkä
Posts: 23
Joined: Sun Oct 25, 2009 1:03 am

What to do, if I wan't the bot to logout on death?

#1 Post by jätkä »

<onDeath>
-- Additional Lua code to execute on death
-- pauseOnDeath(); -- Stop the script
-- player:logout(); -- logout
What am I supposed to do with these datafiles?
When I leave my bot at night to grind, It sometimes dies like 10 times b4 logging out leaving l8ter a HUGE exp/tp debt!
Im still a noob at using rom bot, so I need some help.
User avatar
Administrator
Site Admin
Posts: 5340
Joined: Sat Jan 05, 2008 4:21 pm

Re: What to do, if I wan't the bot to logout on death?

#2 Post by Administrator »

You could uncomment (remove the -- in front of) the player:logout() line in the onDeath event in your profile. There's also a profile option you can add, MAX_DEATHS, and set to 1.
jätkä
Posts: 23
Joined: Sun Oct 25, 2009 1:03 am

Re: What to do, if I wan't the bot to logout on death?

#3 Post by jätkä »

Thanks!
Post Reply