hellman2741
July 29th, 2011, 21:36
This'll show you how to fix the helm glitch where you see your face instead of the helm...
Go to equipment.java.
Find all the giant arrays.
Add this just below the String[] FULL_MASK:
private static final int[] FULL_MASKID = { 20147, 20149, 20150, 20135, 20137, 20138, 20159, 20161, 20162 };
(I find that the full mask string doesn't really work for most items...
Now, add in the ids: 20151, and 20153, into the int named "fullbodies"
Now, go up just a bit and you'll see all the "public static boolean isFullMask" and shit.
Replace your "isFullMask" with mine:
public static boolean isFullMask(ItemDefinition def) {
String weapon = def.getName();
int ID = def.getId();
for (int i = 0; i < FULL_MASK.length; i++) {
if (weapon.endsWith(FULL_MASK[i])) {
return true;
}
}
for(int i = 0; i < FULL_MASKID.length; i++) {
if(ID == (FULL_MASKID[i])) {
return true;
}
}
return false;
}
and your isFullBody with mine:
public static boolean isFullBody(ItemDefinition def) {
String weapon = def.getName();
int id = def.getId();
for (int i = 0; i < FULL_BODY.length; i++) {
if (weapon.contains(FULL_BODY[i])) {
return true;
}
}
for(int i = 0; i < fullBodies.length; i++) {
if(id == (fullBodies[i])) {
return true;
}
}
return false;
}
Bam:
Only the registered members can see the link.
Only the registered members can see the link.
Only the registered members can see the link.
Credits to Raghav for reminding me how to do this :p
Go to equipment.java.
Find all the giant arrays.
Add this just below the String[] FULL_MASK:
private static final int[] FULL_MASKID = { 20147, 20149, 20150, 20135, 20137, 20138, 20159, 20161, 20162 };
(I find that the full mask string doesn't really work for most items...
Now, add in the ids: 20151, and 20153, into the int named "fullbodies"
Now, go up just a bit and you'll see all the "public static boolean isFullMask" and shit.
Replace your "isFullMask" with mine:
public static boolean isFullMask(ItemDefinition def) {
String weapon = def.getName();
int ID = def.getId();
for (int i = 0; i < FULL_MASK.length; i++) {
if (weapon.endsWith(FULL_MASK[i])) {
return true;
}
}
for(int i = 0; i < FULL_MASKID.length; i++) {
if(ID == (FULL_MASKID[i])) {
return true;
}
}
return false;
}
and your isFullBody with mine:
public static boolean isFullBody(ItemDefinition def) {
String weapon = def.getName();
int id = def.getId();
for (int i = 0; i < FULL_BODY.length; i++) {
if (weapon.contains(FULL_BODY[i])) {
return true;
}
}
for(int i = 0; i < fullBodies.length; i++) {
if(id == (fullBodies[i])) {
return true;
}
}
return false;
}
Bam:
Only the registered members can see the link.
Only the registered members can see the link.
Only the registered members can see the link.
Credits to Raghav for reminding me how to do this :p