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
RING CHANGE
#1
Good morning !

I would like a script to equip the "elven ring" when below 40% HP
And replace with "beginner ring" when above 80% HP

SHADOW ILLUSION
Reply

#2
Hello.

First, rings may change its id when EQUIPPED and UNEQUIPPED. So you must find out those ids.

To find ring id when equipped just move the ring to finger slot then run this code on Bot's Console tab.
print(finger().id)
It will print the id.

Then move it to belt/arrow slot and run this code on Bot's Console tab.
print(belt().id)
It will print the id.


local LOW_RING_EQUIPPED_ID = 1234
local LOW_RING_UNEQUIPPED_ID = 1234
local LOW_RING_HPPC = 40 -- If hppc LOWER than this value then equip ring above.

local HIGH_RING_EQUIPPED_ID = 1234
local HIGH_RING_UNEQUIPPED_ID = 1234
local HIGH_RING_HPPC = 80 -- If hppc HIGHER than this value then equip ring above.


local ring_item = finger()
local value = hppc()
if value <= LOW_RING_HPPC and (ring_item.id == 0 or ring_item.id ~= LOW_RING_EQUIPPED_ID) then
    moveitems(LOW_RING_UNEQUIPPED_ID, 'finger', '')
    wait(500, 800)
elseif value >= HIGH_RING_HPPC and (ring_item.id == 0 or ring_item.id ~= HIGH_RING_EQUIPPED_ID) then
    moveitems(HIGH_RING_UNEQUIPPED_ID, 'finger', '')
    wait(500, 800)
end
Reply

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

Funcionou perfeitamente, muito obrigado !
Reply



Forum Jump:



Forum software by © MyBB Theme © iAndrew 2016