<?xml version="1.0" encoding="utf-8"?>
<waypoints>
	<!-- Updated>12/12/2013 24:00 PM PST<-->
	<onLoad><![CDATA[
		DQ1 = GetIdName(420467);
		DQNPC1 = (110583);
		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");
				ChangeChar(1,3) -- changes to character 1 on account 3
                                loadProfile() -- if needed
                                loadPaths("RBAssit")
			end
		end
		
		changeProfileOption("EGGPET_ENABLE_ASSIST",false);
		changeProfileOption("LOOT_ALL",true);
		changeProfileOption("TARGET_LEVELDIF_BELOW",30)
startGMDetect()
	player:mount()
	__WPL:setWaypointIndex(1)
	]]></onLoad>
	<!-- #  1 --><waypoint x="-3687" z="-8499" y="206">
		__WPL:setForcedWaypointType("RUN")
		checkDQCount();
		player:target_NPC(DQNPC1);
		AcceptQuestByName(DQ1);
		cprintf(cli.lightblue,"Quests accepted, moving to objective.\n");
	</waypoint>
	<!-- #  2 --><waypoint x="-3728" z="-8546" y="207">	</waypoint>
	<!-- #  3 --><waypoint x="-3505" z="-8683" y="216">	</waypoint>
	<!-- #  4 --><waypoint x="-3411" z="-8699" y="211">	</waypoint>
	<!-- #  5 --><waypoint x="-3215" z="-8793" y="210">
			loadPaths("2")
	</waypoint>
</waypoints>