Three Variales Startpiont
Posted: Sat Jul 13, 2013 1:02 pm
hi all i want to wirte a script and in the onload i want to make a if between three varibels start pionts the first and second he reads but no time the third won
thanks for help
Code: Select all
player:update();
local zoneid = RoMScript("GetZoneID()")
if ( zoneid == 401 ) then
__WPL:setWaypointIndex(__WPL:findWaypointTag("Gildenstart"));
printf ("Gildenstart.");
elseif ( zoneid == 2001 or 2002 or 2 ) then
__WPL:setWaypointIndex(__WPL:findWaypointTag("Varanasstart"));
printf ("Varanas.");
elseif ( zoneid == 6 ) then
__WPL:setWaypointIndex(__WPL:findWaypointTag("Obsidanstart"));
printf ("Osidan.");
else
printf ("CANT FIND START.");
end