Thread: [PI] Some INV slots dont allow alching

Results 1 to 2 of 2
  1. #1 [PI] Some INV slots dont allow alching 
    Member [PI] Some INV slots dont allow alching Market Banned
    Crispytoast's Avatar
    Join Date
    Nov 2010
    Posts
    448
    Thanks given
    19
    Thanks received
    42
    Rep Power
    17
    Base: PI
    Problem: I can alch just fine, but only if the item is in certain slots(i believe only slot 2 in the invy)
    Errors: none
    Other: Here is my case's for low+high, see of ya can find anything




    Code:
    	case 1162: // low alch
    			if(System.currentTimeMillis() - c.alchDelay > 1000) {	
    				if(c.getItems().playerHasItem(itemId, slot, 1)){
    				if(!c.getCombat().checkMagicReqs(49)) {
    					break;
    				}
    				if(itemId == 995) {
    					c.sendMessage("You can't alch coins.");
    					break;
    				}
    				if(c.getItems().playerHasItem(itemId, slot, 1)){
    				c.getItems().deleteItem(itemId, slot, 1);
    				c.getItems().addItem(995, c.getShops().getItemShopValue(itemId)/3);
    				c.startAnimation(c.MAGIC_SPELLS[49][2]);
    				c.gfx100(c.MAGIC_SPELLS[49][3]);
    				c.alchDelay = System.currentTimeMillis();
    				sendFrame106(6);
    				addSkillXP(c.MAGIC_SPELLS[49][7] * Config.MAGIC_EXP_RATE, 6);
    				refreshSkill(6);
    				}
    				}
    			}
    			break;
    			
    			case 1178: // high alch
    			if(System.currentTimeMillis() - c.alchDelay > 2000) {	
    				if(c.getItems().playerHasItem(itemId, slot, 1)){
    				if(!c.getCombat().checkMagicReqs(50)) {
    					break;
    				}
    				if(itemId == 995) {
    					c.sendMessage("You can't alch coins.");
    					break;
    				}				
    				if(c.getItems().playerHasItem(itemId, slot, 1)){
    				c.getItems().deleteItem(itemId, slot, 1);
    				c.getItems().addItem(995, (int)(c.getShops().getItemShopValue(itemId)*.75));
    				c.startAnimation(c.MAGIC_SPELLS[50][2]);
    				c.gfx100(c.MAGIC_SPELLS[50][3]);
    				c.alchDelay = System.currentTimeMillis();
    				sendFrame106(6);
    				addSkillXP(c.MAGIC_SPELLS[50][7] * Config.MAGIC_EXP_RATE, 6);
    				refreshSkill(6);
    				}
    				}
    			}
    			break;
    Wll Massivly rep+thank anyone who contributes to a fix
    Reply With Quote  
     

  2. #2  
    Member [PI] Some INV slots dont allow alching Market Banned
    Crispytoast's Avatar
    Join Date
    Nov 2010
    Posts
    448
    Thanks given
    19
    Thanks received
    42
    Rep Power
    17
    5mill RSGP to first who provides a solution.
    Reply With Quote  
     


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] Everything in the right slots
    By arrowzftw in forum Snippets
    Replies: 9
    Last Post: 10-12-2010, 08:19 PM
  2. Trade Slots
    By Knightmare in forum Help
    Replies: 2
    Last Post: 03-08-2010, 07:46 AM
  3. 35 Inventory Slots
    By Galkon in forum Show-off
    Replies: 75
    Last Post: 08-08-2009, 02:29 AM
  4. un-used skills slots
    By Hexagon in forum Help
    Replies: 0
    Last Post: 04-27-2009, 07:28 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
  •