Lankhmar_PRC8/_module/nss/give_rge_itms.nss

33 lines
955 B
Plaintext
Raw Permalink Normal View History

2025-04-03 12:54:47 -04:00
#include "nw_i0_tool"
void main()
{
object oPC = GetPCSpeaker();
RewardPartyGP(50, oPC, FALSE);
CreateItemOnObject("lankhleatherarmo", GetPCSpeaker(), 1);
CreateItemOnObject("lankhmardagger", GetPCSpeaker(), 1);
CreateItemOnObject("lankhmarshortd", GetPCSpeaker(), 1);
CreateItemOnObject("lankhmarshortbw", GetPCSpeaker(), 1);
CreateItemOnObject("nw_wamar001", 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);
}