Thread: Project Insanity || Dupes Fixed || Bugs Fixed || Cleaned Process

Page 1 of 5 123 ... LastLast
Results 1 to 10 of 43
  1. #1 Project Insanity || Dupes Fixed || Bugs Fixed || Cleaned Process 
    DystopiaPS

    Bells's Avatar
    Join Date
    Dec 2008
    Age
    27
    Posts
    3,788
    Thanks given
    600
    Thanks received
    1,449
    Rep Power
    4098
    Features
    • Dupes fixed
    • Decent combat
    • Bugs fixed
    • Process cleaned


    Client features
    • Lunar interface crashing fixed
    • Money color fixed
    • A few other minor fixes




    Download


    Quote Originally Posted by Ludwig View Post
    If anyone is going to use this replace your addItem method with this one:
    Code:
    public boolean addItem(int item, int amount) {
    		synchronized(c) {
    			if (amount < 1) {
    				amount = 1;
    			}
    			if(item <= 0) {
    				return false;
    			}
    			if ((((freeSlots() >= 1) || playerHasItem(item, 1)) && Item.itemStackable[item]) || ((freeSlots() > 0) && !Item.itemStackable[item])) {
    				for (int i = 0; i < c.playerItems.length; i++) {
    					if ((c.playerItems[i] == (item + 1)) && Item.itemStackable[item]
    							&& (c.playerItems[i] > 0)) {
    						c.playerItems[i] = (item + 1);
    						if (((c.playerItemsN[i] + amount) < Config.MAXITEM_AMOUNT)
    								&& ((c.playerItemsN[i] + amount) > -1)) {
    							c.playerItemsN[i] += amount;
    						} else {
    							c.playerItemsN[i] = Config.MAXITEM_AMOUNT;
    						}
    						if(c.getOutStream() != null && c != null ) {
    							c.getOutStream().createFrameVarSizeWord(34);
    							c.getOutStream().writeWord(3214);
    							c.getOutStream().writeByte(i);
    							c.getOutStream().writeWord(c.playerItems[i]);
    							if (c.playerItemsN[i] > 254) {
    								c.getOutStream().writeByte(255);
    								c.getOutStream().writeDWord(c.playerItemsN[i]);
    							} else {
    								c.getOutStream().writeByte(c.playerItemsN[i]);
    							}
    							c.getOutStream().endFrameVarSizeWord();
    							c.flushOutStream();
    						}
    						i = 30;
    						return true;
    					}
    				}
    				for (int i = 0; i < c.playerItems.length; i++) {
    					if (c.playerItems[i] <= 0) {
    						c.playerItems[i] = item + 1;
    						if ((amount < Config.MAXITEM_AMOUNT) && (amount > -1)) {
    							c.playerItemsN[i] = 1;
    							if (amount > 1) {
    								c.getItems().addItem(item, amount - 1);
    								return true;
    							}
    						} else {
    							c.playerItemsN[i] = Config.MAXITEM_AMOUNT;
    						}
    						/*if(c.getOutStream() != null && c != null ) {
    							c.getOutStream().createFrameVarSizeWord(34);
    							c.getOutStream().writeWord(3214);
    							c.getOutStream().writeByte(i);
    							c.getOutStream().writeWord(c.playerItems[i]);
    							if (c.playerItemsN[i] > 254) {
    								c.getOutStream().writeByte(255);
    								c.getOutStream().writeDWord(c.playerItemsN[i]);
    							} else {
    								c.getOutStream().writeByte(c.playerItemsN[i]);
    							}
    							c.getOutStream().endFrameVarSizeWord();
    							c.flushOutStream();
    						}*/
    						resetItems(3214);
    						i = 30;
    						return true;
    					}
    				}
    				return false;
    			} else {
    				resetItems(3214);
    				c.sendMessage("Not enough space in your inventory.");
    				//Server.itemHandler.createGroundItem(c, item, c.getX(), c.getY(), -1, c.getId());
    				return false;
    			}
    		}
    	}
     


  2. #2  
    Extreme Donator Project Insanity || Dupes Fixed || Bugs Fixed || Cleaned Process Market Banned



    Join Date
    Dec 2010
    Age
    25
    Posts
    6,060
    Thanks given
    1,692
    Thanks received
    1,238
    Rep Power
    1765
    Nice, might use.
     

  3. #3  
    Owner of Zanarite
    Ep1k's Avatar
    Join Date
    May 2012
    Posts
    417
    Thanks given
    107
    Thanks received
    62
    Rep Power
    12
    Nice Release! I'm sure a lot will use.
     

  4. #4  
    Banned
    Join Date
    Sep 2013
    Posts
    0
    Thanks given
    96
    Thanks received
    104
    Rep Power
    0
    Nice release, Bells. Appreciated!
     

  5. #5  
    Donator

    Join Date
    Jul 2012
    Age
    28
    Posts
    657
    Thanks given
    269
    Thanks received
    58
    Rep Power
    10
    how did u fix dupes diable dropping items or are drops enabled?
     

  6. #6  
    Registered Member
    Join Date
    Mar 2013
    Posts
    181
    Thanks given
    63
    Thanks received
    39
    Rep Power
    25
    Good job, going to try it out now.
     

  7. #7  
    Donator

    Join Date
    Feb 2013
    Posts
    1,670
    Thanks given
    477
    Thanks received
    244
    Rep Power
    29
    Going to try it out. Thank you.
     

  8. #8  
    Registered Member
    Morphine's Avatar
    Join Date
    Jul 2011
    Posts
    1,814
    Thanks given
    495
    Thanks received
    262
    Rep Power
    136
    Looks good, thanks.
     

  9. #9  
    Registered Member

    Join Date
    Feb 2013
    Posts
    1,682
    Thanks given
    401
    Thanks received
    402
    Rep Power
    446
    Nice jobb, I will check it now
     

  10. #10  
    Banned
    Join Date
    Jul 2013
    Posts
    249
    Thanks given
    32
    Thanks received
    22
    Rep Power
    0
    I'm going to mess around with this (:
    It will be one of my two side projects!
    Thank you so much bells for contributing greatly to this forum!
     

Page 1 of 5 123 ... LastLast

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. Replies: 66
    Last Post: 06-03-2013, 05:06 PM
  2. Some More Project Insanity Dupe Fixes
    By rexz0rd in forum Snippets
    Replies: 3
    Last Post: 08-03-2010, 05:56 PM
  3. Replies: 3
    Last Post: 05-30-2010, 02:44 AM
  4. Replies: 0
    Last Post: 05-08-2010, 06:55 PM
  5. Devolution server with *dupes* and bugs fixed
    By Programmer in forum Requests
    Replies: 1
    Last Post: 02-04-2009, 07:41 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •