Code: Select all
<?xml version="1.0" encoding="utf-8"?>
<waypoints>
<!-- Updated>28/07/2013 20:00 PM PST<-->
<onLoad><![CDATA[
DQ1 = GetIdName(424181);
DQNPC12 = "Robbie Carnicero";
function tgtInRange(_target, _range)
if not _range then
_range = 300;
end
local objectList = CObjectList();
objectList:update();
player:update();
local objSize = objectList:size();
cprintf(cli.lightgreen,"Checking if any %s are in range.\n",_target)
local _closest = 1000;
for i = 0,objSize do
obj = objectList:getObject(i);
if obj.Name == _target then
local _tmpDist = distance(obj.X,obj.Z,player.X,player.Z);
if _closest > _tmpDist then
_closest = _tmpDist
end
end
end
if _range >= _closest then
cprintf(cli.lightgreen,"%s in range.\n",_target)
return true;
else
cprintf(cli.lightgreen,"%s NOT in range.\n",_target)
return false;
end
end
function getDailyComplete()
return RoMScript("Daily_count();");
end
function checkDQCount()
local _tmpQC = getDailyComplete();
cprintf(cli.lightblue,"%s quests completed.\n",tostring(_tmpQC));
if (_tmpQC == 10) then
cprintf(cli.lightblue,"Completed max number of daily quests, logging out.\n");
player:logout();
end
end
settings.profile.friends = {"Ogest","Kupferg\132rtner",105293,105292,105291,105290,105299,105412};
changeProfileOption("EGGPET_ENABLE_ASSIST",false);
changeProfileOption("LOOT_ALL",false);
changeProfileOption("TARGET_LEVELDIF_BELOW",30)
startGMDetect()
]]></onLoad>
<!-- # 1 --><waypoint x="6449" z="5438" y="174">
__WPL:setForcedWaypointType("RUN")
dailyQuest1 = getQuestStatus(DQ1);
if (dailyQuest1 == "complete") then
checkDQCount();
player:target_NPC(DQNPC12);
CompleteQuestByName(DQ1);
end
checkDQCount();
player:target_NPC(DQNPC12);
AcceptQuestByName(DQ1);
cprintf(cli.lightblue,"Quests accepted, moving to objective.\n");
player:mount()
</waypoint>
<!-- # 2 --><waypoint x="6376" z="4945" y="185">__WPL:setForcedWaypointType("TRAVEL") </waypoint>
<!-- # 3 --><waypoint x="6541" z="3878" y="207"> </waypoint>
<!-- # 4 --><waypoint x="6389" z="3229" y="191"> </waypoint>
<!-- # 5 --><waypoint x="6401" z="2776" y="184"> </waypoint>
<!-- # 6 --><waypoint x="6226" z="2730" y="184"> </waypoint>
<!-- # 7 --><waypoint x="6196" z="2850" y="185"> </waypoint>
<!-- # 8 --><waypoint x="6079" z="2825" y="184"> </waypoint>
<!-- # 9 --><waypoint x="6129" z="2562" y="185">__WPL:setForcedWaypointType("NORMAL") </waypoint>
<!-- # 10 --><waypoint x="6248" z="2352" y="183"> </waypoint>
<!-- # 11 --><waypoint x="6525" z="1108" y="168">__WPL:setForcedWaypointType("TRAVEL")
player:mount()
</waypoint>
<!-- # 12 --><waypoint x="6062" z="2829" y="184"> </waypoint>
<!-- # 13 --><waypoint x="6187" z="2849" y="185"> </waypoint>
<!-- # 14 --><waypoint x="6220" z="2752" y="185"> </waypoint>
<!-- # 15 --><waypoint x="6402" z="2770" y="184"> </waypoint>
<!-- # 16 --><waypoint x="6376" z="3276" y="193"> </waypoint>
<!-- # 17 --><waypoint x="6594" z="3785" y="179"> </waypoint>
<!-- # 18 --><waypoint x="6374" z="4926" y="185"> </waypoint>
</waypoints>can be done?