generated from Jaysyn/ModuleTemplate
2025/09/15 Update
Updated XP system to use PWFXP.
This commit is contained in:
@@ -8,16 +8,25 @@ http://www.angelfire.com/space/lilacsoul */
|
||||
//Put this OnDeath
|
||||
void main()
|
||||
{
|
||||
ExecuteScript("prc_npc_death", OBJECT_SELF);
|
||||
ExecuteScript("prc_pwondeath", OBJECT_SELF);
|
||||
|
||||
object oPC = GetLastKiller();
|
||||
object oKiller = GetLastKiller();
|
||||
if (!GetIsObjectValid(oKiller)) return;
|
||||
|
||||
if (!GetIsPC(oPC)) return;
|
||||
object oPC;
|
||||
if (GetIsPC(oKiller))
|
||||
oPC = oKiller;
|
||||
else
|
||||
oPC = GetMaster(oKiller);
|
||||
|
||||
RewardPartyXP(70400, oPC, FALSE);
|
||||
if (!GetIsPC(oPC)) return;
|
||||
|
||||
//RewardPartyXP(70400, oPC, FALSE);
|
||||
|
||||
RewardPartyGP(7040, oPC, FALSE);
|
||||
|
||||
RewardPartyXP(7040, oPC, TRUE);
|
||||
//RewardPartyXP(7040, oPC, TRUE);
|
||||
|
||||
RewardPartyGP(704, oPC, TRUE);
|
||||
}
|
||||
|
Reference in New Issue
Block a user