Initial Upload
Initial Upload
This commit is contained in:
14
_module/nss/stone_sphinx.nss
Normal file
14
_module/nss/stone_sphinx.nss
Normal file
@@ -0,0 +1,14 @@
|
||||
//sphinx come alive
|
||||
void main()
|
||||
{
|
||||
object oCreature = GetNearestCreature(CREATURE_TYPE_PLAYER_CHAR, PLAYER_CHAR_IS_PC);
|
||||
if (GetIsObjectValid(oCreature) == TRUE && GetDistanceToObject(oCreature) < 10.0)
|
||||
{
|
||||
effect eMind = EffectVisualEffect(VFX_IMP_POLYMORPH);
|
||||
SetPlotFlag(OBJECT_SELF, FALSE);
|
||||
|
||||
ApplyEffectToObject(DURATION_TYPE_INSTANT, eMind, OBJECT_SELF);
|
||||
object oGargoyle = CreateObject(OBJECT_TYPE_CREATURE, "havensphinx", GetLocation(OBJECT_SELF));
|
||||
DestroyObject(OBJECT_SELF, 0.0);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user