PDA

View Full Version : When X mana potion then walker stop and logout



asenaebaem
04-27-2016, 07:10 AM
Hi all, I'm new to the forum. I looking for a two script.

FIrst: when x mana potion then walker stop and logout.

Second: when x cap then walker stop and logout.

Someone can help me ??

Oscagi
04-27-2016, 07:49 AM
ManaID = 238
MinMana = 20
MinCap = 200

Module.New('Stop_Walker', function()
if Self.ItemCount(ManaID) < MinMana or Self.Cap() < MinCap then
Walker.Stop()
Self.Logout()
end
end)


Here you have both scripts in 1, if you want have 2 different scripts fo this:


Module.New('Stop_Walker', function()
if Self.ItemCount(ManaID) < MinMana then -- Delete this and add (Self.Cap() < MinCap)
Walker.Stop()
Self.Logout()
end
end)

asenaebaem
04-27-2016, 08:30 AM
Good Job :) Thank You :)