Thread: Barrows - almost full - no anti- leeche

Page 1 of 3 123 LastLast
Results 1 to 10 of 21
  1. #1 Barrows - almost full - no anti- leeche 
    dream89
    Guest
    Purpose: Makes pretty cool barrows
    Source: Evilscape V2, good old pimp (works on all)
    Credits: Me, I know its been made before

    [size=20pt][Only registered and activated users can see links. ][/size]

    [size=25pt]IGNORE THE SEVRER ADVERTISMENT IT WAS A TEST MORE THEN ANYTHING.[/size]

    Step 1: Add this into client.java with you commands

    Code:
    if (command.startsWith("barrows"))
    {
    	teleportToX = 3556;
    	teleportToY = 9701;
    	heightLevel = -1;
            addItem(2944, 1);
    }
    if (command.startsWith("reward"))
    {
    	teleportToX = 3551;
    	teleportToY = 9694;
    }
    Step 2: Also add this to get from one brother to next

    Code:
    if (command.startsWith("guthans"))
    {
    	sendMessage("Your at tomb of guthans God of Hitpoints");
    	teleportToX = 3537;
    	teleportToY = 9705;
    	heightLevel = -1;
    }
    if (command.startsWith("karil"))
    {
    	sendMessage("Your at tomb of karil God of Range");
    	teleportToX = 3552;
    	teleportToY = 9679;
    	heightLevel = -1;
    }
    if (command.startsWith("toraq"))
    {
    	sendMessage("Your at tomb of toraq God of Deffense");
    	teleportToX = 3568;
    	teleportToY = 9686;
    	heightLevel = -1;
    }
    if (command.startsWith("fix") && playerRights >= 0) {
                        teleportToX = 3423;
                        teleportToY = 9889;
          }
    if (command.startsWith("dharok"))
    {
    	sendMessage("Your at the tomb of Dharok God of Strenght");
    	teleportToX = 3554;
    	teleportToY = 9713;
    	heightLevel = -1;
    }
    if (command.startsWith("verac"))
    {
    	sendMessage("Your at tomb of Verac God of Attack");
    	teleportToX = 3576;
    	teleportToY = 9705;
    	heightLevel = -1;
    }
    Not explaning how to add a command you can't do it then you can't do rest lol

    Step 3: In client.java add this with other public voids

    Code:
    public void SummonNewNPC(int npcID) {
            server.npcHandler.newSummonedNPC(npcID, absX, absY-1, heightLevel, absX-1, absY-1, absX+1, absY-1, 1, server.npcHandler.GetNpcListHP(npcID), false, playerId);
            summonedNPCS++;
            actionTimer = 20;
            }
    Then still in client.java find this

    Code:
    println_debug("atObjectID: "+atObjectID+" atObjectY: "+atObjectY+" itemSlot: "+itemSlot+" atObjectX: "+atObjectX+" useItemID: "+useItemID+" j6: "+j6);
    Below it add this

    Code:
    else if (useItemID == 2944 && atObjectID == 6823) //Verac Coffin
    				{
    				SummonNewNPC(2030);
    				heightLevel = -1;
    				sendMessage("You awaken Verac the God of Attack");
    				}
    				else if (useItemID == 2944 && atObjectID == 6771) //Dharok coffin
    				{
    				SummonNewNPC(2026);
    				heightLevel = -1;
    				sendMessage("You awaken Dharok the God of Strenght");
    				}
    				else if (useItemID == 2944 && atObjectID == 6772) //Toraq Coffin
    				{
    				SummonNewNPC(2029);
    				heightLevel = -1;
    				sendMessage("You awaken Verac the God of Defense");
    				}
    				else if (useItemID == 2944 && atObjectID == 6773) //Guthans Coffin
    				{
    				SummonNewNPC(2027);
    				heightLevel = -1;
    				sendMessage("You awaken Guthans the God of HitPoints");
    				}
    				else if (useItemID == 2944 && atObjectID == 6822) //Karil Coffin
    				{
    				SummonNewNPC(2028);
    				heightLevel = -1;
    				sendMessage("You awaken Karil the God of Range");
    				}
    				else if (useItemID == 2944 && atObjectID == 6821) //Ahrim Coffin
    				{
    				SummonNewNPC(2025);
    				heightLevel = -1;
    				sendMessage("You awaken Ahrim the God of Mage");
    				}

    Step 4: Find this in client.java

    Code:
    //QUEST_1 OBJECTS
    Then below it anywhere add this

    Code:
    case 10284:
    if (objectID == 10284) // Barrows Chest
    {
    if (barrowskills <=5)
    {
    sendMessage("You need more kills to do that...");
    }
    
    else if (barrowskills >= 6)
    {
    sendMessage("You slowly open the Brother's chest...");
    sendMessage("...you grab items and get teleported.");
    addItem(Item3.randomBarrows(), 1);
    addItem(Item3.randomBarrows1(), 1);
    addItem(Item3.randomBarrows2(), 1);
    teleportToX = 3210;
    teleportToY = 3425;
    heightLevel = 0;
    startAnimation(862);
    barrowskills -= 12;
    }	
    	}
    break;
    Step 5: Find this in client.java

    Code:
    public boolean process() {
    Above it add this

    Code:
    public static int Multy() {
    return Multy[(int)(Math.random()*Multy.length)];
    }
    public static int Multy[] = {1038, 1040, 1042, 1044, 1046, 1048};	
    public int barrowskills = 0;
    Step 6: Find this in client.java

    Code:
    heightLevel = Integer.parseInt(token2);
    Then below the whole thing or above em all add this

    Code:
    }  else if (token.equals("barrows-kills")) {
    barrowskills = Integer.parseInt(token2);
    Should look like this

    Code:
    if (token.equals("character-height")) {
    							heightLevel = Integer.parseInt(token2);
    						}  else if (token.equals("barrows-kills")) {
    						    barrowskills = Integer.parseInt(token2);
    Step 7: Save now, don't compile you get three errors if done right open item3.java

    [b]NOTE SOME MIGHT NOT HAVE THIS, MY SERVER WAS MADE SILAB FRIENDLY SO IT DOES, SIMPLY CHANGE THE ITEM3 TO ITEM2 IN PREVIOUS CODES, TELL ME IF YOU HAVE A PROBLEM WITH IT.

    Step 8: In Item3.java or Item2.java (read above)

    Code:
    public static int Barrows[] = {4708,4710,4712,4714,4716,4718,4720,4722,4724,4726,4728,4730,4732,4734,4736,4738,4745,4747,4749,4751,4753,4755,4757,4759,1201,2621,2629,1163,2619,2627,1079,1093,1127,2615,2617,2623,2625,3476,3477,1149,1305,1377,3204,995,1187,3140,4087,4585,1075,1087,1117,1067,1081,1115,1071,1085,1121,1073,1091,1123,1631,6571};
    	public static int randomBarrows()
    	{
    		return Barrows[(int)(Math.random()*Barrows.length)];
    	}
    public static int Barrows1[] = {4708,4710,4712,4714,4716,4718,4720,4722,4724,4726,4728,4730,4732,4734,4736,4738,4745,4747,4749,4751,4753,4755,4757,4759};
    	public static int randomBarrows1()
    	{
    		return Barrows1[(int)(Math.random()*Barrows1.length)];
    	}
    public static int Barrows2[] = {4708,4710,4712,4714,4716,4718,4720,4722,4724,4726,4728,4730,4732,4734,4736,4738,4745,4747,4749,4751,4753,4755,4757,4759};
    	public static int randomBarrows2()
    	{
    		return Barrows2[(int)(Math.random()*Barrows2.length)];
    	}
    Step 9: Now save this, you can compile but don't do barrows or else you well be anoyyed. Open Npchandler.java

    Find this in the NPChandler.java

    Code:
    ItemHandler.addItem(4206, npcs[NPCID].absX, npcs[NPCID].absY, 1, GetNpcKiller(NPCID), false);
    }
    Below the } add the following code

    Code:
    if(npcs[NPCID].npcType == 2025) //Ahrim the Blighted
    {
    int Player = npcs[NPCID].StartKilling;
    client ppl = (client) server.playerHandler.players[Player];
    ppl.barrowskills += 1;
    }
    if(npcs[NPCID].npcType == 2029) // Toraq 
    {
    int Player = npcs[NPCID].StartKilling;
    client ppl = (client) server.playerHandler.players[Player];
    ppl.barrowskills += 1;
    }
    if(npcs[NPCID].npcType == 2026) // Dharoks
    {
    int Player = npcs[NPCID].StartKilling;
    client ppl = (client) server.playerHandler.players[Player];
    ppl.barrowskills += 1;
    }
    if(npcs[NPCID].npcType == 2027) // Guthans
    {
    int Player = npcs[NPCID].StartKilling;
    client ppl = (client) server.playerHandler.players[Player];
    ppl.barrowskills += 1;
    }
    if(npcs[NPCID].npcType == 2028) // Karils
    {
    int Player = npcs[NPCID].StartKilling;
    client ppl = (client) server.playerHandler.players[Player];
    ppl.barrowskills += 1;
    }
    if(npcs[NPCID].npcType == 2030) // Verac
    {
    int Player = npcs[NPCID].StartKilling;
    client ppl = (client) server.playerHandler.players[Player];
    ppl.barrowskills += 1;
    }
    [size=20pt]OPTIONAL![/size]

    Optional adding a menu from text


    add this with other public voids in client.java

    Code:
    public void loadMenu1(String Barrows){// (C) L0ADMENU BY THATONESERVER
    							clearQuestInterface();
    	String line = "";
    	String token = "";
    	String token2 = "";
    	String token2_2 = "";
    	String[] token3 = new String[10];
    	boolean EndOfFile = false;
    	int ReadMode = 0;
    	BufferedReader characterfile = null;
    	try {
    		characterfile = new BufferedReader(new FileReader("./config/Menus/"+Barrows+".txt"));
    
    	} catch(FileNotFoundException fileex) {
    
    	}
    	try {
    		line = characterfile.readLine();
    	} catch(IOException ioexception) {
    		misc.println("Menu: error loading file.");
    			
    	}	
    		int line2 = 8144;
    		while(EndOfFile == false && line != null) {
    									if (!line.equals("[END]")) {
    										if(line2 == 8144){
    clearQuestInterface();
    }
    if(line2 == 8146) {
    	line2 = line2+1;
    }
    sendQuest(line,line2);
    line2 = line2+1;
    									}else if(line.equals("[END]")) {
    					try { characterfile.close(); } catch(IOException ioexception) { }
    					
    				}
    			
    
    			try {
    				line = characterfile.readLine();
    			} catch(IOException ioexception1) { EndOfFile = true; }
    		}
    		try { characterfile.close(); } catch(IOException ioexception) { }
    						sendQuestSomething(8143);
    					showInterface(8134);
    					flushOutStream();
    	}
    Now to make this work make sure you go to your server folders and in config add Menus - case sensitive

    after that is done go to that folder and add a new notepad called Barrows - case sensitive. Once done simply

    Write in ti kinda like this

    Code:
    @[email protected] Mini Game
    
    @[email protected] start this type ::Ahrim
    @[email protected] you well get a key Golden Key keep it, then kill all 6 brothers
    
    @[email protected]
    @[email protected]::ahrim
    @[email protected]::guthans
    @[email protected]::karil
    @[email protected]::toraq
    @[email protected]::dharok
    
    @[email protected] sure you kill all the brothers, 
    @[email protected] walk up the stairts, might get stuck i fix later
    @[email protected] the following command
    
    @[email protected]::reward
    @[email protected] on chest, might say need more points, this means
    @[email protected] didn't kill all the brothers
    @[email protected] case go back and do so...
    @[email protected] you have click chest you get 3 items
    @[email protected] teleported out. That is all.
    
    @[email protected]
    Your not done yet thought you need in client.java add this code

    Code:
    else if (command.equalsIgnoreCase("barrowsinfo")) 
    	{
    
        		loadMenu1("Barrows");
    	}
    Summary: This code is kinda messy, and kinda longer then should be, next version be better. Basically in this one all you do is go to ::barrows, you be at tomb use key on it, then go to all the others tombs one you start at is Ahrims, Once all are killed go up the stairs then do ::rewards, and if it says you do not have eenought points you did something wrong go back. If it doesn't you get 3 items and are teleported out. YOU LOSE YOUR POINTS - TEHEHE ANTI - CHEAT!

    Save and compile enjoy tell me if any bugs link to vid above

    ~Sub Zero~
     

  2. #2  
    Endeavor

    Mikey`'s Avatar
    Join Date
    Dec 2007
    Posts
    4,421
    Thanks given
    693
    Thanks received
    1,425
    Rep Power
    1202
    hey dream its mod michael
     

  3. #3  
    Registered Member

    Join Date
    Nov 2007
    Age
    25
    Posts
    644
    Thanks given
    7
    Thanks received
    6
    Rep Power
    104
    nice job i guess... commands for tele and using key kinda ruins it
     

  4. #4  
    Registered Member
    hoodlom's Avatar
    Join Date
    Dec 2007
    Age
    26
    Posts
    750
    Thanks given
    0
    Thanks received
    6
    Rep Power
    170
    lol, this barrows is ***.
    [Only registered and activated users can see links. ]
     

  5. #5  
    Registered Member
    zedex ranger's Avatar
    Join Date
    Mar 2008
    Age
    27
    Posts
    2,565
    Thanks given
    1
    Thanks received
    9
    Rep Power
    325
    kinda sucks you have to type ::karils and stuff to go to their tunnels... i want like a 97 or 90% full barrows that you dig with spade gj neways
    [Only registered and activated users can see links. ]
     

  6. #6 Fix 
    dream89
    Guest
    I well fix those two problems very soon, and make tunnels this is just a shell lol
     

  7. #7  
    Icy Realm Owner
    Icy Whip's Avatar
    Join Date
    May 2007
    Posts
    1,419
    Thanks given
    30
    Thanks received
    35
    Rep Power
    213
    Quote Originally Posted by hoodlom View Post
    lol, this barrows is ***.
    at least he made an effort to put out a great tutorial that could potentially help some people so no need to criticize
    [Only registered and activated users can see links. ]

    Signature made by Mr. Ervis

    Any questions, MSN me; [Only registered and activated users can see links. ]
     

  8. #8  
    Well, aren't you clever!

    Concious's Avatar
    Join Date
    Feb 2008
    Posts
    1,697
    Thanks given
    27
    Thanks received
    60
    Rep Power
    195
    Yeah, Seroisly. He Must Of Worked ard On This. Nice, Repped.
     

  9. #9  
    Mr.Smooth
    Guest
    ALMOST FULL ? LMFAO u cant even make a working spade and use a is in area void,make the npc barrow curse work or get randomness from the barrow npc or make there prayer works most of those things are easy...
     

  10. #10  
    SERGEANT OF THE MASTER SERGEANTS MOST IMPORTANT PERSON OF EXTREME SERGEANTS TO THE MAX!

    cube's Avatar
    Join Date
    Jun 2007
    Posts
    8,881
    Thanks given
    1,854
    Thanks received
    4,741
    Rep Power
    5000
    This isn't even near to full :\



     

Page 1 of 3 123 LastLast

Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •