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
Stop looting X Item
#1
Hello,

Is someone able to help me out with a script that stops looting X item if cap is < than Y?

Once the cap is higher than X it resumes the looting of that specific item.

Thanks in advance.
Reply

#2
Hello.

To get the correct path, you should select the item on Loot list then right-click on "Action" and click on "Copy path". The path will be copied to your clipboard (CTRL+C).
By default, it will change Action of the first item (from top to bottom) on Loot list.
local ITEM_PATH = 'Looter/0/Action'
local CAP_STOP_LOOT_ITEM = 10

if cap() <= CAP_STOP_LOOT_ITEM then
    if getsettings(ITEM_PATH) == 'Loot' then
        setsettings(ITEM_PATH, 'Ignore')
    end
else
    if getsettings(ITEM_PATH) == 'Ignore' then
        setsettings(ITEM_PATH, 'Loot')
    end
end
Reply

#3
|Only Registered members can see download links. | Click here to buy subscription or here to register.

Thanks for your help! 
|Only Registered members can see download links. | Click here to buy subscription or here to register.
|Only Registered members can see download links. | Click here to buy subscription or here to register.alt="Heart" title="Heart" class="smilie smilie_16" />
Reply



Forum Jump:



Forum software by © MyBB Theme © iAndrew 2016