Is it possible to stop attacking on a WP without going to the next waypoint place ?
For example:
The player fight on waypoint 4:
<!-- # 4 --><waypoint x="-27537" z="24353" y="-83"></waypoint>
and I want to go to waypoint 8 if the quest is completed, but I don't want to wait until the bot goes to waypoint 5
I want to load
settings.profile.events.onLeaveCombat = function()
queststate = getQuestStatus(425509)
if queststate == "complete" then
__WPL:setWaypointIndex(__WPL:findWaypointTag("complete"));
end
end
Remember no matter you do in life to always have a little fun while you are at it
settings.profile.events.onLeaveCombat = function()
settings.profile.events.onLeaveCombat()
queststate = getQuestStatus(425509)
if queststate == "complete" then
__WPL:setWaypointIndex(__WPL:findWaypointTag("complete"));
end
end
??
Or is there some other way to do it (I'm not sure that's how you do the function call)?
if not originalonLeaveCombat then
originalonLeaveCombat = settings.profile.events.onLeaveCombat
end
settings.profile.events.onLeaveCombat = function()
originalonLeaveCombat()
queststate = getQuestStatus(425509)
if queststate == "complete" then
__WPL:setWaypointIndex(__WPL:findWaypointTag("complete"));
end
end
Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.