25 lines
758 B
Plaintext
25 lines
758 B
Plaintext
void main()
|
|
{
|
|
// Make sure main bridge door has actually been unlocked, in case
|
|
// player has used exploit to push thru the door.
|
|
object oBridgeDoor = GetObjectByTag("EyelandBridgeLvl40");
|
|
if(GetLocked(oBridgeDoor))
|
|
{
|
|
return;
|
|
}
|
|
// Lets see if there is encounter spawns in the area.
|
|
// If so, we don't port em.
|
|
object oCreature = GetFirstObjectInArea(OBJECT_SELF);
|
|
while(GetIsObjectValid(oCreature))
|
|
{
|
|
if(GetIsEncounterCreature(oCreature))
|
|
{
|
|
SendMessageToPC(GetLastUsedBy(), "Kill your spawns.");
|
|
return;
|
|
}
|
|
oCreature = GetNextObjectInArea(OBJECT_SELF);
|
|
}
|
|
AssignCommand(GetLastUsedBy(), ActionJumpToLocation(GetLocation(GetWaypointByTag("bq_t4usw"))));
|
|
|
|
}
|