Player Resource Consortium

 

Author Topic: Why are my players not receiving XP for monster kills?  (Read 160 times)

0 Members and 1 Guest are viewing this topic.

May 23, 2020, 12:51:16 PM
  • Adept
  • *
  • Posts: 2
  • Karma: +0/-0
  • New Member
    • View Profile

I'm in the process of reworking Avermere to run with PRC to start a new persistent server. The problem is that after applying the PRC my players are reporting that they are no longer receiving xp for any of their kills. After digging into the script for a while I found one that says effectively players will not get xp for their kills.

Is there a way to stop this script from running so that we can keep the PRC but still receive xp for monster kills?
« Last Edit: May 23, 2020, 03:59:10 PM by Seero »


May 23, 2020, 01:20:51 PM
Reply #1
  • Adept
  • *
  • Posts: 2
  • Karma: +0/-0
  • New Member
    • View Profile

void CheckXPSwitches(object oModule)
{
    if(!GetLocalInt(oModule, PRC_XP_PC_PARTY_COUNT_x100))//player will get 0 xp for kills - we assume that the XP system was not setup
    {
        SetLocalInt(oModule, PRC_XP_SLIDER_x100, 100);
        SetLocalInt(oModule, PRC_XP_GROUP_BONUS, 10);
        SetLocalInt(oModule, PRC_XP_PC_PARTY_COUNT_x100, 100);
        SetLocalInt(oModule, PRC_XP_DOMINATED_PARTY_COUNT_x100, 50);
        SetLocalInt(oModule, PRC_XP_HENCHMAN_PARTY_COUNT_x100, 50);
        SetLocalInt(oModule, PRC_XP_UNKNOWN_PARTY_COUNT_x100, 50);
        SetLocalInt(oModule, PRC_XP_SUMMONED_PARTY_COUNT_x100, 30);
        SetLocalInt(oModule, PRC_XP_FAMILIAR_PARTY_COUNT_x100, 10);
        SetLocalInt(oModule, PRC_XP_ANIMALCOMPANION_PARTY_COUNT_x100, 10);
        SetLocalInt(oModule, PRC_XP_MUST_BE_IN_AREA, 1);
        SetLocalInt(oModule, PRC_XP_MAX_PHYSICAL_DISTANCE, 100);
    }
    //
    if(!GetLocalInt(oModule, PRC_XP_MAX_LEVEL_DIFF))
        SetLocalInt(oModule, PRC_XP_MAX_LEVEL_DIFF, 5);
}

This script right here seems to be the culprit but I cant remove it or edit it without PRC having a major conniption.


May 24, 2020, 12:06:54 PM
Reply #2

The actual culprit is the module using a default script that's getting overwritten by the PRC. You'll need to merge the two.
That is not dead which can eternal lie.
And with strange aeons even death may die.