UW2_PRC8/_module/nss/finalreward.nss
Jaysyn904 5197ad9a4d Initial upload
Initial upload
2023-09-25 20:24:01 -04:00

33 lines
545 B
Plaintext

//Put this script OnDeath
#include "nw_i0_tool"
void main()
{
object oPC = GetLastKiller();
while (GetIsObjectValid(GetMaster(oPC)))
{
oPC=GetMaster(oPC);
}
if (!GetIsPC(oPC)) return;
int DoOnce = GetLocalInt(oPC, GetTag(OBJECT_SELF));
if (DoOnce==TRUE) return;
SetLocalInt(oPC, GetTag(OBJECT_SELF), TRUE);
RewardPartyXP(90000, oPC, TRUE);
RewardPartyGP(9000000, oPC, TRUE);
CreateItemOnObject("bosstoken", oPC);
object oTarget;
oTarget = GetObjectByTag("finalstore");
DelayCommand(15.0, OpenStore(oTarget, oPC, 50, 30));
}