33 lines
545 B
Plaintext
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));
|
|
|
|
}
|