And the method which adds your character to an interface:
Code:
/**
* Adds your current character to an interface.
*/
public void addChar(int ID) {
RSInterface rsi = interfaceCache[ID] = new RSInterface();
rsi.id = id;
rsi.parentID = ID;
rsi.type = 6;
rsi.atActionType = 0;
rsi.contentType = 328;
rsi.width = 136;
rsi.height = 168;
rsi.aByte254 = 0;
rsi.mOverInterToTrigger = 0;
rsi.modelZoom = 650;
rsi.modelRotation1 = 150;
rsi.modelRotation2 = 0;
rsi.anInt257 = -1;
rsi.anInt258 = -1;
}
If you do not wish to add your sprites into sub folders, then you will have to remove this: rsi.addActionButton(15101, 15101, 15101, 150, 40, "Show Equipment Screen", "equipment");
Here are my methods and what I've edited, I've also changed the location variable in the Sprite class to:
Code:
public String location = "./cache/sprites/";
I suggest you do so unless you want to edit the path to the sprites.
Alternatively, you can just put your sprites into the sprites folder and you won't need to replace any methods.
Now you can either execute the button server or client sided, I prefer client sided, so that's the way I'll show you. Open your client class and find 'if (l == 315) {'Below the switch, add these(I can't figure out a way to close the interface with the tabs showing back up):
Code:
/*
* Equipment interface.
*/
case 15101:
sendFrame248(15106, 3213);
method60(15106);
inputTaken = true;
break;
/*
* Equipment interface close button.
*/
case 15108:
sendFrame248(-1, 3213);
drawTabArea();
break;
Here's the text IDs for them if you feel like doing it server sided:
Finally, here are the sprites: [Only registered and activated users can see links. ]
I'm pretty sure that's it..I don't think I left any methods out, if I did let me know.
Spoiler for Permission:
Originally Posted by Primadude
Originally Posted by Aeterna
Originally Posted by Galkon
Originally Posted by Aeterna
Hi, I was wondering if I was allowed to release something I got from the iClarity client and converted to your base (his equipment tab) if I gave him credits and removed upon his request, or do I need permission from him first?
You would need his permission.
Could I release it? I'm sick of all these new-era equipment tabs with custom buttons.
Sure.
[Only registered and activated users can see links. ]
Why didn't you use the correct lines for the equipment stats?? At least help the dumb people who can't get it right...
Can I make this shorter for you and fix the lines? This is really bugging me as it's for Galkon's Refactored and his client is supposed to have shorter codes.
Why didn't you use the correct lines for the equipment stats?? At least help the dumb people who can't get it right...
Can I make this shorter for you and fix the lines? This is really bugging me as it's for Galkon's Refactored and his client is supposed to have shorter codes.
Go for it lol, I'll just add it to the topic, and I added it to the topic 2pro.
Originally Posted by King Ecstasy'
Thanks bro, I wanted this bad.
No problem
[Only registered and activated users can see links. ]