Multiple character problem
Posted: Fri Feb 04, 2011 12:18 am
So I have this daily quest script
I want to combine it with the auto-log addon to be able to do multiple characters and possibly multiple accounts with 1 run instead of having to re-load the bot for each character.
Someone recommended replacing
with
My only problem is I don't know what to put for to make it correctly function with each new character.
Any ideas?
Code: Select all
<?xml version="1.0" encoding="utf-8"?><waypoints type="TRAVEL">
<!-- # 1 --><waypoint x="31847" z="4592" tag ='Main'>
local dqCount, dqPerDay = RoMScript("Daily_count()");
if 10 > dqCount then
queststate = getQuestStatus("Helping Them Grow");
if queststate == "complete" then
-- Complete quest
player:target_NPC("Blinsik");
sendMacro("CompleteQuest()"); yrest(2000);
-- Accept quest
player:target_NPC("Blinsik");
sendMacro("AcceptQuest()"); yrest(2000);
--__WPL:setWaypointIndex(__WPL:findWaypointTag("Main"));
else
-- Accept quest
player:target_NPC("Blinsik");
sendMacro("AcceptQuest()"); yrest(2000);
end
else
player:logout();
end
</waypoint>
<!-- # 2 --><waypoint x="31812" z="4849"> </waypoint>
<!-- # 3 --><waypoint x="31415" z="5720" tag = "Item">
queststate = getQuestStatus("Helping Them Grow")
if queststate == "incomplete" then
player:target_NPC("Cleansing Crystal");
yrest(3000);
__WPL:setWaypointIndex(__WPL:findWaypointTag("Item"));
end
</waypoint>
<!-- # 4 --><waypoint x="31878" z="4692"> </waypoint>
<!-- # 5 --><waypoint x="31843" z="4593"> </waypoint>
</waypoints>
Someone recommended replacing
Code: Select all
player:logout();
Code: Select all
sendMacro("}LoginNextToon=true;a={");
sendMacro("Logout();"); yrest(60*1000);
player = CPlayer.new();
settings.load();
settings.loadProfile("YOUR_PROFILE_HERE");
yrest (4000)
loadPaths("YOUR_WAYPOINTFILE_HERE");
Code: Select all
settings.loadProfile("YOUR_PROFILE_HERE");
Any ideas?