Thread: Receiving trade button not working [Vencillio]

Results 1 to 8 of 8
  1. #1 Receiving trade button not working [Vencillio] 
    #13

    Join Date
    Jan 2014
    Posts
    148
    Thanks given
    32
    Thanks received
    22
    Rep Power
    49
    Hello my friends,

    I am stuck on this issue, when I go to click the text


    It almost acts as a follow instead and the player will follow the other player around until clicked somewhere else.

    I've looked in all of the code and found the text but can't find the issue, I don't believe there's anything actually assigned to the button ID.
    If anyone can help that will be much appreciated.

    Thank you
    Reply With Quote  
     

  2. #2  
    Registered Member
    arch337's Avatar
    Join Date
    Sep 2008
    Posts
    2,706
    Thanks given
    170
    Thanks received
    285
    Discord
    Arch337#1337
    Rep Power
    631
    All you have to do is make the trade request send instead of follow codes and have the follow codes inside the follow packet.


    "A fail act is something you do regular, but a dumb act is something you can learn from"
    Spoiler for Problem?:
    Reply With Quote  
     

  3. #3  
    #13

    Join Date
    Jan 2014
    Posts
    148
    Thanks given
    32
    Thanks received
    22
    Rep Power
    49
    Quote Originally Posted by arch337 View Post
    All you have to do is make the trade request send instead of follow codes and have the follow codes inside the follow packet.
    The thing is in the code I can't see anything related to a follow packet, I've checked all the code over.
    Reply With Quote  
     

  4. #4  
    Donator


    Join Date
    Jun 2013
    Posts
    805
    Thanks given
    652
    Thanks received
    157
    Rep Power
    92
    Also been looking for fix this for a while now, seems silly but can't quite figure out where to place it either
    Reply With Quote  
     

  5. #5  
    #13

    Join Date
    Jan 2014
    Posts
    148
    Thanks given
    32
    Thanks received
    22
    Rep Power
    49
    Quote Originally Posted by i dds you View Post
    Also been looking for fix this for a while now, seems silly but can't quite figure out where to place it either
    If I figure it out, I'll let you know
    Reply With Quote  
     

  6. #6  
    Registered Member
    arch337's Avatar
    Join Date
    Sep 2008
    Posts
    2,706
    Thanks given
    170
    Thanks received
    285
    Discord
    Arch337#1337
    Rep Power
    631
    Quote Originally Posted by Xers View Post
    The thing is in the code I can't see anything related to a follow packet, I've checked all the code over.
    Well I know for a fact that vencillio have the click request packet send as follow. What you need to do is just simple get it to send the right file to right packet.
    If you do not have one, just make it or edit the existing one.
    If you do not know what packet it is, just debug the package and fine the correct packet id. Then just add the correct codes to it.


    "A fail act is something you do regular, but a dumb act is something you can learn from"
    Spoiler for Problem?:
    Reply With Quote  
     

  7. #7  
    OS-Legacy Owner

    Join Date
    Dec 2014
    Posts
    274
    Thanks given
    122
    Thanks received
    54
    Rep Power
    12
    I can certainly help find the solution, hit me up on skype: eric.c123
    Reply With Quote  
     

  8. #8  
    Textures developer

    Kris's Avatar
    Join Date
    Jun 2016
    Age
    21
    Posts
    3,435
    Thanks given
    582
    Thanks received
    2,089
    Discord
    Kris#1337
    Rep Power
    3080
    Clicking the request messages in the chat acts the same way as right-clicking on another player and clicking one of the options on them. The same packet is sent from the client to the server.
    Personally, I suggest you keep an array of options server sided so you know for a fact which option is being clicked.
    For example..
    Code:
    @Getter private final transient String[] options = new String[8];
    @ The packet that sets the right-click options on players:
    player.getOptions()[optionId] = optionString;
    
    & At receive:
    final String option = player.getOptions[optionId];
    I've done this to keep the code cleaner and in the case of multiple options using the same slot, I can guarantee there are no mix-ups.
    Spoiler for sig too large:

    [Only registered and activated users can see links. ]

    Discord: Kris#1337
    Reply With Quote  
     

  9. Thankful user:



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. Replies: 0
    Last Post: 03-04-2010, 04:48 AM
  2. Replies: 0
    Last Post: 03-04-2010, 03:14 AM
  3. [317] Purple trade text not working
    By SirPali in forum Help
    Replies: 0
    Last Post: 01-28-2010, 01:16 PM
  4. Replies: 12
    Last Post: 04-08-2009, 11:54 PM
  5. Bottem Jbar Buttons not working.
    By Gimmeyoshoez™ in forum Help
    Replies: 1
    Last Post: 01-20-2009, 03:39 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
  •