Thread: spawning item causes dc

Results 1 to 4 of 4
  1. #1 spawning item causes dc 
    Registered Member
    Join Date
    Jul 2011
    Posts
    167
    Thanks given
    2
    Thanks received
    1
    Rep Power
    0
    When i spawn item id 21919 but it freezes your client and you can't log back in unless you delete it via char files.


    I changed max item id in config.java to 30000

    My item command is
    Code:
    if (playerCommand.startsWith("item")) {
    				if(c.playerRights == 2 && !Config.ADMIN_CAN_SPAWN) {
    					c.sendMessage("Spawning for admins has been disabled.");
    					return;
    				} else {
    				try {
    					String[] args = playerCommand.split(" ");
    					if (args.length == 3) {
    						int newItemID = Integer.parseInt(args[1]);
    						int newItemAmount = Integer.parseInt(args[2]);
    						if ((newItemID <= 30901) && (newItemID >= 0)) {
    							c.getItems().addItem(newItemID, newItemAmount);		
    						} else {
    							c.sendMessage("That item ID does not exist.");
    						}
    					} else {
    						c.sendMessage("Wrong usage: (Ex:(::item_ID_Amount)(::item 995 1))");
    					}
    				} catch(Exception e) {
    					}
    				}
    			}
    Reply With Quote  
     

  2. #2  
    Banned
    Join Date
    Feb 2012
    Posts
    629
    Thanks given
    201
    Thanks received
    59
    Rep Power
    0
    Do you even have an item id that is "21919" ?
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Jul 2011
    Posts
    167
    Thanks given
    2
    Thanks received
    1
    Rep Power
    0
    Yes, i've took out dominion items etc from InsanityX and put them in my client .
    Reply With Quote  
     

  4. #4  
    Registered Member
    Trock's Avatar
    Join Date
    Jul 2009
    Age
    28
    Posts
    1,915
    Thanks given
    14
    Thanks received
    66
    Rep Power
    532
    Quote Originally Posted by Stillwater View Post
    Yes, i've took out dominion items etc from InsanityX and put them in my client .


    Did you make sure to add all the right models in the Cache
    Quote Originally Posted by Psyduck View Post
    Vouch

    Quote Originally Posted by VelSion View Post
    Huge Vouch, made so many deals with him, went smoothly!
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. item spawning
    By infinity18 in forum Help
    Replies: 1
    Last Post: 12-07-2011, 04:49 AM
  2. item spawning
    By infinity18 in forum Help
    Replies: 0
    Last Post: 12-07-2011, 12:29 AM
  3. [PI] Spawning By Item Name
    By Gintjack in forum Snippets
    Replies: 16
    Last Post: 11-29-2011, 02:25 PM
  4. Item spawning?
    By Subb in forum Help
    Replies: 5
    Last Post: 05-29-2011, 04:03 AM
  5. 614 item spawning
    By Skillet in forum Help
    Replies: 8
    Last Post: 09-14-2010, 03:45 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •