Code-x

Code-x Private Server
 
HomeHome  PortalPortal  SearchSearch  RegisterRegister  Log inLog in  

 

 multy icon

Go down 
AuthorMessage
Evil Mage
Admin
Admin
Evil Mage

Number of posts : 432
Age : 28
Registration date : 2008-05-08

multy icon Empty
PostSubject: multy icon   multy icon Icon_minitimeSat 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.


multy icon Multiway


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. Smile


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]
Back to top Go down
m33p0rz3r
Global Moderator
Global Moderator
m33p0rz3r

Number of posts : 445
Age : 24
Location : Ohio.
Registration date : 2008-06-04

multy icon Empty
PostSubject: Re: multy icon   multy icon Icon_minitimeSat 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.
Back to top Go down
http://www.GamersChoice.darkbb.com
 
multy icon
Back to top 
Page 1 of 1
 Similar topics
-
» URBAN ICON Highpoint used to be called what???
» my bokeh icon affet ;)
» Thundercats SDCC
» Smurf'd Shout Out Icons!
» Hi, I'm new erepublik

Permissions in this forum:You cannot reply to topics in this forum
Code-x :: General Chat :: runescape private [TUT] section-
Jump to: