Initial upload
Initial upload
This commit is contained in:
19
_module/nss/0_disarmsuccess.nss
Normal file
19
_module/nss/0_disarmsuccess.nss
Normal file
@@ -0,0 +1,19 @@
|
||||
#include "nw_i0_tool"
|
||||
void main()
|
||||
{
|
||||
|
||||
object oPC = GetLastUsedBy();
|
||||
if (!GetIsPC(oPC)) return;
|
||||
RewardPartyXP(200, oPC, FALSE);
|
||||
RewardPartyGP(200, oPC, FALSE);
|
||||
object oTarget;
|
||||
oTarget = OBJECT_SELF;
|
||||
int nInt;
|
||||
nInt = GetObjectType(oTarget);
|
||||
if (nInt != OBJECT_TYPE_WAYPOINT) DelayCommand(1.0,ApplyEffectToObject(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_IMP_KNOCK), oTarget));
|
||||
else DelayCommand(1.0,ApplyEffectAtLocation(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_IMP_KNOCK), GetLocation(oTarget)));
|
||||
|
||||
SendMessageToPC(oPC, "Disarm Success!!");
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user