Easy fix, go to server.java
add this
aboveCode:public static ItemHandler itemHandler = new ItemHandler();
Code:public static PlayerHandler playerHandler = new PlayerHandler();
|
|
Hey I'm having problems having to add this to initialize into when the server loads:
My Server.java:Code:These methods will need to be invoked, upon server initiation: Code: XStreamUtil.initializeXStream(); NPCDrop.loadDrops();
[Only registered and activated users can see links. ]
cause my server is different from PI somewhat ill give you an example:
Whenever I try to add the two lines above anywhere, even without errors they still dont drop from the npc i listed in the xml file with the drops. (BTW i made sure that the name of the file was the same as the input file path and everything) If you could help with this problem id be grateful thanks. (Rep+thanks again in your future)
On the 2 lines that you're getting errors on, change "item" to "item.getId()" or "item.id", whichever variable returns the item's ID. That will work.
Hey I'm having problems having to add this to initialize into when the server loads:
My Server.java:Code:These methods will need to be invoked, upon server initiation: Code: XStreamUtil.initializeXStream(); NPCDrop.loadDrops();
[Only registered and activated users can see links. ]
cause my server is different from PI somewhat ill give you an example:
Whenever I try to add the two lines above anywhere, even without errors they still dont drop from the npc i listed in the xml file with the drops. (BTW i made sure that the name of the file was the same as the input file path and everything) If you could help with this problem id be grateful thanks. (Rep+thanks again in your future)
Bump ^

Pm me your Skype
bump
| « [PI] Item changing into another item after banking. | [PI] Newbie question » |
| Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |