Thread: how to

Page 1 of 3 123 LastLast
Results 1 to 10 of 21
  1. #1 how to 
    Registered Member
    Join Date
    Jan 2016
    Posts
    29
    Thanks given
    0
    Thanks received
    0
    Rep Power
    11
    how to make items when get dropped dispear?
    Reply With Quote  
     

  2. #2  
    Registered Member
    Join Date
    May 2012
    Posts
    287
    Thanks given
    7
    Thanks received
    48
    Rep Power
    25
    In World.java
    Code:
     public static final void dropItem(Item item, Player owner, int hiddenTime, int displayTime) {
            owner.getPackets().sendSound(2739, 0, 1);
            WorldTile playerTile = new WorldTile(owner.getX(), owner.getY(), owner.getPlane());
            addGroundItem(item, playerTile, owner, false, hiddenTime, true, displayTime);
            owner.getInventory().deleteItem(item);
        }
    remove or comment out "addGroundItem(item, playerTile, owner, false, hiddenTime, true, displayTime);"
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Jan 2016
    Posts
    29
    Thanks given
    0
    Thanks received
    0
    Rep Power
    11
    Quote Originally Posted by juuuuu View Post
    In World.java
    Code:
     public static final void dropItem(Item item, Player owner, int hiddenTime, int displayTime) {
            owner.getPackets().sendSound(2739, 0, 1);
            WorldTile playerTile = new WorldTile(owner.getX(), owner.getY(), owner.getPlane());
            addGroundItem(item, playerTile, owner, false, hiddenTime, true, displayTime);
            owner.getInventory().deleteItem(item);
        }
    remove or comment out "addGroundItem(item, playerTile, owner, false, hiddenTime, true, displayTime);"
    Didn't work
    Reply With Quote  
     

  4. #4  
    Registered Member
    Join Date
    May 2012
    Posts
    287
    Thanks given
    7
    Thanks received
    48
    Rep Power
    25
    What are you trying to achieve?
    Reply With Quote  
     

  5. #5  
    Registered Member
    1210saad's Avatar
    Join Date
    Aug 2013
    Posts
    313
    Thanks given
    39
    Thanks received
    22
    Rep Power
    132
    Quote Originally Posted by juuuuu View Post
    What are you trying to achieve?
    He wants to make it so when you drop an item it disappears. You can't pick it back up.
    Reply With Quote  
     

  6. #6  
    Registered Member
    Join Date
    May 2012
    Posts
    287
    Thanks given
    7
    Thanks received
    48
    Rep Power
    25
    Quote Originally Posted by 1210saad View Post
    He wants to make it so when you drop an item it disappears. You can't pick it back up.
    If that's the case he did it wrong. Tested it and works for me. Make sure you edited the "dropItem" method and not the "dropItems" (note the s) method
    Reply With Quote  
     

  7. #7  
    Contributor

    clem585's Avatar
    Join Date
    Sep 2013
    Posts
    3,556
    Thanks given
    652
    Thanks received
    640
    Rep Power
    358
    Quote Originally Posted by juuuuu View Post
    If that's the case he did it wrong. Tested it and works for me. Make sure you edited the "dropItem" method and not the "dropItems" (note the s) method
    This ^. There could be more than one method.
    Project thread
    [Only registered and activated users can see links. ]
    Reply With Quote  
     

  8. #8  
    Registered Member
    1210saad's Avatar
    Join Date
    Aug 2013
    Posts
    313
    Thanks given
    39
    Thanks received
    22
    Rep Power
    132
    Quote Originally Posted by juuuuu View Post
    If that's the case he did it wrong. Tested it and works for me. Make sure you edited the "dropItem" method and not the "dropItems" (note the s) method
    Removing the addgrounditem should do the trick.
    Reply With Quote  
     

  9. #9  
    Registered Member
    Join Date
    May 2012
    Posts
    287
    Thanks given
    7
    Thanks received
    48
    Rep Power
    25
    Quote Originally Posted by 1210saad View Post
    Removing the addgrounditem should do the trick.
    Why does that sound familiar. OH! I just said that 5 messages ago :O
    Reply With Quote  
     

  10. Thankful user:


  11. #10  
    Donator


    Join Date
    Jan 2014
    Posts
    1,650
    Thanks given
    426
    Thanks received
    497
    Rep Power
    221
    lol inventory.deleteItem and ur done??
    Reply With Quote  
     

Page 1 of 3 123 LastLast

Thread Information
Users Browsing this Thread

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


User Tag List

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •