Initial Upload
Initial Upload
This commit is contained in:
31
_module/nss/ba2_dthrs.nss
Normal file
31
_module/nss/ba2_dthrs.nss
Normal file
@@ -0,0 +1,31 @@
|
||||
void main()
|
||||
{
|
||||
|
||||
if(!GetIsObjectValid(GetSittingCreature(OBJECT_SELF)))
|
||||
|
||||
{
|
||||
|
||||
AssignCommand(GetLastUsedBy(), ActionSit(OBJECT_SELF));
|
||||
|
||||
object oKilled = GetLastUsedBy();
|
||||
|
||||
effect eDeath = EffectDeath(TRUE,TRUE);
|
||||
effect eThunder = EffectVisualEffect(VFX_IMP_LIGHTNING_M);
|
||||
|
||||
DelayCommand(2.0, ApplyEffectToObject(DURATION_TYPE_INSTANT, eDeath, oKilled));
|
||||
DelayCommand(1.5, ApplyEffectToObject(DURATION_TYPE_INSTANT, eThunder, oKilled));
|
||||
|
||||
if(GetLocalInt(OBJECT_SELF, "Spawnattu") != 1)
|
||||
|
||||
{
|
||||
|
||||
CreateObject(OBJECT_TYPE_CREATURE, "ba2_azermfi", GetLocation(OBJECT_SELF), TRUE);
|
||||
CreateObject(OBJECT_TYPE_CREATURE, "ba2_azermfi", GetLocation(OBJECT_SELF), TRUE);
|
||||
|
||||
SetLocalInt(OBJECT_SELF, "Spawnattu", 1);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user