Page 1 of 1

script request.

Posted: Mon Dec 07, 2009 7:51 pm
by Tyrismido
Hello , I was wondering how can I make my bot logout when my gold is under certian amount?
that would be really useful as I ad problems with that for some time.
Thanks.

Re: script request.

Posted: Mon Dec 07, 2009 8:58 pm
by raff
you could add this to onleavecombat in profile:

Code: Select all

local playerMoney = RoMScript("GetPlayerMoney('copper');");

if( playerMoney < 10000 ) then
player:logout();
end
this will log out you, when gold is under 10k

Re: script request.

Posted: Mon Dec 07, 2009 11:52 pm
by Tyrismido
thanks alot taht helped much.