hmmm, I don't think I made it clear with what I meant.
I have multiple waypoints for doing secondary leveling at CoO, at each of the portal spots various dailies can be done. I can set them up according to secondary level, but than I would need to compensate for when I do the class swap.
examples included, I was gonna try explaining, but maybe by looking at the code you'd get a better idea?
Class Swap
Code: Select all
<?xml version="1.0" encoding="utf-8"?><waypoints type="TRAVEL">
<onload>
__WPL:setWaypointIndex(1)
function checkdaily()
local dailyQuestCount, dailyQuestsPerDay = RoMScript("Daily_count()");
if dailyQuestsPerDay == dailyQuestCount then
RoMScript("Logout();");
error("dailies complete")
else
printf("You've done "..dailyQuestCount.." of " .. dailyQuestsPerDay .. " Daily Quests.\n");
end
end
</onload>
<!-- # 1 --><waypoint x="-6322" z="-3915" y="176"> </waypoint> -- Snoop
<!-- # 2 --><waypoint x="-6839" z="-3654" y="193"> </waypoint>
<!-- # 3 --><waypoint x="-6941" z="-3648" y="173">
player:target_NPC(117291) -- Nicole Rebecca
ChoiceOptionByName(getTEXT("SO_110581_1")) -- 'I want to switch my primary and secondary class.'
player:update()
checkdaily()
</waypoint> -- House Maid
<!-- # 2 --><waypoint x="-6839" z="-3654" y="193"> </waypoint>
<!-- # 1 --><waypoint x="-6322" z="-3915" y="176">
player:target_NPC(118002) -- Snoop the Stubborn
ChoiceOptionByName("Transport to: Desert Investigation Post")
AcceptPopup(SET_REQUESTDIALOG);
waitForLoadingScreen();
-- loadPaths("CoO_35_Power_for_Thousands")
loadPaths("CoO_38_Life_Hormone")
</waypoint> -- Snoop
</waypoints>
wp1
Code: Select all
<?xml version="1.0" encoding="utf-8"?><waypoints type="TRAVEL">
<onload>
__WPL:setWaypointIndex(1)
</onload>
<!-- # 1 --><waypoint x="-7537" z="1467" y="632">
if player.Class1 == CLASS_XXX then
player:target_NPC(117281) -- Mufasa Luckshine
CompleteQuestByName(423957) -- Power for a Thousand Miles
__WPL:setWaypointIndex(__WPL:findWaypointTag("return"));
end
if player.Class1 == CLASS_XXX then
player:target_NPC(117281) -- Mufasa Luckshine
AcceptQuestByName(423957) -- Power for a Thousand Miles
wallon()
end
</waypoint>
<!-- # 2 --><waypoint x="-7600" z="1481" y="615">
player:target_Object(117580) -- High Power Generator
walloff()
</waypoint>
<!-- # 3 --><waypoint x="-7528" z="1780" y="612"> </waypoint>
<!-- # 4 --><waypoint x="-7427" z="2019" y="609"> </waypoint>
<!-- # 5 --><waypoint x="-7829" z="2339" y="523"> </waypoint>
<!-- # 6 --><waypoint x="-9369" z="2704" y="468"> </waypoint>
<!-- # 7 --><waypoint x="-9505" z="3210" y="465">
repeat
player:target_Object(117406) -- Fourth Grade Energy Snooper
yrest(15000);
until getQuestStatus(423957) == "complete"
</waypoint>
<!-- # 10 --><waypoint x="-9388" z="3227" y="527"> </waypoint>
<!-- # 11 --><waypoint x="-7982" z="2323" y="522"> </waypoint>
<!-- # 12 --><waypoint x="-7497" z="2170" y="549"> </waypoint>
<!-- # 13 --><waypoint x="-7615" z="2031" y="575"> </waypoint>
<!-- # 14 --><waypoint x="-7440" z="1928" y="614"> </waypoint>
<!-- # 15 --><waypoint x="-7572" z="1687" y="614"> </waypoint>
<!-- # 16 --><waypoint x="-7401" z="1181" y="615" tag="return">
player:target_NPC(118020) -- Ailic's Aide
ChoiceOptionByName("Transport to: Heffner Camp")
AcceptPopup(SET_REQUESTDIALOG);
waitForLoadingScreen();
loadPaths("CoO_class_switch_Desert")
</waypoint>
</waypoints>
wp2
Code: Select all
<?xml version="1.0" encoding="utf-8"?><waypoints type="TRAVEL">
<onload>
__WPL:setWaypointIndex(1)
</onload>
<!-- # 1 --><waypoint x="-7489" z="1580" y="615"> </waypoint>
<!-- # 2 --><waypoint x="-7562" z="1750" y="613"> </waypoint>
<!-- # 3 --><waypoint x="-7419" z="2031" y="611"> </waypoint>
<!-- # 4 --><waypoint x="-7387" z="2467" y="534"> </waypoint>
<!-- # 5 --><waypoint x="-7250" z="2597" y="535"> </waypoint>
<!-- # 6 --><waypoint x="-7434" z="2891" y="578">
player:target_NPC(117588) -- Anbenron
if player.Level >= 38 then
AcceptQuestByName(423958) -- Life Hormone
else
CompleteQuestByName(423958) -- Life Hormone
end
</waypoint>
<!-- # 7 --><waypoint x="-7171" z="2617" y="526"> </waypoint>
<!-- # 8 --><waypoint x="-7636" z="2027" y="576"> </waypoint>
<!-- # 9 --><waypoint x="-7451" z="1945" y="612"> </waypoint>
<!-- # 10 --><waypoint x="-7526" z="1673" y="615"> </waypoint>
<!-- # 11 --><waypoint x="-7413" z="1180" y="615">
player:target_NPC(118020) -- Ailic's Aide
ChoiceOptionByName("Transport to: Heffner Camp")
AcceptPopup(SET_REQUESTDIALOG);
waitForLoadingScreen();
loadPaths("CoO_class_switch_Desert")
</waypoint>
</waypoints>
So, I'm trying to figure out a way to have it remember the last waypoint file it came from, to reload it when it swaps classes. Am i just over thinking this? The big picture is to just load 1 file and regardless of where my character is level wise, it will load and complete the appropriate daily.