Have this so far.
Code: Select all
<?xml version="1.0" encoding="utf-8"?><waypoints>
<!-- # 5 --><waypoint x="3073" z="155" y="44" tag='GETBUFF'>
player:target_NPC("Waysie Stainbrick");
yrest(200);
sendMacro("ChoiceOption(2);");
yrest(300);
sendMacro("ChoiceOption(1);");
yrest(500);
if not player:hasBuff("Elegant Proof of Purchase") then
__WPL:setWaypointIndex(__WPL:findWaypointTag("GETBUFF"));
end
</waypoint>
<!-- # 2 --><waypoint x="3011" z="121" y="44"> </waypoint>
<!-- # 3 --><waypoint x="3027" z="113" y="44">
player:target_Object("Mr Swallowtail's Toss of Elegance");
--Kokomo 120386
--Baabaa Sheep 120384
-- 120385
ignoreOldObj=nil
while true do
creatures={120386,120385,120384}
mytarget=nil
for k,id in pairs(creatures) do
if ignoreOldObj==nil then
mytarget=player:findNearestNameOrId(id)
else
mytarget=player:findNearestNameOrId(id,ignoreOldObj)
end
if mytarget~=nil then
player:target(mytarget)
RoMScript("UseExtraAction(1)");
ignoreOldObj=mytarget.Address;
yrest(99);
break;
end
end
repeat
player:update();
until player.Casting==false
end
</waypoint>
<!-- # 4 --><waypoint x="3012" z="124" y="44"> </waypoint>
<!-- # 5 --><waypoint x="3073" z="155" y="44"> player:target_NPC("Waysie Stainbrick");
sendMacro("ChoiceOption(2);");
</waypoint>
</waypoints>
Any help would be great, thanks