Thread: Object Interaction Support (32k+)

Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1 Object Interaction Support (32k+) 
    Respected Member

    Revil's Avatar
    Join Date
    Nov 2010
    Age
    27
    Posts
    4,883
    Thanks given
    3,717
    Thanks received
    2,233
    Rep Power
    5000
    Just implemented interaction for object's model id's that are over 32k. Finally got it to work as shown in the image below that it's showing all correct details now in right click menus however it just spams "502" in the console on first clicks/left mouse clicks though the second clicks work fine i.e if I try to use "Use Bank Booth" it spams "502" in the console however "Use-Quickly Bank Booth" works just fine. The server doesn't seem to receive clicks on those objects first menu action which is the problem, not the spamming of 502 in my console.

    Code:
    int id = (i1 > 32767 ? cmd4 : i1 >> 14 & 0x7fff);
    Code:
    if(l == 502)
    			{
    				method66(i1, k, j, id);
    				stream.createFrame(132);
    				stream.method433(j + ba***);
    				stream.writeWord(id);
    				stream.method432(k + baseY);
    			}
    Reply With Quote  
     

  2. #2  
    Banned

    Join Date
    May 2011
    Posts
    1,785
    Thanks given
    854
    Thanks received
    853
    Rep Power
    0
    CTRL+F

    System.out.println

    In methods; build3dmenu (or something like that)
    or in: doAction

    Good luck
    Reply With Quote  
     

  3. #3  
    Respected Member

    Revil's Avatar
    Join Date
    Nov 2010
    Age
    27
    Posts
    4,883
    Thanks given
    3,717
    Thanks received
    2,233
    Rep Power
    5000
    Quote Originally Posted by Poesy700 View Post
    CTRL+F

    System.out.println

    In methods; build3dmenu (or something like that)
    or in: doAction

    Good luck
    Yes I realise its from doAction from the statement i posted in the OP, what I don't understand is what am I doing wrong. Any help regarding that would be great.
    Reply With Quote  
     

  4. #4  
    Banned

    Join Date
    May 2011
    Posts
    1,785
    Thanks given
    854
    Thanks received
    853
    Rep Power
    0
    Quote Originally Posted by Revil View Post
    Yes I realise its from doAction from the statement i posted in the OP, what I don't understand is what am I doing wrong. Any help regarding that would be great.
    I have the same exact code you posted and it works fine for me. It must be somewhere else.

    And i think im misunderstanding the problem.

    Is the 502 spamming just bugging you. Or does your server not reiceive the click?
    Reply With Quote  
     

  5. #5  
    Respected Member

    Revil's Avatar
    Join Date
    Nov 2010
    Age
    27
    Posts
    4,883
    Thanks given
    3,717
    Thanks received
    2,233
    Rep Power
    5000
    Quote Originally Posted by Poesy700 View Post
    I have the same exact code you posted and it works fine for me. It must be somewhere else.

    And i think im misunderstanding the problem.

    Is the 502 spamming just bugging you. Or does your server not reiceive the click?
    It's the server that's not receiving the clicks, I'll update the OP to make it clearer.
    Reply With Quote  
     

  6. #6  
    Banned

    Join Date
    May 2011
    Posts
    1,785
    Thanks given
    854
    Thanks received
    853
    Rep Power
    0
    Quote Originally Posted by Revil View Post
    It's the server that's not receiving the clicks, I'll update the OP to make it clearer.
    Find out which one of these if statements is for which option by using System.out.println

    And ill compare to mine.
    Reply With Quote  
     

  7. #7  
    Respected Member

    Revil's Avatar
    Join Date
    Nov 2010
    Age
    27
    Posts
    4,883
    Thanks given
    3,717
    Thanks received
    2,233
    Rep Power
    5000
    its the doAction statement 502 that's not working correctly, I'm sure that sends the first menu action command however second menu actions are working which is 900.

    Code:
    if(l == 900) {
    			method66(i1, y, x, id);
    			stream.createFrame(252);
    			stream.method433(id);
    			stream.method431(y + baseY);
    			stream.method432(x + ba***);
    		}
    Reply With Quote  
     

  8. #8  
    Respected Member

    Revil's Avatar
    Join Date
    Nov 2010
    Age
    27
    Posts
    4,883
    Thanks given
    3,717
    Thanks received
    2,233
    Rep Power
    5000
    Mod may close this, solved the issue.

    Reply With Quote  
     

  9. #9  
    PokeFrontier Java Developer

    Pokemon's Avatar
    Join Date
    May 2011
    Posts
    2,733
    Thanks given
    494
    Thanks received
    801
    Discord
    View profile
    Rep Power
    1242
    Quote Originally Posted by Revil View Post
    Mod may close this, solved the issue.

    What was the issue ?

    Code:
    int id = (i1 > 32767 ? cmd4 : i1 >> 14 & 0x7fff);
    so lets see

    if(i1 > 32767) {
    id = cmd4
    else
    id = i1 >> 14 & 0x7fff

    so this >> shifts the data
    }

    so im guessing you would want to change this value 32767

    but i dont get it is the condition true or false?

    [Only registered and activated users can see links. ]



    Pokemon loves his
    Reply With Quote  
     

  10. #10  
    Respected Member

    Revil's Avatar
    Join Date
    Nov 2010
    Age
    27
    Posts
    4,883
    Thanks given
    3,717
    Thanks received
    2,233
    Rep Power
    5000
    Ended up being a completely different mistake on my part messed up something while doing this, so I just started working off the backup I had kept just in case and tried to implement this again which worked fine.
    Reply With Quote  
     

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

Similar Threads

  1. Object Interaction Support (32k+)
    By OnCue in forum Snippets
    Replies: 12
    Last Post: 06-29-2013, 11:24 AM
  2. Object Interaction Support (32k+) 15$
    By Miner in forum Buying
    Replies: 10
    Last Post: 01-28-2013, 03:39 PM
  3. Replies: 0
    Last Post: 10-08-2012, 03:06 AM
  4. 15$ Paypal - Object Clicking Over 32K
    By Technotik in forum Buying
    Replies: 21
    Last Post: 07-15-2012, 11:11 PM
  5. Need One Click Object Interact
    By Samsterz in forum Requests
    Replies: 0
    Last Post: 02-20-2012, 10:31 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •