- Joined
- Apr 6, 2009
- Messages
- 4,158
- Points
- 38
Anybody can use this. I'll include autospawn, drops, skill menu, interface, and player/client/ all that jazz.
This is 100% noob proof. Copy it into the designated area, compile. Add the shopkeeper, item requirements(for shop), premium and non-premium.
Pictures:
The big black line indicates where your name will be after you edit 'Daft_Punk' in the interface.
Skill Menu
Player.java:
Client.java: (You should already have something like this)
Interface:
NPCHandler:
This is 100% noob proof. Copy it into the designated area, compile. Add the shopkeeper, item requirements(for shop), premium and non-premium.
Pictures:
The big black line indicates where your name will be after you edit 'Daft_Punk' in the interface.
Skill Menu
Code:
public class SkillMenues {
private int item[] = new int[40];
public void SlayerTab1(int ID) {
client c = (client) server.playerHandler.players[ID];
if (c.SkillTab == 0) {
for (int i = 0;i<31;i++) {
item[i] = 0;
}
item[0] = 4521;
item[1] = 4133;
item[2] = 4133;
item[3] = 4135;
item[4] = 4136;
item[5] = 4137;
item[6] = 7050;
item[7] = 4139;
item[8] = 4140;
item[9] = 4142;
item[10] = 4145;
item[11] = 4144;
item[12] = 4148;
item[13] = 4149;
item[14] = 6811;
item[15] = 6637;
SlayerSkillMenu(ID, 0, item);
}
}
public void SlayerSkillMenu(int ID, int SkillTab, int id[]) {
client c = (client) server.playerHandler.players[ID];
if (System.currentTimeMillis() - c.lastAct > 2000) {
c.lastAct = System.currentTimeMillis();
c.sendFrame126("@dre@Slayer", 8716);
c.skillInterface = 18;
for (int i = 8720;i<8799;i++) {
c.sendFrame126("",i);
}
c.sendFrame126("@whi@Slayer Tower", 8849);
c.sendFrame126("Level", 8718);
c.sendFrame126("Advancement", 8719);
c.sendFrame126("1", 8720);
c.sendFrame126("Cave Bug", 8760);
c.sendFrame126("5", 8721);
c.sendFrame126("Crawling Hand Lvl 8", 8761);
c.sendFrame126("7", 8722);
c.sendFrame126("Crawling Hand Lvl 12", 8762);
c.sendFrame126("15", 8723);
c.sendFrame126("Banshee", 8763);
c.sendFrame126("20", 8724);
c.sendFrame126("Rockslug", 8764);
c.sendFrame126("25", 8725);
c.sendFrame126("Cockatrice", 8765);
c.sendFrame126("33", 8726);
c.sendFrame126("Harpie Bug Spawn", 8766);
c.sendFrame126("40", 8727);
c.sendFrame126("Basilisk", 8767);
c.sendFrame126("45", 8728);
c.sendFrame126("Infernal Mage", 8768);
c.sendFrame126("52", 8729);
c.sendFrame126("Jelly", 8769);
c.sendFrame126("60", 8730);
c.sendFrame126("Dust Devil", 8770);
c.sendFrame126("65", 8731);
c.sendFrame126("Aberrant Sceptre", 8771);
c.sendFrame126("72", 8732);
c.sendFrame126("Nechyraels", 8772);
c.sendFrame126("80", 8733);
c.sendFrame126("Abyssal Demon", 8773);
c.sendFrame126("85", 8734);
c.sendFrame126("Skeletal wyvern", 8774);
c.sendFrame126("90", 8735);
c.sendFrame126("Dark Beast", 8775);
c.sendFrame126("", 8736);
c.sendFrame126("", 8776);
c.sendFrame126("", 8737);
c.sendFrame126("", 8777);
c.sendFrame126("", 8738);
c.sendFrame126("", 8778);
c.sendFrame126("", 8739);
c.sendFrame126("", 8779);
c.sendFrame126("", 8740);
c.sendFrame126("", 8780);
c.sendFrame126("", 8741);
c.sendFrame126("", 8781);
c.sendFrame126("", 8742);
c.sendFrame126("", 8782);
c.sendFrame126("", 8743);
c.sendFrame126("", 8783);
c.sendFrame126("", 8744);
c.sendFrame126("", 8784);
c.sendFrame126("", 8745);
c.sendFrame126("", 8785);
c.sendFrame126("", 8746);
c.sendFrame126("", 8786);
c.sendFrame126("", 8747);
c.sendFrame126("", 8787);
c.sendFrame126("", 8748);
c.sendFrame126("", 8788);
c.sendFrame126("", 8749);
c.sendFrame126("", 8789);
c.sendFrame126("", 8750);
c.sendFrame126("", 8790);
c.sendFrame126("", 8751);
c.sendFrame126("", 8791);
c.sendFrame126("", 8752);
c.sendFrame126("", 8792);
c.sendFrame126("", 8753);
c.sendFrame126("", 8793);
c.sendFrame126("", 8754);
c.sendFrame126("", 8794);
c.sendFrame126("", 8755);
c.sendFrame126("", 8795);
c.sendFrame126("", 8756);
c.sendFrame126("", 8796);
c.sendFrame126("", 8757);
c.sendFrame126("", 8797);
c.sendFrame126("", 8758);
c.sendFrame126("", 8798);
c.sendFrame126("", 8759);
c.sendFrame126("", 8799);
c.sendQuest("Tower", 8846);
c.sendQuest("@red@", 8823);
c.sendQuest("@red@", 8824);
c.sendQuest("@red@", 8827);
c.sendQuest("@red@", 8837);
c.sendQuest("@red@", 8840);
c.sendQuest("@red@", 8843);
c.sendQuest("@red@", 8859);
c.sendQuest("@red@", 8862);
c.sendQuest("@red@", 8865);
c.sendQuest("@red@", 8862);
c.sendQuest("@red@", 15303);
c.sendQuest("@red@", 15306);
c.sendQuest("@red@", 15309);
c.sendSkillInterface(item);
c.showInterface(8714);
}
}
}
Player.java:
Code:
//SLAYER
public int SlayerPoints;
//END OF SLAYER
Client.java: (You should already have something like this)
Code:
case 18://Slayer
sendFrame164(12122);
sendFrame126("@blu@Congratulations, you just advanced a Slayer level.", 12123);
sendFrame126("Your Slayer level is now " + playerLevel[18] + ".",12124);
sendMessage("Congratulations, you just advanced a Slayer level.");
NpcDialogueSend = true;
break;
Interface:
Code:
public class Interfaces {
public void ServerHelp(int ID) {
client c = (client) server.playerHandler.players[ID];
c.sendFrame126("@dre@Rune-Aura - Server Menu", 8144);
c.clearQuestInterface();
c.sendFrame126("@dbl@Welcome to Rune-Aura", 8145);
c.sendFrame126("@dbl@@dre@~~~@dbl@", 8147);
c.sendFrame126("@dre@", 8149);
c.sendFrame126("@dre@Players online: @gre@"+ PlayerHandler.getPlayerCount(), 8150);
c.sendFrame126("@blu@", 8151);
c.sendFrame126("@red@Slayer Points- "+ c.SlayerPoints, 8152);
c.sendFrame126("@red@", 8153);
c.sendFrame126("@red@", 8154);
c.sendFrame126("@blu@Created by Daft_Punk", 8155);
c.sendFrame126("", 8156);
c.sendFrame126("", 8157);
c.sendFrame126("", 8158);
c.sendFrame126("", 8159);
c.sendFrame126("", 8160);
c.sendFrame126("", 8161);
c.sendFrame126("", 8162);
c.sendFrame126("", 8163);
c.sendFrame126("", 8164);
c.sendFrame126("", 8165);
c.sendFrame126("", 8166);
c.sendFrame126("", 8167);
c.sendFrame126("", 8168);
c.sendFrame126("", 8169);
c.sendFrame126("", 8170);
c.sendQuestSomething(8143);
c.showInterface(8134);
}
NPCHandler:
Code:
//Slayer
//First Level
if ((npcs[i].npcType == 1832)) {//Cave Bug
temp.addSkillXP(30, 18);
temp.SlayerPoints += 10;
temp.savegame(true);
} else
if ((npcs[i].npcType == 1648)) {//Crawling Hand Lvl 8
temp.addSkillXP(150, 18);
temp.SlayerPoints += 50;
temp.savegame(true);
} else
if ((npcs[i].npcType == 1653)) {//Crawling Hand Lvl 12
temp.addSkillXP(210, 18);
temp.SlayerPoints += 70;
temp.savegame(true);
} else
if ((npcs[i].npcType == 1612)) {//Banshee
temp.addSkillXP(450, 18);
temp.SlayerPoints += 150;
temp.savegame(true);
} else
if ((npcs[i].npcType == 1622)) {//Rockslug
temp.addSkillXP(600, 18);
temp.SlayerPoints += 200;
temp.savegame(true);
} else
if ((npcs[i].npcType == 1620)) {//Cockatrice
temp.addSkillXP(750, 18);
temp.SlayerPoints += 250;
temp.savegame(true);
} else
//Second Level
if ((npcs[i].npcType == 3153)) {//Harpie Bug Spawn
temp.addSkillXP(990, 18);
temp.SlayerPoints += 330;
temp.savegame(true);
} else
if ((npcs[i].npcType == 1616)) {//Basilisk
temp.addSkillXP(1200, 18);
temp.SlayerPoints += 400;
temp.savegame(true);
} else
if ((npcs[i].npcType == 1643)) {//Infernal Mage
temp.addSkillXP(1350, 18);
temp.SlayerPoints += 450;
temp.savegame(true);
} else
if ((npcs[i].npcType == 1637)) {//Jelly
temp.addSkillXP(1560, 18);
temp.SlayerPoints += 520;
temp.savegame(true);
} else
if ((npcs[i].npcType == 1624)) {//Dust Devil
temp.addSkillXP(1800, 18);
temp.SlayerPoints += 600;
temp.savegame(true);
} else
//Third Level
if ((npcs[i].npcType == 1604)) {//Aberrant Sceptre
temp.addSkillXP(1950, 18);
temp.SlayerPoints += 650;
temp.savegame(true);
} else
if ((npcs[i].npcType == 1613)) {//Nechryael
temp.addSkillXP(2160, 18);
temp.SlayerPoints += 720;
temp.savegame(true);
} else
if ((npcs[i].npcType == 1615)) {//Abyssal Demon
temp.addSkillXP(2400, 18);
temp.SlayerPoints += 800;
temp.savegame(true);
} else
if ((npcs[i].npcType == 3068)) {//Skeletal Wyvern
temp.addSkillXP(2550, 18);
temp.SlayerPoints += 850;
temp.savegame(true);
} else
if ((npcs[i].npcType == 2783)) {//Dark Beast
temp.addSkillXP(2700, 18);
temp.SlayerPoints += 900;
temp.savegame(true);
} else
//End of Slayer