Added PnP Dire Rat.
Added PnP Dire Rat.
This commit is contained in:
22
nwn_dark_sun/olm_passgithcave.nss
Normal file
22
nwn_dark_sun/olm_passgithcave.nss
Normal file
@@ -0,0 +1,22 @@
|
||||
void main()
|
||||
{
|
||||
|
||||
//object oPC = GetNearestCreature(CREATURE_TYPE_PLAYER_CHAR, PLAYER_CHAR_IS_PC, OBJECT_SELF, 1, CREATURE_TYPE_PERCEPTION, PERCEPTION_SEEN);
|
||||
object oPC = GetNearestCreature(CREATURE_TYPE_PLAYER_CHAR, PLAYER_CHAR_IS_PC, OBJECT_SELF, 1, CREATURE_TYPE_IS_ALIVE, TRUE);
|
||||
|
||||
if (IsInConversation(OBJECT_SELF) || GetIsInCombat()) return;
|
||||
|
||||
if (GetLocalInt(oPC, "PASSED_GITH_CAVE") < 0)
|
||||
return;
|
||||
|
||||
object oTarget;
|
||||
object oSpawn;
|
||||
location lTarget;
|
||||
oTarget = GetWaypointByTag("wp_plc_githcave");
|
||||
|
||||
lTarget = GetLocation(oTarget);
|
||||
|
||||
oSpawn = CreateObject(OBJECT_TYPE_PLACEABLE, "olm_plc_githcave", lTarget);
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user