Code: Select all
<?xml version="1.0" encoding="utf-8"?><waypoints>
<!-- # 1 --><waypoint x="-21533" z="-22929" y="597" type="TRAVEL">
player:target_NPC("Diandon");
CompleteQuestByName("Extinguish More Flames");
yrest(500);
player:target_NPC("Diandon");
AcceptQuestByName("Extinguish More Flames");
yrest(500);
__WPL:setDirection(WPT_FORWARD);
</waypoint>
<!-- # 2 --><waypoint x="-21680" z="-23204" y="594" type="TRAVEL">
queststate = getQuestStatus("Extinguish More Flames");
if queststate == "incomplete" then
yrest(500);player:target_Object("Strange Flame Seedling");yrest(1000); (<--flame A)
queststate = getQuestStatus("Extinguish More Flames");
if queststate == "incomplete" then
__WPL:setDirection(WPT_FORWARD);
else
__WPL:setDirection(WPT_BACKWARD);
end
else
__WPL:setDirection(WPT_BACKWARD);
end
</waypoint>
<!-- # 3 --><waypoint x="-21739" z="-23072" y="597" type="TRAVEL">
yrest(500);player:target_Object("Strange Flame Seedling");yrest(1000); (<--flame B)
__WPL:setDirection(WPT_BACKWARD);
</waypoint>
</waypoints>
How can i add another Flame C, Flame D, etc etc on the code.. My goal really is to know how
Code: Select all
__WPL:setDirection(WPT_BACKWARD);
__WPL:setDirection(WPT_FORWARD);
Let's say there is 10 target objects i wanted to target/harvest.. (object A to J) and i wanted to add quest status check on Object C, F, G..
Do i have to add this code on waypoint C, F, G?
Code: Select all
<!-- # 2 --><waypoint x="-xxxx" z="-xxxx" y="xxx" type="TRAVEL">
queststate = getQuestStatus("Quest Title");
if queststate == "incomplete" then
yrest(500);player:target_Object("Object C");yrest(1000);
queststate = getQuestStatus("QUest title");
if queststate == "incomplete" then
__WPL:setDirection(WPT_FORWARD);
else
__WPL:setDirection(WPT_BACKWARD);
end
else
__WPL:setDirection(WPT_BACKWARD);
end
</waypoint>