Zelek
-
Posts
669 -
Joined
-
Last visited
-
Days Won
75
Posts posted by Zelek
-
-
with shared global cooldown it would be the best to also implement healing within a single script with attacking rotation
- 1
-
On 8/31/2021 at 12:03 PM, Kuuba said:
Hi Zelek,
I wanted to use this script to lure mobs, unfortunately it does not work correctly, after luring 7 mobs cavebot is turned off and targeting is activated, after killing all mobs cavebot is still turned off, can you please check this script.
It works correctly, you must be doing something wrong.
-
local healthToCast = 75
local spellToCast = "thrusting beam"local distance = 4
local player = g_game.getLocalPlayer()local target = g_game.getAttackingCreature()
if target and target:getPosition():distance(player:getPosition()) <= distance and player:getHealthPercent() >= healthToCast then
g_game.talk(spellToCast)
sleep(900, 1100)
end
auto(100)3 hours ago, Sophy Moore said:How to make target spell to trigger when monster that is targetted is near 1sqm max 4 sqm from me. I mean that this script is trying to use spell even if target is 7sqm away from me.
?
local healthToCast = 75
local spellToCast = "thrusting beam"
local player = g_game.getLocalPlayer()
if g_game.isAttacking() and player:getHealthPercent() >= healthToCast then
g_game.talk(spellToCast)
sleep(900, 1100)
end
auto(100) -
use opengl client
-
On 8/23/2021 at 7:31 AM, walszky said:
i need script please pause and start bot with key please
how to attack with spells in Rots? Example i want rotation with 5 spells how i can do?
toggle pause hotkey script is included in the bot by default.
for spells in rots use
g_game.sendKey("F1")
you can find plenty of examples here.
-
@walszkyuse opengl client.
-
this is not an otclient so yes, it won't work.
-
that's not an otclient 😛
-
it does as far as I know
-
done
-
you need an active subscription first.
-
done
-
done
-
On 5/25/2021 at 7:31 PM, tawr said:
can someone write script to turn off targeting if there are 0 monsters near character and turn on targeting with 5+ monsters on screen?
Please search the forum before posting.
-
Should be fixed in the latest beta
-
I hope it's fixed in the latest beta, please check it out and let me know 🙂
-
You can download it here: OTClientBot-v2.0.0-beta17d
Also please remember to install Visual C++ Redistributable for Visual Studio 2015 - 2019 x86 if you haven't already.
List of changes:
- fixed memory leak that caused the bot to crash without an error after some time randomly
- fixed bot not walking to corpse to open it with looting
- fixed bot not opening corpse if it disappeared from screen
- other looting optimizations
List of changes for beta 17a:
- fixed an issue that prevented bot from executing actions if client window wasn't actively used by the user on certain servers.
List of changes for beta 17b:
- fixed an issue where unsuccessful looting attempt could hang up entire cavebot process
-
added new lua functions:
- Tile:isShootable() -- returns true if Tile object is shootable from player position, false otherwise
- getBestAreaPosition(bool ignorePlayers, number minAmount, number range) -- returns position with biggest amount of monsters within certain range of each other
- huge optimisations for lua scripting performance
List of changes for beta 17c:
- fixed some iterators not working as expected after recent changes
- fixed tile reading making certain clients not responsive
List of changes for beta 17d:
- fixed tile reading not working with certain clients
List of changes for beta 17e:
- safety improvements
-
-
fixed in beta 16d
-
-
-
Fixed client crash on walking for rots 😛
-
I’ll try to fix it through the weekend
-
that server wasn’t using otclient most likely.
More keys
in Suggestions
Posted
every alpha-numerical key is supported, remember they need to be in uppercase.