20 lines
551 B
Plaintext
20 lines
551 B
Plaintext
#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!!");
|
|
|
|
}
|
|
|