CTRL+F
System.out.println
In methods; build3dmenu (or something like that)
or in: doAction
Good luck
|
|

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); }![]()

CTRL+F
System.out.println
In methods; build3dmenu (or something like that)
or in: doAction
Good luck



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***); }

What was the issue?
so lets seeCode:int id = (i1 > 32767 ? cmd4 : i1 >> 14 & 0x7fff);
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?![]()

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.
| « Help mee | [PI] TokHaar-Kal (Rhino Cape) Models do not work! +REP » |
| Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |