Thread: Soulsplit Pickup/Drop not working.

Results 1 to 5 of 5
  1. #1 Soulsplit Pickup/Drop not working. 
    Registered Member

    Join Date
    Feb 2009
    Age
    24
    Posts
    2,851
    Thanks given
    90
    Thanks received
    216
    Discord
    View profile
    Rep Power
    675
    I can drop an item, but when I pick it back up, the item is still on the floor and in my inventory. If I try to pick up another copy, however, nothing happens.
    Reply With Quote  
     

  2. #2  
    Registered Member

    Join Date
    Feb 2009
    Age
    24
    Posts
    2,851
    Thanks given
    90
    Thanks received
    216
    Discord
    View profile
    Rep Power
    675
    Bump, I really need help with this.
    Reply With Quote  
     

  3. #3  
    Registered Member Santi Cazorla's Avatar
    Join Date
    Aug 2009
    Age
    24
    Posts
    1,137
    Thanks given
    258
    Thanks received
    55
    Rep Power
    7
    have you edited anything to do with drop or pickup recently?
    Reply With Quote  
     

  4. #4  
    Registered Member

    Join Date
    Feb 2009
    Age
    24
    Posts
    2,851
    Thanks given
    90
    Thanks received
    216
    Discord
    View profile
    Rep Power
    675
    Not that I can think of. Although I can't remember if it worked when I started.
    Reply With Quote  
     

  5. #5  
    Registered Member

    Join Date
    Feb 2009
    Age
    24
    Posts
    2,851
    Thanks given
    90
    Thanks received
    216
    Discord
    View profile
    Rep Power
    675
    Code:
    package server.model.players.packets;
    
    import server.Server;
    import server.model.players.Client;
    import server.model.players.PacketType;
    
    /**
     * Pickup Item
     **/
    public class PickupItem implements PacketType {
    
    	@Override
    	public void processPacket(Client c, int packetType, int packetSize) {
    		c.pItemY = c.getInStream().readSignedWordBigEndian();
    		c.pItemId = c.getInStream().readUnsignedWord();
    		c.pItemX = c.getInStream().readSignedWordBigEndian();
    		Server.itemHandler.removeGroundItem(c, c.pItemId, c.pItemX,
    				c.pItemY, false);
    		c.getItems().addItem(c.pItemId, 1);
    		GlobalDropsHandler.pickup(c, c.pItemId, c.pItemX, c.pItemY);
    		if (Math.abs(c.getX() - c.pItemX) > 25
    				|| Math.abs(c.getY() - c.pItemY) > 25) {
    			c.resetWalkingQueue();
    			return;
    		}
    		c.getCombat().resetPlayerAttack();
    	}
    }
    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. [PI]Soulsplit source Drop Dupe fix
    By rexz0rd in forum Snippets
    Replies: 25
    Last Post: 12-14-2011, 12:30 AM
  2. Not working PvP Drop
    By Lenin in forum Help
    Replies: 25
    Last Post: 08-18-2010, 07:22 PM
  3. Replies: 6
    Last Post: 12-03-2009, 11:50 PM
  4. [508] working Falador Drop party!
    By dakotascape in forum Configuration
    Replies: 62
    Last Post: 11-14-2009, 03:19 PM
  5. [503]Working Pickup with Removing Ground Items
    By Naughty Panda in forum Tutorials
    Replies: 13
    Last Post: 08-25-2008, 06:03 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
  •