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
Need if 2 monks not on screen stop and wait
#1
Hello atm im botting with 2 monks with mage lvl 40 in tomb, sometimes my character walk so fast and he lost 1 of monks, I need script like if there is not 2 monks in screen then pause and wait until there is 2 monks and continue, can someone help me?

#2
Hello.

I've developed two scripts, you can try both to see which one works better for you.

local SUMMON_COUNT = 2 -- How many summons are you using?
if maround(0, 'Monk') < SUMMON_COUNT then
     pausewalking(4000)
     stop()
end

local Summon = 'Monk' -- Summon name
local MaxDist = 5 -- Max distance. If higher or equal, stop and wait.
local TimePerSQM = { Min = 500, Max = 800 } -- In milliseconds. Time to wait for each SQM of distance.

local Creatures = getcreatures('pmfs')
for _, creature in ipairs(Creatures) do
   if creature.name:lower() == Summon:lower() and creature.dist >= MaxDist then

       local time_wait = random(TimePerSQM.Min, TimePerSQM.Max)
       local caveState = getsettings('Cavebot/Enabled')
       local targetState = getsettings('Targeting/Enabled')
       local lootState = getsettings('Looter/Enabled')

       if caveState then
           setsettings('Cavebot/Enabled', false)
           pausewalking((time_wait * (creature.dist - 2)))
       end
       if targetState then
           setsettings('Targeting/Enabled', false)
           pausewalking((time_wait * (creature.dist - 2)))
       end
       if lootState then
           setsettings('Looter/Enabled', false)
       end

       if attacked().id > 0 or iswalking() then
           stop()
       end

       wait((time_wait * (creature.dist - 2)))

       if caveState then
           setsettings('Cavebot/Enabled', true)
           pausewalking(0)
       end
       if targetState then
           setsettings('Targeting/Enabled', true)
           pausewalking(0)
       end
       if lootState then
           setsettings('Looter/Enabled', true)
       end

       break

   end
end

#3
Nice one I used both of them, but best is this one:

if maround(0, 'Monk') < 2 then
pausewalking(4000)
stop()
end

at least for the spawn am I right now..



Dude @Arkilys can u give me action to heal monks with Intense Healing runes if HP lower than X ?

#4
local Summon = 'Monk' -- Summon name
local Health_Heal = 30 -- Summons health % that it should use rune to heal.
local Rune_Heal = 'Intense Healing Rune' -- Rune name or id that should be used to heal monk.

local Creatures = getcreatures('mfs')
for _, creature in ipairs(Creatures) do
   if creature.name:lower() == Summon:lower() and creature.hppc <= Health_Heal then
      useitemoncreature(Rune_Heal, creature.id)
      wait(800, 1000)
      break
   end
end



Forum Jump:



Forum software by © MyBB Theme © iAndrew 2016