hello again, i'm trying to make a waypoint file for my add to be powerleveled then logout and login next add but i still have "failed to compile and run lua code for onload" can someone help me
<?xml version="1.0" encoding="utf-8"?><waypoints>
<onLoad>
RoMScript("SendChatMessage(\"*****\",\"WHISPER\",0,\"mycharacter\")");
RoMScript("SendChatMessage(\"******\",\"WHISPER\",0,\"mycharacter\")");
RoMScript("FollowUnit('party1');");
while(true) do
RoMScript("FollowUnit('party1');");
if not player:hasBuff("Experience Fruit") and if inventory:itemTotalCount(202152) >= 1 then
inventory:useItem(202152);
end
if player.Level > 15 and if not player:hasBuff("High Quality Experience Potion") then
inventory:useItem(203574);
end
if 43 > player.Level then
sendMacro("LeaveParty()");
sendMacro("}LoginNextToon=true;a={")
sendMacro("Logout();");
waitForLoadingScreen();
loadProfile("Travel");
loadPaths("powerlvl");
end
end
</onLoad>
</waypoints>
RoMScript("SendChatMessage(\"*******\",\"WHISPER\",0,\"mychar\")");
yrest(500);
RoMScript("SendChatMessage(\"*******\",\"WHISPER\",0,\"mychar\")"); --this is for inviting with the curse addon
while(true) do
RoMScript("FollowUnit('party1');")
if inventory:itemTotalCount(202152) >= 1 and not player:hasBuff("Experience Fruit") then
inventory:useItem(202152)
end
if player.Level > 15 and not player:hasBuff("High Quality Experience Potion") then
inventory:useItem(203574)
end
if player.Level > 43 then
sendMacro("LeaveParty()")
sendMacro("}LoginNextToon=true;a={")
sendMacro("Logout();")
waitForLoadingScreen()
loadProfile("Travel")
loadPaths("powerlvl")
end
end