Code: Select all
/script ChangeChar()
I even have a slash command set up for it so all I have to do is
Code: Select all
/cc
Code: Select all
/cc 1,45
Code: Select all
/script ChangeChar()
Code: Select all
/cc
Code: Select all
/cc 1,45
Code: Select all
player:target_NPC("npc name")
CompleteQuestByName("quest name")
if RoMScript("Daily_count()") == 10 then
ChangeChar()
loadPaths(__WPL.FileName)
return
end
AcceptQuestByName("quest name")
Code: Select all
<?xml version="1.0" encoding="utf-8"?>
<waypoints type="TRAVEL">
<onLoad>
-- repeat npcname=RoMScript("TEXT('Sys112794_name')"); yrest(500) until npcname -- ie. "Blinsik"
repeat npcname="\129\171\168\173\225\168\170"; yrest(500) until npcname -- ie. "Blinsik"
printf('NPC: %s (%d)\n',npcname,112794)
</onLoad>
<!-- # 1 --><waypoint x="31820" z="4597" tag="main">
player:target_NPC(npcname);player:rest(1);
RoMScript("CompleteQuest()"); yrest(1);
RoMScript("AcceptQuest()"); yrest(1);
RoMScript("AcceptQuest()"); yrest(1);
player:target_NPC(npcname);player:rest(1);
RoMScript("CompleteQuest()"); yrest(1);
RoMScript("AcceptQuest()"); yrest(1);
RoMScript("AcceptQuest()"); yrest(1);
local d, m = RoMScript("Daily_count()");
if (d and d >= m) then
cprintf(cli.lightblue, "All quests are completed\n");
player:rest(13);
player:logout(false);
elseif d then
cprintf(cli.lightblue, "Completed %d dailies\n", d);
end;
</waypoint>
<!-- # 2 --><waypoint x="31794" z="4637"> </waypoint>
<!-- # 3 --><waypoint x="31809" z="4683"> </waypoint>
<!-- # 4 --><waypoint x="31853" z="4940"> </waypoint>
<!-- # 5 --><waypoint x="31732" z="5128"> </waypoint>
<!-- # 6 --><waypoint x="31605" z="5353"> </waypoint>
<!-- # 7 --><waypoint x="31487" z="5586"> </waypoint>
<!-- # 8 --><waypoint x="31415" z="5726"> </waypoint>
<!-- # 9 --><waypoint x="31423" z="5713">
if(1 > inventory:getItemCount(204839)) then
player:target_Object(112976,6000,false);
else
yrest (1500)
while (1 > inventory:getItemCount(204840)) do
player:target_Object(112976,6000,false);
end
end
</waypoint>
<!-- # 10 --><waypoint x="31438" z="5659"> </waypoint>
<!-- # 11 --><waypoint x="31643" z="5264"> </waypoint>
<!-- # 12 --><waypoint x="31741" z="5111"> </waypoint>
<!-- # 13 --><waypoint x="31827" z="4846"> </waypoint>
<!-- # 14 --><waypoint x="31795" z="4646"> </waypoint>
<!-- # 15 --><waypoint x="31817" z="4594"> </waypoint>
</waypoints>
Code: Select all
SetCharList ({
{account=7 , chars= {1,4,5,7}},
{account=8 , chars= {2,5,6,7,8}},
})
LoginNextChar()
Code: Select all
SetCharList ({
{
{account=7 , chars= {1,4,5,7}},
{account=8 , chars= {2,5,6,7,8}},
},{
{account=9 , chars= {}},
{account=10 , chars= {2,3,4,5,6,7,8}},
}
})
LoginNextChar()
Code: Select all
function main()
client = "myrom.lnk"
local path = getExecutionPath().."/"..client
-- fix spaces
path = string.gsub(path," ","\" \"")
-- Start client
local a,b,c = os.execute("START "..path.." NoCheckVersion")
if not a then
error("Trouble executing shortcut. Values returned were: "..(a or "nil")..", "..(b or "nil")..", "..(c or "nil"))
end
end
startMacro(main,true);
Users browsing this forum: No registered users and 2 guests