generated from Jaysyn/ModuleTemplate
2025/09/15 Update
Updated XP system to use PWFXP.
This commit is contained in:
@@ -8,12 +8,21 @@ http://www.lilacsoul.revility.com */
|
||||
//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(75, oPC, FALSE);
|
||||
if (!GetIsPC(oPC)) return;
|
||||
|
||||
//RewardPartyXP(75, oPC, FALSE);
|
||||
|
||||
RewardPartyGP(85, oPC, FALSE);
|
||||
|
||||
|
Reference in New Issue
Block a user