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
Safe Stalker
#1
Hi, im after a simple safe stalker like the one i used to use in windbot. 

Essentially its,
If damage taken by stalker and no stalker on screen then check player on screen and cast rune on self position.

Is there an easy way to convert windbot scripts?


Has anybody got something like this working?
Reply

#2
local RuneToUse = 'great fireball rune'


local Messages = getnewmessages('Default')
local REGEX_DMG_TAKEN     = '^You lose (%d+) (%l+) due to an attack by ?a?n? (.-)%.$'

if type(Messages) == 'table' then
   for _, msg in ipairs(Messages) do
       local dmgAmount, dmgType, dmgCreature = msg.content:match(REGEX_DMG_TAKEN)
       if dmgCreature == "stalker" then
           if maround(5, "Stalker") == 0 then
               useitemoncreature(RuneToUse, id())
               wait(2000)
           end
       end
   end
end
Reply



Forum Jump:



Forum software by © MyBB Theme © iAndrew 2016