<?xml version="1.0" encoding="utf-8"?><waypoints type="TRAVEL">
<onLoad>
<!-- Eggman1414's Mana Stone Production Script      -->
<!--                   V2.5                         -->
<!--                06/08/2014                      -->
<!--       Three User options need changed          -->
<!--            line 12 and line 17                 -->

<!--Insert each character you want to buy fusion stones for, seperated by commas and inside quotes ex: "Bob","Jim",.... Then  put the last characters name below it-->
nameTable =
{

};
lastname = "<!-- Last Name of nameTable goes inside "" -->";
counter = 1;

<!-- Menu System -->
print("\n          Eggman1414's Mana Stone Production Script\n")
print("What chracter do you want to start with?\n")
local inc = math.ceil(#nameTable/4)
   for i = 1, inc do
      local val1 = nameTable[i]
      local val2 = nameTable[i + inc]
      local val3 = nameTable[i + inc*2]
      local val4 = nameTable[i + inc*3]

      if( not val1 ) then val1 = "" else val1 = i .. ": " .. val1 end
      if( not val2 ) then val2 = "" else val2 = i+inc .. ": " .. val2 end
      if( not val3 ) then val3 = "" else val3 = i+inc*2 .. ": " .. val3 end
      if( not val4 ) then val4 = "" else val4 = i+inc*3 .. ": " .. val4 end

      printf("[%s]\t[%s]\t[%s]\t[%s]\n",val1, val2, val3, val4)
   end
counter = io.stdin:read();
counter = tonumber(counter);

<!-- Crash Variable -->

print("Did the Client Crash?")
print("1. Yes	2. No")
crash = io.stdin:read();
crash = tonumber(crash);
while crash == 1 do
print("Did the client crash while going to the mailbox?")
print("1. Yes	2. No")
mailcrash = io.stdin:read();
mailcrash = tonumber(mailcrash);
if mailcrash == 1 then break end
print("Did the client crash while going to the shop?")
print("1. Yes	2. No")
shopcrash = io.stdin:read();
shopcrash = tonumber(shopcrash);
if shopcrash == 1 then break end
print("Did the client crash while sending mail?")
print("1. Yes	2. No")
sendcrash = io.stdin:read();
sendcrash = tonumber(sendcrash);
if sendcrash == 1 then break end
end

if mailcrash == 1 then 
start_range = __WPL:findWaypointTag("Start1");
end_Range = __WPL:findWaypointTag("End1");
__WPL:setWaypointIndex(__WPL:getNearestWaypoint(player.X, player.Z, player.Y, start_range, end_range))
elseif shopcrash == 1 then __WPL:setWaypointIndex(__WPL:findWaypointTag("To_Shop"))
start_range = __WPL:findWaypointTag("Start2");
end_Range = __WPL:findWaypointTag("End2");
__WPL:setWaypointIndex(__WPL:getNearestWaypoint(player.X, player.Z, player.Y, start_range, end_range))
elseif sendcrash == 1 then  __WPL:setWaypointIndex(__WPL:findWaypointTag("Mail"))
start_range = __WPL:findWaypointTag("End1");
end_Range = __WPL:findWaypointTag("Start2");
__WPL:setWaypointIndex(__WPL:getNearestWaypoint(player.X, player.Z, player.Y, start_range, end_range))
end

function buyFusion()
	player:openStore("Odeley Prole")
	store:buyItem(202999, 10);
	yrest(1000)
end

function sendFusion()
UMM_SendByNameOrId(nameTable[counter],202999);
yrest(500);
sendMacro("CloseAllWindows()");
counter = counter  + 1;
end

if crash == 2 then
travelTo("VaranasWest")
player:mount();
__WPL:setWaypointIndex(__WPL:findWaypointTag("Shop"));
end
</onLoad>

	<!-- #  1 --><waypoint x="2755" z="-1627" tag = "Shop">	
	buyFusion();
	</waypoint>
	<!-- #  2 --><waypoint x="2914" z="-1633" tag = "Start1">	</waypoint>
	<!-- #  3 --><waypoint x="3110" z="-1760">	</waypoint>
	<!-- #  4 --><waypoint x="3518" z="-1611">	</waypoint>
	<!-- #  5 --><waypoint x="3669" z="-1774">	</waypoint>
	<!-- #  6 --><waypoint x="3933" z="-1676">	</waypoint>
	<!-- #  7 --><waypoint x="4308" z="-2048" tag = "End1">	</waypoint>
	<!-- #  8 --><waypoint x="4540" z="-2151" tag = "Mail">
if nameTable[counter] == lastname then 
UMM_SendByNameOrId(lastname,202999);
print("Done mailing.")
player:sleep()
else
sendFusion();
end
</waypoint>
	<!-- #  1 --><waypoint x="4545" z="-2163" tag = "To_Shop>	</waypoint>
	<!-- #  2 --><waypoint x="4084" z="-1733" tag = "Start2">	</waypoint>
	<!-- #  3 --><waypoint x="3805" z="-1694">	</waypoint>
	<!-- #  4 --><waypoint x="3613" z="-1700">	</waypoint>
	<!-- #  5 --><waypoint x="3491" z="-1564">	</waypoint>
	<!-- #  6 --><waypoint x="3078" z="-1738">	</waypoint>
	<!-- #  7 --><waypoint x="2802" z="-1590">	</waypoint>
	<!-- #  8 --><waypoint x="2756" z="-1625" tag = "End2">
	</waypoint>
</waypoints>