Log in

View Full Version : When X sd exit/close client



asenaebaem
06-20-2016, 07:59 PM
Hi all, i need script. When i have x sudden death rune i exit.

yompa93
06-21-2016, 06:52 PM
The backpack containing the sds has to be open for this to work.


AmountToExit = 100 -- sds to logout

Module.New('SD_Exit', function(sd)
if Self.ItemCount(Item.GetID("sudden death rune")) >= AmountToExit then -- >= means more or equal, change it to <= if you want it to be less or equal to AmountToExit to exitlog
os.exit()
end
sd:Delay(5000) -- checks every 5 seconds.
end)