Jump to content

BetterNPC

Pending 1.7.11

Ungerone
Ungerone

Posted

I just started using your skill tree plugin, and I am using BetterNPC on my server. Players have noticed that they are not getting any experience when they kill an NPC that was spawned by BetterNPC. Is it possible for me to add BetterNPC NPCs to the list of experience sources in the config? Please let me know when you have the time, and thank you in advance.

Ungerone

Posted

I did find the NpcSpawn section in the config, and being that BetterNPC uses the NpcSpawn framework, I am assuming that I need to populate this section. Right now it is empty, so my question is, how do I populate it? I have searched through the discussion section and even googled it and I cannot find out how to make the proper changes to the config for points to be given for killing those NPCs.

imthenewguy

Posted

Its a Dictionary<string, double> String is the name of the npc profile, double is the xp value.

Something liek this:

  "NpcSpawn (by KpucTaji) settings": {
    "Dictionary of NPC names and the value that they provide": {
      "myNpcProfile": 120,
      "myNpcProfile2": 150
    }
  },

 

Ungerone

Posted

I have tried that. First I used the actual .json file names in the npcspawn preset folder without the .json exstention. No errors when the plugin loaded but still no XP when killing NPC's. Then I tried what someone in the skill tree chat on discord said to do which was use the names from the /preset tool in game but when I tried that the plugin gave tons of errors when it loaded. Is there another setting that I am missing? I even googled it and that says i am supposed to have a BetterNPC section in the config that has an enabled: true line with a value there.  Everything else seems to work except XP for killing the NPC's.  I even bought your skill tree pro addon because it mentioned have automatic BetterNPC compatibility but yet I still can't get it to work.  I am not a pro at this by any means but I don't understand why it is not working. Could another plugin I am using be causing a problem?

 

imthenewguy

Posted

2 hours ago, Ungerone said:

I have tried that. First I used the actual .json file names in the npcspawn preset folder without the .json exstention. No errors when the plugin loaded but still no XP when killing NPC's. Then I tried what someone in the skill tree chat on discord said to do which was use the names from the /preset tool in game but when I tried that the plugin gave tons of errors when it loaded. Is there another setting that I am missing? I even googled it and that says i am supposed to have a BetterNPC section in the config that has an enabled: true line with a value there.  Everything else seems to work except XP for killing the NPC's.  I even bought your skill tree pro addon because it mentioned have automatic BetterNPC compatibility but yet I still can't get it to work.  I am not a pro at this by any means but I don't understand why it is not working. Could another plugin I am using be causing a problem?

 

It shoudn't be. The key should be the profile name of the npc (case sensitive). Assuming its an NpcSpawn npc.

You could join my discord and ask in the skill Tree channel if anyone has a config you could look at. 

 

About Us

Codefling is the largest marketplace for plugins, maps, tools, and more, making it easy for customers to discover new content and for creators to monetize their work.

Downloads
2.6m
Total downloads
Customers
11.4k
Customers served
Files Sold
163.6k
Total sales
Payments
3.5m
Processed total
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.