Thread: [508 trading] Adding p2 inv count

Page 1 of 2 12 LastLast
Results 1 to 10 of 20
  1. #1 [508 trading] Adding player inv count 
    Banned
    Join Date
    Nov 2008
    Posts
    197
    Thanks given
    3
    Thanks received
    58
    Rep Power
    0
    thanks to Gravediggah we have trading
    but he didn't add this to the interface so I will show you how.

    You must have this tutorial finished. [508] Full Trading
    - by Gravediggah.

    First open up your PTrade.java
    search for...
    Code:
    p.frames.setString(p, "Trading With: " + getPartner().username.substring(0, 1).toUpperCase() + getPartner().username.substring(1), 335, 15);
    below that add this...
    p.frames.setString(p, getPartner().username.substring(0, 1).toUpperCase() + getPartner().username.substring(1)+" has "+Engine.playerItems.freeSlotCount(getPartner( ))+" free inventory slots.", 335, 21); // made by dakotascape of rune-server.
    p.appearanceUpdateReq = true;
    p.updateReq = true;
    you are now done! save and compile!

    What you just made was the "USERNAME has ## free inventory slots."
    and it updates as you click an item!
    it shows your inv count on the other players interface!
    ----------------------------------------------------------------------------------------------------------------------------------------------
    Edit:
    Another small very small thing you want to add is ,
    color to the "value" instead of white on item part

    Open PTrade.java
    search for....
    Code:
    Object[] tparams3 = new Object[]{"", "", "", "", "", "", "", "", "Value"
    Add <col=FF9040> to it
    so it looks like this
    Object[] tparams3 = new Object[]{"", "", "", "", "", "", "", "", "Value<col=FF9040>"
    Save and compile!

    Credits - Gravediggah for trading
    DakotaScape for this.
     

  2. #2  
    Registered Member
    Join Date
    Sep 2008
    Posts
    687
    Thanks given
    1
    Thanks received
    1
    Rep Power
    50
    o this is useful, thanks
    ^_^
     

  3. #3  
    Donator


    Join Date
    Sep 2006
    Age
    30
    Posts
    2,106
    Thanks given
    73
    Thanks received
    54
    Rep Power
    491
    Sweet thanks for this.
     

  4. #4  
    Registered Member Dr Satan's Avatar
    Join Date
    Mar 2008
    Posts
    286
    Thanks given
    0
    Thanks received
    1
    Rep Power
    16
    nice man thnx for this it helps
     

  5. #5  
    Registered Member
    wizzyt21's Avatar
    Join Date
    Aug 2007
    Posts
    1,167
    Thanks given
    49
    Thanks received
    12
    Rep Power
    156
    p.appearanceUpdateReq = true;
    p.updateReq = true;

    that doesnt update it u idiot so remove it, put this in the packet when u click the item
    YOU JUST GOT KNOCKED THE F*CK UP.
     

  6. #6  
    Banned
    Join Date
    Nov 2008
    Posts
    197
    Thanks given
    3
    Thanks received
    58
    Rep Power
    0
    no this does update it.. have you tried? no I have and it does...

    ---------- Post added at 06:51 AM ---------- Previous post was at 06:49 AM ----------

    Quote Originally Posted by 64base string View Post
    p.appearanceUpdateReq = true;
    p.updateReq = true;

    that doesnt update it u idiot so remove it, put this in the packet when u click the item
    It does update it... but you can try another way if you want it wont work any other way..
    so.. yeah
     

  7. #7  
    Donator


    Join Date
    Sep 2006
    Age
    30
    Posts
    2,106
    Thanks given
    73
    Thanks received
    54
    Rep Power
    491
    You don't need the updates at all.

    and this update is for the player's appearance...is it not?
    Code:
    p.appearanceUpdateReq = true;
     

  8. #8  
    Banned
    Join Date
    Nov 2008
    Posts
    197
    Thanks given
    3
    Thanks received
    58
    Rep Power
    0
    Quote Originally Posted by Pixel View Post
    You don't need the updates at all.
    are you sure?
     

  9. #9  
    Donator


    Join Date
    Sep 2006
    Age
    30
    Posts
    2,106
    Thanks given
    73
    Thanks received
    54
    Rep Power
    491
    Quote Originally Posted by dakotascape View Post
    are you sure?
    Positive just tested
     

  10. #10  
    Banned
    Join Date
    Nov 2008
    Posts
    197
    Thanks given
    3
    Thanks received
    58
    Rep Power
    0
    Quote Originally Posted by Pixel View Post
    Positive just tested
    kk, Thanks for repping by the way =p!
     

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

Tags for this Thread

View Tag Cloud

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