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
Axe ring when near mobs
#1
Question 
Hello Ark, it is possible make an script to put on ring ( axe ) only when mobs around, then take it off when not mobs around?

just wondering 
|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="Rolleyes" title="Rolleyes" class="smilie smilie_6" />
Reply

#2
Hello.

MONSTERS table is the list of monsters that script should check.
MONSTERS_DIST is the minimum distance to check for listed monsters to equip ring.
RING_IDS contains the ring ids while in use (equipped in your finger) and not in use (in your backpack for example).

local MONSTERS = { 'Dragon' }
local MONSTERS_DIST = 2
local RING_IDS = { InUse = 3095, NotInUse = 3092 }

table.lower(MONSTERS)

local attacked_creature = attacked()
if maround(MONSTERS_DIST, table.unpack(MONSTERS)) > 0 then
    local finger_item = finger()
    if finger_item.id ~= RING_IDS.InUse then
        moveitems(RING_IDS.NotInUse, 'finger', '', 100)
        wait(500, 800)
    end
else
    local finger_item = finger()
    if finger_item.id == RING_IDS.InUse then
        moveitems(RING_IDS.InUse, '', 'finger', 100)
        wait(500, 800)
    end
end
Reply



Forum Jump:



Forum software by © MyBB Theme © iAndrew 2016