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
Looking for persistent
#1
Looking for a script that makes me not outrun summons, so I can hunt with monks etc
Reply

#2
Hello.

If a Monk is 5+ SQMs away from you then it will disable Cavebot, Looter and Targeting (if enabled) and stop walking for a random time depending on monk's distance.
I didn't tested this script or even used to hunt myself, but should work.

#EDIT#
Code fixed.
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
Reply

#3
Hello! I tested the script but it just disables everything and it does not turn back on
Reply

#4
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
Reply

#5
@Arkilys - Its dont working :/
Reply



Forum Jump:



Forum software by © MyBB Theme © iAndrew 2016