35 lines
987 B
Plaintext
35 lines
987 B
Plaintext
|
|
||
|
#include "nw_i0_tool"
|
||
|
void main()
|
||
|
{
|
||
|
|
||
|
object oPC = GetPCSpeaker();
|
||
|
|
||
|
RewardPartyGP(50, oPC, FALSE);
|
||
|
|
||
|
// Give the speaker the items
|
||
|
CreateItemOnObject("lankhmarbanded", GetPCSpeaker(), 1);
|
||
|
CreateItemOnObject("lankhmarmorning", GetPCSpeaker(), 1);
|
||
|
CreateItemOnObject("lankhshield", GetPCSpeaker(), 1);
|
||
|
CreateItemOnObject("lankhmrlightxbow", GetPCSpeaker(), 1);
|
||
|
CreateItemOnObject("nw_wambo001", GetPCSpeaker(), 99);
|
||
|
CreateItemOnObject("lankhmartorch", GetPCSpeaker(), 1);
|
||
|
|
||
|
object oTarget;
|
||
|
oTarget = GetObjectByTag("SL_Induc");
|
||
|
|
||
|
//Visual effects can't be applied to waypoints, so if it is a WP
|
||
|
//the VFX will be applied to the WP's location instead
|
||
|
|
||
|
int nInt;
|
||
|
nInt = GetObjectType(oTarget);
|
||
|
|
||
|
if (nInt != OBJECT_TYPE_WAYPOINT) ApplyEffectToObject(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_IMP_UNSUMMON), oTarget);
|
||
|
else ApplyEffectAtLocation(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_IMP_UNSUMMON), GetLocation(oTarget));
|
||
|
|
||
|
DestroyObject(oTarget, 3.0);
|
||
|
|
||
|
}
|
||
|
|
||
|
|