Files
PWE_PRC8/_module/nss/queenofdamnedxp.nss

46 lines
922 B
Plaintext
Raw Normal View History

2025-04-03 10:29:41 -04:00
#include "nw_i0_tool"
/* Script generated by
Lilac Soul's NWN Script Generator, v. 1.2
For download info, please visit:
http://www.angelfire.com/space/lilacsoul */
void main()
{
ExecuteScript("prc_npc_death", OBJECT_SELF);
ExecuteScript("prc_pwondeath", OBJECT_SELF);
2025-04-03 10:29:41 -04:00
object oKiller = GetLastKiller();
if (!GetIsObjectValid(oKiller)) return;
2025-04-03 10:29:41 -04:00
object oPC;
if (GetIsPC(oKiller))
oPC = oKiller;
else
oPC = GetMaster(oKiller);
if (!GetIsPC(oPC)) return;
//RewardPartyXP(6000, oPC, FALSE);
2025-04-03 10:29:41 -04:00
RewardPartyGP(3000, oPC, FALSE);
//RewardPartyXP(1500, oPC, TRUE);
2025-04-03 10:29:41 -04:00
RewardPartyGP(750, oPC, TRUE);
2025-04-03 10:29:41 -04:00
object oTarget;
object oSpawn;
oTarget = oPC;
oSpawn = CreateObject(OBJECT_TYPE_PLACEABLE, "med_sarcoph001", GetLocation(oTarget));
oTarget = oSpawn;
ApplyEffectAtLocation(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_IMP_BREACH), GetLocation(oTarget));
}
//Put this OnDeath