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
FREE Cast spell every X seconds
Cast spell every X seconds.

This script will check if you have enough mana every X seconds, which is based on "DELAY" range that will be a sorted value between that range you setup.
The default settings below will check if you have enough mana ("MANA_TO_CAST") every 10-25 seconds (this is random) to cast "exura".
If takes like 15 seconds to heal enough mana to cast the spell you want then setup those values like Min 15, max 18.

local SPELL = 'exura'
local MANA_TO_CAST = 25 -- Cast spell only if mp is higher or equal than this value.
local DELAY = { Min = 10, Max = 25 } -- In seconds. How often should it check for your mana and cast spell? If it takes between 10-12 seconds to heal enough mana then setup those values like Min 10, max 12.

if connected() (NEXT_SPELL == nil or runningtime() >= NEXT_SPELL) and cancast() and mp() >= MANA_TO_CAST then
    wait(300, 500)
    NEXT_SPELL = runningtime() + random(DELAY.Min, DELAY.Max)

Forum Jump:

Forum software by © MyBB Theme © iAndrew 2016