Evil Mage Admin
Number of posts : 432 Age : 32 Registration date : 2008-05-08
| Subject: multy icon Sat Aug 30, 2008 4:30 pm | |
| [QUOTE=Blood Isle;771277]People have been pming me on how to make the multiway icon show up on there server so I got bored and made a simple multiway interface. Open up class9.java search for - Code:
-
aClass44 = class44; under that add - Code:
-
multiicon(); Add this void were you normally add interfaces :p - Code:
-
public static void multiicon() { Class9 Tab = addTab(19156); addmulti(19157, 0, 0); Tab.anInt261 = 0; Tab.aBoolean266 = false; Tab.anIntArray240 = new int[1]; Tab.anIntArray241 = new int[1]; Tab.anIntArray272 = new int[1]; Tab.anIntArray240[0] = 19157; Tab.anIntArray241[0] = 475; Tab.anIntArray272[0] = 297; } Also make sure you have this added - Code:
-
public static void addmulti(int id, int spriteOnId, int spriteOffId) { Class9 spell = aClass9Array210[id] = new Class9(); spell.anInt220 = id;//250 spell.anInt236 = id;//236 spell.anInt262 = 5;//262 spell.anInt217 = 1;//217 spell.anInt214 = 0; spell.anInt220 = 20;//220 spell.anInt267 = 20;//anint267 spell.aByte254 = (byte)0; spell.anInt230 = 52; //Sprite spell.aClass30_Sub2_Sub1_Sub1_207 = method207(spriteOnId, false, aClass44, "OVERLAY_MULTIWAY"); spell.aClass30_Sub2_Sub1_Sub1_260 = method207(spriteOffId, false, aClass44, "OVERLAY_MULTIWAY"); } If your method207 isnt compatible with the constructors then heres my method207 - Code:
-
private static Class30_Sub2_Sub1_Sub1 method207(int i, boolean flag, Class44 class44, String s) { long l = (Class50.method585((byte)1, s) << 8) + (long)i; if(flag) { throw new NullPointerException(); } Class30_Sub2_Sub1_Sub1 class30_sub2_sub1_sub1 = (Class30_Sub2_Sub1_Sub1)aClass12_238.method222(l); if(class30_sub2_sub1_sub1 != null) { return class30_sub2_sub1_sub1; } try { class30_sub2_sub1_sub1 = new Class30_Sub2_Sub1_Sub1(class44, s, i); aClass12_238.method223(class30_sub2_sub1_sub1, l, (byte)2); } catch(Exception exception) { return null; } return class30_sub2_sub1_sub1; } The reason im not loading a custom sprite is because theres no point as the multiway sprite is already in the 317 cache. Compile and post any errors you get To load it server side a simple method like - Code:
-
if(multiWild()) { setInterfaceWalkable(19156); } else { setInterfaceWalkable(-1); } then just put the multi area coords in somthing like this, if you dont understand this then sorry this isnt for you (c) - Code:
-
public boolean multiwild() { if((absX >=2420 && absX <=5167 && absY >=2351 && absY <=5133 ) || heightLevel == 1) return true; else return false; } :d[/QUOTE] | |
|
m33p0rz3r Global Moderator
Number of posts : 445 Age : 29 Location : Ohio. Registration date : 2008-06-04
| Subject: Re: multy icon Sat Aug 30, 2008 8:01 pm | |
| lmao u should make a halo3 sniper and stuff where u can zoom, jsut like the frog launcher thingy. | |
|