Looks very nice, good job
|
IF it did not work for you re-do it! Updated - August 31, 2009
Well since I hated the one that Regular PC Reward Interface I just started to make this interface, so hope you enjoy it...
Purpose: To make a Custom Pc reward Interface.
Difficulty: 0-2/10
Tested On: Bluurr's Client (Should work on all Non-Renamed clients).
Interface ID - 14400
If you convert to RENAMED please don't release just post it here and I'll give credit!
Download Sprites Here
In class9 add...
^loading pathCode:public static String PCSprite = "./Files/Spirts/PestControl/";
MethodsCode:public static void pestreward(Class30_Sub2_Sub1_Sub4[] wid) { Class9 class9 = addTab(14400); addPCSprite(14401, 1, 1, "Sprite");//screen addText(14403, "Void Knight Point Exchange", wid, 2, 0xe4a146); addText(14405, "Top", wid, 0, 0xe4a146); addText(14406, "40 Prayer", wid, 0, 0xe4a146); addText(14407, "40 Defence", wid, 0, 0xe4a146); addText(14408, "250 Points", wid, 0, 0xe4a146); addText(14410, "Bottoms", wid, 0, 0xe4a146); addText(14411, "40 Prayer", wid, 0, 0xe4a146); addText(14412, "40 Defence", wid, 0, 0xe4a146); addText(14413, "250 Points", wid, 0, 0xe4a146); addText(14415, "Gloves", wid, 0, 0xe4a146); addText(14416, "40 Prayer", wid, 0, 0xe4a146); addText(14417, "40 Defence", wid, 0, 0xe4a146); addText(14418, "150 Points", wid, 0, 0xe4a146); addText(14420, "Mace", wid, 0, 0xe4a146); addText(14421, "40 Attack", wid, 0, 0xe4a146); addText(14422, "40 Magic", wid, 0, 0xe4a146); addText(14423, "250 Points", wid, 0, 0xe4a146); addText(14425, "Melee", wid, 0, 0xe4a146); addText(14426, "40 Attack", wid, 0, 0xe4a146); addText(14427, "40 Defence", wid, 0, 0xe4a146); addText(14428, "200 Points", wid, 0, 0xe4a146); addText(14430, "Range", wid, 0, 0xe4a146); addText(14431, "40 Range", wid, 0, 0xe4a146); addText(14432, "40 Defence", wid, 0, 0xe4a146); addText(14433, "200 Points", wid, 0, 0xe4a146); addText(14435, "Mage", wid, 0, 0xe4a146); addText(14436, "40 Magic", wid, 0, 0xe4a146); addText(14437, "40 Defence", wid, 0, 0xe4a146); addText(14438, "200 Points", wid, 0, 0xe4a146); addText(14439, "Information: You still need more levels to", wid, 0, 0xe4a146); addText(14440, "wear void armour.", wid, 0, 0xe4a146); addText(14442, "Points: 0", wid, 0, 0xe4a146); addText(14443, "Spending: 100", wid, 0, 0xe4a146); addText(14444, "Accept", wid, 1, 0x00C000); addPCButton(14402, 9, 9, 16, 16, "Close Window"); /*addActionButton(ID, SpriteON, SpriteOFF, SpriteX, SpriteY, "SpriteText");*/ addPCButton(14404, 8, 8, 61, 72, "Buy Void Knight Top"); addPCButton(14409, 2, 2, 61, 72, "Buy Void Knight Bottom"); addPCButton(14414, 3, 3, 61, 72, "Buy Void Knight Gloves"); addPCButton(14419, 7, 7, 61, 72, "Buy Void Knight Mace"); addPCButton(14424, 4, 4, 61, 72, "Buy Void Melee Helmet"); addPCButton(14429, 6, 6, 61, 72, "Buy Void Range Helmet"); addPCButton(14434, 5, 5, 61, 72, "Buy Void Mage Helmet"); addPCButton(14441, 10, 10, 72, 32, "Accept"); class9.anInt261 = 0; class9.aBoolean266 = false; class9.anIntArray240 = new int[44]; class9.anIntArray241 = new int[44]; class9.anIntArray272 = new int[44]; class9.anIntArray240[0] = 14401;//screen class9.anIntArray241[0] = 4; class9.anIntArray272[0] = 15; class9.anIntArray240[1] = 14402;//close class9.anIntArray241[1] = 482; class9.anIntArray272[1] = 22; class9.anIntArray240[2] = 14403;//title class9.anIntArray241[2] = 156; class9.anIntArray272[2] = 28; class9.anIntArray240[3] = 14404;//void class9.anIntArray241[3] = 29; class9.anIntArray272[3] = 54; class9.anIntArray240[4] = 14405;//text class9.anIntArray241[4] = 52; class9.anIntArray272[4] = 58; class9.anIntArray240[5] = 14406;//text class9.anIntArray241[5] = 34; class9.anIntArray272[5] = 97; class9.anIntArray240[6] = 14407;//text class9.anIntArray241[6] = 34; class9.anIntArray272[6] = 110; class9.anIntArray240[7] = 14408;//text class9.anIntArray241[7] = 32; class9.anIntArray272[7] = 129; class9.anIntArray240[8] = 14409;//void class9.anIntArray241[8] = 93; class9.anIntArray272[8] = 54; class9.anIntArray240[9] = 14410;//text class9.anIntArray241[9] = 105; class9.anIntArray272[9] = 58; class9.anIntArray240[10] = 14411;//text class9.anIntArray241[10] = 98; class9.anIntArray272[10] = 97; class9.anIntArray240[11] = 14412;//text class9.anIntArray241[11] = 98; class9.anIntArray272[11] = 110; class9.anIntArray240[12] = 14413;//text class9.anIntArray241[12] = 95; class9.anIntArray272[12] = 129; class9.anIntArray240[13] = 14414;//void class9.anIntArray241[13] = 157; class9.anIntArray272[13] = 54; class9.anIntArray240[14] = 14415;//text class9.anIntArray241[14] = 170; class9.anIntArray272[14] = 58; class9.anIntArray240[15] = 14416;//text class9.anIntArray241[15] = 162; class9.anIntArray272[15] = 97; class9.anIntArray240[16] = 14417;//text class9.anIntArray241[16] = 162; class9.anIntArray272[16] = 110; class9.anIntArray240[17] = 14418;//text class9.anIntArray241[17] = 159; class9.anIntArray272[17] = 129; class9.anIntArray240[18] = 14419;//void class9.anIntArray241[18] = 221; class9.anIntArray272[18] = 54; class9.anIntArray240[19] = 14420;//text class9.anIntArray241[19] = 242; class9.anIntArray272[19] = 58; class9.anIntArray240[20] = 14421;//text class9.anIntArray241[20] = 226; class9.anIntArray272[20] = 97; class9.anIntArray240[21] = 14422;//text class9.anIntArray241[21] = 226; class9.anIntArray272[21] = 110; class9.anIntArray240[22] = 14423;//text class9.anIntArray241[22] = 223; class9.anIntArray272[22] = 129; class9.anIntArray240[23] = 14424;//void class9.anIntArray241[23] = 285; class9.anIntArray272[23] = 54; class9.anIntArray240[24] = 14425;//text class9.anIntArray241[24] = 302; class9.anIntArray272[24] = 58; class9.anIntArray240[25] = 14426;//text class9.anIntArray241[25] = 290; class9.anIntArray272[25] = 97; class9.anIntArray240[26] = 14427;//text class9.anIntArray241[26] = 290; class9.anIntArray272[26] = 110; class9.anIntArray240[27] = 14428;//text class9.anIntArray241[27] = 287; class9.anIntArray272[27] = 129; class9.anIntArray240[28] = 14429;//void class9.anIntArray241[28] = 349; class9.anIntArray272[28] = 54; class9.anIntArray240[29] = 14430;//text class9.anIntArray241[29] = 364; class9.anIntArray272[29] = 58; class9.anIntArray240[30] = 14431;//text class9.anIntArray241[30] = 354; class9.anIntArray272[30] = 97; class9.anIntArray240[31] = 14432;//text class9.anIntArray241[31] = 354; class9.anIntArray272[31] = 110; class9.anIntArray240[32] = 14433;//text class9.anIntArray241[32] = 351; class9.anIntArray272[32] = 129; class9.anIntArray240[33] = 14434;//void class9.anIntArray241[33] = 413; class9.anIntArray272[33] = 54; class9.anIntArray240[34] = 14435;//text class9.anIntArray241[34] = 430; class9.anIntArray272[34] = 58; class9.anIntArray240[35] = 14436;//text class9.anIntArray241[35] = 418; class9.anIntArray272[35] = 97; class9.anIntArray240[36] = 14437;//text class9.anIntArray241[36] = 418; class9.anIntArray272[36] = 110; class9.anIntArray240[37] = 14438;//text class9.anIntArray241[37] = 415; class9.anIntArray272[37] = 129; /*Box*/ class9.anIntArray240[38] = 14439;//text class9.anIntArray241[38] = 162; class9.anIntArray272[38] = 211; class9.anIntArray240[39] = 14440;//text class9.anIntArray241[39] = 220; class9.anIntArray272[39] = 224; class9.anIntArray240[40] = 14441;//accept class9.anIntArray241[40] = 285; class9.anIntArray272[40] = 235; class9.anIntArray240[41] = 14442;//text class9.anIntArray241[41] = 180; class9.anIntArray272[41] = 240; class9.anIntArray240[42] = 14443;//text class9.anIntArray241[42] = 180; class9.anIntArray272[42] = 255; class9.anIntArray240[43] = 14444;//text class9.anIntArray241[43] = 302; class9.anIntArray272[43] = 243; }
Under aClass44 = aClass44; add...Code:public static void addPCSprite(int i, int j, int k, String s) { Class9 class9 = aClass9Array210[i] = new Class9(); class9.anInt250 = i; class9.anInt236 = i; class9.anInt262 = 5; class9.anInt217 = 1; class9.anInt214 = 0; class9.anInt220 = 1; class9.anInt267 = 1; class9.aByte254 = 0; class9.anInt230 = 52; class9.aClass30_Sub2_Sub1_Sub1_207 = PCLoader(j, "PEST"); class9.aClass30_Sub2_Sub1_Sub1_260 = PCLoader(k, "PEST"); class9.aString221 = s; } public static void addPCButton(int i, int j, int k, int width, int height, String s) { Class9 class9 = aClass9Array210[i] = new Class9(); class9.anInt250 = i; class9.anInt236 = i; class9.anInt262 = 5; class9.anInt217 = 1; class9.anInt214 = 0; class9.anInt220 = width; class9.anInt267 = height; class9.aByte254 = 0; class9.anInt230 = 52; class9.aClass30_Sub2_Sub1_Sub1_207 = PCLoader(j, "PEST"); class9.aClass30_Sub2_Sub1_Sub1_260 = PCLoader(k, "PEST"); class9.aString221 = s; } private static Class30_Sub2_Sub1_Sub1 PCLoader(int i, String s) { long l = (Class50.method585((byte)1, s) << 8) + (long)i; 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(PCSprite+""+s+" "+i+".png"); aClass12_238.method223(class30_sub2_sub1_sub1, l, (byte)2); } catch(Exception exception) { return null; } return class30_sub2_sub1_sub1; } public static void addText(int id, String text, Class30_Sub2_Sub1_Sub4 wid[], int idx, int color) { Class9 Tab = addTab(id); Tab.anInt250 = id; Tab.anInt236 = id; Tab.anInt262 = 4; Tab.anInt217 = 0; Tab.anInt220 = 174; Tab.anInt267 = 11; Tab.anInt214 = 0; Tab.aByte254 = 0; Tab.anInt230 = -1; Tab.aBoolean223 = false; Tab.aBoolean268 = true; Tab.aClass30_Sub2_Sub1_Sub4_243 = wid[idx]; Tab.aString248 = text; Tab.aString228 = ""; Tab.anInt232 = color; Tab.anInt219 = 0; Tab.anInt216 = 0; Tab.anInt239 = 0; }
Your all done now GOODJOB!Code:pestreward(aclass30_sub2_sub1_sub4);
GALKONS REFACTORED - BY: A nipple
Server Side
(only for delta)
In player.java add
(might only need public int chosen = 0;Code:public int pcPoints; public int option; public int chosen = 0;
ALERT - Process!
Search for process() and under that line add...
IDK if you need this or not but add...Code:sendQuest("Points: "+pcPoints+" ", 14442); sendQuest("Spending: "+chosen+"", 14443);
In texthandler.javaCode:c.sendQuest("Points: "+c.pcPoints+" ", 14442); c.sendQuest("Spending: "+c.chosen+"", 14443);
Now last Part in ClickingMost.java delete your pc interface triggers and add this one...
(I know it's longer than it should be but I don't care)Code:case 56066: c.closeInterface(); c.chosen -= c.chosen; break; case 56068: c.option = 1; c.chosen = 250; c.sM("You choose the Void Knight Top."); break; case 56073: c.option = 2; c.chosen = 250; c.sM("You choose the Void Knight Bottoms."); break; case 56078: c.option = 3; c.chosen = 150; c.sM("You choose the Void Knight Gloves."); break; case 56083: //c.option = 4; //c.chosen = 250; c.chosen = 0; c.sM("Void mace is unavailable."); break; case 56088: c.option = 5; c.chosen = 200; c.sM("You choose the Void Knight Melee helm."); break; case 56093: c.option = 6; c.chosen = 200; c.sM("You choose the Void Knight Range helm."); break; case 56098: c.option = 7; c.chosen += 200; c.sM("You choose the Void Knight Mage helm."); break; //void knights case 56105: if(c.option == 0 || c.chosen == 0){ if(System.currentTimeMillis() - c.lastAction > c.actionInterval) { c.sM("You have not chosen a reward!"); c.actionInterval = 6000; c.lastAction = System.currentTimeMillis(); }} if(c.option == 1 && c.pcPoints > 249 && System.currentTimeMillis() - c.lastAction > c.actionInterval){ c.addItem(2520, 1); c.pcPoints -= 250; c.closeInterface(); c.chosen -= c.chosen; c.actionInterval = 6000; c.lastAction = System.currentTimeMillis(); } if(c.option == 1 && c.pcPoints < 250 && System.currentTimeMillis() - c.lastAction > c.actionInterval){ c.sM("You do not have enough points!"); c.actionInterval = 6000; c.lastAction = System.currentTimeMillis(); } if(c.option == 2 && c.pcPoints > 249 && System.currentTimeMillis() - c.lastAction > c.actionInterval){ c.addItem(2522, 1); c.pcPoints -= 250; c.closeInterface(); c.chosen -= c.chosen; c.actionInterval = 6000; c.lastAction = System.currentTimeMillis(); } if(c.option == 2 && c.pcPoints < 250 && System.currentTimeMillis() - c.lastAction > c.actionInterval){ c.sM("You do not have enough points!"); c.actionInterval = 6000; c.lastAction = System.currentTimeMillis(); } if(c.option == 3 && c.pcPoints > 149 && System.currentTimeMillis() - c.lastAction > c.actionInterval){ c.addItem(2528, 1); c.pcPoints -= 150; c.closeInterface(); c.chosen -= c.chosen; c.actionInterval = 6000; c.lastAction = System.currentTimeMillis(); } if(c.option == 3 && c.pcPoints < 150 && System.currentTimeMillis() - c.lastAction > c.actionInterval){ c.sM("You do not have enough points!"); c.actionInterval = 6000; c.lastAction = System.currentTimeMillis(); } /*if(c.option == 4 && c.pcPoints > 249 && System.currentTimeMillis() - c.lastAction > c.actionInterval){ c.addItem( , ); c.pcPoints -= 250; c.closeInterface(); c.chosen -= c.chosen; c.actionInterval = 6000; c.lastAction = System.currentTimeMillis(); } if(c.option == 4 && c.pcPoints < 250 && System.currentTimeMillis() - c.lastAction > c.actionInterval){ c.sM("You do not have enough points!"); c.actionInterval = 6000; c.lastAction = System.currentTimeMillis(); }*/ if(c.option == 5 && c.pcPoints > 199 && System.currentTimeMillis() - c.lastAction > c.actionInterval){ c.addItem(2526, 1); c.pcPoints -= 200; c.closeInterface(); c.chosen -= c.chosen; c.actionInterval = 6000; c.lastAction = System.currentTimeMillis(); } if(c.option == 5 && c.pcPoints < 200 && System.currentTimeMillis() - c.lastAction > c.actionInterval){ c.sM("You do not have enough points!"); c.actionInterval = 6000; c.lastAction = System.currentTimeMillis(); } if(c.option == 6 && c.pcPoints > 199 && System.currentTimeMillis() - c.lastAction > c.actionInterval){ c.addItem(2524, 1); c.pcPoints -= 200; c.closeInterface(); c.chosen -= c.chosen; c.actionInterval = 6000; c.lastAction = System.currentTimeMillis(); } if(c.option == 6 && c.pcPoints < 200 && System.currentTimeMillis() - c.lastAction > c.actionInterval){ c.sM("You do not have enough points!"); c.actionInterval = 6000; c.lastAction = System.currentTimeMillis(); } if(c.option == 7 && c.pcPoints > 199 && System.currentTimeMillis() - c.lastAction > c.actionInterval){ c.addItem(2518, 1); c.pcPoints -= 200; c.closeInterface(); c.chosen -= c.chosen; c.actionInterval = 6000; c.lastAction = System.currentTimeMillis(); } if(c.option == 7 && c.pcPoints < 200 && System.currentTimeMillis() - c.lastAction > c.actionInterval){ c.sM("You do not have enough points!"); c.actionInterval = 6000; c.lastAction = System.currentTimeMillis(); }
Credits -
Poisoned I V
Looks very nice, good job
PLEASE make a harder anti-leech. I knew EXACTLY what to look for when I saw that you had anti-leech in it, only took me a matter of seconds lol.
On topic: This interface is SEXY, good job. Non-renamed though, it's a shame it isn't renamed .
PS: Void is 42 defence etc, not 40 .
I know anti is easy I don't want newbies to get this interface and if someone says fix i'm changing it to another "easy" anti leech lol.
Nice, i like it
Why didn't you just make the real one?
Thats not antileech. He is using commenting to describe the usage of his method.
This is the antileech:
Arrays start at an index of "0". He uses 44. So the new int[43] should be 44. Enjoy.Code:class9.anIntArray240 = new int[43]; class9.anIntArray241 = new int[43]; class9.anIntArray272 = new int[43];
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |