I've been following the forum for some time, but now posting for the first time.
So guys you have a great forum.
Ok, so my problem is this. I have used for some time the butterfly leaching script you can find on the forum here.
I started to add some extra waypoints for killing the butterflies. It works, but always at the same spots (multiple places) my char is starting to mount. Even I cannot find any mount code.
If you guys have any idea, it would be great. The mounting is not nedded at this point of the code.
Butterflyleach
Code: Select all
<?xml version="1.0" encoding="utf-8"?><waypoints type="TRAVEL">
<!-- # 1 --><waypoint x="7548" z="2981" y="184">
local queststate = getQuestStatus("Catch Butterflies")
if queststate == "complete" then
repeat
player:dismount() ------- ADDED for mounting
yrest(2000)
player:update()
printf("Player Mounted: "..tostring(player.Mounted).."\n")
until not player.Mounted
yrest(2000)
player:mount()
yrest(2000)
__WPL:setDirection(WPT_FORWARD);
else
loadPaths("butterflykill"); ---------- ADDED to load the butterfly kill path.
end
</waypoint>
<!-- # 2 --><waypoint x="7581" z="3034" y="184"> </waypoint>
<!-- # 3 --><waypoint x="7671" z="3126" y="184"> </waypoint>
<!-- # 4 --><waypoint x="7555" z="3191" y="184"> </waypoint>
<!-- # 5 --><waypoint x="7435" z="3346" y="184"> </waypoint>
<!-- # 6 --><waypoint x="7365" z="3343" y="184"> </waypoint>
<!-- # 7 --><waypoint x="7342" z="3222" y="184"> </waypoint>
<!-- # 8 --><waypoint x="7255" z="3180" y="193"> </waypoint>
<!-- # 9 --><waypoint x="7157" z="3231" y="193"> </waypoint>
<!-- # 10 --><waypoint x="7049" z="3417" y="193"> </waypoint>
<!-- # 11 --><waypoint x="6626" z="3747" y="175"> </waypoint>
<!-- # 12 --><waypoint x="6560" z="3976" y="206"> </waypoint>
<!-- # 13 --><waypoint x="6479" z="4387" y="185"> </waypoint>
<!-- # 14 --><waypoint x="6326" z="5027" y="184"> </waypoint>
<!-- # 15 --><waypoint x="6427" z="5431" y="172">
local queststate = getQuestStatus("Catch Butterflies")
if queststate == "complete" then
player:target_NPC("Robbie Butcher");
CompleteQuestByName("Catch")
end
yrest(1000)
local dqCount, dqPerDay = RoMScript("Daily_count()");
if dqCount ~= 10 then
player:target_NPC("Robbie Butcher");
AcceptQuestByName("Catch")
else
inventory:update();
player:update();
if inventory:itemTotalCount(202434) > 0 then
inventory:useItem(202434);
yrest(2000)
player:target_NPC("Robbie Butcher");
AcceptQuestByName("Catch")
else
player:sleep();
end
end
__WPL:setDirection(WPT_BACKWARD);
</waypoint>
</waypoints>
Code: Select all
<?xml version="1.0" encoding="utf-8"?><waypoints>
<!-- # 22 kill --><waypoint x="7843" z="1410" y="168">
</waypoint>
<!-- # 21 kill --><waypoint x="7758" z="1692" y="168">
</waypoint>
<!-- # 20 kill --><waypoint x="7695" z="2002" y="168">
</waypoint>
<!-- # 19 kill --><waypoint x="7604" z="2302" y="168">
</waypoint>
<!-- # 18 kill --><waypoint x="7611" z="2508" y="168">
</waypoint>
<!-- # 17 kill --><waypoint x="7611" z="2677" y="168">
</waypoint>
<!-- # 16 --><waypoint x="7548" z="2981" y="184">
local queststate = getQuestStatus("Catch Butterflies")
if queststate == "complete" then
__WPL:setForcedWaypointType("TRAVEL")
loadPaths("buttkill");
else
__WPL:setDirection(WPT_FORWARD);
end
</waypoint>
</waypoints>
If i look in the command line, it happens after the message "Stopping waypoint: target acquired".
Any Idea why this happens?
Kind regards