• Log in or sign up for an account here: https://www.sythe.org/login

Barrows Mini

  • Thread starter Thread starter The Myth
  • Start date Start date
T

The Myth

Guest
hi, lts people just have rubbish barrow brothers in ther member area, this rly annoys me as barrows are supposed 2 be powerfull cool armour, so...

ive made this giude on how 2 make a barrows mini-game wer u kill all the brothers and at the end open chest 4 barrows item and some runes :) (wen u kill a brother u get teleported to the next, last brother teleports u 2 the chest)

DIFFICULTY: 2/10

oke lets start, 1st off open up client.java and search 4 this:
Code:
portals

u shud c somthing like this:
Code:
        // Portals

case 7324: // memberportal
if(playerIsMember == 1)
teleportToX = 2834;
teleportToY = 3267;
sendMessage("welcome 2 the members area!");
if(playerIsMember == 0)
sendMessage("Ask The Myth if u can b a member b4 going down here :)");
break;
ABOVE this add this:
Code:
        case 10284: // barrowchest 
addItem(Item2.randombarrowchest(), 1);
addItem(Item2.randombarrowchest(), 1);
addItem(Item2.randombarrowrunes(), 500);
addItem(Item2.randombarrowrunes(), 500);
addItem(Item2.randombarrowrunes(), 500);
addItem(Item2.randombarrowrunes(), 500);
addItem(Item2.randombarrowcash(), 20000000);
sendMessage("Congratz!! u get your reward!!");
teleportToX = 3568;
teleportToY = 9678;
            break;

oke wot that does is makes it so that wen u get the chest u get the barrows items, runes and cash :) (btw dont compile yet, ull just get errors)

ok save and close, open up item2.java and put this at the bottom:
Code:
    public static int barrowchest[] = {
        4708,4714,4716,4716,4716,4716,4718,4722,4720,4726,4726,4726,4724,4730,4728,4732,4738,4736,4734,5698,1149};

    public static int randombarrowchest() {
        return barrowchest[(int) (Math.random() * barrowchest.length)];
    }
    public static int barrowrunes[] = {
        556,555,554,565,557,560,562};

    public static int randombarrowrunes() {
        return barrowrunes[(int) (Math.random() * barrowrunes.length)];
    }
    public static int barrowcash[] = {
        995};

    public static int randombarrowcash() {
        return barrowcash[(int) (Math.random() * barrowcash.length)];
    }
}

ok save and close, now open up npchandler.java and search 4 this:
Code:
if (npcs[NPCID].npcType ==

u shud c somthing like this:
Code:
                            if (npcs[NPCID].npcType == 275) {
                                ItemHandler.addItem(4273, npcs[NPCID].absX,
                                        npcs[NPCID].absY, 1, GetNpcKiller(NPCID),
                                        false);
                            }
                            if (npcs[NPCID].npcType == 18) {
                                ItemHandler.addItem(Item3.randomguard(),
                                        npcs[NPCID].absX, npcs[NPCID].absY, 1,
                                        GetNpcKiller(NPCID), false);
                            }
                            if (npcs[NPCID].npcType == 21) {
                                ItemHandler.addItem(Item3.randomhero(),
                                        npcs[NPCID].absX, npcs[NPCID].absY, 1,
                                        GetNpcKiller(NPCID), false);
                            }
                            if (npcs[NPCID].npcType == 2256) {
                                ItemHandler.addItem(Item3.randomguardz(),
                                        npcs[NPCID].absX, npcs[NPCID].absY, 1,
                                        GetNpcKiller(NPCID), false);
                            }
                            if (npcs[NPCID].npcType == 1021) {
                                int Player = npcs[NPCID].StartKilling;
                                client ppl = (client) server.playerHandler.players[Player];

                                ppl.teleportToX = 2660;
                                ppl.teleportToY = 4839;
                            }

ok enter this under any of these codes:
Code:
                            if (npcs[NPCID].npcType == 2025) {
                                int Player = npcs[NPCID].StartKilling;
                                client ppl = (client) server.playerHandler.players[Player];

                                ppl.teleportToX = 3552;
                                ppl.teleportToY = 9677;
                            }
                            if (npcs[NPCID].npcType == 2026) {
                                int Player = npcs[NPCID].StartKilling;
                                client ppl = (client) server.playerHandler.players[Player];

                                ppl.teleportToX = 3536;
                                ppl.teleportToY = 9676;
                            }
                            if (npcs[NPCID].npcType == 2027) {
                                int Player = npcs[NPCID].StartKilling;
                                client ppl = (client) server.playerHandler.players[Player];

                                ppl.teleportToX = 3535;
                                ppl.teleportToY = 9711;
                            }
                            if (npcs[NPCID].npcType == 2028) {
                                int Player = npcs[NPCID].StartKilling;
                                client ppl = (client) server.playerHandler.players[Player];

                                ppl.teleportToX = 3551;
                                ppl.teleportToY = 9713;
                            }
                            if (npcs[NPCID].npcType == 2029) {
                                int Player = npcs[NPCID].StartKilling;
                                client ppl = (client) server.playerHandler.players[Player];

                                ppl.teleportToX = 3568;
                                ppl.teleportToY = 9712;
                            }
                            if (npcs[NPCID].npcType == 2030) {
                                int Player = npcs[NPCID].StartKilling;
                                client ppl = (client) server.playerHandler.players[Player];

                                ppl.teleportToX = 3552;
                                ppl.teleportToY = 9694;
                                ppl.sendMessage("Congratz! you can now open the barrows chest!");
                            }

ok now open up client.java again and search 4 any of ur teleporting commands and add this:
Code:
        } else if (command.equalsIgnoreCase("barrows")) {
            if (teleblock == true) {
                sendMessage("A magical force stops you from teleporting."); // made by The Myth
            } else {
                teleportToX = 3568;
                teleportToY = 9678;
                heightLevel = 0;
                sendMessage("Welcome to barrows!");
            }

ok open up autospawn.cfg add this:
Code:
spawn = 2025	3567	9680	0	0	0	0	0	1
spawn = 2025	3567	9675	0	0	0	0	0	1
spawn = 2025	3569	9678	0	0	0	0	0	1
spawn = 2025	3571	9675	0	0	0	0	0	1
spawn = 2026	3552	9679	0	0	0	0	0	1
spawn = 2026	3554	9674	0	0	0	0	0	1
spawn = 2026	3549	9674	0	0	0	0	0	1
spawn = 2026	3547	9677	0	0	0	0	0	1
spawn = 2027	3538	9678	0	0	0	0	0	1
spawn = 2027	3536	9676	0	0	0	0	0	1
spawn = 2027	3532	9677	0	0	0	0	0	1
spawn = 2027	3534	9680	0	0	0	0	0	1
spawn = 2028	3533	9708	0	0	0	0	0	1
spawn = 2028	3532	9710	0	0	0	0	0	1
spawn = 2028	3533	9713	0	0	0	0	0	1
spawn = 2028	3536	9714	0	0	0	0	0	1
spawn = 2029	3550	9711	0	0	0	0	0	1
spawn = 2029	3552	9714	0	0	0	0	0	1
spawn = 2029	3554	9712	0	0	0	0	0	1
spawn = 2029	3552	9708	0	0	0	0	0	1
spawn = 2030	3566	9710	0	0	0	0	0	1
spawn = 2030	3570	9715	0	0	0	0	0	1
spawn = 2030	3572	9712	0	0	0	0	0	1
spawn = 2030	3566	9713	0	0	0	0	0	1
spawn = 2030	3568	9715	0	0	0	0	0	1

ok save and compile and enjoy ur new barrows mini!!

(note: to make this mini-game better please delete your other barrows brothers from your autospawn.cfg)

oke enjoy :)
 
Runescape Gamblingrunescape gambling
Back
Top