PDA

View Full Version : Fixing glitchy helms



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

displee
July 29th, 2011, 22:21
Thanks, its needed for people who are using RuneSlay source.

hellman2741
July 30th, 2011, 00:32
Thanks, its needed for people who are using RuneSlay source.

It's needed for everyone lol

displee
July 30th, 2011, 01:57
It's needed for everyone lol

You never know...

SkrilleX
July 31st, 2011, 07:41
Wow my internet came down i did this on local host lol but you can just add "helm" in the full mask or the ending name of the item lol but Nice Job :D

hellman2741
July 31st, 2011, 10:12
Wow my internet came down i did this on local host lol but you can just add "helm" in the full mask or the ending name of the item lol but Nice Job :D

For some reason, it doesn't really work tbh...
I added the torva helm to it, and it didn't do shit.. :p
Besides, I think it's easier to do item IDS, rather then the names.

own4g3
July 31st, 2011, 10:15
Own4g3*
and thx for posting this ;)

SkrilleX
July 31st, 2011, 21:33
For some reason, it doesn't really work tbh...
I added the torva helm to it, and it didn't do shit.. :p
Besides, I think it's easier to do item IDS, rather then the names.
You don't add torva full helm just "helm" its the ending name

iRepo
August 29th, 2011, 17:51
Err I tried using this to fix the Vanguard Helmet, and it didn't work? O.o

stecool
August 29th, 2011, 22:59
what you doing irepo? that work

iRepo
August 29th, 2011, 23:15
I did everything it said, but it didn't help.

hellman2741
August 30th, 2011, 09:32
I did everything it said, but it didn't help.
Obviously not lol
Here, I'll add Vanguard helm right now, and see if it works for me.

Edit - Hmmm.
Vanguard helm will probably have to be something done in the Client not the server.

iRepo
August 31st, 2011, 01:05
I started fucking around with it and all the other recently added 662 helms, and you have to add the names of the helmets in the FULL_HELMETS (or MASKS, I forget :p).

Intensive Tony
August 31st, 2011, 01:07
Obviously not lol
Here, I'll add Vanguard helm right now, and see if it works for me.

Edit - Hmmm.
Vanguard helm will probably have to be something done in the Client not the server.

its of the itemdefinitions.xml

copy the name exactly from itemdefinitions.xml

and place it on fullmask then it will work :)

hellman2741
August 31st, 2011, 01:56
its of the itemdefinitions.xml

copy the name exactly from itemdefinitions.xml

and place it on fullmask then it will work :)

I'm not an idiot.
I'm the one who MADE the tutorial, I don't use names, I use the item ids, so it can't fuck up.
It doesn't work.