Purpose: To have almost full brimhaven dungeon
Difficulty: 1/10
Assumed Knowledge: where to add cases, and maybe some other stuff
Server Base: Any
Classes Modified: client.java, item2.java, autospawn.cfg, npc.cfg, npchandler.java
Procedure:
I know theres no layout, im just used to typing it out.
Step 1: Open client.java, add these cases
Code:
case 5083:
if (actionTimer == 0) {
teleportToX = 2713;
teleportToY = 9564;
sendMessage("You enter the dungeon.");
actionTimer = 5;
}
break;
case 5103:
if (absX == 2691 && absY == 9564)
{
teleportToX = 2689;
teleportToY = 9564;
}
else if (absX == 2689 && absY == 9564)
{
teleportToX = 2691;
teleportToY = 9564;
}
break;
case 5106:
if (absX == 2674 && absY == 9479)
{
teleportToX = 2676;
teleportToY = 9479;
}
else if (absX == 2676 && absY == 9479)
{
teleportToX = 2674;
teleportToY = 9479;
}
break;
case 5105:
if (absX == 2672 && absY == 9499)
{
teleportToX = 2674;
teleportToY = 9499;
}
else if (absX == 2674 && absY == 9499)
{
teleportToX = 2672;
teleportToY = 9499;
}
break;
case 5107:
if (absX == 2693 && absY == 9482)
{
teleportToX = 2695;
teleportToY = 9482;
}
else if (absX == 2695 && absY == 9482)
{
teleportToX = 2693;
teleportToY = 9482;
}
break;
case 5104:
if (absX == 2683 && absY == 9568)
{
teleportToX = 2683;
teleportToY = 9570;
}
else if (absX == 2683 && absY == 9570)
{
teleportToX = 2683;
teleportToY = 9568;
}
break;
case 5100:
if (absY <= 9567)
{
teleportToX = 2655;
teleportToY = 9573;
}
else if (absY >= 9572)
{
teleportToX = 2655;
teleportToY = 9566;
}
break;
case 5099:
if (absY <= 9493)
{
teleportToX = 2698;
teleportToY = 9500;
}
else if (absY >= 9499)
{
teleportToX = 2698;
teleportToY = 9492;
}
break;
case 5088:
if (absX <= 2682)
{
teleportToX = 2687;
teleportToY = 9506;
}
else if (absX >= 2687)
{
teleportToX = 2682;
teleportToY = 9506;
}
break;
case 5110:
if (actionTimer == 0) {
teleportToX = 2647;
teleportToY = 9557;
sendMessage("You cross the lava");
actionTimer = 5;
}
break;
case 5111:
if (actionTimer == 0) {
teleportToX = 2649;
teleportToY = 9562;
sendMessage("You cross the lava");
actionTimer = 5;
}
break;
case 5084:
if (actionTimer == 0) {
teleportToX = 2744;
teleportToY = 3151;
sendMessage("You exit the dungeon.");
actionTimer = 5;
}
break;
step 2: open up autospawn.cfg and add these
Code:
//brimhaven dungeon\\
spawn = 112 2678 9546 0 0 0 0 0 1 moss giant
spawn = 112 2671 9545 0 0 0 0 0 1 moss giant
spawn = 112 2658 9545 0 0 0 0 0 1 moss giant
spawn = 112 2660 9553 0 0 0 0 0 1 moss giant
spawn = 112 2657 9576 0 0 0 0 0 1 moss giant
spawn = 112 2639 9582 0 0 0 0 0 1 moss giant
spawn = 112 2677 9592 0 0 0 0 0 1 moss giant
spawn = 112 2680 9588 0 0 0 0 0 1 moss giant
spawn = 112 2674 9541 0 0 0 0 0 1 moss giant
spawn = 112 2645 9540 0 0 0 0 0 1 moss giant
spawn = 112 2638 9522 0 0 0 0 0 1 moss giant
spawn = 112 2644 9488 0 0 0 0 0 1 moss giant
spawn = 1593 2675 9582 0 0 0 0 0 1 wild dog
spawn = 1593 2644 9574 0 0 0 0 0 1 wild dog
spawn = 1593 2638 9534 0 0 0 0 0 1 wild dog
spawn = 1593 2657 9494 0 0 0 0 0 1 wild dog
spawn = 1593 2662 9517 0 0 0 0 0 1 wild dog
spawn = 1593 2667 9522 0 0 0 0 0 1 wild dog
spawn = 1593 2711 9516 0 0 0 0 0 1 wild dog
spawn = 1593 2712 9488 0 0 0 0 0 1 wild dog
spawn = 110 2653 9487 0 0 0 0 0 1 fire giant
spawn = 110 2663 9482 0 0 0 0 0 1 fire giant
spawn = 110 2667 9490 0 0 0 0 0 1 fire giant
spawn = 110 2658 9499 0 0 0 0 0 1 fire giant
spawn = 53 2710 9501 0 0 0 0 0 1 red dragon
spawn = 53 2701 9516 0 0 0 0 0 1 red dragon
spawn = 53 2712 9523 0 0 0 0 0 1 red dragon
spawn = 1589 2721 9517 0 0 0 0 0 1 baby red dragon
spawn = 1589 2718 9502 0 0 0 0 0 1 baby red dragon
spawn = 1589 2707 9508 0 0 0 0 0 1 baby red dragon
spawn = 1589 2696 9508 0 0 0 0 0 1 baby red dragon
spawn = 1589 2702 9524 0 0 0 0 0 1 baby red dragon
spawn = 677 2703 9484 0 0 0 0 0 1 black demon
spawn = 677 2716 9482 0 0 0 0 0 1 black demon
spawn = 677 2727 9487 0 0 0 0 0 1 black demon
spawn = 1590 2732 9490 0 0 0 0 0 1 bronze dragon
spawn = 1590 2741 9489 0 0 0 0 0 1 bronze dragon
spawn = 1590 2732 9481 0 0 0 0 0 1 bronze dragon
spawn = 1591 2703 9457 0 0 0 0 0 1 iron dragon
spawn = 1591 2738 9452 0 0 0 0 0 1 iron dragon
spawn = 1591 2719 9454 0 0 0 0 0 1 iron dragon
spawn = 1591 2702 9428 0 0 0 0 0 1 iron dragon
spawn = 1591 2708 9420 0 0 0 0 0 1 iron dragon
spawn = 1591 2729 9419 0 0 0 0 0 1 iron dragon
spawn = 1591 2724 9424 0 0 0 0 0 1 iron dragon
spawn = 1591 2737 9436 0 0 0 0 0 1 iron dragon
spawn = 1591 2717 9443 0 0 0 0 0 1 iron dragon
spawn = 1592 2729 9452 0 0 0 0 0 1 steel dragon
spawn = 1592 2705 9445 0 0 0 0 0 1 steel dragon
spawn = 1592 2713 9435 0 0 0 0 0 1 steel dragon
spawn = 1592 2727 9438 0 0 0 0 0 1 steel dragon
//end of brimhaven dungeon\\
step 3: Open up npchandler.java and add these somewhere, u should know where
Code:
if(npcs[NPCID].npcType == 53) {
ItemHandler.addItem(Item2.randomRed_Dragon(), npcs[NPCID].absX, npcs[NPCID].absY, 1, GetNpcKiller(NPCID), false);
}
if(npcs[NPCID].npcType == 1589) {//baby red dragon
ItemHandler.addItem(Item2.randomRed_Dragon(), npcs[NPCID].absX, npcs[NPCID].absY, 1, GetNpcKiller(NPCID), false);
}
if(npcs[NPCID].npcType == 1590) {
ItemHandler.addItem(Item2.randomBronze_Dragon(), npcs[NPCID].absX, npcs[NPCID].absY, 1, GetNpcKiller(NPCID), false);
}
if(npcs[NPCID].npcType == 1591) {
ItemHandler.addItem(Item2.randomIron_Dragon(), npcs[NPCID].absX, npcs[NPCID].absY, 1, GetNpcKiller(NPCID), false);
}
if(npcs[NPCID].npcType == 1592) {
ItemHandler.addItem(Item2.randomSteel_Dragon(), npcs[NPCID].absX, npcs[NPCID].absY, 1, GetNpcKiller(NPCID), false);
}
if(npcs[NPCID].npcType == 677) {
ItemHandler.addItem(Item2.randomBlack_Demon(), npcs[NPCID].absX, npcs[NPCID].absY, 1, GetNpcKiller(NPCID), false);
}
if(npcs[NPCID].npcType == 110) {
ItemHandler.addItem(Item2.randomFire_Giant(), npcs[NPCID].absX, npcs[NPCID].absY, 1, GetNpcKiller(NPCID), false);
}
step 4: open item2.java and add these at the bottom somewhere
Code:
public static int Red_Dragon[] = {1749, 536};
public static int randomRed_Dragon()
{
return Red_Dragon[(int)(Math.random()*Red_Dragon.length)];
}
public static int Bronze_Dragon[] = {1305, 1305, 1305, 1305, 1305, 1305, 4587, 4587, 4587, 4587, 4587, 536, 536, 536, 536, 536, 4087};
public static int randomBronze_Dragon()
{
return Bronze_Dragon[(int)(Math.random()*Bronze_Dragon.length)];
}
}
public static int Iron_Dragon[] = {1305, 1305, 1305, 1305, 1305, 1305, 4587, 4587, 4587, 4587, 4587, 536, 536, 536, 536, 4087};
public static int randomIron_Dragon()
{
return Iron_Dragon[(int)(Math.random()*Iron_Dragon.length)];
}
public static int Steel_Dragon[] = {1305, 1305, 1305, 1305, 1305, 4587, 4587, 4587, 4587, 4587, 536, 536, 536, 536, 4087};
public static int randomSteel_Dragon()
{
return Steel_Dragon[(int)(Math.random()*Steel_Dragon.length)];
}
public static int Black_Demon[] = {4587, 4587, 4587, 4587, 1305, 1305, 1305, 1187, 1187, 7158};
public static int randomBlack_Demon()
{
return Black_Demon[(int)(Math.random()*Black_Demon.length)];
}
public static int Fire_Giant[] = {532, 532, 532, 532, 532, 1434, 1434, 1434, 1434, 7158, 4587, 4587, 4587, 4587};
public static int randomFire_Giant()
{
return Fire_Giant[(int)(Math.random()*Fire_Giant.length)];
}
step 5: finally, go into npc.cfg and change the hp of the npcs in the dungeon, if they arent already there.
congratz! you now have the brimhaven dungeon on your server 
credits: me
post any errors
pics:






thats just a few, theres alot more stuff i just didnt wanna take pics of all of it