<?xml version="1.0" encoding="utf-8"?><waypoints>
<onLoad>
--=== Rock5's version ===--
--===  Version 2.4r5  ===--

--=== User Options ===--
When_Finished = "end"   -- "end" to end script, "relog" to log next character,
						-- "charlist" to log next in 'charlist' and "waypointfilename" to load that waypointfile.

CharList = {}           -- Character list to use when using the "charlist" option above. Requires my "userfunction_LoginNextChar" userfunction.
						-- Find it here. http://www.solarstrike.net/phpBB3/viewtopic.php?f=27&t=1245

AllowSkillCastTime = 2  -- Ignore skills with cast times longer than this value when attacking the 'trash' mobs at the beginning.
--====================--

aoeskills = {
	"MAGE_PURGATORY_FIRE",
	"MAGE_DISCHARGE",
	"WARRIOR_BLASTING_CYCLONE",
	"WARRIOR_MOON_CLEAVE",
	"WARRIOR_WHIRLWIND",
	"KNIGHT_WHIRLWIND_SHIELD",
}

include("waypoints/survivalR5onload.lua",true)

</onLoad>
	<!-- #  1 --><waypoint x="2519" z="2593" y="9">
		player:target_NPC(joker);
		sendMacro("ChoiceOption(2);");
	</waypoint>
	<!-- #  2 --><waypoint x="2546" z="2681" y="9" type="TRAVEL">	</waypoint>
	<!-- #  3 --><waypoint x="2586" z="2789" y="9" type="TRAVEL">	</waypoint>
	<!-- #  4 --><waypoint x="2606" z="2843" y="9" type="TRAVEL">
		createTileTable() -- do it here as you can't see the pawns until you start the event.
		local trash = player:findNearestNameOrId({bizarremechanism,guardianrockspirit},nil, function(addr) return CPawn(addr).HP > 4 end) -- check for spawns
		local tiles =  player:findNearestNameOrId(treasuretile, nil, clicktile) -- check if any tiles need opening

		if trash then -- add in options for aoe and ranged here
			trashmelee() -- clears trash within melee range
		elseif trash == nil and spawns == nil and tiles ~= nil then
			breaktiles() -- start breaking tiles
		elseif tiles == nil then
			chests() -- open chests
		end
		checkRelog()
	</waypoint>
</waypoints>
