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
Auto equip energy ring when player of certain level on screen with safe list
#1
Hi,
      Please, I need the following script:
 I am with 4 characters in the same screen, I need to put them in a safe list.
 And when any other player of level 34+ appears on screen, I want to auto equip energy ring.

      I was looking in the forum, searching for a script like this. I found some, but without a safe list and level check.
What I found: 

local RING_IDS = { InUse = 3088, NotInUse = 3051 }

local ring = finger()
local players_count = paround()

if players_count > 0 and (ring.id == 0 or ring.id ~= RING_IDS.InUse) then
    moveitems(RING_IDS.NotInUse, 'finger', '', 100)
    wait(200, 500)
elseif players_count == 0 and ring.id == RING_IDS.InUse then
    moveitems(RING_IDS.InUse, '0', 'finger', 100)
    wait(200, 500)
end

Problem is that its equip ring when my chars appear on screen, and I dont need equip it if enemy player cant "one hit" kill me.
I want only use the ring when some player level 34 or more appear os screen.
and how can I add a safe list to this?
Reply

#2
Hello.

It's not possible to know a character's level.

local SAFE_LIST = { 'main character', 'friend guy', 'maker' }
local RING_IDS = { InUse = 3088, NotInUse = 3051 }

local ring = finger()
local players_count = paroundignore(0, false, table.unpack(SAFE_LIST))

if players_count > 0 and (ring.id == 0 or ring.id ~= RING_IDS.InUse) then
    moveitems(RING_IDS.NotInUse, 'finger', '', 100)
    wait(200, 500)
elseif players_count == 0 and ring.id == RING_IDS.InUse then
    moveitems(RING_IDS.InUse, '0', 'finger', 100)
    wait(200, 500)
end
Reply

#3
|Only Registered members can see download links. | Click here to buy subscription or here to register.
Ahh, it's ok. I was trying to implement safe list, and failed.
You did It well, thanks!! 
|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="Big Grin" title="Big Grin" class="smilie smilie_4" />
Reply



Forum Jump:



Forum software by © MyBB Theme © iAndrew 2016