Thread: Making Barrows With Random Set Parts Drops Assigned To The Right Brothor

Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1 Making Barrows With Random Set Parts Drops Assigned To The Right Brothor 
    ExA dministrator

    David's Avatar
    Join Date
    May 2007
    Age
    30
    Posts
    1,914
    Thanks given
    1
    Thanks received
    1
    Rep Power
    1201
    Client: Any I hope [I used PimpScape]

    Files Edited: Client.java ,autospawn.cfg ,NpcHandler.java

    Credits: 100% Me

    [ This Is Plain Normal Barrows With All Of the Brothors On Top Of there Hills. The Brothors Drop There Own Set Only Randomly. ]

    First Off Open NPChandler.java and Find.
    Code:
    ItemHandler.addItem(6570, npcs[NPCID].absX, npcs[NPCID].absY, 1, GetNpcKiller(NPCID), false);
    And If you cant find that just look for this

    Code:
    	public static boolean IsDropping = false;
    	public void MonsterDropItem(int NPCID)
    {
      {
    		if (IsDropping == false) {
    			IsDropping = true;
                            int Play = GetNpcKiller(NPCID);
    			int Maxi = server.itemHandler.DropItemCount;
    			for (int i = 0; i <= Maxi; i++) {
    				if (server.itemHandler.DroppedItemsID[i] > 0) {
    				} else {
    int NPCID2 = NPCID+34;
    System.out.println("Npc id =" +NPCID);
    if(npcs[NPCID] != null && server.playerHandler.players[Play] != null && server.playerHandler.players[GetNpcKiller(NPCID)] != null) {
    if(npcs[NPCID].npcType == 50) {
    ItemHandler.addItem(Item2.randomKBD(), npcs[NPCID].absX, npcs[NPCID].absY, 1, GetNpcKiller(NPCID), false);
    ItemHandler.addItem(Item2.randomKBD(), npcs[NPCID].absX, npcs[NPCID].absY, 1, GetNpcKiller(NPCID), false);
    ItemHandler.addItem(Item2.randomKBD(), npcs[NPCID].absX, npcs[NPCID].absY, 1, GetNpcKiller(NPCID), false);
    ItemHandler.addItem(Item2.randomKBD(), npcs[NPCID].absX, npcs[NPCID].absY, 1, GetNpcKiller(NPCID), false);
    ItemHandler.addItem(Item2.randomKBD(), npcs[NPCID].absX, npcs[NPCID].absY, 1, GetNpcKiller(NPCID), false);
    ItemHandler.addItem(4206, npcs[NPCID].absX, npcs[NPCID].absY, 1, GetNpcKiller(NPCID), false);
    }
    if(npcs[NPCID].npcType == 2745) 
    {
    ItemHandler.addItem(6570, npcs[NPCID].absX, npcs[NPCID].absY, 1, GetNpcKiller(NPCID), false);
    }
    Now Above the Last } Copy & Paste this

    Code:
    if(npcs[NPCID].npcType == 2026) 
    {
    ItemHandler.addItem(Item3.randomDharok(), npcs[NPCID].absX, npcs[NPCID].absY, 1, GetNpcKiller(NPCID), false);
    }
    if(npcs[NPCID].npcType == 2030) 
    {
    ItemHandler.addItem(Item3.randomVerac(), npcs[NPCID].absX, npcs[NPCID].absY, 1, GetNpcKiller(NPCID), false);
    }
    if(npcs[NPCID].npcType == 2029) 
    {
    ItemHandler.addItem(Item3.randomTorag(), npcs[NPCID].absX, npcs[NPCID].absY, 1, GetNpcKiller(NPCID), false);
    }
    if(npcs[NPCID].npcType == 2025) 
    {
    ItemHandler.addItem(Item3.randomAhrim(), npcs[NPCID].absX, npcs[NPCID].absY, 1, GetNpcKiller(NPCID), false);
    }
    if(npcs[NPCID].npcType == 2028) 
    {
    ItemHandler.addItem(Item3.randomKaril(), npcs[NPCID].absX, npcs[NPCID].absY, 1, GetNpcKiller(NPCID), false);
    }
    if(npcs[NPCID].npcType == 2027) 
    {
    ItemHandler.addItem(Item3.randomGuthan(), npcs[NPCID].absX, npcs[NPCID].absY, 1, GetNpcKiller(NPCID), false);
    }
    Save & Close Then

    Now Open Up AutoSpawn.cfg and add this

    Code:
    //*Start Of Custom Barrows By Bobbert*//
    spawn = 2026	3574	3297	0	3574	3297	3574	3297	1	Dharok 
    spawn = 2030	3557	3299	0	3557	3299	3557	3299	1	Verac
    spawn = 2029	3552	3282	0	3552	3282	3552	3282	1	Torag
    spawn =	2025	3564	3287	0	3564	3287	3564	3287	1	Ahrim
    spawn =	2028	3566	3275	0	3566	3275	3566	3275	1	Karil
    spawn =	2027	3577	3281	0	3577	3281	3577	3281	1	Guthan
    //*End Of Custom Barrows By Bobbert*//
    Save And Close then ,

    Now Open Up Item3.java Go Down To The Bottom And Above the Very last } add the following


    Code:
    public static int Dharok[] = {4716,4718,4720,4722};
    	public static int randomDharok()
    	{
    		return Dharok[(int)(Math.random()*Dharok.length)];
    	}
    public static int Verac[] = {4753,4755,4757,4759};
    	public static int randomVerac()
    	{
    		return Verac[(int)(Math.random()*Verac.length)];
    	}
    public static int Torag[] = {4745,4747,4749,4751};
    	public static int randomTorag()
    	{
    		return Torag[(int)(Math.random()*Torag.length)];
    	}
    public static int Ahrim[] = {4708,4710,4712,4714};
    	public static int randomAhrim()
    	{
    		return Ahrim[(int)(Math.random()*Ahrim.length)];
    	}
    public static int Karil[] = {4732,4734,4736,4738};
    	public static int randomKaril()
    	{
    		return Karil[(int)(Math.random()*Karil.length)];
    	}
    public static int Guthan[] = {4724,4726,4728,4730};
    	public static int randomGuthan()
    	{
    		return Guthan[(int)(Math.random()*Guthan.length)];
    	}
    Save & Close Then

    Open Up Client.java and Add this To your Tele Commands
    Or Look up "Range" And Add Right Above it
    Code:
    	else if (command.equalsIgnoreCase("Barrows"))
    	{
    		teleportToX = 3565;
    		teleportToY = 3303;
    		inwildy = false;
    	sendMessage("Welcome To The Barrows!");
    	}

    Hope You All Enjoy It !

    Note you may have seen this posted on Moparscape.org/smf or Smsrevolution.org i posted it there and it isnt leached
     

  2. #2  
    delta1
    Guest
    trying to add this
     

  3. #3  
    Str3hitya
    Guest
    nice i ltry to add
     

  4. #4  
    Somethingscape
    Guest
    Works! Rep+
     

  5. #5  
    ExA dministrator

    David's Avatar
    Join Date
    May 2007
    Age
    30
    Posts
    1,914
    Thanks given
    1
    Thanks received
    1
    Rep Power
    1201
    Lol I know it works ! Thanks
     

  6. #6  
    Devil Dante
    Guest
    18 errors. Lol
     

  7. #7  
    BloodyRose
    Guest
    Thanks, I already had the brothers but i needed to know how to make them drop things, it worked perfectly thanks again!
     

  8. #8  
    Pk Icy
    Guest
    Its not working for me i added everything but im a bit confused with the last part for telly command im not sure were to add... i added in commands.txt but its not working.

    Ok I added my error was else if (command.equalsIgnoreCase so I deleted it and i got no errors i recompiled and it still didnt work.
    Am I doing something wrong?
    Last edited by Pk Icy; 08-05-2007 at 08:33 AM. Reason: Double posting is not allowed!
     

  9. #9  
    Crazy Cam10
    Guest
    Add It In Client.java, I Don't Honestly See How You Can Have A Server, If You Didn't Even Know How To Put A Command In..
     

  10. #10  
    black-pure-4-lyfe
    Guest
    you are missing a bracet or w/e in the item3.java at the end i needed to add another one for it to work
     

Page 1 of 2 12 LastLast

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. Replies: 3
    Last Post: 01-14-2011, 04:21 AM
  2. [PI]Making spirit shields from two parts[PI]
    By neil1111 in forum Snippets
    Replies: 14
    Last Post: 11-03-2010, 06:22 AM
  3. Replies: 3
    Last Post: 11-01-2010, 06:33 PM
  4. PVP Like Rs [Random Drops]?
    By Xuzk in forum Help
    Replies: 0
    Last Post: 12-16-2009, 02:31 AM
  5. Random NPC Drops
    By Vastiko in forum RS 503+ Client & Server
    Replies: 19
    Last Post: 09-23-2008, 10:45 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
  •