Page 1 of 1

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

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

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

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

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

Posted: Fri Nov 13, 2009 9:37 am
by jätkä
Thanks!