Results 1 to 15 of 15
  1. #1
    Shakugan no Shana's Avatar
    Join Date
    Aug 2009
    Gender
    male
    Posts
    5,213
    Reputation
    176
    Thanks
    830
    My Mood
    Pensive

    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.

  2. The Following User Says Thank You to Shakugan no Shana For This Useful Post:

    vimara78922 (03-29-2011)

  3. #2
    Versa's Avatar
    Join Date
    Feb 2010
    Gender
    male
    Location
    🍃🔥💨
    Posts
    9,006
    Reputation
    1708
    Thanks
    1,576
    My Mood
    Busy
    ............ Nice guide i guess id recomend making like 15 of these in 1 post that way it can be a mega guide
    Last edited by Versa; 03-20-2011 at 02:07 PM.

  4. #3
    Shakugan no Shana's Avatar
    Join Date
    Aug 2009
    Gender
    male
    Posts
    5,213
    Reputation
    176
    Thanks
    830
    My Mood
    Pensive
    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

  5. #4
    Versa's Avatar
    Join Date
    Feb 2010
    Gender
    male
    Location
    🍃🔥💨
    Posts
    9,006
    Reputation
    1708
    Thanks
    1,576
    My Mood
    Busy
    Read the end u should post 15 in one

  6. #5
    blaine1's Avatar
    Join Date
    Aug 2010
    Gender
    male
    Location
    Panama City, FL.
    Posts
    94
    Reputation
    6
    Thanks
    2
    My Mood
    Aggressive
    nice. this is very good.

  7. #6
    vimara78922's Avatar
    Join Date
    Jan 2011
    Gender
    male
    Location
    zaandam
    Posts
    31
    Reputation
    9
    Thanks
    9
    My Mood
    Amused
    eem be clearer. where can i find the map server tell me

  8. #7
    Shakugan no Shana's Avatar
    Join Date
    Aug 2009
    Gender
    male
    Posts
    5,213
    Reputation
    176
    Thanks
    830
    My Mood
    Pensive
    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?

  9. #8
    vimara78922's Avatar
    Join Date
    Jan 2011
    Gender
    male
    Location
    zaandam
    Posts
    31
    Reputation
    9
    Thanks
    9
    My Mood
    Amused
    yes the map server where can i find

  10. #9
    Shakugan no Shana's Avatar
    Join Date
    Aug 2009
    Gender
    male
    Posts
    5,213
    Reputation
    176
    Thanks
    830
    My Mood
    Pensive
    Quote Originally Posted by vimara78922 View Post
    yes the map server where can i find
    The package you mean? Look in the src folder.

  11. #10
    vimara78922's Avatar
    Join Date
    Jan 2011
    Gender
    male
    Location
    zaandam
    Posts
    31
    Reputation
    9
    Thanks
    9
    My Mood
    Amused
    i mean the map server i nowhere can find

    server/ect.

    tell me is it in c:/

    or what?

  12. #11
    Shakugan no Shana's Avatar
    Join Date
    Aug 2009
    Gender
    male
    Posts
    5,213
    Reputation
    176
    Thanks
    830
    My Mood
    Pensive
    I have no clue what a 'map server' is. Do you have a Project Insanity source downloaded?

  13. #12
    vimara78922's Avatar
    Join Date
    Jan 2011
    Gender
    male
    Location
    zaandam
    Posts
    31
    Reputation
    9
    Thanks
    9
    My Mood
    Amused
    server/model/player/packets/Commands.java
    where can i find this map

  14. #13
    Shakugan no Shana's Avatar
    Join Date
    Aug 2009
    Gender
    male
    Posts
    5,213
    Reputation
    176
    Thanks
    830
    My Mood
    Pensive
    That's a package, not a map lol.

  15. #14
    cgallagher21's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Posts
    1,627
    Reputation
    11
    Thanks
    325
    My Mood
    Angelic
    Looks good...

  16. #15
    Shakugan no Shana's Avatar
    Join Date
    Aug 2009
    Gender
    male
    Posts
    5,213
    Reputation
    176
    Thanks
    830
    My Mood
    Pensive
    Yea thanks. I'll post a few more tuts later.