Code-x
Would you like to react to this message? Create an account in a few clicks or log in to continue.
Code-x

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

 

 the tut for making interface

Go down 
2 posters
AuthorMessage
Evil Mage
Admin
Admin
Evil Mage


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

the tut for making interface Empty
PostSubject: the tut for making interface   the tut for making interface Icon_minitimeSun Aug 10, 2008 12:58 pm

[QUOTE=Meanz;523322]Okay, im here SHOW you how to make the interfaces.
I am not explaining how to do this i am just SHOWING.

1. Find this
Code:
interfaceCache = new RSInterface[j];

replace with
Code:
interfaceCache = new RSInterface[20001];

2. find
Code:
        aMRUNodes_238 = null;
under add:
Code:

aClass44 = streamLoader;
MyInterface();

3. declare this
Code:
public streamLoader aClass44;

4. add this
Code:
    public static void addSpellClick(int id, int spriteOnId, int spriteOffId, String castText)
    {
       RSInterface spell = interfaceCache[id] = new RSInterface();
       spell.id = id;//250
        spell.parentID = id;//236
        spell.type = 5;//262
        spell.atActionType = 1;//217
        spell.anInt214 = 0;
        spell.width = 20;//220
        spell.height = 20;//anint267
        spell.aByte254 = (byte)0;
        spell.anInt230 = 52;
         //Sprite
         spell.sprite1 = method207(spriteOnId, false, aClass44, "magicon2");
         spell.sprite2 = method207(spriteOffId, false, aClass44, "magicon2");
         spell.tooltip = castText;
   }
   public static RSInterface addTab(int id)
   {
       RSInterface Tab = interfaceCache[id] = new RSInterface();
       Tab.id = id;//250
        Tab.parentID = id;//236
        Tab.type = 0;//262
        Tab.atActionType = 0;//217
        Tab.anInt214 = 0;
        Tab.width = 512;//220
        Tab.height = 334;//anint267
        Tab.aByte254 = (byte)0;
        Tab.anInt230 = 0;
        return Tab;
   }

5. add this

Code:

public static void MyInterface()
{
RSInterface Tab = addTab(19000);
addSpellClick(19001, 25, 25, "My Custom Spell");
        Tab.scrollMax = 0;
        Tab.aBoolean266 = false;
        Tab.children = new int[1]; //Interface id
        Tab.childX = new int[1]; //X pos
        Tab.childY = new int[1]; //Y pos

           Tab.children[0] = 19001; //Interface id
           Tab.childX[0] = 5; //X pos
           Tab.childY[0] = 5; //Y pos
}


Now to use this simply change some of your server side interface configurations.. Hint: setinterface Surprised

Note that his is the hardcoding way... Enjoy

and please dont pm me about this, the reason i am releasing is because i got spammed by pms -.-

And btw there is a small anti leech Wink


Image:

the tut for making interface Stolenpices8

Thanks Zee_Best




--- Non Renamed, Thanks Reaper ---


1. Find this

Code:
aClass9Array210 = new Class9[j];

replace with

Code:

aClass9Array210 = new Class9[20001];

2. find

Code:
        aClass12_238 = null;

under add:

Code:
aClass44 = Class44;
MyInterface();

3. declare this

Code:
public Class44 aClass44;

4. add this

Code:

    public static void addSpellClick(int id, int spriteOnId, int spriteOffId, String castText)
    {
       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, "magicon2");
         spell.aClass30_Sub2_Sub1_Sub1_260 = method207(spriteOffId, false, aClass44, "magicon2");
         spell.aString221 = castText;
   }
   public static Class9 addTab(int id)
   {
       Class9 Tab = aClass9Array210[id] = new Class9();
       Tab.anInt250 = id;//250
        Tab.anInt236 = id;//236
        Tab.anInt262 = 0;//262
        Tab.anInt217 = 0;//217
        Tab.anInt214 = 0;
        Tab.anInt220 = 512;//220
        Tab.anInt267 = 334;//anint267
        Tab.aByte254 = (byte)0;
        Tab.anInt230 = 0;
        return Tab;
   }
5. add this

Code:

public static void MyInterface()
{
Class9 Tab = addTab(19000);
addSpellClick(19001, 25, 25, "My Custom Spell");
        Tab.anInt261 = 0;
        Tab.aBoolean266 = false;
        Tab.anIntArray240 = new int[1]; //Interface id
        Tab.anIntArray241 = new int[1]; //X pos
        Tab.anIntArray272 = new int[1]; //Y pos

           Tab.anIntArray240[0] = 19001; //Interface id
           Tab.anIntArray241[0] = 5; //X pos
           Tab.anIntArray272[0] = 5; //Y pos
}
[/QUOTE]
Back to top Go down
Mod Wouter
Global Moderator
Global Moderator



Number of posts : 52
Registration date : 2008-08-08

the tut for making interface Empty
PostSubject: Re: the tut for making interface   the tut for making interface Icon_minitimeSun Aug 10, 2008 1:59 pm

Nice post i knew this already but i made full lunar interface with it Razz
Back to top Go down
Evil Mage
Admin
Admin
Evil Mage


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

the tut for making interface Empty
PostSubject: Re: the tut for making interface   the tut for making interface Icon_minitimeMon Aug 11, 2008 4:04 am

lmfao ive been looking for this for time cos i wanted to make a luner interface. fancy sending it me to save me some time lol
Back to top Go down
Mod Wouter
Global Moderator
Global Moderator



Number of posts : 52
Registration date : 2008-08-08

the tut for making interface Empty
PostSubject: Re: the tut for making interface   the tut for making interface Icon_minitimeMon Aug 11, 2008 5:52 am

I search for it dono if i still got otherwise i make a new one Razz

i lost maybe due computer crash

And BTW u cant use this tut cuz its for a renamed u need a non-renamed tut prob(as you client is prob)

Look here http://www.rune-server.org/showthread.php?t=62816

scroll down till you see non-renamed
Back to top Go down
Evil Mage
Admin
Admin
Evil Mage


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

the tut for making interface Empty
PostSubject: Re: the tut for making interface   the tut for making interface Icon_minitimeMon Aug 11, 2008 6:11 am

yer i seen it but i dont now were to declare stuff in the clients i now in servers but clients confuse me a little

also cna u find a tut on how to make npcs walk to u when ranged
Back to top Go down
Mod Wouter
Global Moderator
Global Moderator



Number of posts : 52
Registration date : 2008-08-08

the tut for making interface Empty
PostSubject: Re: the tut for making interface   the tut for making interface Icon_minitimeMon Aug 11, 2008 6:30 am

sure i find and btw heres a pic of my custom interface


the tut for making interface Custominterfacegz5
the tut for making interface Custominterfacegz5.b5ed516c55

and btw the tut on rune-server contains anti-leeches that are hard to fix so heres tut the right way

FIND THIS:

aClass9Array210 = new Class9[j];

REPLACE WITH:

aClass9Array210 = new Class9[20001];

FIND:

aClass12_238 = null;

ABOVE ADD:

aClass44 = class44;
MyInterface();

DECLARE THIS: (just add above of the page between all statics and publics)

static Class44 aClass44;

ADD THIS TO YOUR VOIDS:
public static void addSpellClick(int id, int spriteOnId, int spriteOffId, String castText)
{
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, "magicon2");
spell.aClass30_Sub2_Sub1_Sub1_260 = method207(spriteOffId, false, aClass44, "magicon2");
spell.aString221 = castText;
}
public static Class9 addTab(int id)
{
Class9 Tab = aClass9Array210[id] = new Class9();
Tab.anInt250 = id;//250
Tab.anInt236 = id;//236
Tab.anInt262 = 0;//262
Tab.anInt217 = 0;//217
Tab.anInt214 = 0;
Tab.anInt220 = 512;//220
Tab.anInt267 = 334;//anint267
Tab.aByte254 = (byte)0;
Tab.anInt230 = 0;
return Tab;
}

AND

public static void MyInterface()
{
Class9 Tab = addTab(19000);
addSpellClick(19001, 25, 25, "My Custom Spell");
Tab.anInt261 = 0;
Tab.aBoolean266 = false;
Tab.anIntArray240 = new int[1]; //Interface id
Tab.anIntArray241 = new int[1]; //X pos
Tab.anIntArray272 = new int[1]; //Y pos

Tab.anIntArray240[0] = 19001; //Interface id
Tab.anIntArray241[0] = 5; //X pos
Tab.anIntArray272[0] = 5; //Y pos
}

Then ur done

Credits 50% Meanz
50% Me for edditing and taking out anti-leech

EDIT: i Found a working following tut u need to add so it follows when u attk npcs (players is already in it)

http://www.rune-server.org/showthread.php?t=53916
Back to top Go down
Sponsored content





the tut for making interface Empty
PostSubject: Re: the tut for making interface   the tut for making interface Icon_minitime

Back to top Go down
 
the tut for making interface
Back to top 
Page 1 of 1
 Similar topics
-
» Godsword + dfs making Tut
» added interface
» luner interface
» my very own tut i made for making client have a veng skull :D

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