Daft's Slayer - Devo

Banana

Losm
Old School
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:

zmanslay.png

logingggggg.jpg


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
 
ObjectClicking(Should already have)


Code:
//Slayer Tower
				//Stairs
				//Stairs Height 0
				if (objectID == 4493) {
					if (objectX == 3434 && objectY == 3537) {
						if (((c.absY >= 3536) && (c.absY <= 3539) && (c.absX <= 3438) && (c.absX >= 3433))) {
							c.teleportToX = 3433;
							c.teleportToY = 3537;
							c.heightLevel = 1;
						}
					}
				}
				if (objectID == 4494) {
					if (objectX == 3434 && objectY == 3537) {
						if (((c.absY >= 3536) && (c.absY <= 3539) && (c.absX <= 3435) && (c.absX >= 3433))) {
							c.teleportToX = 3438;
							c.teleportToY = 3537;
							c.heightLevel = 0;
						}
					}
				}
				//Stairs Height 1
				if (objectID == 4495) {
					if (objectX == 3413 && objectY == 3540) {
						if (((c.absY >= 3539) && (c.absY <= 3542) && (c.absX <= 3416) && (c.absX >= 3412))) {
							c.teleportToX = 3417;
							c.teleportToY = 3540;
							c.heightLevel = 2;
						}
					}
				}
				if (objectID == 4496) { 
					if (objectX == 3415 && objectY == 3540) {
						if (((c.absY >= 3539) && (c.absY <= 3542) && (c.absX <= 3417) && (c.absX >= 3416))) {
							c.teleportToX = 3412;
							c.teleportToY = 3540;
							c.heightLevel = 1;
						}
					}
				}
				//Spikey Chains
				//Spikey Chain Height 0
				if (objectID == 9319) {
					if (objectX == 3422 && objectY == 3550) {
						if (c.GoodDistance(c.absX, c.absY, objectX, objectY, 1) == true) {
							c.teleportToX = 3422;
							c.teleportToY = 3549;
							c.heightLevel = 1;
						}
					}
				}
				if (objectID == 9320) {
					if (objectX == 3422 && objectY == 3550) {
						if (c.GoodDistance(c.absX, c.absY, objectX, objectY, 1) == true) {
							c.teleportToX = 3422;
							c.teleportToY = 3549;
							c.heightLevel = 0;
						}
					}
				}
				//Spikey Chain Height 1
				if (objectID == 9319) {
					if (objectX == 3447 && objectY == 3576) {
						if (c.GoodDistance(c.absX, c.absY, objectX, objectY, 1) == true) {
							c.teleportToX = 3447;
							c.teleportToY = 3575;
							c.heightLevel = 2;
						}
					}
				}
				if (objectID == 9320) {
					if (objectX == 3447 && objectY == 3576) {
						if (c.GoodDistance(c.absX, c.absY, objectX, objectY, 1) == true) {
							c.teleportToX = 3447;
							c.teleportToY = 3575;
							c.heightLevel = 1;
						}
					}
				}
		//End of Slayer Tower
		//Barrows
			//Entrances
				if (objectID == 6771) {
					if (objectX == 3575 && objectY == 3298) {
						if (((c.absY >= 3297) && (c.absY <= 3301) && (c.absX <= 3577) && (c.absX >= 3574))) {
							c.teleportToX = 3556;
							c.teleportToY = 9718;
							c.heightLevel = -1;
						}
					}
				}
				if (objectID == 6773) {
					if (objectX == 3577 && objectY == 3283) {
						if (((c.absY >= 3282) && (c.absY <= 3286) && (c.absX <= 3579) && (c.absX >= 3576))) {
							c.teleportToX = 3534;
							c.teleportToY = 9704;
							c.heightLevel = 3;
						}
					}
				}
				if (objectID == 6772) {
					if (objectX == 3553 && objectY == 3283) {
						if (((c.absY >= 3282) && (c.absY <= 3286) && (c.absX <= 3555) && (c.absX >= 3552))) {
							c.teleportToX = 3568;
							c.teleportToY = 9683;
							c.heightLevel = 7;
						}
					}
				}
				if (objectID == 6822) {
					if (objectX == 3565 && objectY == 3275) {
						if (((c.absY >= 3274) && (c.absY <= 3278) && (c.absX <= 3567) && (c.absX >= 3564))) {
							c.teleportToX = 3546;
							c.teleportToY = 9684;
							c.heightLevel = 11;
						}
					}
				}
				if (objectID == 6823) {
					if (objectX == 3556 && objectY == 3297) {
						if (((c.absY >= 3296) && (c.absY <= 3300) && (c.absX <= 3558) && (c.absX >= 3555))) {
							c.teleportToX = 3578;
							c.teleportToY = 9706;
							c.heightLevel = 15;
						}
					}
				}
				if (objectID == 6821) {
					if (objectX == 3565 && objectY == 3288) {
						if (((c.absY >= 3287) && (c.absY <= 3291) && (c.absX <= 3567) && (c.absX >= 3564))) {
							c.teleportToX = 3557;
							c.teleportToY = 9703;
							c.heightLevel = 19;
						}
					}
				}
			//Exit
 
Autospawn:

Code:
//Slayer Tower
//Shops
spawn =	1699	3410	3549	0	3411	3550	3409	3548	1	Ghost Shopkeeper

//First Level
spawn = 1832	3425	3538	0	3426	3539	3424	3537	1	Cave Bug Lvl 6
spawn = 1832	3422	3538	0	3423	3539	3421	3537	1	Cave Bug Lvl 6
spawn = 1832	3422	3535	0	3423	3536	3421	3534	1	Cave Bug Lvl 6
spawn = 1832	3419	3537	0	3420	3538	3418	3536	1	Cave Bug Lvl 6
spawn = 1832	3416	3537	0	3417	3538	3415	3536	1	Cave Bug Lvl 6
spawn = 1832	3413	3537	0	3414	3538	3412	3536	1	Cave Bug Lvl 6
spawn = 1832	3411	3533	0	3412	3534	3410	3532	1	Cave Bug Lvl 6
spawn = 1832	3410	3540	0	3411	3541	3409	3539	1	Cave Bug Lvl 6
spawn = 1832	3408	3537	0	3409	3538	3407	3536	1	Cave Bug Lvl 6
spawn =	1832	3408	3534	0	3409	3535	3407	3533	1	Cave Bug Lvl 6

spawn = 1648	3427	3549	0	3428	3550	3426	3548	1	Crawling Hand Lvl 8
spawn = 1648	3427	3552	0	3428	3553	3426	3551	1	Crawling Hand Lvl 8
spawn = 1648	3428	3555	0	3429	3556	3427	3554	1	Crawling Hand Lvl 8
spawn = 1648	3417	3559	0	3418	3560	3416	3558	1	Crawling Hand Lvl 8
spawn = 1648	3425	3559	0	3426	3560	3424	3558	1	Crawling Hand Lvl 8
spawn = 1648	3424	3555	0	3425	3556	3423	3554	1	Crawling Hand Lvl 8
spawn = 1648	3420	3557	0	3421	3558	3419	3556	1	Crawling Hand Lvl 8
spawn = 1653	3414	3556	0	3415	3557	3413	3555	1	Crawling Hand Lvl 12
spawn = 1653	3412	3563	0	3413	3564	3411	3562	1	Crawling Hand Lvl 12
spawn = 1653	3413	3560	0	3414	3561	3412	3559	1	Crawling Hand Lvl 12

spawn = 1612	3410	3570	0	3411	3571	3409	3569	1	Banshee Lvl 23
spawn = 1612	3413	3570	0	3414	3571	3412	3569	1	Banshee Lvl 23
spawn = 1612	3418	3565	0	3418	3566	3417	3564	1	Banshee Lvl 23
spawn = 1612	3423	3565	0	3424	3566	3422	3564	1	Banshee Lvl 23
spawn = 1612	3423	3569	0	3424	3570	3422	3568	1	Banshee Lvl 23
spawn = 1612	3422	3574	0	3423	3575	3421	3573	1	Banshee Lvl 23
spawn = 1612	3417	3569	0	3418	3570	3416	3568	1	Banshee Lvl 23
spawn = 1612	3418	3573	0	3419	3574	3417	3572	1	Banshee Lvl 23
spawn = 1612	3411	3577	0	3412	3578	3410	3576	1	Banshee Lvl 23
spawn = 1612	3407	3574	0	3408	3575	3406	3573	1	Banshee Lvl 23

spawn =	1622	3428	3574	0	3429	3575	3427	3573	1	Rockslug Lvl 29
spawn =	1622	3432	3571	0	3433	3572	3431	3570	1	Rockslug Lvl 29
spawn =	1622	3440	3572	0	3441	3573	3439	3571	1	Rockslug Lvl 29
spawn =	1622	3446	3576	0	3447	3577	3445	3575	1	Rockslug Lvl 29
spawn =	1622	3448	3571	0	3449	3572	3447	3570	1	Rockslug Lvl 29
spawn =	1622	3447	3560	0	3448	3561	3446	3559	1	Rockslug Lvl 29
spawn =	1622	3442	3565	0	3443	3566	3441	3564	1	Rockslug Lvl 29
spawn =	1622	3429	3564	0	3430	3565	3428	3563	1	Rockslug Lvl 29
spawn =	1622	3437	3559	0	3438	3560	3436	3558	1	Rockslug Lvl 29
spawn =	1622	3434	3554	0	3435	3555	3433	3553	1	Rockslug Lvl 29

spawn = 1620	3446	3545	0	3447	3546	3445	3544	1	Cockatrice Lvl 37
spawn = 1620	3441	3548	0	3442	3549	3440	3547	1	Cockatrice Lvl 37
spawn = 1620	3442	3553	0	3443	3554	3441	3552	1	Cockatrice Lvl 37
spawn = 1620	3439	3544	0	3440	3545	3438	3543	1	Cockatrice Lvl 37
spawn = 1620	3441	3540	0	3442	3541	3440	3539	1	Cockatrice Lvl 37
spawn = 1620	3446	3539	0	3447	3540	3445	3538	1	Cockatrice Lvl 37
spawn = 1620	3450	3537	0	3451	3538	3449	3536	1	Cockatrice Lvl 37
spawn = 1620	3446	3534	0	3447	3535	3445	3533	1	Cockatrice Lvl 37
spawn = 1620	3436	3534	0	3437	3535	3435	3533	1	Cockatrice Lvl 37
spawn = 1620	3443	3536	0	3444	3537	3442	3535	1	Cockatrice Lvl 37

//Second Level
spawn =	3153	3446	3557	1	3447	3558	3445	3556	1	Harpie Bug Spawn Lvl 46
spawn =	3153	3445	3561	1	3446	3562	3444	3560	1	Harpie Bug Spawn Lvl 46
spawn =	3153	3446	3566	1	3447	3567	3445	3565	1	Harpie Bug Spawn Lvl 46
spawn =	3153	3444	3569	1	3445	3570	3443	3568	1	Harpie Bug Spawn Lvl 46
spawn =	3153	3447	3571	1	3448	3572	3446	3570	1	Harpie Bug Spawn Lvl 46
spawn =	3153	3450	3574	1	3451	3575	3449	3573	1	Harpie Bug Spawn Lvl 46
spawn =	3153	3442	3574	1	3443	3575	3441	3573	1	Harpie Bug Spawn Lvl 46
spawn =	3153	3438	3570	1	3439	3571	3437	3569	1	Harpie Bug Spawn Lvl 46
spawn =	3153	3436	3574	1	3437	3575	3435	3573	1	Harpie Bug Spawn Lvl 46

spawn =	1616	3432	3564	1	3433	3565	3431	3563	1	Basilisk Lvl 61
spawn =	1616	3433	3561	1	3434	3562	3432	3560	1	Basilisk Lvl 61
spawn =	1616	3432	3557	1	3433	3558	3431	3556	1	Basilisk Lvl 61
spawn =	1616	3436	3556	1	3437	3557	3435	3555	1	Basilisk Lvl 61
spawn =	1616	3440	3556	1	3441	3557	3439	3555	1	Basilisk Lvl 61
spawn =	1616	3441	3559	1	3442	3560	3440	3558	1	Basilisk Lvl 61
spawn =	1616	3439	3564	1	3440	3563	3438	3563	1	Basilisk Lvl 61
spawn =	1616	3437	3560	1	3438	3561	3436	3559	1	Basilisk Lvl 61
spawn =	1616	3436	3564	1	3437	3565	3435	3563	1	Basilisk Lvl 61

spawn =	1643	3427	3573	1	3428	3574	3426	3572	1	Infernal Mage Lvl 66
spawn =	1643	3423	3574	1	3424	3575	3422	3573	1	Infernal Mage Lvl 66
spawn =	1643	3420	3572	1	3421	3573	3419	3571	1	Infernal Mage Lvl 66
spawn =	1643	3415	3574	1	3416	3575	3414	3573	1	Infernal Mage Lvl 66
spawn =	1643	3410	3574	1	3411	3575	3409	3573	1	Infernal Mage Lvl 66
spawn =	1643	3409	3571	1	3410	3572	3408	3570	1	Infernal Mage Lvl 66
spawn =	1643	3411	3568	1	3412	3569	3410	3567	1	Infernal Mage Lvl 66
spawn =	1643	3412	3563	1	3413	3564	3411	3562	1	Infernal Mage Lvl 66
spawn =	1643	3411	3560	1	3412	3561	3410	3559	1	Infernal Mage Lvl 66

spawn =	1637	3416	3559	1	3417	3560	3415	3558	1	Jelly Lvl 78
spawn =	1637	3418	3562	1	3419	3563	3417	3561	1	Jelly Lvl 78
spawn =	1637	3417	3565	1	3418	3566	3416	3564	1	Jelly Lvl 78
spawn =	1637	3421	3566	1	3422	3567	3420	3565	1	Jelly Lvl 78
spawn =	1637	3426	3566	1	3427	3567	3425	3565	1	Jelly Lvl 78
spawn =	1637	3425	3562	1	3426	3563	3424	3561	1	Jelly Lvl 78
spawn =	1637	3427	3558	1	3428	3559	3426	3557	1	Jelly Lvl 78
spawn =	1637	3422	3558	1	3423	3559	3421	3557	1	Jelly Lvl 78

spawn =	1624	3428	3544	1	3429	3545	3427	3543	1	Dust Devil Lvl 93
spawn =	1624	3424	3544	1	3425	3545	3423	3543	1	Dust Devil Lvl 93
spawn =	1624	3426	3540	1	3427	3541	3425	3539	1	Dust Devil Lvl 93
spawn =	1624	3422	3537	1	3423	3538	3421	3536	1	Dust Devil Lvl 93
spawn =	1624	3415	3536	1	3416	3537	3414	3535	1	Dust Devil Lvl 93
spawn =	1624	3408	3534	1	3409	3535	3407	3533	1	Dust Devil Lvl 93
spawn =	1624	3413	3546	1	3414	3547	3412	3545	1	Dust Devil Lvl 93
spawn =	1624	3412	3551	1	3413	3552	3411	3550	1	Dust Devil Lvl 93

//Third Level
spawn =	1604	3448	3538	2	3449	3539	3447	3537	1	Aberrant Sceptre Lvl 96
spawn =	1604	3442	3537	2	3443	3538	3441	3536	1	Aberrant Sceptre Lvl 96
spawn =	1604	3436	3536	2	3437	3537	3435	3535	1	Aberrant Sceptre Lvl 96
spawn =	1604	3425	3541	2	3426	3542	3424	3540	1	Aberrant Sceptre Lvl 96
spawn =	1604	3422	3535	2	3423	3536	3421	3534	1	Aberrant Sceptre Lvl 96
spawn =	1604	3410	3535	2	3411	3536	3409	3534	1	Aberrant Sceptre Lvl 96
spawn =	1604	3448	3533	2	3449	3534	3447	3532	1	Aberrant Sceptre Lvl 96

spawn =	1613	3446	3551	2	3447	3552	3445	3550	1	Nechryael Lvl 115
spawn =	1613	3439	3551	2	3440	3552	3438	3550	1	Nechryael Lvl 115
spawn =	1613	3433	3551	2	3434	3552	3432	3550	1	Nechryael Lvl 115
spawn =	1613	3433	3547	2	3434	3548	3432	3546	1	Nechryael Lvl 115
spawn =	1613	3440	3546	2	3441	3547	3439	3545	1	Nechryael Lvl 115
spawn =	1613	3445	3545	2	3446	3546	3444	3544	1	Nechryael Lvl 115

spawn = 1615	3445	3559	2	3446	3560	3444	3558	1	Abyssal Demon Lvl 124
spawn = 1615	3437	3558	2	3438	3559	3436	3557	1	Abyssal Demon Lvl 124
spawn = 1615	3435	3573	2	3436	3574	3434	3572	1	Abyssal Demon Lvl 124
spawn = 1615	3445	3571	2	3446	3572	3444	3570	1	Abyssal Demon Lvl 124
spawn = 1615	3440	3565	2	3441	3566	3439	3564	1	Abyssal Demon Lvl 124

spawn = 3068	3411	3574	2	3412	3575	3410	3573	1	Skeletal Wyvern Lvl 140
spawn = 3068	3416	3567	2	3417	3566	3415	3566	1	Skeletal Wyvern Lvl 140
spawn = 3068	3413	3560	2	3414	3561	3412	3559	1	Skeletal Wyvern Lvl 140
spawn = 3068	3413	3550	2	3414	3551	3412	3549	1	Skeletal Wyvern Lvl 140

spawn = 2783	3427	3572	2	3428	3573	3426	3571	1	Dark Beast Lvl 182
spawn = 2783	3428	3565	2	3429	3566	3427	3564	1	Dark Beast Lvl 182
spawn = 2783	3421	3572	2	3422	3573	3420	3571	1	Dark Beast Lvl 182
//End of Slayer Tower
 
NpcDrops:
Code:
//Slayer
//Cave Bug
npcdrop = 1832	995	250	50	250GP 50%
npcdrop = 1832	1173	1	20	Bronze Squareshield 20%
npcdrop = 1832	1205	1	5	Bronze Dagger 5%

//Crawling Hand Lvl 8
npcdrop = 1648	526	1	100	Bones 100%
npcdrop = 1648	995	500	50	500GP 50%
npcdrop = 1648	1189	1	10	Bronze Kiteshield 10%
npcdrop = 1648	1321	1	1	Bronze Scimitar 1%

//Crawling Hand Lvl 12
npcdrop = 1653	526	1	100	Bones 100%
npcdrop = 1653	995	1000	50	1000GP 50%
npcdrop = 1653	1103	1	20	Bronze Chainbody 20%
npcdrop = 1653	1375	1	5	Bronze Battleaxe 5%

//Banshee
npcdrop = 1612	995	2000	50	2000GP 50%
npcdrop = 1612	1101	1	10	Iron Chainbody 10%
npcdrop = 1612	1323	1	1	Iron Scimitar 1%

//Rockslug
npcdrop = 1622	995	3000	50	3000GP 50%
npcdrop = 1622	1115	1	20	Iron Platebody 20%
npcdrop = 1622	1335	1	5	Iron Warhammer 5%

//Cockatrice
npcdrop = 1620	526	1	100	Bones 100%
npcdrop = 1620	995	4000	50	4000GP 50%
npcdrop = 1620	1191	1	10	Iron Kiteshield 10%
npcdrop = 1620	3192	1	1	Iron Halberd 1%

//Harpie Bug Spawn
npcdrop = 3153	995	5000	50	5000GP 50%
npcdrop = 3153	1141	1	20	Steel Medium Helm 20%
npcdrop = 3153	3097	1	5	Steel Claws 5%

//Basilisk
npcdrop = 1616	526	1	100	Bones 100%
npcdrop = 1616	995	6000	50	6000GP 50%
npcdrop = 1616	1193	1	10	Steel Kiteshield 10%
npcdrop = 1616	1424	1	1	Steel Mace 1%

//Infernal Mage
npcdrop = 1643	526	1	100	Bones 100%
npcdrop = 1643	995	7000	50	7000GP 50%
npcdrop = 1643	1105	1	20	Steel Chainbody 20%
npcdrop = 1643	1315	1	5	Mithril 2h 5%

//Jelly
npcdrop = 1637	995	8000	50	8000GP 50%
npcdrop = 1637	1143	1	10	Mithril Medium Helm 10%
npcdrop = 1637	1428	1	1	Mithril Mace 1%

//Dust Devil
npcdrop = 1624	526	1	100	Bones 100%
npcdrop = 1624	995	9000	50	9000GP 50%
npcdrop = 1624	1121	1	20	Mithril Platebody 20%
npcdrop = 1624	1243	1	5	Mithril Spear 5%

//Aberrant Sceptre
npcdrop = 1604	995	10000	50	10000GP 50%
npcdrop = 1604	1145	1	10	Adamant Medium Helm 10%
npcdrop = 1604	1331	1	1	Adamant Scimitar 1%

//Nechryael
npcdrop = 1613	532	1	100	Big Bones 100%
npcdrop = 1613	995	15000	50	15000GP 50%
npcdrop = 1613	1161	1	20	Adamant Full Helm 20%
npcdrop = 1613	3200	1	5	Adamant Halberd 5%

//Abyssal Demon
npcdrop = 1615	528	1	100	Burnt Bones 100%
npcdrop = 1615	995	20000	50	20000GP 50%
npcdrop = 1615	1345	1	10	Adamant Warhammer 10%
npcdrop = 1615	1201	1	1	Rune Kiteshield 1%

//Skeletal Wyvern
npcdrop = 3068	6812	1	100	Wyvern Bones 100%
npcdrop = 3068	995	25000	50	25000GP 50%
npcdrop = 3068	1163	1	20	Rune Full Helm 20%
npcdrop = 3068	1247	1	5	Rune Spear 5%

//Dark Beast
npcdrop = 2783	532	1	100	Big Bones 100%
npcdrop = 2783	995	50000	50	50000GP 50%
npcdrop = 2783	1113	1	20	Rune Chainbody 20%
npcdrop = 2783	1377	1	1	Dragon Battleaxe 1%
//End of Slayer

All items can be changed and drop rates, etc..etc..
 
It's good to see that you're putting this up here. It shows that you're willing to help people a bit on their way to creating a server. Especially if they was unsure how to do these parts. :]
 
In what way do the slayer points work? I looked through the coding and doesn't will understand how you are rewarded the points. Maybe I missed something though.
 
In what way do the slayer points work? I looked through the coding and doesn't will understand how you are rewarded the points. Maybe I missed something though.


It's in the NPC Handler as well as the class files.

Code:
if ((npcs[i].npcType == 1832)) {//Cave Bug
								temp.addSkillXP(30, 18);
								temp.SlayerPoints += 10;
								temp.savegame(true);
 
It's in the NPC Handler as well as the class files.

Code:
if ((npcs[i].npcType == 1832)) {//Cave Bug
                                temp.addSkillXP(30, 18);
                                temp.SlayerPoints += 10;
                                temp.savegame(true);

Legit, I didn't see that the first time around. That's such a simple concept, how could I not figure that out :3.

Did you have to add a new method that saves slayerpoints to an account, or did you use some other storage system? I always had trouble getting a method that saves to accounts to work. :S
 
Legit, I didn't see that the first time around. That's such a simple concept, how could I not figure that out :3.

Did you have to add a new method that saves slayerpoints to an account, or did you use some other storage system? I always had trouble getting a method that saves to accounts to work. :S

The string under it saves it, but, I have it also saved in the character handling + class files for all that.

It's really not a hard concept at all. I made this 3 years ago. I had only been programming for around a year. ^^
 
Code:
			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);

Really? What a waste of packets, there is not much point in sending just '@red@' as it will not do anything. What ever, just make your classes bigger, use more memory idc.
 
Really? What a waste of packets, there is not much point in sending just '@red@' as it will not do anything. What ever, just make your classes bigger, use more memory idc.

I love how you try to troll. I left those in there for people to be able to edit or change the skill menu.

Also, the class file voids out any unused string like that. ;)

So, good fight. I'm not dumb. You try to pick one thing out., when you know yourself, it's more than you could do.
 
Good for noobs. I won't use it sense I like creating my own things:D(like I've already =)
 
Thanks everyone for the feedback. Anybody is welcome to use this.
 
I love how you try to troll. I left those in there for people to be able to edit or change the skill menu.

Also, the class file voids out any unused string like that. ;)

So, good fight. I'm not dumb. You try to pick one thing out., when you know yourself, it's more than you could do.

No you're still wrong, the class will not void it out as it's not considered a null.

You also think it's more than I could do? Seriously, I could go on all day about what is wrong with your code if I really wanted to. Should I point out more problems?


  • With your NPC Handler class why don't you use a switch statement instead of if/else.
  • For your skill menu use an array instead of hard coding everything.
  • Why are you sending blank packets, they're pointless. Waste of bandwidth and memory.
  • Why did you put 'temp.savegame(true)' in every single if/else statement when you can just call it once.
See. Clearly I could do better.
 
No you're still wrong, the class will not void it out as it's not considered a null.

You also think it's more than I could do? Seriously, I could go on all day about what is wrong with your code if I really wanted to. Should I point out more problems?


  • With your NPC Handler class why don't you use a switch statement instead of if/else.
  • For your skill menu use an array instead of hard coding everything.
  • Why are you sending blank packets, they're pointless. Waste of bandwidth and memory.
  • Why did you put 'temp.savegame(true)' in every single if/else statement when you can just call it once.
See. Clearly I could do better.

I didn't include the class files in this thread. There's more to it. This is for beginners to use if they don't know what to use.

Do you really think I'd release my good codes? This isn't all of what I use for my server. I also use and operate through Eclipse, so, I don't use compiled files anymore.


Hard coding is more precise., and, is better. I don't like arrays. I already talked about the packets earlier. If you call the save once, a simple lag, or dc, would wipe out all of what just happened. Multiple saves allows for less player loss. = less drama for me

Thank you for your feedback.
 
I didn't include the class files in this thread. There's more to it. This is for beginners to use if they don't know what to use.

Do you really think I'd release my good codes? This isn't all of what I use for my server. I also use and operate through Eclipse, so, I don't use compiled files anymore.


Hard coding is more precise., and, is better. I don't like arrays. I already talked about the packets earlier. If you call the save once, a simple lag, or dc, would wipe out all of what just happened. Multiple saves allows for less player loss. = less drama for me

Thank you for your feedback.

You say work through Eclipse and it doesn't compile. Eclipse compiles your files you moron as it has to run through the JVM.

It wouldn't work. It doesn't make it anymore precise if you hardcode everything. For example.

Code:
sendQuest("", 0);
sendQuest("", 1);
sendQuest("", 2);
sendQuest("", 3);
sendQuest("", 4);
sendQuest("", 5);

Is just as accurate as;

Code:
for(int i = 0; i < 6)
    sendQuest("", i);

Multiple saves is stupid. It probably takes your computer 1 second to read all of the saves and then 20 seconds to save the account 10 times (It really doesn't help your performance)

Let's look at this.

For each person whenever they do Slayer they get 20 seconds lag as of multiple saving.

Now let's say 20 people are doing Slayer. This would put your server behind by 400 seconds which is approximately 6 and a half minutes. This would not impress player's as they would find it annoying.
 
Back
Top