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ä » Fri Nov 13, 2009 1:47 am

<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: 5307
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 » Fri Nov 13, 2009 4:22 am

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ä » Fri Nov 13, 2009 9:37 am

Thanks!

Post Reply

Who is online

Users browsing this forum: Semrush [Bot] and 6 guests