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 All Items inside body IF "Rarity" appear
#1
Hello,

would like to request  a Script that would drop all items inside a killed Monster if "Rarity" Message appear.

Thanks and Greetings
Reply

#2
local LOOTS = { 'gold coin', 'mace' } -- Items on Looter. Item name must MATCH the name on Looter.

local texts = getstatictexts()
for _, text in ipairs(texts) do
  if text.message == 'Rarity' and text.sender == name() then
    for __, loot in ipairs(LOOTS) do
      setsettings('Looter/' .. loot .. '/Action', 'Drop')
    end
    if not islooting() then
      wait(5000)
    end
    while islooting() do
      wait(200)
    end
    for __, loot in ipairs(LOOTS) do
      setsettings('Looter/' .. loot .. '/Action', 'Loot')
    end
  end
end
Reply

#3
LUA Script -> drop: 9: 'then' expected near 'thne'
Reply

#4
The error is clear, you just had to replace 'thne' with 'then'.
Reply



Forum Jump:



Forum software by © MyBB Theme © iAndrew 2016