Thread: 100% Perfect picking up ground items! + Video

Page 1 of 18 12311 ... LastLast
Results 1 to 10 of 178
  1. #1 100% Perfect picking up ground items! + Video 
    Registered Member

    Join Date
    May 2007
    Posts
    696
    Thanks given
    0
    Thanks received
    0
    Rep Power
    154
    Ok, i finally decided to release this!

    This basically makes picking items from the floor the same as Runescapes (Private servers usually don't let you pick up the item unless you click on while standing on it)


    Purpose: To add 100% real ground pickups!

    Difficulty: 2

    Assumed Knowledge: Basic java and how to declare

    Server Base: I made this on my project SkattyScape, but it should work on p16 or Pimpscape.

    Classes Modified: client.java

    Procedure:

    Step 1:

    In process() (your 500ms boolean) add

    Code:
    scanPickup();
    Step 2:

    Find your pickup item packet

    Code:
    case 236:
    and replace the contents of it with

    Code:
    				int itemY = inStream.readSignedWordBigEndian();
    				int itemID = inStream.readUnsignedWord();
    				int itemX = inStream.readSignedWordBigEndian();
    				apickupid = itemID;
    				apickupx = itemX;
    				apickupy = itemY;
    It should look something like this:

    Code:
    				case 236: //pickup item
    				int itemY = inStream.readSignedWordBigEndian();
    				int itemID = inStream.readUnsignedWord();
    				int itemX = inStream.readSignedWordBigEndian();
    				apickupid = itemID;
    				apickupx = itemX;
    				apickupy = itemY;
    				break;
    Now declare all this.

    Code:
    public int apickupid = -1;
    public int apickupx = -1;
    public int apickupy = -1;
    
    public void scanPickup()
    {
    if (absX == apickupx && absY == apickupy)
    {
    if (ItemHandler.itemExists(apickupid, absX, absY))
    {
    int itemAmount = ItemHandler.itemAmount(apickupid, apickupx, apickupy);
    if (addItem(apickupid, itemAmount))
    {//only removes the item when has enough space!
    ItemHandler.removeItem(apickupid, apickupx, apickupy, itemAmount);
    removeGroundItem(apickupx, apickupy, apickupid);
    apickupid = -1;
    apickupx = -1;
    apickupy = -1;
    }
    }
    else if (hasntLoggedin){
    sendMessage("Too late, its gone!");
    apickupid = -1;
    apickupx = -1;
    apickupy = -1;
    }
    }
    }
    public boolean hasntLoggedin = false;
    Now in your loading packet
    Code:
    case 121:
    add

    Code:
    hasntLoggedin = true;
    And your done!

    This includes the, "Too late, its gone!" message, and it only removes the item from the ground when you have free inventory space.

    Please post your errors since i copied this straight from my server and i may have missed something.

    and now for the video!

    [Only registered and activated users can see links. ]

    Video and tutorial 100% credits to me!

    Now you can install my bug fix tut at [Only registered and activated users can see links. ]


    I DO NOT HAVE A MOPAR ACCOUNT, IF YOU SEE THIS ANYWHERE ELSE IT HAS BEEN LEECHED
    Anybody remember me?
     

  2. #2  
    project-rs owner
    Join Date
    Sep 2006
    Age
    26
    Posts
    914
    Thanks given
    4
    Thanks received
    4
    Rep Power
    49
    does this have a fix for multi pickup if not it is not full
     

  3. #3  
    Kurt
    Guest
    Nice work, will use.

    ***, always nice to give love back
     

  4. #4  
    Registered Member

    Join Date
    May 2007
    Posts
    696
    Thanks given
    0
    Thanks received
    0
    Rep Power
    154
    Quote Originally Posted by laurens View Post
    does this have a fix for multi pickup if not it is not full
    Whats multi pickup?
    Anybody remember me?
     

  5. #5  
    project-rs owner
    Join Date
    Sep 2006
    Age
    26
    Posts
    914
    Thanks given
    4
    Thanks received
    4
    Rep Power
    49
    if you click fast on the same item it adds more then one item
     

  6. #6  
    Registered Member

    Join Date
    May 2007
    Posts
    696
    Thanks given
    0
    Thanks received
    0
    Rep Power
    154
    Quote Originally Posted by laurens View Post
    if you click fast on the same item it adds more then one item
    Yeh, it will say "Too late, its gone!" if that happens =D
    Anybody remember me?
     

  7. #7  
    Donator

    Frosty Teh Snowman's Avatar
    Join Date
    Sep 2007
    Posts
    1,083
    Thanks given
    86
    Thanks received
    256
    Rep Power
    103
    sweet! it works! i just had to change the SM to sendMessage for dodian.... and it works! thx
     

  8. #8  
    Z
    Z is offline
    Registered Member
    Z's Avatar
    Join Date
    Jun 2007
    Age
    24
    Posts
    1,391
    Thanks given
    6
    Thanks received
    30
    Rep Power
    853
    looks awsome thanks and ***ed
     

  9. #9  
    sriyegna
    Guest
    damm, this is nicee!!! , gna add it to dodian to =0.
    repped
     

  10. #10  
    Hippy
    Guest
    yeah it works, i also had to change the sm to send message "cheezescape" lolz.
     

Page 1 of 18 12311 ... LastLast

Thread Information
Users Browsing this Thread

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

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