Code:
if(opcode == 65)
grandExchangeItem = true;
Same from 742. Same from OSRS. Same from 668. Same from 550.
Look where the value is read in the client. It's very obvious.
Usage from 742 client:
Code:
public static void method2825(String search, boolean bool, int i, int i_0_, String string_1_, boolean bool_2_, int dummy) {
search = search.toLowerCase();
short[] is = new short[16];
int i_4_ = -1;
String string_5_ = null;
if(i != -1) {
Class537 class537 = Class301.aClass543_3059.method6339(i, -433138073);
if(null == class537 || class537.method6321((byte) -25) != bool_2_)
return;
if(class537.method6321((byte) 5))
string_5_ = class537.aString6236;
else
i_4_ = -735399997 * class537.anInt6235;
}
int i_6_ = 0;
for(int i_7_ = 0; i_7_ < Class556.aItemLoader_6392.anInt6777 * 1665394075; i_7_++) {
ItemDefinitions itemDefinitions = Class556.aItemLoader_6392.getItemDefinitions(i_7_, (byte) -4);
if(bool && !itemDefinitions.grandExchangeItem) {
if(dummy == 510874262)
return;
} else if(itemDefinitions.templateId * 1693216917 == -1 && 556764869 * itemDefinitions.anInt6720 == -1 && itemDefinitions.anInt6728 * 381773869 == -1) {
if(itemDefinitions.anInt6744 * 308271419 != 0) {
if(dummy == 510874262) {
/* empty */
}
} else if(itemDefinitions.name.toLowerCase().indexOf(search) == -1) {
if(dummy == 510874262) {
/* empty */
}
} else {
if(-1 != i) {
if(bool_2_) {
if(!string_1_.equals(itemDefinitions.method6288(i, string_5_, (byte) 0))) {
if(dummy != 510874262)
continue;
return;
}
} else if(i_0_ != itemDefinitions.method6287(i, i_4_, 1943601657)) {
if(dummy == 510874262) {
/* empty */
}
continue;
}
}
if(i_6_ >= 250) {
Animation.anInt4482 = -1950675111;
Class282_Sub1.aShortArray7443 = null;
return;
}
if(i_6_ >= is.length) {
short[] is_8_ = new short[2 * is.length];
for(int i_9_ = 0; i_9_ < i_6_; i_9_++)
is_8_[i_9_] = is[i_9_];
is = is_8_;
}
is[i_6_++] = (short) i_7_;
}
}
}
Class282_Sub1.aShortArray7443 = is;
Class432_Sub1_Sub4_Sub2.anInt10001 = 0;
Animation.anInt4482 = i_6_ * 1950675111;
String[] strings = new String[Animation.anInt4482 * -2048805097];
for(int i_10_ = 0; i_10_ < -2048805097 * Animation.anInt4482; i_10_++)
strings[i_10_] = (Class556.aItemLoader_6392.getItemDefinitions(is[i_10_], (byte) -107).name);
Class389.method4592(strings, Class282_Sub1.aShortArray7443, -579037688);
}
To change if an item is shown on the Grand Exchange search interface, change the boolean that is set inside of opcode 65. (Client sided for a cheap hack, or edit the cache if you have a tool to do so)
true = show
false = hide
Originally Posted by
clem585
If you use a tool like Frosty editor, you can modify what each "opcode" does for any item. An opcode is a block of data that holds information on a thing, in this case, an item. There's, for example, an opcode for name, modelId, invModelOffsetX/Y/Z, etc... He told you that you need to edit opcode 65, which according to him holds a boolean that tells weither or not the item is banned on the ge. On my source it says it's for noted/unnoted though so I don't think he's right if he's talking about 718+.
Tbh, I'm pretty sure the the thread I linked is the correct way. Depending on the revision, your list might be in a different map (#1525-1575 instead of 1547).
Smh... Did you even look how the value is actually used, or even name it yourself?