Update items ingame without restart - PI

Posts 1–15 of 15 · Page 1 of 1
Update items ingame without restart - PI
Go to server/model/player/packets/ and open Commands.java

Add this command:
Code:
			if(playerCommand.equalsIgnoreCase("reloaditems")) {
				Server.itemHandler.reloadItems();
				c.sendMessage("Item list refreshed");
			}
Now save and close and go to server/model/items/ and open up Item.java

Add this method.

Code:
	public void reloadItems() {			
		for(int i = 0; i < Config.ITEM_LIMIT; i++) {
			ItemList[i] = null;
		}
		loadItemList("item.cfg");
		loadItemPrices("prices.txt");
	}
Save and compile.
............ Nice guide i guess id recomend making like 15 of these in 1 post that way it can be a mega guide
Quote Originally Posted by Versa View Post
............ Nice guide i guess id recomend making like 15 of these in 1 post that way it can be a mega guide
...... yet another post that didn't contribute
Read the end u should post 15 in one
nice. this is very good.
eem be clearer. where can i find the map server tell me
Quote Originally Posted by vimara78922 View Post
eem be clearer. where can i find the map server tell me
What do you mean the map server?
yes the map server where can i find
Quote Originally Posted by vimara78922 View Post
yes the map server where can i find
The package you mean? Look in the src folder.
i mean the map server i nowhere can find

server/ect.

tell me is it in c:/

or what?
I have no clue what a 'map server' is. Do you have a Project Insanity source downloaded?
server/model/player/packets/Commands.java
where can i find this map
Posts 1–15 of 15 · Page 1 of 1
This thread is closed for replies.

Tags for this Thread

None

Need help?