Thread: easy barrows tut

Results 1 to 10 of 10
  1. #1 easy barrows tut 
    firenaith343
    Guest
    note: this is 1 of my first tuts so idk if its good

    Purpose:How To make a place where ppl get barrows

    Difficulty: 1/10

    Credits:100% Me

    Assumed Knowledge: how to add stuff

    Classes Modified: item2.java,npchandler.java,autospawn.cfg,client

    Procedure:

    Step 1
    open you autospawn and add this
    Code:
    //---------------------------------------------------------------------------------\\
    //--------------------------------------BARROW-------------------------------\\
    //---------------------------------------------------------------------------------\\
    
    spawn = 2025	3159	3674	0	0	0	0	0	1	ahrims
    spawn = 2025	3157	3674	0	0	0	0	0	1	ahrims
    spawn = 2025	3155	3674	0	0	0	0	0	1	ahrims
    spawn = 2029	3159	3678	0	0	0	0	0	1	torag
    spawn = 2029	3157	3678	0	0	0	0	0	1	torag
    spawn = 2029	3155	3678	0	0	0	0	0	1	torag
    spawn = 2026	3163	3678	0	0	0	0	0	1	dharok
    spawn = 2026	3166	3678	0	0	0	0	0	1	dharok
    spawn = 2026	3166	3674	0	0	0	0	0	1	dharok
    spawn = 2026	3163	3674	0	0	0	0	0	1	dharok
    spawn = 2026	3165	3686	0	0	0	0	0	1	dharok
    spawn = 2027	3158	3684	0	0	0	0	0	1	guthan
    spawn = 2027	3160	3684	0	0	0	0	0	1	guthan
    spawn = 2027	3162	3684	0	0	0	0	0	1	guthan
    spawn = 2028	3169	3667	0	0	0	0	0	1	krails
    spawn = 2028	3171	3667	0	0	0	0	0	1	krails
    spawn = 2028	3173	3667	0	0	0	0	0	1	krails
    spawn = 2028	3175	3667	0	0	0	0	0	1	krails
    spawn = 2030	3173	3683	0	0	0	0	0	1	verac
    spawn = 2030	3177	3681	0	0	0	0	0	1	verac
    spawn = 3037	3156	3667	0	0	0	0	0	1	warning npc
    spawn = 3038	3159	3667	0	0	0	0	0	1	warning npc
    Step 2
    open your npchandler.java and add this. this will make the warning npc talk
    Code:
    						if (npcs[i].npcType == 3037) {
    						if (misc.random2(30) == 1) {
    							npcs[i].updateRequired = true;
    							npcs[i].textUpdateRequired = true;
    							npcs[i].textUpdate = "Watch Out PkZone";
    						}
    						}
    						if (npcs[i].npcType == 3038) {
    						if (misc.random2(30) == 1) {
    							npcs[i].updateRequired = true;
    							npcs[i].textUpdateRequired = true;
    							npcs[i].textUpdate = "If You Need A Barrow Part Just Kill SomeOne For It";
    						}
    						}					
    						if (npcs[i].npcType == 3038) {
    						if (misc.random2(30) == 1) {
    							npcs[i].updateRequired = true;
    							npcs[i].textUpdateRequired = true;
    							npcs[i].textUpdate = "No Teaming Tho";
    						}
    						}
    Step 3
    search for
    Code:
    getnpckiller
    Step 4
    add this under 1 of them
    Code:
    if(npcs[NPCID].npcType == 2025) {
    ItemHandler.addItem(Item2.randomAhrim(), npcs[NPCID].absX, npcs[NPCID].absY, 1, GetNpcKiller(NPCID), false);
    }
    if(npcs[NPCID].npcType == 2026) { 
    ItemHandler.addItem(Item2.randomdharok(), npcs[NPCID].absX, npcs[NPCID].absY, 2, GetNpcKiller(NPCID), false);
    }
    if(npcs[NPCID].npcType == 2030) { 
    ItemHandler.addItem(Item2.randomverac(), npcs[NPCID].absX, npcs[NPCID].absY, 2, GetNpcKiller(NPCID), false);
    }
    if(npcs[NPCID].npcType == 2029) { 
    ItemHandler.addItem(Item2.randomtorag(), npcs[NPCID].absX, npcs[NPCID].absY, 2, GetNpcKiller(NPCID), false);
    }
    if(npcs[NPCID].npcType == 2027) { 
    ItemHandler.addItem(Item2.randomguthan(), npcs[NPCID].absX, npcs[NPCID].absY, 2, GetNpcKiller(NPCID), false);
    }
    if(npcs[NPCID].npcType == 2028) { 
    ItemHandler.addItem(Item2.randomkarils(), npcs[NPCID].absX, npcs[NPCID].absY, 2, GetNpcKiller(NPCID), false);
    }
    Step 5
    now open your item2.java and add this
    Code:
    public static int ahrim[] = {592,592,592,4708,592,592,592,4710,592,592,592,4712,592,592,592,4714,592,592,592};
    
        public static int randomAhrim()
        {
        	return ahrim[(int)(Math.random()*ahrim.length)];
        }
    
    public static int dharok[] = {592,592,592,4716,592,592,592,4718,592,592,592,4720,592,592,592,4722,592,592,592};
    
        public static int randomdharok()
        {
        	return dharok[(int)(Math.random()*dharok.length)];
        }
    
    public static int verac[] = {592,592,592,4753,592,592,592,4755,592,592,592,4757,592,592,592,4759,592,592,592};
    
        public static int randomverac()
        {
        	return verac[(int)(Math.random()*verac.length)];
        }
    
    public static int torag[] = {592,592,592,4745,592,592,592,4747,592,592,592,4749,592,592,592,4751,592,592,592};
    
        public static int randomtorag()
        {
        	return torag[(int)(Math.random()*torag.length)];
        }
    
    public static int guthan[] = {592,592,592,4724,592,592,592,4726,592,592,592,4728,592,592,592,4730,592,592,592};
    
        public static int randomguthan()
        {
        	return guthan[(int)(Math.random()*guthan.length)];
        }
    
    public static int karils[] = {592,592,592,4732,592,592,592,4734,592,592,592,4736,592,592,592,4738,592,592,592};
    
        public static int randomkarils()
        {
        	return karils[(int)(Math.random()*karils.length)];
        }
    Step 6
    open your client java and search for
    Code:
    Train
    Step 7
    when you see something like this
    Code:
    sendFrame126("@[email protected]", 180);//first emote slot
    sendFrame126("@[email protected]",181);
    sendFrame126("@[email protected]", 178);
    sendFrame126("@[email protected]",175);
    sendFrame126("@[email protected]",177);
    sendFrame126("@[email protected]",182);
    sendFrame126("@[email protected]", 185);
    sendFrame126("@[email protected]s", 186);
    sendFrame126("@[email protected]", 173);
    sendFrame126("@[email protected]", 179);
    sendFrame126("@[email protected]", 187);
    Step 8
    add this to the list if you dont have it
    Code:
    sendFrame126("@[email protected]", 178);
    Step 9
    now search for
    Code:
    case 162:
    Step 10
    now add this
    Code:
    case 162:	//barrows tele			
    if(emotes == 0)
    				{
    				teleportToX = 3157;
    		                teleportToY = 3667;
    				}
    				else
    				{
    					emotes = 0;
    					pEmote = playerSE;
    					updateRequired = true; appearanceUpdateRequired = true;
    				}
    				break;
    				//Pocket Portal
    
    				case 59135:
    				teleportToX = 3254;
    				teleportToY = 3421;
    				sendMessage("Pocket Portal has telported you to Varrock Bank!");
    				break;
    or u can either do that or make a command

    Code:
    }
    
    else if (command.startsWith("barrows"))
    {
    teleportToX = 3254;
    teleportToY = 3421;
    sendMessage("welcome to barrows");
    damn it takes longer to post then to make lol

    WELL IF YA HAD ANY PROBLEM FOLLOWING MY STEPS OR GOT ANY ERRORS POST ON HERE ILL HELP YOU.

    REP++ if you use plz
    Last edited by firenaith343; 08-15-2007 at 10:20 PM. Reason: fergot something
     

  2. #2  
    Registered Member
    Cloke's Avatar
    Join Date
    Nov 2006
    Age
    27
    Posts
    747
    Thanks given
    14
    Thanks received
    1
    Rep Power
    130
    Code:
    client.java:12103: illegal start of expression
            public void fromBank(int itemID, int fromSlot, int amount) {
            ^
    1 error
    Press any key to continue . . .
    help please?
    how do i fix it...

    ~mastah
     

  3. #3  
    Registered Member
    Shamon King's Avatar
    Join Date
    Aug 2007
    Posts
    3,336
    Thanks given
    90
    Thanks received
    228
    Rep Power
    1363
    he forgot a } under his command



    Code:
    }
    
    else if (command.startsWith("barrows"))
    {
    teleportToX = 3254;
    teleportToY = 3421;
    sendMessage("welcome to barrows");
    }
    right?
     

  4. #4  
    Southscape
    Guest
    Thanks For Posting. - Just added To ProjectPk!
     

  5. #5  
    Registered Member
    Cloke's Avatar
    Join Date
    Nov 2006
    Age
    27
    Posts
    747
    Thanks given
    14
    Thanks received
    1
    Rep Power
    130
    Code:
    Item2.java:176: randomAhrim() is already defined in Item2
        public static int randomAhrim()
                          ^
    Note: stream.java uses or overrides a deprecated API.
    Note: Recompile with -Xlint:deprecation for details.
    1 error
    Press any key to continue . . .
    another error.... this time it is in item2.java
     

  6. #6  
    firenaith343
    Guest
    Quote Originally Posted by mastah View Post
    Code:
    Item2.java:176: randomAhrim() is already defined in Item2
        public static int randomAhrim()
                          ^
    Note: stream.java uses or overrides a deprecated API.
    Note: Recompile with -Xlint:deprecation for details.
    1 error
    Press any key to continue . . .
    another error.... this time it is in item2.java
    thats becouse u already had the ahrim drop and u added it again erase 1 and error will go away
     

  7. #7  
    Registered Member
    Cloke's Avatar
    Join Date
    Nov 2006
    Age
    27
    Posts
    747
    Thanks given
    14
    Thanks received
    1
    Rep Power
    130
    done... more errors.. GREAT HOW ABOUT I JUST DO THIS TUT AGAIN.. AND DELETE THE OTHER BARROWS IN MY FREAKING ITEM2.JAVA..
     

  8. #8  
    firenaith343
    Guest
    Quote Originally Posted by mastah View Post
    done... more errors.. GREAT HOW ABOUT I JUST DO THIS TUT AGAIN.. AND DELETE THE OTHER BARROWS IN MY FREAKING ITEM2.JAVA..
    normaly ppl only have ahrims and this tut aint that hard u shouldent be getting any errors
     

  9. #9  
    gerd87
    Guest
    Nice tut. Ill tell my friend to add it on his server.
     

  10. #10  
    firenaith343
    Guest
    Quote Originally Posted by gerd87 View Post
    Nice tut. Ill tell my friend to add it on his server.
    ty rep could be nice
     


Thread Information
Users Browsing this Thread

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


User Tag List

Similar Threads

  1. 614 nice and easy barrows :)
    By cr3zzy in forum Tutorials
    Replies: 41
    Last Post: 04-24-2011, 04:06 AM
  2. two easy question about barrows, LOOK
    By unforeseen in forum Help
    Replies: 1
    Last Post: 03-26-2010, 09:51 PM
  3. easy barrows
    By undertaker1597 in forum Tutorials
    Replies: 12
    Last Post: 05-24-2008, 01:09 AM
  4. Easy Barrows
    By Pure Asshole in forum Tutorials
    Replies: 3
    Last Post: 08-20-2007, 06:44 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •