Initial Commit
Initial Commit
This commit is contained in:
29
_module/nss/outofwater.nss
Normal file
29
_module/nss/outofwater.nss
Normal file
@@ -0,0 +1,29 @@
|
||||
void main()
|
||||
{
|
||||
|
||||
object oCreature = GetEnteringObject();
|
||||
|
||||
if (GetLocalInt(oCreature, "UNDER_WATER_IMMUNE")!= 1)
|
||||
return;
|
||||
|
||||
object oTarget;
|
||||
location lTarget;
|
||||
oTarget = GetWaypointByTag("horseunsummon");
|
||||
|
||||
lTarget = GetLocation(oTarget);
|
||||
|
||||
if (GetAreaFromLocation(lTarget)==OBJECT_INVALID) return;
|
||||
|
||||
AssignCommand(oCreature, ClearAllActions());
|
||||
|
||||
AssignCommand(oCreature, ActionJumpToLocation(lTarget));
|
||||
|
||||
oTarget = oCreature;
|
||||
|
||||
effect eEffect;
|
||||
eEffect = EffectDeath();
|
||||
|
||||
DelayCommand(1.0, ApplyEffectToObject(DURATION_TYPE_PERMANENT, eEffect, oTarget));
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user