Initial upload
Initial upload
This commit is contained in:
32
_module/nss/finalreward.nss
Normal file
32
_module/nss/finalreward.nss
Normal file
@@ -0,0 +1,32 @@
|
||||
//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));
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user