Everyone who has never used our Bots before, can test each one for 2 days without any limitation.
The trial is given automatically when you login on the Bot, but in some cases it wouldn't work (security reasons).
If this happens, send me a private message and i will be checking the failed trials manually and adding it for those who didn't get it.
We are looking for resellers who may accept payment methods different from ours, including classictibia's cash, realesta's cash, mastercores' cash, etc. Interested? Click here at anytime.



Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Drop specific item from bp on the ground
#1
Hey i have issue that looter sometimes pick up unwanted items(like dragon hams), so i need script which would drop them on the ground if cap is less than X or just if item is detected.
Reply

#2
Hello.

Your request is a bit confusing because you request to drop "if cap is less than X OR if item is detected", so it would never reach the first condition (cap), because it would always drop when item is detected.

This drops items if you are not looting and cap equal or lower than 100.
local ITEMS_DROP = { 'dragon ham', 'plate shield' }
local CAP_DROP = 100

if cap() <= CAP_DROP and islooting() == false then
    dropitems(table.unpack(ITEMS_DROP))
end

This drops items whenever you get it but only if you are not looting.
local ITEMS_DROP = { 'dragon ham', 'plate shield' }
if islooting() == false then
    dropitems(table.unpack(ITEMS_DROP))
end
Reply



Forum Jump:



Forum software by © MyBB Theme © iAndrew 2016