Initial Upload
Initial Upload
This commit is contained in:
24
_module/nss/bq_gadot4su.nss
Normal file
24
_module/nss/bq_gadot4su.nss
Normal file
@@ -0,0 +1,24 @@
|
||||
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"))));
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user