SRL Archive - Reflection Development

BIG Object Fix...


Drakan

2010-06-05 01:40:20

Ok, so someone a while back was looking to get the ID of a dairycow (which is an object), but for some reason, he kept getting -1. Then I ran GetAllObjects and noticed there were a LOT of -1 objects for some reason. Well thanks to (some) help from ben ;), and a LOT of help from RSBot's runescape client, I now have a fix for this! There was a secondary GetID that you are supposed to call when the first one returns -1. It is committed. Enjoy! (p.s. this also now allows for the making of the pinball random :)).

Nava2

2010-06-05 08:44:53

Well done, does this fix lordsaturn's issues?

Bad Boy JH

2010-06-13 05:28:43

that was meeee! I wanted the dairy cow ID…

cohen

2010-06-13 08:46:50

Im taking it you werent doing this

public int getID() {
return 0xffff & object.getID();
}
:P
If you were already doing this, what was the secondary getID?

Drakan

2010-06-13 10:04:57

From: cohen
Im taking it you werent doing this

public int getID() {
return 0xffff & object.getID();
}
:P
If you were already doing this, what was the secondary getID?


These are the two hooks for the ids.

hook_InteractiveObject_GetID = 'z';
hook_InteractiveObject_GetID2 = 'H.o';