here's the script that spawns the boat when the zone boots up for the first time.
Code:
sub EVENT_SPAWN {
quest::shout("Boat system spawned and activated");
quest::settimer("ootcheckboats",1);
quest::gmsay("BS Setting status 0");
quest::setglobal("ootboatstatus",0,7,"F");
}
sub EVENT_TIMER
{
if($timer eq "ootcheckboats")
{
if(defined $qglobals{ootboatstatus})
{
if ($qglobals{ootboatstatus} == 0)
{
quest::spawn(999185,62,0,11124.2,446.575,-43);
}
# The boat has arrived at OOT from Freeport
if ($qglobals{ootboatstatus} == 5)
{
quest::spawn(999184,64,0,-10957.6,556.9,-43);
}
} else {
quest::shout("DEBUG: Error, could not locate QGlobal");
}
}
}