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
targeting 1 sd only
#1
How can i setup script to target a monster and use only one sd on that target?
Can anyone help?
Reply

#2
Hello.

local RUNE = 'sudden death rune'

if LAST_ID == nil then
     LAST_ID = 0
end

local attacked_creatured = attacked()
if attacked_creatured.id > 0 and attacked_creatured.hppc > 0 and attacked_creatured.id ~= LAST_ID and cancast() then
     useitemoncreature(RUNE, attacked_creature.id)
     wait(100, 300)
end
Reply

#3
And so that it only pulls 2, what must be modified?
Reply

#4
local RUNE = 'sudden death rune'
local MAX_SHOTS = 2

if LAST_MONSTER == nil then
     LAST_MONSTER = { id = 0, attempts = 0 }
end

local attacked_creatured = attacked()
if attacked_creatured.id > 0 and attacked_creatured.hppc > 0 and (attacked_creatured.id ~= LAST_MONSTER.id or LAST_MONSTER.attempts < MAX_SHOTS) and cancast() then
     useitemoncreature(RUNE, attacked_creature.id)
     wait(100, 300)
     if attacked_creatured.id ~= LAST_MONSTER.id then
          LAST_MONSTER.id = attacked_creatured.id
          LAST_MONSTER.attempts = 1
     else
          LAST_MONSTER.attempts = LAST_MONSTER.attempts + 1
     end
end
Reply



Forum Jump:



Forum software by © MyBB Theme © iAndrew 2016