#12
Post
by Miworax » Mon Jan 27, 2014 8:25 am
function findMyItem()
local itemhere = false
repeat
item = player:findNearestNameOrId(120431) -- Whatever the Name or Id is for the item you want to use
if item and 50 > distance(item,player) then
player:target_Object(120431)
itemhere = true
function checkDQCount()
local dailyQuestCount, dailyQuestsPerDay= RoMScript("Daily_count()")
cprintf(cli.lightblue,"%s quests completed.\n",tostring(dailyQuestCount));
if (dailyQuestCount == 10) then
cprintf(cli.lightblue,"Completed max number of daily quests, trying to log in next chara.\n");
SetCharList({
{account=20 , chars= {}},
{account=21 , chars= {}},
{account=22 , chars= {}},
{account=23 , chars= {}},
{account=24 , chars= {}},
{account=25 , chars= {}},
{account=26 , chars= {}},
{account=27 , chars= {}},
{account=28 , chars= {}},
{account=29 , chars= {}},
{account=30 , chars= {}},
})
LoginNextChar()
end
end
function relog()
SetCharList({
{account=20 , chars= {}},
{account=21 , chars= {}},
{account=22 , chars= {}},
{account=23 , chars= {}},
{account=24 , chars= {}},
{account=25 , chars= {}},
{account=26 , chars= {}},
{account=27 , chars= {}},
{account=28 , chars= {}},
{account=29 , chars= {}},
{account=30 , chars= {}},
})
if IsLastChar() then
player:logout();
else
LoginNextChar()
end
SetRestartClientSettings(7, "rom4u")
end
</onLoad>
<!-- # 1 --><waypoint x="4488" z="2165" y="1418">sendMacro("ChangeParallelID(1)");
player:target_NPC("xxxx");
player:target_NPC("xxxx");
CompleteQuestByName("xxxx");
checkDQCount()
AcceptQuestByName("xxxx");
</waypoint>
<!-- # 2 --><waypoint x="4491" z="2167" y="1419">
findMyItem()</waypoint>
<!-- # 3 --><waypoint x="4557" z="2198" y="1421"> </waypoint>
<!-- # 4 --><waypoint x="4557" z="2198" y="1421">
findMyItem()</waypoint>
<!-- # 5 --><waypoint x="4561" z="2080" y="1418"> </waypoint>
<!-- # 6 --><waypoint x="4561" z="2080" y="1418">
findMyItem()</waypoint>
<!-- # 7 --><waypoint x="4477" z="2049" y="1418"> </waypoint>
<!-- # 8 --><waypoint x="4477" z="2049" y="1418">
findMyItem()</waypoint>
<!-- # 9 --><waypoint x="4478" z="2089" y="1418"> </waypoint>
<!-- # 10 --><waypoint x="4478" z="2089" y="1418">
findMyItem()</waypoint>
<!-- # 11 --><waypoint x="4496" z="2179" y="1420"> </waypoint>
<!-- # 12 --><waypoint x="4496" z="2179" y="1420">
findMyItem()</waypoint>
<!-- # 13 --><waypoint x="4560" z="2199" y="1421"> </waypoint>
<!-- # 14 --><waypoint x="4560" z="2199" y="1421">
findMyItem()</waypoint>
<!-- # 15 --><waypoint x="4557" z="2076" y="1418"> </waypoint>
<!-- # 16 --><waypoint x="4557" z="2076" y="1418">
findMyItem()</waypoint>
<!-- # 17 --><waypoint x="4476" z="2044" y="1418"> </waypoint>
<!-- # 18 --><waypoint x="4476" z="2044" y="1418">
findMyItem()</waypoint>
<!-- # 19 --><waypoint x="4478" z="2090" y="1418"> </waypoint>
<!-- # 20 --><waypoint x="4478" z="2090" y="1418">
findMyItem()</waypoint>
<!-- # 21 --><waypoint x="4499" z="2164" y="1418"> </waypoint>
checkDQCount()
</waypoints>
maybe, someone can help, rombot says: line 98... mismatched tag