View Full Version : turn off targeting if low supplies and exit cave
jollebollen
12-03-2015, 05:24 AM
Would be a useful script for guaranteed safety :)
jollebollen
12-04-2015, 03:03 AM
lol 0 views is nobody using xenobot anymore? <getting sceptical>
MrTrala
12-05-2015, 09:30 AM
If you're trying to make afk scripts you should at least know this-
local ManaID = -- Id of your manas
local HealthID = -- Id of your health pots
local MPLeave = -- How many MP to leave
local HPLeave = -- How many HP to leave
registerEventListener(WALKER_SELECTLABEL, "onWalkerSelectLabel")
function onWalkerSelectLabel(labelName)
if (labelName == "CheckMN") then
if Self.ItemCount(ManaID) <= MPLeave or Self.ItemCount(HealthID) <= HPLeave then
Targeting.Stop()
Walker.Goto("Leave")
print([[Low potions, Leaving respawn.]])
else
Walker.Goto("StartHunt")
print([[Supplies are good, keep hunting.]])
end
elseif (labelName == "StartHunt") then
Targeting.Start()
end
end
Black square = Waypoints when you're in the hunt spot.
Red square = Waypoints when you're leaving resp.
13035
Nakuu
12-05-2015, 05:17 PM
Just a note... use
Targeting.StartIgnoring()
Targeting.StopIgnoring()
instead of
Targeting.Stop()
Targeting.Start()
it's safer since you will still kill monsters that blocks you.
jollebollen
12-05-2015, 08:10 PM
Ok thanks but I'm buying my scripts so I can't fix this myself XD damn waste of money lol!
Nakuu
12-05-2015, 08:20 PM
Ok thanks but I'm buying my scripts so I can't fix this myself XD damn waste of money lol!
From who do you buy your scripts? If it's a SolidScripts you can easily configure it in CONFIG file just by adding 1 line and it'll ignore monsters when leaving :)
Elvang
12-05-2015, 09:22 PM
Ok thanks but I'm buying my scripts so I can't fix this myself XD damn waste of money lol!
You could add it in as a one-liner to any script in the walker. You just have to find where it starts hunting and where it leaves.
felipe93
05-24-2016, 09:06 AM
Just a note... use
Targeting.StartIgnoring()
Targeting.StopIgnoring()
instead of
Targeting.Stop()
Targeting.Start()
it's safer since you will still kill monsters that blocks you.
how i set up this tomething like
Targeting.Stop(LeaveHunt)
Targeting.Start(Keep hunting)
at the beggining of the script or how¿?
Powered by vBulletin® Version 4.2.5 Copyright © 2025 vBulletin Solutions Inc. All rights reserved.