PDA

View Full Version : Druid below cap looter



Elder' Mariusz
02-10-2016, 07:51 PM
Hello i tried to make script which will stop pickin' up the loot when my cap is below 100, I made it in bot but it doesn't work for me :/ I've got 90 cap and bot is still looting... so i made it :

if (Self.Cap() < 150) then
setLooterEnabled(false)
elseif (Self.Cap() > 150) then
setLooterEnabled(true)
end

and it doesn't work
can someone tell me what's wrong here?
BTW I'm beginner in xeno, so don't flame me plz :D

Jontor
02-10-2016, 09:44 PM
Hello i tried to make script which will stop pickin' up the loot when my cap is below 100, I made it in bot but it doesn't work for me :/ I've got 90 cap and bot is still looting... so i made it :

if (Self.Cap() < 150) then
setLooterEnabled(false)
elseif (Self.Cap() > 150) then
setLooterEnabled(true)
end

and it doesn't work
can someone tell me what's wrong here?
BTW I'm beginner in xeno, so don't flame me plz :D
Make sure to use a module for it, so it checks all the time



Module.New("checkCap", function()
if (Self.Cap() < 100) then
setLooterEnabled(false)
else
setLooterEnabled(true)
end
end)

Elder' Mariusz
02-10-2016, 10:34 PM
Make sure to use a module for it, so it checks all the time



Module.New("checkCap", function()
if (Self.Cap() < 100) then
setLooterEnabled(false)
else
setLooterEnabled(true)
end
end)


it works ! thank you very much my friend ! I'm beginner so I'm learning already how to write scripts, thanks