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
If monster do NOT attack then Cast X
#1
Could you help me with a script 

if the monster on list do not attack then cast X spell also the Monster must be in X range of ur character like next to you.


local MonstersList = 'Rotworm', 'Ghoul'
local CastSpell = 'exura vita'

If MonsterList not attack then cast Castspell
wait (3000)

end
Reply

#2
Whats do you mean with monster not attack? Monster not attacking you? You not attacking monster.
Monster attacks you once every 1-2s, so Bot can only detect when monster attacks.
Reply

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

If monster do not attack me, i dont attack it
Reply

#4
Hello.

Honestly, I think you should learn LUA, because you almost developed the script.

Your request doesn't makes sense to me, but who knows...

local MonstersList = {'Rotworm', 'Ghoul'}
local CastSpell = 'exura vita'

if connected() and attacked().id == 0 then
    local creatures = getcreatures('mfs')
    for _, creature in ipairs(creatures) do
        if creature.isattackme and table.find(MonsterList, creature.name) ~= nil then
            return
        end
    end

    cast(CastSpell)
    wait(3000)
end
Reply



Forum Jump:



Forum software by © MyBB Theme © iAndrew 2016