Thread: Paying for this fix, Ground Items not disappearing.

Page 1 of 2 12 LastLast
Results 1 to 10 of 16
  1. #1 Paying for this fix, Ground Items not disappearing. 
    Best Hybrid Alive
    Almagesrnubs's Avatar
    Join Date
    Nov 2009
    Posts
    884
    Thanks given
    443
    Thanks received
    261
    Rep Power
    114
    Ground items aren't disappearing as the desired time it should take, once you log out and go for a cup of tea and 10 minutes later the drop is still there.

    Please help, I'd be grateful to give you something back in return.


    Pm me for more information/skype


    Reply With Quote  
     

  2. #2  
    touched like seafood
    Women's Avatar
    Join Date
    Mar 2010
    Posts
    1,830
    Thanks given
    651
    Thanks received
    1,001
    Discord
    View profile
    Rep Power
    3071
    in ItemHandler search for HIDE_TICKS

    what is it set to?
    Reply With Quote  
     

  3. #3  
    Best Hybrid Alive
    Almagesrnubs's Avatar
    Join Date
    Nov 2009
    Posts
    884
    Thanks given
    443
    Thanks received
    261
    Rep Power
    114
    Quote Originally Posted by Women View Post
    in ItemHandler search for HIDE_TICKS

    what is it set to?
    public static final int HIDE_TICKS = 100;
    Reply With Quote  
     

  4. #4  
    touched like seafood
    Women's Avatar
    Join Date
    Mar 2010
    Posts
    1,830
    Thanks given
    651
    Thanks received
    1,001
    Discord
    View profile
    Rep Power
    3071
    Does your ItemHandler process look something like this?

    Code:
    public void process() {
    		ArrayList<GroundItem> toRemove = new ArrayList<GroundItem>();
    		for (int j = 0; j < items.size(); j++) {			
    			if (items.get(j) != null) {
    				GroundItem i = items.get(j);
    				if(i.hideTicks > 0) {
    					i.hideTicks--;
    				}
    				if(i.hideTicks == 1) { // item can now be seen by others
    					i.hideTicks = 0;
    					createGlobalItem(i);
    					i.removeTicks = HIDE_TICKS;
    				}
    				if(i.removeTicks > 0) {
    					i.removeTicks--;
    				}
    				if(i.removeTicks == 1) {
    					i.removeTicks = 0;
    					toRemove.add(i);
    					//removeGlobalItem(i, i.getItemId(), i.getItemX(), i.getItemY(), i.getItemAmount());
    				}
    			
    			}
    		
    		}
    		
    		for (int j = 0; j < toRemove.size(); j++) {
    			GroundItem i = toRemove.get(j);
    			removeGlobalItem(i, i.getItemId(), i.getItemX(), i.getItemY(), i.getItemAmount());	
    		}
    		/*for(GroundItem i : items) {
    			if(i.hideTicks > 0) {
    				i.hideTicks--;
    			}
    			if(i.hideTicks == 1) { // item can now be seen by others
    				i.hideTicks = 0;
    				createGlobalItem(i);
    				i.removeTicks = HIDE_TICKS;
    			}
    			if(i.removeTicks > 0) {
    				i.removeTicks--;
    			}
    			if(i.removeTicks == 1) {
    				i.removeTicks = 0;
    				removeGlobalItem(i, i.getItemId(), i.getItemX(), i.getItemY(), i.getItemAmount());
    			}
    		}*/
    	}
    Reply With Quote  
     

  5. #5  
    Best Hybrid Alive
    Almagesrnubs's Avatar
    Join Date
    Nov 2009
    Posts
    884
    Thanks given
    443
    Thanks received
    261
    Rep Power
    114
    Quote Originally Posted by Women View Post
    Does your ItemHandler process look something like this?

    Code:
    public void process() {
    		ArrayList<GroundItem> toRemove = new ArrayList<GroundItem>();
    		for (int j = 0; j < items.size(); j++) {			
    			if (items.get(j) != null) {
    				GroundItem i = items.get(j);
    				if(i.hideTicks > 0) {
    					i.hideTicks--;
    				}
    				if(i.hideTicks == 1) { // item can now be seen by others
    					i.hideTicks = 0;
    					createGlobalItem(i);
    					i.removeTicks = HIDE_TICKS;
    				}
    				if(i.removeTicks > 0) {
    					i.removeTicks--;
    				}
    				if(i.removeTicks == 1) {
    					i.removeTicks = 0;
    					toRemove.add(i);
    					//removeGlobalItem(i, i.getItemId(), i.getItemX(), i.getItemY(), i.getItemAmount());
    				}
    			
    			}
    		
    		}
    		
    		for (int j = 0; j < toRemove.size(); j++) {
    			GroundItem i = toRemove.get(j);
    			removeGlobalItem(i, i.getItemId(), i.getItemX(), i.getItemY(), i.getItemAmount());	
    		}
    		/*for(GroundItem i : items) {
    			if(i.hideTicks > 0) {
    				i.hideTicks--;
    			}
    			if(i.hideTicks == 1) { // item can now be seen by others
    				i.hideTicks = 0;
    				createGlobalItem(i);
    				i.removeTicks = HIDE_TICKS;
    			}
    			if(i.removeTicks > 0) {
    				i.removeTicks--;
    			}
    			if(i.removeTicks == 1) {
    				i.removeTicks = 0;
    				removeGlobalItem(i, i.getItemId(), i.getItemX(), i.getItemY(), i.getItemAmount());
    			}
    		}*/
    	}
    Yeah, It does
    Reply With Quote  
     

  6. #6  
    Best Hybrid Alive
    Almagesrnubs's Avatar
    Join Date
    Nov 2009
    Posts
    884
    Thanks given
    443
    Thanks received
    261
    Rep Power
    114
    Nobody wants to earn a bit of cash?
    Reply With Quote  
     

  7. #7  
    Super Donator

    Batukka's Avatar
    Join Date
    Oct 2011
    Posts
    2,437
    Thanks given
    86
    Thanks received
    342
    Rep Power
    496
    are you even calling process() method which is on itemhandler?
    [Only registered and activated users can see links. ]
    Reply With Quote  
     

  8. #8  
    Best Hybrid Alive
    Almagesrnubs's Avatar
    Join Date
    Nov 2009
    Posts
    884
    Thanks given
    443
    Thanks received
    261
    Rep Power
    114
    Quote Originally Posted by Bitj View Post
    are you even calling process() method which is on itemhandler?
    public void execute(GameEngine context) {
    Server.playerHandler.process();
    Server.npcHandler.process();
    Server.shopHandler.process();
    Server.objectManager.process();
    Server.itemHandler.process();
    }
    });

    Yes.
    Reply With Quote  
     

  9. #9  
    Respected Member

    Join Date
    Jan 2009
    Posts
    5,682
    Thanks given
    1,093
    Thanks received
    3,494
    Discord
    View profile
    Rep Power
    5000
    Code:
    //removeGlobalItem(i, i.getItemId(), i.getItemX(), i.getItemY(), i.getItemAmount());
    the removal code is commented out?
    Reply With Quote  
     

  10. Thankful user:


  11. #10  
    Best Hybrid Alive
    Almagesrnubs's Avatar
    Join Date
    Nov 2009
    Posts
    884
    Thanks given
    443
    Thanks received
    261
    Rep Power
    114
    Quote Originally Posted by oobe View Post
    Code:
    //removeGlobalItem(i, i.getItemId(), i.getItemX(), i.getItemY(), i.getItemAmount());
    the removal code is commented out?
    I've tried that, it's nothing to do with ItemHandler, seeing has I've ripped the class from another base and still doesn't seem to work.
    Reply With Quote  
     

Page 1 of 2 12 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. Paying for this fix
    By Ultima X in forum Requests
    Replies: 4
    Last Post: 08-29-2012, 06:40 AM
  2. Replies: 3
    Last Post: 05-10-2011, 12:56 PM
  3. dammit, I will pay for this..
    By Jesse* in forum Help
    Replies: 11
    Last Post: 08-12-2009, 12:26 AM
  4. Paying for this!
    By Jodan Belfort in forum Chat
    Replies: 4
    Last Post: 04-24-2008, 05:58 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
  •