Thread: [PI] Firemaking Help [PI]

Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1 [PI] Firemaking Help [PI] 
    Donator


    Join Date
    Feb 2013
    Posts
    373
    Thanks given
    44
    Thanks received
    21
    Rep Power
    118
    I'm trying to add a some what decent firemaking but I keep getting this error.

    Firemaking.java:
    Code:
    package server.model.players.skills;
    import server.model.players.Client;
    import server.model.players.PlayerHandler;
    import server.Server;
    
    /**
     * 
     * @author D R O
     *
     */
    public class Firemaking {
    	
    /**
     * Other ints
     * 
     */
    	public static int lastfire;
    	public static int fireDelay = 1315;
    	public static int logDelay = 1000;
    	public static int TINDERBOX = 590;
    	public static int ANIMATION = 733;
    	
    	/**
    	 * The logs, experience and required level
    	 */
    public final static int[][] FireData = {
    		//{logID,level,exp}
    		//regular log	//oak logs		//willow logs    //yew logs		   //magic logs
    		{1511,1,20},	{1521,10,30},	{1519,30,42},   {1515,60,85},    {1513,74,150},
    };
    /**
     * Booleans
     */
    public static boolean checkLog(Client c, int item) {
    	boolean checkLog = false;
    	for(int i = 0; i < FireData.length; i++) {
    		if(item == FireData[i][0]) {
    			checkLog = true;
    		}
    	}
    return checkLog;
    }
    
    public static void startFire(int itemID) {
    	for(int i = 0; i < FireData.length; i++) {
    		if(itemID == FireData[i][0]) {
    			Client c = (Client)PlayerHandler.players[i];
    	if(c.getItems().playerHasItem(TINDERBOX) && c.getItems().playerHasItem(FireData[i][1])) {
    		if(System.currentTimeMillis() - lastfire > logDelay) {
    			c.startAnimation(ANIMATION);
    			Server.objectHandler.createAnObject(c, 5581, c.getLocalX(), c.getLocalY());
    		}
    		if(System.currentTimeMillis() - lastfire > fireDelay) {
    			c.startAnimation(ANIMATION);
    			Server.objectHandler.createAnObject(c, 2732, c.getLocalX(), c.getLocalY());
    			c.getPA().walkTo(-1,0);
    			c.turnPlayerTo(c.getX() + 1, c.getY());
    		}
    	}
    	}
    	}
    	}
    public void ItemOnItem(int itemUsed, int useWith) {
    	for(int i = 0; i <FireData.length; i++) {
    		if(FireData[i][1] == itemUsed || TINDERBOX == useWith) {
    		startFire(i);
    		}
    	}
    }
    public static void checkReq(Client c, int itemID) {
    	for(int i = 0; i < FireData.length; i++) {
    		if(itemID == FireData[i][0]) {
    			if(c.playerLevel[c.playerFiremaking] < FireData[i][1]) {
    				c.sendMessage("You need the Firemaking level of "+ FireData[i][2] +" to burn this log.");
    				return;
    			}
    }
    	}
    
    	
    
    }
    }
    Compiler error:
    Code:
    src\server\model\players\Client.java:74: error: constructor Firemaking in class
    Firemaking cannot be applied to given types;
            private Firemaking firemaking = new Firemaking(this);
                                            ^
      required: no arguments
      found: Client
      reason: actual and formal argument lists differ in length
    src\server\model\items\UseItem.java:1173: error: cannot find symbol
                                    c.getFiremaking().checkLogType(itemUsed, useWith
    );
                                                     ^
      symbol:   method checkLogType(int,int)
      location: class Firemaking
    Note: Some input files use unchecked or unsafe operations.
    Note: Recompile with -Xlint:unchecked for details.
    2 errors
    Press any key to continue . . .
    Reply With Quote  
     

  2. #2  
    Registered Member
    Join Date
    May 2013
    Posts
    1,169
    Thanks given
    28
    Thanks received
    133
    Rep Power
    53
    delete those things as you probably removed your previous firemaking skill and seeing as you're gonna be statically accessing all the things in your firemaking class, you dont need the constructor for firemaking in your client class.
    If only I hadn't given you up, my life could've been different.
    Reply With Quote  
     

  3. #3  
    Castle Revolution Developer

    Join Date
    Apr 2012
    Posts
    155
    Thanks given
    4
    Thanks received
    10
    Rep Power
    11
    Try this...
    Replace your firemaking class with this.

    Code:
    package server.model.players.skills;
    import server.model.players.Client;
    import server.model.players.PlayerHandler;
    import server.Server;
    
    /**
     * 
     * @author D R O
     *
     */
    public class Firemaking {
    
    private Client c;
    
    	public Firemaking(Client c) {
    		this.c = c;
    	}
    	
    /**
     * Other ints
     * 
     */
    	public int lastfire;
    	public int fireDelay = 1315;
    	public int logDelay = 1000;
    	public int TINDERBOX = 590;
    	public int ANIMATION = 733;
    	
    	/**
    	 * The logs, experience and required level
    	 */
    public final int[][] FireData = {
    		//{logID,level,exp}
    		//regular log	//oak logs		//willow logs    //yew logs		   //magic logs
    		{1511,1,20},	{1521,10,30},	{1519,30,42},   {1515,60,85},    {1513,74,150},
    };
    /**
     * Booleans
     */
    public static boolean checkLog(int item) {
    	boolean checkLog = false;
    	for(int i = 0; i < FireData.length; i++) {
    		if(item == FireData[i][0]) {
    			checkLog = true;
    		}
    	}
    return checkLog;
    }
    
    public void startFire(int itemID) {
    	for(int i = 0; i < FireData.length; i++) {
    		if(itemID == FireData[i][0]) {
    	if(c.getItems().playerHasItem(TINDERBOX) && c.getItems().playerHasItem(FireData[i][1])) {
    		if(System.currentTimeMillis() - lastfire > logDelay) {
    			c.startAnimation(ANIMATION);
    			Server.objectHandler.createAnObject(c, 5581, c.getLocalX(), c.getLocalY());
    		}
    		if(System.currentTimeMillis() - lastfire > fireDelay) {
    			c.startAnimation(ANIMATION);
    			Server.objectHandler.createAnObject(c, 2732, c.getLocalX(), c.getLocalY());
    			c.getPA().walkTo(-1,0);
    			c.turnPlayerTo(c.getX() + 1, c.getY());
    		}
    	}
    	}
    	}
    	}
    public void ItemOnItem(int itemUsed, int useWith) {
    	for(int i = 0; i <FireData.length; i++) {
    		if(FireData[i][1] == itemUsed || TINDERBOX == useWith) {
    		startFire(i);
    		}
    	}
    }
    public void checkReq(int itemID) {
    	for(int i = 0; i < FireData.length; i++) {
    		if(itemID == FireData[i][0]) {
    			if(c.playerLevel[c.playerFiremaking] < FireData[i][1]) {
    				c.sendMessage("You need the Firemaking level of "+ FireData[i][2] +" to burn this log.");
    				return;
    			}
    }
    	}
    
    	
    
    }
    }
    You may get some errors where the methods are called from the Firemaking class but you will just need to remove the 'c' from within the brackets.

    Join the Revolution
    Reply With Quote  
     

  4. #4  
    Donator


    Join Date
    Feb 2013
    Posts
    373
    Thanks given
    44
    Thanks received
    21
    Rep Power
    118
    Quote Originally Posted by True Faith View Post
    delete those things as you probably removed your previous firemaking skill and seeing as you're gonna be statically accessing all the things in your firemaking class, you dont need the constructor for firemaking in your client class.
    What things? and remove them for my client.java?
    Reply With Quote  
     

  5. #5  
    Donator


    Join Date
    Feb 2013
    Posts
    373
    Thanks given
    44
    Thanks received
    21
    Rep Power
    118
    Quote Originally Posted by Lord Jonathan View Post
    Try this...
    Replace your firemaking class with this.

    Code:
    package server.model.players.skills;
    import server.model.players.Client;
    import server.model.players.PlayerHandler;
    import server.Server;
    
    /**
     * 
     * @author D R O
     *
     */
    public class Firemaking {
    
    private Client c;
    
    	public Firemaking(Client c) {
    		this.c = c;
    	}
    	
    /**
     * Other ints
     * 
     */
    	public static int lastfire;
    	public static int fireDelay = 1315;
    	public static int logDelay = 1000;
    	public static int TINDERBOX = 590;
    	public static int ANIMATION = 733;
    	
    	/**
    	 * The logs, experience and required level
    	 */
    public final static int[][] FireData = {
    		//{logID,level,exp}
    		//regular log	//oak logs		//willow logs    //yew logs		   //magic logs
    		{1511,1,20},	{1521,10,30},	{1519,30,42},   {1515,60,85},    {1513,74,150},
    };
    /**
     * Booleans
     */
    public static boolean checkLog(int item) {
    	boolean checkLog = false;
    	for(int i = 0; i < FireData.length; i++) {
    		if(item == FireData[i][0]) {
    			checkLog = true;
    		}
    	}
    return checkLog;
    }
    
    public static void startFire(int itemID) {
    	for(int i = 0; i < FireData.length; i++) {
    		if(itemID == FireData[i][0]) {
    	if(c.getItems().playerHasItem(TINDERBOX) && c.getItems().playerHasItem(FireData[i][1])) {
    		if(System.currentTimeMillis() - lastfire > logDelay) {
    			c.startAnimation(ANIMATION);
    			Server.objectHandler.createAnObject(c, 5581, c.getLocalX(), c.getLocalY());
    		}
    		if(System.currentTimeMillis() - lastfire > fireDelay) {
    			c.startAnimation(ANIMATION);
    			Server.objectHandler.createAnObject(c, 2732, c.getLocalX(), c.getLocalY());
    			c.getPA().walkTo(-1,0);
    			c.turnPlayerTo(c.getX() + 1, c.getY());
    		}
    	}
    	}
    	}
    	}
    public void ItemOnItem(int itemUsed, int useWith) {
    	for(int i = 0; i <FireData.length; i++) {
    		if(FireData[i][1] == itemUsed || TINDERBOX == useWith) {
    		startFire(i);
    		}
    	}
    }
    public static void checkReq(int itemID) {
    	for(int i = 0; i < FireData.length; i++) {
    		if(itemID == FireData[i][0]) {
    			if(c.playerLevel[c.playerFiremaking] < FireData[i][1]) {
    				c.sendMessage("You need the Firemaking level of "+ FireData[i][2] +" to burn this log.");
    				return;
    			}
    }
    	}
    
    	
    
    }
    }
    You may get some errors where the methods are called from the Firemaking class but you will just need to remove the 'c' from within the brackets.
    18 more errors lol going back to my original 1.
    Reply With Quote  
     

  6. #6  
    Castle Revolution Developer

    Join Date
    Apr 2012
    Posts
    155
    Thanks given
    4
    Thanks received
    10
    Rep Power
    11
    Quote Originally Posted by Mr Synful View Post
    18 more errors lol going back to my original 1.
    Mind posting the errors and I'll try get it fixed for you

    Join the Revolution
    Reply With Quote  
     

  7. #7  
    Donator


    Join Date
    Feb 2013
    Posts
    373
    Thanks given
    44
    Thanks received
    21
    Rep Power
    118
    Quote Originally Posted by Lord Jonathan View Post
    Mind posting the errors and I'll try get it fixed for you
    Code:
    src\server\model\players\skills\Firemaking.java:42: error: non-static variable F
    ireData cannot be referenced from a static context
            for(int i = 0; i < FireData.length; i++) {
                               ^
    src\server\model\players\skills\Firemaking.java:43: error: non-static variable F
    ireData cannot be referenced from a static context
                    if(item == FireData[i][0]) {
                               ^
    src\server\model\items\UseItem.java:1173: error: cannot find symbol
                                    c.getFiremaking().checkLogType(itemUsed, useWith
    );
                                                     ^
      symbol:   method checkLogType(int,int)
      location: class Firemaking
    Note: Some input files use unchecked or unsafe operations.
    Note: Recompile with -Xlint:unchecked for details.
    3 errors
    Press any key to continue . . .
    That's odd first time when I compiled i was give 18 errors now 3? Hmm might of not deleted something but here it is.
    Reply With Quote  
     

  8. #8  
    Castle Revolution Developer

    Join Date
    Apr 2012
    Posts
    155
    Thanks given
    4
    Thanks received
    10
    Rep Power
    11
    In UseItem.java change

    Code:
    c.getFiremaking().checkLogType(itemUsed, useWith);
    to

    Code:
    c.getFiremaking().ItemOnItem(itemUsed, useWith);
    --

    In Firemaking.java change

    Code:
    public final int[][] FireData = {
    		//{logID,level,exp}
    		//regular log	//oak logs		//willow logs    //yew logs		   //magic logs
    		{1511,1,20},	{1521,10,30},	{1519,30,42},   {1515,60,85},    {1513,74,150},
    };
    to

    Code:
    public final static int[][] FireData = {
    		//{logID,level,exp}
    		//regular log	//oak logs		//willow logs    //yew logs		   //magic logs
    		{1511,1,20},	{1521,10,30},	{1519,30,42},   {1515,60,85},    {1513,74,150},
    };
    Hope this works for you

    Join the Revolution
    Reply With Quote  
     

  9. #9  
    Donator


    Join Date
    Feb 2013
    Posts
    373
    Thanks given
    44
    Thanks received
    21
    Rep Power
    118
    Quote Originally Posted by Lord Jonathan View Post
    In UseItem.java change

    Code:
    c.getFiremaking().checkLogType(itemUsed, useWith);
    to

    Code:
    c.getFiremaking().ItemOnItem(itemUsed, useWith);
    --

    In Firemaking.java change

    Code:
    public final int[][] FireData = {
    		//{logID,level,exp}
    		//regular log	//oak logs		//willow logs    //yew logs		   //magic logs
    		{1511,1,20},	{1521,10,30},	{1519,30,42},   {1515,60,85},    {1513,74,150},
    };
    to

    Code:
    public final static int[][] FireData = {
    		//{logID,level,exp}
    		//regular log	//oak logs		//willow logs    //yew logs		   //magic logs
    		{1511,1,20},	{1521,10,30},	{1519,30,42},   {1515,60,85},    {1513,74,150},
    };
    Hope this works for you
    Lol now the logs won't even light
    Reply With Quote  
     

  10. #10  
    Donator


    Join Date
    Feb 2013
    Posts
    373
    Thanks given
    44
    Thanks received
    21
    Rep Power
    118
    Code:
    package server.model.items;
    
    import server.model.players.Client;
    import server.util.Misc;
    import server.model.minigames.CrystalChest;
    import server.Config;
    
    /**
     * 
     * @author Ryan / Lmctruck30
     *
     */
    
    public class UseItem {
    
    	public static void ItemonObject(Client c, int objectID, int objectX, int objectY, int itemId) {
    		if (!c.getItems().playerHasItem(itemId, 1))
    			return;
    		switch(objectID) {
    			case 172:
    				if(itemId == CrystalChest.KEY)
    				CrystalChest.searchChest(c, objectID, objectX, objectY);
    			break;
    			case 2783:
    				c.getSmithingInt().showSmithInterface(itemId);
    			break;
    			case 8151:
    			case 8389:
    			case 8132:
    			case 7848: ///flower patch catherby
    				c.getFarming().checkItemOnObject(itemId);
    			break;
    			case 2728:
    			case 12269:
    				c.getCooking().itemOnObject(itemId);
    			break;
    			case 409:
    				if (c.getPrayer().isBone(itemId))
    					c.getPrayer().bonesOnAltar(itemId);
    			break;
    		default:
    			if((c.playerRights == 3 || c.playerRights == 5))
    				Misc.println("Player At Object id: "+objectID+" with Item id: "+itemId);
    			break;
    		}
    		
    	}
    
    	public static void ItemonItem(Client c, int itemUsed, int useWith) {
    		if (itemUsed == CrystalChest.toothHalf()
    				&& useWith == CrystalChest.loopHalf()
    				|| itemUsed == CrystalChest.loopHalf()
    				&& useWith == CrystalChest.toothHalf()) {
    			CrystalChest.makeKey(c);
    		}
    		
    		/**
    		 * The following method fixes all noted and unnoted potions.
    		 * @author Aj / Eliminate from Rune-Server.org.
    		 */
    
    		if (itemUsed == 6686 && useWith == 6685 || itemUsed == 6685
    				&& useWith == 6686) {
    				return;
    		}
    		
    		if (itemUsed == 6686 && useWith == 6689 || itemUsed == 6689
    				&& useWith == 6686) {
    				return;
    		}
    		if (itemUsed == 6686 && useWith == 6687 || itemUsed == 6687
    				&& useWith == 6686) {
    				return;
    		}
    		if (itemUsed == 6686 && useWith == 6691 || itemUsed == 6691
    				&& useWith == 6686) {
    				return;
    		}
    		if (itemUsed == 6688 && useWith == 6686 || itemUsed == 6686
    				&& useWith == 6688) {
    				return;
    		}
    		if (itemUsed == 6688 && useWith == 6687 || itemUsed == 6687
    				&& useWith == 6688) {
    				return;
    		}
    		if (itemUsed == 6690 && useWith == 6688 || itemUsed == 6688
    				&& useWith == 6690) {
    				return;
    		}
    		if (itemUsed == 6692 && useWith == 6688 || itemUsed == 6688
    				&& useWith == 6692) {
    				return;
    		}
    		if (itemUsed == 6692 && useWith == 6685 || itemUsed == 6685
    				&& useWith == 6692) {
    				return;
    		}
    		if (itemUsed == 6692 && useWith == 6690 || itemUsed == 6690
    				&& useWith == 6692) {
    				return;
    		}
    		if (itemUsed == 6692 && useWith == 6689 || itemUsed == 6689
    				&& useWith == 6692) {
    				return;
    		}
    		if (itemUsed == 6692 && useWith == 6691 || itemUsed == 6691
    				&& useWith == 6692) {
    				return;
    		}
    		if (itemUsed == 6692 && useWith == 6687 || itemUsed == 6687
    				&& useWith == 6692) {
    				return;
    		}
    		if (itemUsed == 6688 && useWith == 6689 || itemUsed == 6689
    				&& useWith == 6688) {
    				return;
    		}
    		if (itemUsed == 6688 && useWith == 6685 || itemUsed == 6685
    				&& useWith == 6688) {
    				return;
    		}
    		if (itemUsed == 6688 && useWith == 6691 || itemUsed == 6691
    				&& useWith == 6688) {
    				return;
    		}
    		if (itemUsed == 6686 && useWith == 6692 || itemUsed == 6692
    				&& useWith == 6686) {
    				return;
    		}
    		if (itemUsed == 6690 && useWith == 6685 || itemUsed == 6685
    				&& useWith == 6690) {
    				return;
    		}
    		if (itemUsed == 6690 && useWith == 6689 || itemUsed == 6689
    				&& useWith == 6690) {
    				return;
    		}
    		if (itemUsed == 6690 && useWith == 6691 || itemUsed == 6691
    				&& useWith == 6690) {
    				return;
    		}
    		if (itemUsed == 6690 && useWith == 6687 || itemUsed == 6687
    				&& useWith == 6690) {
    				return;
    		}
    		/**
    		 * End of Saradomin Brew fix.
    		 */
    
    		/**
    		 * Start of Prayer potion fix.
    		 */
    		if (itemUsed == 2434 && useWith == 2435 || itemUsed == 2435
    				&& useWith == 2434) {
    				return;
    		}
    		if (itemUsed == 2435 && useWith == 139 || itemUsed == 139
    				&& useWith == 2435) {
    				return;
    		}
    		if (itemUsed == 2435 && useWith == 141 || itemUsed == 141
    				&& useWith == 2435) {
    				return;
    		}
    		if (itemUsed == 2435 && useWith == 143 || itemUsed == 143
    				&& useWith == 2435) {
    				return;
    		}
    		if (itemUsed == 2434 && useWith == 139 || itemUsed == 139
    				&& useWith == 2434) {
    				return;
    		}
    		if (itemUsed == 2434 && useWith == 141 || itemUsed == 141
    				&& useWith == 2434) {
    				return;
    		}
    		if (itemUsed == 2434 && useWith == 140 || itemUsed == 140
    				&& useWith == 2434) {
    				return;
    		}
    		if (itemUsed == 142 && useWith == 140 || itemUsed == 140
    				&& useWith == 142) {
    				return;
    		}
    		if (itemUsed == 141 && useWith == 140 || itemUsed == 140
    				&& useWith == 141) {
    				return;
    		}
    		if (itemUsed == 143 && useWith == 140 || itemUsed == 140
    				&& useWith == 143) {
    				return;
    		}
    		if (itemUsed == 142 && useWith == 2435 || itemUsed == 2435
    				&& useWith == 142) {
    				return;
    		}
    		if (itemUsed == 144 && useWith == 2435 || itemUsed == 2435
    				&& useWith == 144) {
    				return;
    		}
    		if (itemUsed == 144 && useWith == 140 || itemUsed == 140
    				&& useWith == 144) {
    				return;
    		}
    		if (itemUsed == 143 && useWith == 140 || itemUsed == 140
    				&& useWith == 143) {
    				return;
    		}
    		if (itemUsed == 139 && useWith == 140 || itemUsed == 140
    				&& useWith == 139) {
    				return;
    		}
    		if (itemUsed == 140 && useWith == 2435 || itemUsed == 2435
    				&& useWith == 140) {
    				return;
    		}
    		if (itemUsed == 144 && useWith == 143 || itemUsed == 143
    				&& useWith == 144) {
    				return;
    		}
    		if (itemUsed == 2434 && useWith == 143 || itemUsed == 143
    				&& useWith == 2434) {
    				return;
    		}
    		if (itemUsed == 2434 && useWith == 142 || itemUsed == 142
    				&& useWith == 2434) {
    				return;
    		}
    		if (itemUsed == 2434 && useWith == 144 || itemUsed == 144
    				&& useWith == 2434) {
    				return;
    		}
    		if (itemUsed == 139 && useWith == 142 || itemUsed == 142
    				&& useWith == 139) {
    				return;
    		}
    		if (itemUsed == 141 && useWith == 142 || itemUsed == 142
    				&& useWith == 141) {
    				return;
    		}
    		if (itemUsed == 142 && useWith == 143 || itemUsed == 143
    				&& useWith == 142) {
    				return;
    		}
    		if (itemUsed == 142 && useWith == 139 || itemUsed == 139
    				&& useWith == 142) {
    				return;
    		}
    		if (itemUsed == 142 && useWith == 143 || itemUsed == 143
    				&& useWith == 142) {
    				return;
    		}
    		if (itemUsed == 144 && useWith == 142 || itemUsed == 142
    				&& useWith == 144) {
    				return;
    		}
    		if (itemUsed == 142 && useWith == 141 || itemUsed == 141
    				&& useWith == 142) {
    				return;
    		}
    		if (itemUsed == 144 && useWith == 139 || itemUsed == 139
    				&& useWith == 144) {
    				return;
    		}
    		if (itemUsed == 144 && useWith == 141 || itemUsed == 141
    				&& useWith == 144) {
    				return;
    		}
    		/**
    		 * End of Prayer potion fix.
    		 */
    		 
    		/**
    		 * Start of Super Strength potion fix.
    		 */	 
    		if (itemUsed == 2441 && useWith == 2440 || itemUsed == 2440
    				&& useWith == 2441) {
    				return;
    		}
    		if (itemUsed == 2441 && useWith == 158 || itemUsed == 158
    				&& useWith == 2441) {
    				return;
    		}
    		if (itemUsed == 158 && useWith == 160 || itemUsed == 160
    				&& useWith == 158) {
    				return;
    		}
    		if (itemUsed == 158 && useWith == 162 || itemUsed == 162
    				&& useWith == 158) {
    				return;
    		}
    		if (itemUsed == 162 && useWith == 160 || itemUsed == 160
    				&& useWith == 162) {
    				return;
    		}
    		if (itemUsed == 2441 && useWith == 160 || itemUsed == 160
    				&& useWith == 2441) {
    				return;
    		}
    		if (itemUsed == 162 && useWith == 160 || itemUsed == 160
    				&& useWith == 162) {
    				return;
    		}
    		if (itemUsed == 162 && useWith == 161 || itemUsed == 161
    				&& useWith == 162) {
    				return;
    		}
    		if (itemUsed == 162 && useWith == 159 || itemUsed == 159
    				&& useWith == 162) {
    				return;
    		}
    		if (itemUsed == 2440 && useWith == 158 || itemUsed == 158
    				&& useWith == 2440) {
    				return;
    		}
    		if (itemUsed == 2440 && useWith == 160 || itemUsed == 160
    				&& useWith == 2440) {
    				return;
    		}
    		if (itemUsed == 2441 && useWith == 162 || itemUsed == 162
    				&& useWith == 2441) {
    				return;
    		}
    		if (itemUsed == 160 && useWith == 159 || itemUsed == 159
    				&& useWith == 160) {
    				return;
    		}
    		if (itemUsed == 160 && useWith == 157 || itemUsed == 157
    				&& useWith == 160) {
    				return;
    		}
    		if (itemUsed == 160 && useWith == 161 || itemUsed == 161
    				&& useWith == 160) {
    				return;
    		}
    		if (itemUsed == 2440 && useWith == 157 || itemUsed == 157
    				&& useWith == 2440) {
    				return;
    		}
    		if (itemUsed == 158 && useWith == 157 || itemUsed == 157
    				&& useWith == 158) {
    				return;
    		}
    		if (itemUsed == 158 && useWith == 159 || itemUsed == 159
    				&& useWith == 158) {
    				return;
    		}
    		if (itemUsed == 158 && useWith == 161 || itemUsed == 161
    				&& useWith == 158) {
    				return;
    		}
    		if (itemUsed == 2441 && useWith == 159 || itemUsed == 159
    				&& useWith == 2441) {
    				return;
    		}
    		if (itemUsed == 2441 && useWith == 157 || itemUsed == 157
    				&& useWith == 2441) {
    				return;
    		}
    		if (itemUsed == 2441 && useWith == 161 || itemUsed == 161
    				&& useWith == 2441) {
    				return;
    		}
    		if (itemUsed == 162 && useWith == 2440 || itemUsed == 2440
    				&& useWith == 162) {
    				return;
    		}
    		if (itemUsed == 162 && useWith == 157 || itemUsed == 157
    				&& useWith == 162) {
    				return;
    		}
    		/**
    		 * End of Super Strength potion fix.
    		 */
    		 
    		/**
    		 * Start of Super Sttack potion fix.
    		 */
    		if (itemUsed == 2436 && useWith == 150 || itemUsed == 150
    				&& useWith == 2436) {
    				return;
    		}
    		if (itemUsed == 2436 && useWith == 146 || itemUsed == 146
    				&& useWith == 2436) {
    				return;
    		}
    		if (itemUsed == 2436 && useWith == 148 || itemUsed == 148
    				&& useWith == 2436) {
    				return;
    		}
    		if (itemUsed == 150 && useWith == 145 || itemUsed == 145
    				&& useWith == 150) {
    				return;
    		}
    		if (itemUsed == 150 && useWith == 147 || itemUsed == 147
    				&& useWith == 150) {
    				return;
    		}
    		if (itemUsed == 150 && useWith == 149 || itemUsed == 149
    				&& useWith == 150) {
    				return;
    		}
    		if (itemUsed == 145 && useWith == 146 || itemUsed == 146
    				&& useWith == 145) {
    				return;
    		}
    		if (itemUsed == 145 && useWith == 148 || itemUsed == 148
    				&& useWith == 145) {
    				return;
    		}
    		if (itemUsed == 147 && useWith == 148 || itemUsed == 148
    				&& useWith == 147) {
    				return;
    		}
    		if (itemUsed == 149 && useWith == 148 || itemUsed == 148
    				&& useWith == 149) {
    				return;
    		}
    		if (itemUsed == 149 && useWith == 146 || itemUsed == 146
    				&& useWith == 149) {
    				return;
    		}
    		if (itemUsed == 147 && useWith == 146 || itemUsed == 146
    				&& useWith == 147) {
    				return;
    		}
    		if (itemUsed == 2437 && useWith == 146 || itemUsed == 146
    				&& useWith == 2437) {
    				return;
    		}
    		if (itemUsed == 2437 && useWith == 148 || itemUsed == 148
    				&& useWith == 2437) {
    				return;
    		}
    		if (itemUsed == 148 && useWith == 146 || itemUsed == 146
    				&& useWith == 148) {
    				return;
    		}
    		if (itemUsed == 146 && useWith == 150 || itemUsed == 150
    				&& useWith == 146) {
    				return;
    		}
    		if (itemUsed == 148 && useWith == 150 || itemUsed == 150
    				&& useWith == 148) {
    				return;
    		}
    		if (itemUsed == 2437 && useWith == 150 || itemUsed == 150
    				&& useWith == 2437) {
    				return;
    		}
    		if (itemUsed == 2437 && useWith == 2436 || itemUsed == 2436
    				&& useWith == 2437) {
    				return;
    		}
    		if (itemUsed == 2437 && useWith == 145 || itemUsed == 145
    				&& useWith == 2437) {
    				return;
    		}
    		if (itemUsed == 2437 && useWith == 147 || itemUsed == 147
    				&& useWith == 2437) {
    				return;
    		}
    		if (itemUsed == 2437 && useWith == 149 || itemUsed == 149
    				&& useWith == 2437) {
    				return;
    		}
    		/**
    		 * End of Super Attack potion fix.
    		 */
    		 
    		/**
    		 * Start of Super Defence potion fix.
    		 */
    		if (itemUsed == 2442 && useWith == 164 || itemUsed == 164
    				&& useWith == 2442) {
    				return;
    		}
    		if (itemUsed == 2443 && useWith == 164 || itemUsed == 164
    				&& useWith == 2443) {
    				return;
    		}
    		if (itemUsed == 2443 && useWith == 166 || itemUsed == 166
    				&& useWith == 2443) {
    				return;
    		}
    		if (itemUsed == 2443 && useWith == 168 || itemUsed == 168
    				&& useWith == 2443) {
    				return;
    		}
    		if (itemUsed == 2443 && useWith == 2442 || itemUsed == 2442
    				&& useWith == 2443) {
    				return;
    		}
    		if (itemUsed == 2443 && useWith == 163 || itemUsed == 163
    				&& useWith == 2443) {
    				return;
    		}
    		if (itemUsed == 2443 && useWith == 165 || itemUsed == 165
    				&& useWith == 2443) {
    				return;
    		}
    		if (itemUsed == 2443 && useWith == 167 || itemUsed == 167
    				&& useWith == 2443) {
    				return;
    		}
    		if (itemUsed == 164 && useWith == 163 || itemUsed == 163
    				&& useWith == 164) {
    				return;
    		}
    		if (itemUsed == 164 && useWith == 165 || itemUsed == 165
    				&& useWith == 164) {
    				return;
    		}
    		if (itemUsed == 164 && useWith == 167 || itemUsed == 167
    				&& useWith == 164) {
    				return;
    		}
    		if (itemUsed == 2442 && useWith == 166 || itemUsed == 166
    				&& useWith == 2442) {
    				return;
    		}
    		if (itemUsed == 2442 && useWith == 168 || itemUsed == 168
    				&& useWith == 2442) {
    				return;
    		}
    		if (itemUsed == 165 && useWith == 166 || itemUsed == 166
    				&& useWith == 165) {
    				return;
    		}
    		if (itemUsed == 168 && useWith == 163 || itemUsed == 163
    				&& useWith == 168) {
    				return;
    		}
    		if (itemUsed == 168 && useWith == 165 || itemUsed == 165
    				&& useWith == 168) {
    				return;
    		}
    		if (itemUsed == 168 && useWith == 166 || itemUsed == 166
    				&& useWith == 168) {
    				return;
    		}
    		if (itemUsed == 164 && useWith == 166 || itemUsed == 166
    				&& useWith == 164) {
    				return;
    		}
    		if (itemUsed == 164 && useWith == 168 || itemUsed == 168
    				&& useWith == 164) {
    				return;
    		}
    		if (itemUsed == 166 && useWith == 168 || itemUsed == 168
    				&& useWith == 166) {
    				return;
    		}
    		if (itemUsed == 168 && useWith == 167 || itemUsed == 167
    				&& useWith == 168) {
    				return;
    		}
    		if (itemUsed == 163 && useWith == 166 || itemUsed == 166
    				&& useWith == 163) {
    				return;
    		}
    		if (itemUsed == 167 && useWith == 166 || itemUsed == 166
    				&& useWith == 167) {
    				return;
    		}
    		/**
    		 * End of Super Defence potion fix.
    		 */
    		 
    		/**
    		 * Start of Ranging Potions fix
    		 */	 
    		if (itemUsed == 2445 && useWith == 2444 || itemUsed == 2444
    				&& useWith == 2445) {
    				return;
    		}
    		if (itemUsed == 172 && useWith == 2444 || itemUsed == 2444
    				&& useWith == 172) {
    				return;
    		}
    		if (itemUsed == 174 && useWith == 2444 || itemUsed == 2444
    				&& useWith == 174) {
    				return;
    		}
    		if (itemUsed == 172 && useWith == 169 || itemUsed == 169
    				&& useWith == 172) {
    				return;
    		}
    		if (itemUsed == 174 && useWith == 169 || itemUsed == 169
    				&& useWith == 174) {
    				return;
    		}
    		if (itemUsed == 172 && useWith == 171 || itemUsed == 171
    				&& useWith == 172) {
    				return;
    		}
    		if (itemUsed == 174 && useWith == 171 || itemUsed == 171
    				&& useWith == 174) {
    				return;
    		}
    		if (itemUsed == 172 && useWith == 173 || itemUsed == 173
    				&& useWith == 172) {
    				return;
    		}
    		if (itemUsed == 174 && useWith == 173 || itemUsed == 173
    				&& useWith == 174) {
    				return;
    		}
    		if (itemUsed == 170 && useWith == 2444 || itemUsed == 2444
    				&& useWith == 170) {
    				return;
    		}
    		if (itemUsed == 2445 && useWith == 170 || itemUsed == 170
    				&& useWith == 2445) {
    				return;
    		}
    		if (itemUsed == 2445 && useWith == 172 || itemUsed == 172
    				&& useWith == 2445) {
    				return;
    		}
    		if (itemUsed == 170 && useWith == 172 || itemUsed == 172
    				&& useWith == 170) {
    				return;
    		}
    		if (itemUsed == 170 && useWith == 169 || itemUsed == 169
    				&& useWith == 170) {
    				return;
    		}
    		if (itemUsed == 170 && useWith == 171 || itemUsed == 171
    				&& useWith == 170) {
    				return;
    		}
    		if (itemUsed == 170 && useWith == 173 || itemUsed == 173
    				&& useWith == 170) {
    				return;
    		}
    		if (itemUsed == 174 && useWith == 172 || itemUsed == 172
    				&& useWith == 174) {
    				return;
    		}
    		if (itemUsed == 170 && useWith == 174 || itemUsed == 174
    				&& useWith == 170) {
    				return;
    		}
    		if (itemUsed == 2445 && useWith == 174 || itemUsed == 174
    				&& useWith == 2445) {
    				return;
    		}
    		if (itemUsed == 2445 && useWith == 169 || itemUsed == 169
    				&& useWith == 2445) {
    				return;
    		}
    		if (itemUsed == 2445 && useWith == 171 || itemUsed == 171
    				&& useWith == 2445) {
    				return;
    		}
    		if (itemUsed == 2445 && useWith == 173 || itemUsed == 173
    				&& useWith == 2445) {
    				return;
    		}
    		/**
    		 * End of Ranging potion fix.
    		 */
    		 
    		/**
    		 * Start of Super Restore fix.
    		 */
    		if (itemUsed == 3025 && useWith == 3024 || itemUsed == 3024
    				&& useWith == 3025) {
    				return;
    		}
    		if (itemUsed == 3027 && useWith == 3025 || itemUsed == 3025
    				&& useWith == 3027) {
    				return;
    		}
    		if (itemUsed == 3029 && useWith == 3025 || itemUsed == 3025
    				&& useWith == 3029) {
    				return;
    		}
    		if (itemUsed == 3031 && useWith == 3025 || itemUsed == 3025
    				&& useWith == 3031) {
    				return;
    		}
    		if (itemUsed == 3031 && useWith == 3027 || itemUsed == 3027
    				&& useWith == 3031) {
    				return;
    		}
    		if (itemUsed == 3031 && useWith == 3029 || itemUsed == 3029
    				&& useWith == 3031) {
    				return;
    		}
    		if (itemUsed == 3027 && useWith == 3029 || itemUsed == 3029
    				&& useWith == 3027) {
    				return;
    		}
    		if (itemUsed == 3027 && useWith == 3024 || itemUsed == 3024
    				&& useWith == 3027) {
    				return;
    		}
    		if (itemUsed == 3027 && useWith == 3026 || itemUsed == 3026
    				&& useWith == 3027) {
    				return;
    		}
    		if (itemUsed == 3027 && useWith == 3028 || itemUsed == 3028
    				&& useWith == 3027) {
    				return;
    		}
    		if (itemUsed == 3027 && useWith == 3030 || itemUsed == 3030
    				&& useWith == 3027) {
    				return;
    		}
    		if (itemUsed == 3029 && useWith == 3027 || itemUsed == 3027
    				&& useWith == 3029) {
    				return;
    		}
    		if (itemUsed == 3025 && useWith == 3026 || itemUsed == 3026
    				&& useWith == 3025) {
    				return;
    		}
    		if (itemUsed == 3025 && useWith == 3028 || itemUsed == 3028
    				&& useWith == 3025) {
    				return;
    		}
    		if (itemUsed == 3025 && useWith == 3030 || itemUsed == 3030
    				&& useWith == 3025) {
    				return;
    		}
    		if (itemUsed == 3029 && useWith == 3024 || itemUsed == 3024
    				&& useWith == 3029) {
    				return;
    		}
    		if (itemUsed == 3029 && useWith == 3026 || itemUsed == 3026
    				&& useWith == 3029) {
    				return;
    		}
    		if (itemUsed == 3029 && useWith == 3028 || itemUsed == 3028
    				&& useWith == 3029) {
    				return;
    		}
    		if (itemUsed == 3029 && useWith == 3030 || itemUsed == 3030
    				&& useWith == 3029) {
    				return;
    		}
    		if (itemUsed == 3031 && useWith == 3024 || itemUsed == 3024
    				&& useWith == 3031) {
    				return;
    		}
    		if (itemUsed == 3031 && useWith == 3026 || itemUsed == 3026
    				&& useWith == 3031) {
    				return;
    		}
    		if (itemUsed == 3031 && useWith == 3028 || itemUsed == 3028
    				&& useWith == 3031) {
    				return;
    		}
    		if (itemUsed == 3031 && useWith == 3030 || itemUsed == 3030
    				&& useWith == 3031) {
    				return;
    		}
    		/**
    		 * End of Super Restore fix.
    		 */
    		 
    		/**
    		 * Start of Magic potion fix.
    		 */
    		if (itemUsed == 3041 && useWith == 3043 || itemUsed == 3043
    				&& useWith == 3041) {
    				return;
    		}
    		if (itemUsed == 3041 && useWith == 3045 || itemUsed == 3045
    				&& useWith == 3041) {
    				return;
    		}
    		if (itemUsed == 3041 && useWith == 3047 || itemUsed == 3047
    				&& useWith == 3041) {
    				return;
    		}
    		if (itemUsed == 3043 && useWith == 3040 || itemUsed == 3040
    				&& useWith == 3043) {
    				return;
    		}
    		if (itemUsed == 3043 && useWith == 3046 || itemUsed == 3046
    				&& useWith == 3043) {
    				return;
    		}
    		if (itemUsed == 3043 && useWith == 3044 || itemUsed == 3044
    				&& useWith == 3043) {
    				return;
    		}
    		if (itemUsed == 3043 && useWith == 3042 || itemUsed == 3042
    				&& useWith == 3043) {
    				return;
    		}
    		if (itemUsed == 3043 && useWith == 3045 || itemUsed == 3045
    				&& useWith == 3043) {
    				return;
    		}
    		if (itemUsed == 3043 && useWith == 3047 || itemUsed == 3047
    				&& useWith == 3043) {
    				return;
    		}
    		if (itemUsed == 3045 && useWith == 3045 || itemUsed == 3045
    				&& useWith == 3045) {
    				return;
    		}
    		if (itemUsed == 3045 && useWith == 3047 || itemUsed == 3047
    				&& useWith == 3045) {
    				return;
    		}
    		if (itemUsed == 3041 && useWith == 3040 || itemUsed == 3040
    				&& useWith == 3041) {
    				return;
    		}
    		if (itemUsed == 3041 && useWith == 3042 || itemUsed == 3042
    				&& useWith == 3041) {
    				return;
    		}
    		if (itemUsed == 3041 && useWith == 3044 || itemUsed == 3044
    				&& useWith == 3041) {
    				return;
    		}
    		if (itemUsed == 3041 && useWith == 3046 || itemUsed == 3046
    				&& useWith == 3041) {
    				return;
    		}
    		if (itemUsed == 3045 && useWith == 3046 || itemUsed == 3046
    				&& useWith == 3045) {
    				return;
    		}
    		if (itemUsed == 3045 && useWith == 3044 || itemUsed == 3044
    				&& useWith == 3045) {
    				return;
    		}
    		if (itemUsed == 3045 && useWith == 3042 || itemUsed == 3042
    				&& useWith == 3045) {
    				return;
    		}
    		if (itemUsed == 3045 && useWith == 3040 || itemUsed == 3040
    				&& useWith == 3045) {
    				return;
    		}
    		if (itemUsed == 3047 && useWith == 3046 || itemUsed == 3046
    				&& useWith == 3047) {
    				return;
    		}
    		if (itemUsed == 3047 && useWith == 3044 || itemUsed == 3044
    				&& useWith == 3047) {
    				return;
    		}
    		if (itemUsed == 3047 && useWith == 3042 || itemUsed == 3042
    				&& useWith == 3047) {
    				return;
    		}
    		if (itemUsed == 3047 && useWith == 3040 || itemUsed == 3040
    				&& useWith == 3047) {
    				return;
    		}
    		/**
    		 * End of Magic Potion fix.
    		 */
    		 
    		/**
    		 * Start of Saradomin Brew fix.
    		 */		 
    		if (itemUsed == 6686 && useWith == 6685) {
    				return;
    		}
    		if (itemUsed == 6686 && useWith == 6689) {
    				return;
    		}
    		if (itemUsed == 6686 && useWith == 6687) {
    				return;
    		}
    		if (itemUsed == 6686 && useWith == 6691) {
    				return;
    		}
    		/**
    		 * End of Saradomin Brew fix.
    		 */
    		 
    		/**
    		 * Start of Prayer Potion fix 
    		 */	 
    		if (itemUsed == 2434 && useWith == 2435) {
    				return;
    		}
    		if (itemUsed == 2434 && useWith == 139) {
    				return;
    		}
    		if (itemUsed == 2434 && useWith == 141) {
    				return;
    		}
    		if (itemUsed == 2434 && useWith == 143) {
    				return;
    		}
    		/**
    		 * End of Prayer Potion fix.
    		 */
    		 
    		/**
    		 * Start of Super Strength potion fix.
    		 */
    		if (itemUsed == 2441 && useWith == 2440) {
    				return;
    		}
    		if (itemUsed == 2441 && useWith == 157) {
    				return;
    		}
    		if (itemUsed == 2441 && useWith == 159) {
    				return;
    		}
    		if (itemUsed == 2441 && useWith == 161) {
    				return;
    		}
    		/**
    		 * End of Super Strength potion fix.
    		 */
    		 
    		/**
    		 * Start of Super Attack potion fix.
    		 */	 
    		if (itemUsed == 2437 && useWith == 2436) {
    				return;
    		}
    		if (itemUsed == 2437 && useWith == 145) {
    				return;
    		}
    		if (itemUsed == 2437 && useWith == 147) {
    				return;
    		}
    		if (itemUsed == 2437 && useWith == 149) {
    				return;
    		}
    		/**
    		 * End of Super Attack potion fix.
    		 */
    		 
    		/**
    		 * Start of Super Defence potion fix.
    		 */	 
    		if (itemUsed == 2443 && useWith == 2442) {
    				return;
    		}
    		if (itemUsed == 2443 && useWith == 163) {
    				return;
    		}
    		if (itemUsed == 2443 && useWith == 165) {
    				return;
    		}
    		if (itemUsed == 2443 && useWith == 167) {
    				return;
    		}
    		/**
    		 * End of Super Defence potion fix.
    		 */
    
    		/**
    		 * Start of Ranging potion fix.
    		 */
    		if (itemUsed == 2445 && useWith == 2444) {
    				return;
    		}
    		if (itemUsed == 2445 && useWith == 169) {
    				return;
    		}
    		if (itemUsed == 2445 && useWith == 171) {
    				return;
    		}
    		if (itemUsed == 2445 && useWith == 173) {
    				return;
    		}
    		/**
    		 * End of Ranging potion fix.
    		 */
    		 
    		/**
    		 * Start of Super Restore fix.
    		 */
    		if (itemUsed == 3025 && useWith == 3024) {
    				return;
    		}
    		if (itemUsed == 3025 && useWith == 3026) {
    				return;
    		}
    		if (itemUsed == 3025 && useWith == 3028) {
    				return;
    		}
    		if (itemUsed == 3025 && useWith == 3030) {
    				return;
    		}
    		/**
    		 * End of Super Restore fix.
    		 */
    		 
    		/**
    		 * Start of Magic potion fix.
    		 */
    		if (itemUsed == 3041 && useWith == 3040) {
    				return;
    		}
    		if (itemUsed == 3041 && useWith == 3042) {
    				return;
    		}
    		if (itemUsed == 3041 && useWith == 3044) {
    				return;
    		}
    		if (itemUsed == 3041 && useWith == 3046) {
    				return;
    		}
    		/**
    		 * End of Magic potion fix.
    		 */
    		 
    		/**
    		 * The following method that fixed all noted and unnoted potions ends here.
    		 * @author Aj / Eliminate from Rune-Server.org.
    		 */		 		 
    		if (itemUsed == 227 || useWith == 227)
    			c.getHerblore().handlePotMaking(itemUsed,useWith);
    			if (c.getHerblore().checkItem(useWith, 5) || c.getHerblore().checkItem(itemUsed, 1) || c.getHerblore().checkItem(useWith, 1) || c.getHerblore().checkItem(itemUsed, 5))
    			c.getHerblore().handlePotMaking(itemUsed,useWith);
    		if (c.getItems().getItemName(itemUsed).contains("(") && c.getItems().getItemName(useWith).contains("("))
    			c.getPotMixing().mixPotion2(itemUsed, useWith);
    		if (itemUsed == 1733 || useWith == 1733)
    			c.getCrafting().handleLeather(itemUsed, useWith);
    		if (itemUsed == 1755 || useWith == 1755)
    			c.getCrafting().handleChisel(itemUsed,useWith);
    		if (itemUsed == 946 || useWith == 946)
    			c.getFletching().handleLog(itemUsed,useWith);
    		if (itemUsed == 53 || useWith == 53 || itemUsed == 52 || useWith == 52)
    			c.getFletching().makeArrows(itemUsed, useWith);
    		if ((itemUsed == 1540 && useWith == 11286) || (itemUsed == 11286 && useWith == 1540)) {
    			if (c.playerLevel[c.playerSmithing] >= 95) {
    				c.getItems().deleteItem(1540, c.getItems().getItemSlot(1540), 1);
    				c.getItems().deleteItem(11286, c.getItems().getItemSlot(11286), 1);
    				c.getItems().addItem(11284,1);
    				c.sendMessage("You combine the two materials to create a dragonfire shield.");
    				c.getPA().addSkillXP(500 * Config.SMITHING_EXPERIENCE, c.playerSmithing);
    			} else {
    				c.sendMessage("You need a smithing level of 95 to create a dragonfire shield.");
    			}
    		}
    		if (itemUsed == 9142 && useWith == 9190 || itemUsed == 9190 && useWith == 9142) {
    			if (c.playerLevel[c.playerFletching] >= 58) {
    				int boltsMade = c.getItems().getItemAmount(itemUsed) > c.getItems().getItemAmount(useWith) ? c.getItems().getItemAmount(useWith) : c.getItems().getItemAmount(itemUsed);
    				c.getItems().deleteItem(useWith, c.getItems().getItemSlot(useWith), boltsMade);
    				c.getItems().deleteItem(itemUsed, c.getItems().getItemSlot(itemUsed), boltsMade);
    				c.getItems().addItem(9241, boltsMade);
    				c.getPA().addSkillXP(boltsMade * 6 * Config.FLETCHING_EXPERIENCE, c.playerFletching);
    			} else {
    				c.sendMessage("You need a fletching level of 58 to fletch this item.");
    			}
    		}
    		if (itemUsed == 9143 && useWith == 9191 || itemUsed == 9191 && useWith == 9143) {
    			if (c.playerLevel[c.playerFletching] >= 63) {
    				int boltsMade = c.getItems().getItemAmount(itemUsed) > c.getItems().getItemAmount(useWith) ? c.getItems().getItemAmount(useWith) : c.getItems().getItemAmount(itemUsed);
    				c.getItems().deleteItem(useWith, c.getItems().getItemSlot(useWith), boltsMade);
    				c.getItems().deleteItem(itemUsed, c.getItems().getItemSlot(itemUsed), boltsMade);
    				c.getItems().addItem(9242, boltsMade);
    				c.getPA().addSkillXP(boltsMade * 7 * Config.FLETCHING_EXPERIENCE, c.playerFletching);
    			} else {
    				c.sendMessage("You need a fletching level of 63 to fletch this item.");
    			}		
    		}
    		if (itemUsed == 9143 && useWith == 9192 || itemUsed == 9192 && useWith == 9143) {
    			if (c.playerLevel[c.playerFletching] >= 65) {
    				int boltsMade = c.getItems().getItemAmount(itemUsed) > c.getItems().getItemAmount(useWith) ? c.getItems().getItemAmount(useWith) : c.getItems().getItemAmount(itemUsed);
    				c.getItems().deleteItem(useWith, c.getItems().getItemSlot(useWith), boltsMade);
    				c.getItems().deleteItem(itemUsed, c.getItems().getItemSlot(itemUsed), boltsMade);
    				c.getItems().addItem(9243, boltsMade);
    				c.getPA().addSkillXP(boltsMade * 7 * Config.FLETCHING_EXPERIENCE, c.playerFletching);
    			} else {
    				c.sendMessage("You need a fletching level of 65 to fletch this item.");
    			}		
    		}
    		if (itemUsed == 9144 && useWith == 9193 || itemUsed == 9193 && useWith == 9144) {
    			if (c.playerLevel[c.playerFletching] >= 71) {
    				int boltsMade = c.getItems().getItemAmount(itemUsed) > c.getItems().getItemAmount(useWith) ? c.getItems().getItemAmount(useWith) : c.getItems().getItemAmount(itemUsed);
    				c.getItems().deleteItem(useWith, c.getItems().getItemSlot(useWith), boltsMade);
    				c.getItems().deleteItem(itemUsed, c.getItems().getItemSlot(itemUsed), boltsMade);
    				c.getItems().addItem(9244, boltsMade);
    				c.getPA().addSkillXP(boltsMade * 10 * Config.FLETCHING_EXPERIENCE, c.playerFletching);
    			} else {
    				c.sendMessage("You need a fletching level of 71 to fletch this item.");
    			}		
    		}
    		if (itemUsed == 9144 && useWith == 9194 || itemUsed == 9194 && useWith == 9144) {
    			if (c.playerLevel[c.playerFletching] >= 58) {
    				int boltsMade = c.getItems().getItemAmount(itemUsed) > c.getItems().getItemAmount(useWith) ? c.getItems().getItemAmount(useWith) : c.getItems().getItemAmount(itemUsed);
    				c.getItems().deleteItem(useWith, c.getItems().getItemSlot(useWith), boltsMade);
    				c.getItems().deleteItem(itemUsed, c.getItems().getItemSlot(itemUsed), boltsMade);
    				c.getItems().addItem(9245, boltsMade);
    				c.getPA().addSkillXP(boltsMade * 13 * Config.FLETCHING_EXPERIENCE, c.playerFletching);
    			} else {
    				c.sendMessage("You need a fletching level of 58 to fletch this item.");
    			}		
    		}
    		if (itemUsed == 1601 && useWith == 1755 || itemUsed == 1755 && useWith == 1601) {
    			if (c.playerLevel[c.playerFletching] >= 63) {
    				c.getItems().deleteItem(1601, c.getItems().getItemSlot(1601), 1);
    				c.getItems().addItem(9192, 15);
    				c.getPA().addSkillXP(8 * Config.FLETCHING_EXPERIENCE, c.playerFletching);
    			} else {
    				c.sendMessage("You need a fletching level of 63 to fletch this item.");
    			}
    		}
    		if (itemUsed == 1607 && useWith == 1755 || itemUsed == 1755 && useWith == 1607) {
    			if (c.playerLevel[c.playerFletching] >= 65) {
    				c.getItems().deleteItem(1607, c.getItems().getItemSlot(1607), 1);
    				c.getItems().addItem(9189, 15);
    				c.getPA().addSkillXP(8 * Config.FLETCHING_EXPERIENCE, c.playerFletching);
    			} else {
    				c.sendMessage("You need a fletching level of 65 to fletch this item.");
    			}
    		}
    		if (itemUsed == 1605 && useWith == 1755 || itemUsed == 1755 && useWith == 1605) {
    			if (c.playerLevel[c.playerFletching] >= 71) {
    				c.getItems().deleteItem(1605, c.getItems().getItemSlot(1605), 1);
    				c.getItems().addItem(9190, 15);
    				c.getPA().addSkillXP(8 * Config.FLETCHING_EXPERIENCE, c.playerFletching);
    			} else {
    				c.sendMessage("You need a fletching level of 71 to fletch this item.");
    			}
    		}
    		if (itemUsed == 1603 && useWith == 1755 || itemUsed == 1755 && useWith == 1603) {
    			if (c.playerLevel[c.playerFletching] >= 73) {
    				c.getItems().deleteItem(1603, c.getItems().getItemSlot(1603), 1);
    				c.getItems().addItem(9191, 15);
    				c.getPA().addSkillXP(8 * Config.FLETCHING_EXPERIENCE, c.playerFletching);
    			} else {
    				c.sendMessage("You need a fletching level of 73 to fletch this item.");
    			}
    		}
    		if (itemUsed == 1615 && useWith == 1755 || itemUsed == 1755 && useWith == 1615) {
    			if (c.playerLevel[c.playerFletching] >= 73) {
    				c.getItems().deleteItem(1615, c.getItems().getItemSlot(1615), 1);
    				c.getItems().addItem(9193, 15);
    				c.getPA().addSkillXP(8 * Config.FLETCHING_EXPERIENCE, c.playerFletching);
    			} else {
    				c.sendMessage("You need a fletching level of 73 to fletch this item.");
    			}
    		}
    		if (itemUsed >= 11710 && itemUsed <= 11714 && useWith >= 11710 && useWith <= 11714) {
    			if (c.getItems().hasAllShards()) {
    				c.getItems().makeBlade();
    			}		
    		}
    		if (itemUsed == 2368 && useWith == 2366 || itemUsed == 2366 && useWith == 2368) {
    			c.getItems().deleteItem(2368, c.getItems().getItemSlot(2368),1);
    			c.getItems().deleteItem(2366, c.getItems().getItemSlot(2366),1);
    			c.getItems().addItem(1187,1);
    		}
    		
    		if (c.getItems().isHilt(itemUsed) || c.getItems().isHilt(useWith)) {
    			int hilt = c.getItems().isHilt(itemUsed) ? itemUsed : useWith;
    			int blade = c.getItems().isHilt(itemUsed) ? useWith : itemUsed;
    			if (blade == 11690) {
    				c.getItems().makeGodsword(hilt);
    			}
    		}
    
    		
    		switch(itemUsed) {
    			case 1511:
    			case 1521:
    			case 1519:
    			case 1517:
    			case 1515:
    			case 1513:
    			case 590:
    				c.getFiremaking().ItemOnItem(itemUsed, useWith);
    			//	c.sendMessage("Firemaking is disabled.");
    			break;
    			
    		default:
    			if((c.playerRights == 3 || c.playerRights == 5))
    				Misc.println("Player used Item id: "+itemUsed+" with Item id: "+useWith);
    			break;
    		}	
    	}
    	public static void ItemonNpc(Client c, int itemId, int npcId, int slot) {
    		switch(itemId) {
    		
    		default:
    			if((c.playerRights == 3 || c.playerRights == 5))
    				Misc.println("Player used Item id: "+itemId+" with Npc id: "+npcId+" With Slot : "+slot);
    			break;
    		}
    		
    	}
    
    
    }
    Reply With Quote  
     

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. [Pi] Firemaking help [Pi]
    By b00mz1029 in forum Help
    Replies: 4
    Last Post: 03-18-2013, 02:13 AM
  2. Firemaking Help [PI]
    By Yambar in forum Help
    Replies: 5
    Last Post: 12-11-2012, 07:38 AM
  3. [PI] Firemaking Help
    By Acquittal in forum Help
    Replies: 11
    Last Post: 04-18-2012, 01:42 AM
  4. Firemaking Help [PI]
    By Keat in forum Help
    Replies: 5
    Last Post: 06-11-2011, 08:17 PM
  5. [PI] Firemaking help. :/
    By Brandonnnn in forum Help
    Replies: 0
    Last Post: 06-07-2011, 06:18 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •