Code: Select all
<?xml version="1.0" encoding="utf-8"?><waypoints>
<onload><![CDATA[
--=== User Options ===--
When_Finished = "AT35"
-- "end" to end script, "relog" to log next character and "waypointfilename" to load that waypointfile.
CharList = {}
-- Character list to use when using the "charlist" option above. Requires my "userfunction_LoginNextChar" userfunction.
-- Find it here. http://www.solarstrike.net/phpBB3/viewtopic.php?p=10350
-- eg.
-- CharList = {
-- {account=4,chars={}},
-- {account=8,chars={1}},
-- {account=7,chars={1,2,5}},
-- }
--====================--
function checkRelog()
-- Log result
local filename = getExecutionPath() .. "/logs/cot.log";
local file, err = io.open(filename, "a+");
if file then
file:write("Account: "..RoMScript("GetAccountName()").."\tName: " ..string.format("%-10s",player.Name ).." \tDate: " .. os.date() ..
" \tShells gained/total: "..inventory:getItemCount(240181) - numshells.."/".. inventory:getItemCount(240181).. "\t" ..logentry .. "\n")
file:close();
end
if When_Finished == "relog" then
sendMacro("}LoginNextToon=true;a={")
sendMacro("Logout();");
waitForLoadingScreen();
loadPaths("cot_tele");
elseif When_Finished == "charlist" then
SetCharList(CharList)
LoginNextChar()
loadPaths("cot_tele");
elseif When_Finished == "end" then
error("Ending script",2)
else
if not string.find(When_Finished,".", 1, true) then
When_Finished = When_Finished .. ".xml"
end
local filename = getExecutionPath() .. "/waypoints/" .. When_Finished
local file, err = io.open(filename, "r");
if file then
file:close();
loadPaths(When_Finished)
else
error("'When_Finished' option is invalid",0)
end
end
end
]]></onload>
<!-- # 1 --><waypoint x="4929" z="-1913" y="109"> </waypoint>
<!-- # 2 --><waypoint x="4987" z="-2008" y="113"> </waypoint>
<!-- # 3 --><waypoint x="5269" z="-2115" y="121">
player:target_NPC(Cedric);
yrest(1919)
sendMacro("ChoiceOption(1);");
</waypoint>
<!-- # 4 --><waypoint x="5245" z="-2179" y="103"> </waypoint>
<!-- # 5 --><waypoint x="5278" z="-2200" y="103">
player:target_NPC("Kat Rojo");
yrest(1419)
sendMacro("ChoiceOption(1);");
player:target_NPC("Kat Rojo");
yrest(1519)
sendMacro("ChoiceOption(2);");
yrest(10123)
</waypoint>
</waypoints>