<waypoints type="NORMAL">

	-- V 1.2 DoD Firts Boss  --
	-- Many thanks to Rock5, Lisa and Xmen ;) -- 
	
	--Reymauro--
<onLoad>
function vortex()
         keyboardHold(settings.hotkeys.MOVE_FORWARD.key)
         yrest(1000);
         keyboardRelease(settings.hotkeys.MOVE_FORWARD.key)
         waitForLoadingScreen(5)
      end
	  
function trash_mob()
   local target = player:getTarget()
   local _tm = false
   local spawn = player:findNearestNameOrId("Incomplete Bloody Beast")
   if spawn then
      player:target(spawn)
      if target.HP > 0 then
		player:fight()
         _tm = false
      else
         _tm = true
      end
   else
      _tm = true
   end
   return _tm
end

function updateplayer()
	player:update();
	player:clearTarget();
end
	changeProfileOption("AUTO_ELITE_FACTOR", 2500);

</onLoad>
	<!-- #  1 --><waypoint x="1645" z="-4908" y="752">

sendMacro("LeaveParty();");
yrest(200)
player:update();
while not RoMScript("UnitExists('party1')") do
sendMacro('InviteByName("Mariguanero")');
end 
changeProfileSkill("MAGE_FLAME", "AutoUse", true);
changeProfileOption("MAX_FIGHT_TIME", 5);
</waypoint>

	<!-- # 2 --><waypoint x="1686" z="-5152" y="757"> 
	
	player:update();
	vortex()

	</waypoint>	
	<!-- #  3 --><waypoint x="1793" z="2880" y="433">	
	changeProfileOption("MAX_FIGHT_TIME", 5);
	printf("Mementos: %s\n", inventory:getItemCount(206879) );
	useGoodie("speed");
	useGoodie("luck");
	useGoodie("casting");
	yrest(500);
	player:cast("MAGE_ACTIVATE_MANA");
	yrest(500);
	player:cast("MAGE_ELEMENTAL_EXPLOSION");
	yrest(500)
	updateplayer()
	player:lootAll();
	
	</waypoint>
	<!-- #  4 --><waypoint x="1854" z="2891" y="433">	</waypoint>
	<!-- #  5 --><waypoint x="1933" z="2834" y="433">	</waypoint>
	<!-- # 7 --><waypoint x="1930" z="2863" y="433">  </waypoint>
	<!-- # 8 --><waypoint x="2113" z="2615" y="432"> 
	changeProfileSkill("MAGE_FLAME", "AutoUse", false);
	changeProfileOption("MAX_FIGHT_TIME", 1);
	</waypoint>
	<!-- # 9 --><waypoint x="2241" z="2458" y="401">
	

	yrest(2000) <!-- Time to wait for Cooldowns in front of boss set for three minutes -->
	useGoodie("defense");
	yrest(500)
	player:update(); 
	player:findTarget("Okander \"Mad Man\" Mallen");
	local target = player:getTarget();

    if target and target.Name == "Okander \"Mad Man\" Mallen" then
	player:update(); 
	keyboardPress( key.VK_8 ); <!-- In game Slot where I put my Guitar -->
	yrest(500)
    player:cast("MAGE_ENERGY_INFLUX");
    player:cast("MAGE_ELECTROSTATIC_CHARGE");
	yrest(500)
    player:cast("MAGE_ELEMENTAL_CATALYST");
    player:cast("MAGE_INTENSIFICATION");
	yrest(500)
	keyboardPress( key.VK_0 ); <!-- In game Slot where I put my Fire training skill -->
	yrest(500)
	player:cast("MAGE_FLAME");
	player:cast("MAGE_FLAME");
	player:cast("MAGE_FLAME");
	player:cast("MAGE_FLAME");
	player:cast("MAGE_FLAME");
	player:cast("MAGE_FLAME");
	player:cast("MAGE_FLAME");
	player:cast("MAGE_FLAME");
	player:cast("MAGE_FLAME");
	player:cast("MAGE_FLAME");
	player:cast("MAGE_FLAME");
	player:cast("MAGE_FLAME");
	player:cast("MAGE_FLAME");
	player:cast("MAGE_FLAME");
	player:cast("MAGE_FLAME");
	player:cast("MAGE_FLAME");
	player:cast("MAGE_FLAME");
	player:cast("MAGE_FLAME");
	player:cast("MAGE_FLAME");
	player:lootAll();

	end 
	speed(75)
</waypoint>
	<!-- # 10 --><waypoint x="2207" z="2498" y="401"> </waypoint>
	<!-- # 11 --><waypoint x="2081" z="2661" y="434"> </waypoint>
	<!-- # 12 --><waypoint x="1897" z="2873" y="433"> </waypoint>
	<!-- # 13 --><waypoint x="1786" z="2890" y="433"> </waypoint>
	<!-- # 14 --><waypoint x="1699" z="2888" y="433">

	updateplayer()
	vortex()
	
	yrest(1000);
	player:update();
	if inventory:itemTotalCount(0) == 0 then
	printf ("Bag Is Full Selling.")
	loadPaths("DoD/DoDS")
	else
	printf ("Bag Not Full Continuing Farming.")
	end
	
	</waypoint>
</waypoints>