void main()
{

object oEO = GetEnteringObject();
string sTag = GetTag(oEO);
int DoOnce = GetLocalInt(OBJECT_SELF, GetTag(OBJECT_SELF));

if (sTag == "Dinicthys")
 {
 location lEO = GetLocation(oEO);
 object oWP = GetNearestObjectToLocation(OBJECT_TYPE_WAYPOINT, lEO, 1);
 location lWP = GetLocation(oWP);
 AssignCommand(oEO, ClearAllActions(TRUE));
 AssignCommand(oEO, ActionJumpToLocation(lWP));
 DelayCommand(0.5, AssignCommand(oEO, ActionForceMoveToObject(GetNearestObjectByTag("WP_UnderwaterPC"))));
 if (DoOnce==FALSE) FloatingTextStringOnCreature("What a stroke of luck!  The Dinicthys is too large to enter the reefs!", GetFirstPC());
 SetLocalInt(OBJECT_SELF, GetTag(OBJECT_SELF), TRUE);
 }
if (GetIsPC(oEO))
 {
 object oFish = GetNearestObjectByTag("Dinicthys");
 AssignCommand(oFish, ActionAttack(oEO));
 }
else return;
}

