Thread: [Riotscape]Cooking :S

Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1 [Riotscape]Cooking :S 
    Banned

    Join Date
    Jan 2009
    Age
    34
    Posts
    3,143
    Thanks given
    27
    Thanks received
    92
    Rep Power
    0


    That's my problem.

    Code:
    public void cook(int id, int slot, int amount) {
    		for (int j = 0; j < 1; j++) {
    			if (c.getItems().playerHasItem(id,amount)) {
    				if (c.playerLevel[c.playerCooking] >= cookingItems[slot][3]) {
    					if (Misc.random(c.playerLevel[c.playerCooking] + 3 - cookingItems[slot][3]) == 1) {
    						c.sendMessage("You accidently burn the fish.");
    						c.getItems().deleteItem(id, c.getItems().getItemSlot(id), amount);
    						c.getItems().addItem(cookingItems[slot][2], amount);
    					} else {
    						c.getItems().deleteItem(id, c.getItems().getItemSlot(id), amount);
    						c.startAnimation(883);
    						c.getItems().addItem(cookingItems[slot][1], amount);
    						c.getPA().addSkillXP(cookingItems[slot][4] * Config.COOKING_EXPERIENCE, c.playerCooking);
    					}
    				} else {
    					c.sendMessage("You need a cooking level of " + cookingItems[slot][3] + " to cook this fish.");
    					break;
    				}
    			} else {
    				break;
    			}
    		}
    	}
     

  2. #2  
    Banned

    Join Date
    Jan 2009
    Age
    34
    Posts
    3,143
    Thanks given
    27
    Thanks received
    92
    Rep Power
    0
    Quote Originally Posted by Linus View Post
    How to fix:
    Dont leech
    I'm not leeching. I ripped a method and modified it. I'm not using Insanity.
     

  3. #3  
    Banned

    Join Date
    Jan 2009
    Age
    34
    Posts
    3,143
    Thanks given
    27
    Thanks received
    92
    Rep Power
    0
    L, post removed.
     

  4. #4  
    Registered Member
    .Dan's Avatar
    Join Date
    Sep 2008
    Age
    28
    Posts
    873
    Thanks given
    54
    Thanks received
    115
    Rep Power
    494
    Code:
    public void cook(int id, int slot, int amount) {
    	for (int j = 0; j < amount; j++) {
    		if (c.getItems().playerHasItem(id, 1)) {
    			if (c.playerLevel[c.playerCooking] >= cookingItems[slot][3]) {
    				if (Misc.random(c.playerLevel[c.playerCooking] + 3 - cookingItems[slot][3]) == 1) {
    					c.sendMessage("You accidently burn the fish.");
    					c.getItems().deleteItem(id, c.getItems().getItemSlot(id), 1);
    					c.getItems().addItem(cookingItems[slot][2], 1);
    				} else {
    					c.getItems().deleteItem(id, c.getItems().getItemSlot(id), 1);
    					c.startAnimation(883);
    					c.getItems().addItem(cookingItems[slot][1], 1);
    					c.getPA().addSkillXP(cookingItems[slot][4] * Config.COOKING_EXPERIENCE, c.playerCooking);
    				}
    			} else {
    				c.sendMessage("You need a cooking level of " + cookingItems[slot][3] + " to cook this fish.");
    				break;
    			}
    		} else {
    			break;
    		}
    	}
    }
    Didn't you say that you program better than I do? *cough* fucktard *cough*
     

  5. #5  
    Registered Member
    Join Date
    Dec 2008
    Posts
    203
    Thanks given
    1
    Thanks received
    3
    Rep Power
    6
    why not just rip insanitys....

    Code:
    	public void cookFish(int id, int slot) {
    		for (int j = 0; j < 28; j++) {
    			if (c.getItems().playerHasItem(id,1)) {
    				if (c.playerLevel[c.playerCooking] >= cookingItems[slot][3]) {
    					if (Misc.random(c.playerLevel[c.playerCooking] + 3 - cookingItems[slot][3]) == 1) {
    						c.sendMessage("You accidently burn the fish.");
    						c.getItems().deleteItem(id, c.getItems().getItemSlot(id), 1);
    						c.getItems().addItem(cookingItems[slot][2], 1);
    					} else {
    						c.getItems().deleteItem(id, c.getItems().getItemSlot(id), 1);
    						c.getItems().addItem(cookingItems[slot][1], 1);
    						c.getPA().addSkillXP(cookingItems[slot][4] * Config.COOKING_EXPERIENCE, c.playerCooking);
    					}
    				} else {
    					c.sendMessage("You need a cooking level of " + cookingItems[slot][3] + " to cook this fish.");
    					break;
    				}
    			} else {
    				break;
    			}
    		}
    	}
    same thing anyway...
    BAM
     

  6. #6  
    Donator


    Join Date
    Mar 2008
    Posts
    1,945
    Thanks given
    118
    Thanks received
    201
    Rep Power
    2104
    lol riotscape uses python for cooking
    Attached image
     

  7. #7  
    Registered Member
    .Dan's Avatar
    Join Date
    Sep 2008
    Age
    28
    Posts
    873
    Thanks given
    54
    Thanks received
    115
    Rep Power
    494
    Quote Originally Posted by rcscape View Post
    why not just rip insanitys....

    Code:
    	public void cookFish(int id, int slot) {
    		for (int j = 0; j < 28; j++) {
    			if (c.getItems().playerHasItem(id,1)) {
    				if (c.playerLevel[c.playerCooking] >= cookingItems[slot][3]) {
    					if (Misc.random(c.playerLevel[c.playerCooking] + 3 - cookingItems[slot][3]) == 1) {
    						c.sendMessage("You accidently burn the fish.");
    						c.getItems().deleteItem(id, c.getItems().getItemSlot(id), 1);
    						c.getItems().addItem(cookingItems[slot][2], 1);
    					} else {
    						c.getItems().deleteItem(id, c.getItems().getItemSlot(id), 1);
    						c.getItems().addItem(cookingItems[slot][1], 1);
    						c.getPA().addSkillXP(cookingItems[slot][4] * Config.COOKING_EXPERIENCE, c.playerCooking);
    					}
    				} else {
    					c.sendMessage("You need a cooking level of " + cookingItems[slot][3] + " to cook this fish.");
    					break;
    				}
    			} else {
    				break;
    			}
    		}
    	}
    same thing anyway...
    L2 read, it's not the same.
     

  8. #8  
    Banned

    Join Date
    Jan 2009
    Age
    34
    Posts
    3,143
    Thanks given
    27
    Thanks received
    92
    Rep Power
    0
    Quote Originally Posted by DunnKz View Post
    Code:
    public void cook(int id, int slot, int amount) {
    	for (int j = 0; j < amount; j++) {
    		if (c.getItems().playerHasItem(id, 1)) {
    			if (c.playerLevel[c.playerCooking] >= cookingItems[slot][3]) {
    				if (Misc.random(c.playerLevel[c.playerCooking] + 3 - cookingItems[slot][3]) == 1) {
    					c.sendMessage("You accidently burn the fish.");
    					c.getItems().deleteItem(id, c.getItems().getItemSlot(id), 1);
    					c.getItems().addItem(cookingItems[slot][2], 1);
    				} else {
    					c.getItems().deleteItem(id, c.getItems().getItemSlot(id), 1);
    					c.startAnimation(883);
    					c.getItems().addItem(cookingItems[slot][1], 1);
    					c.getPA().addSkillXP(cookingItems[slot][4] * Config.COOKING_EXPERIENCE, c.playerCooking);
    				}
    			} else {
    				c.sendMessage("You need a cooking level of " + cookingItems[slot][3] + " to cook this fish.");
    				break;
    			}
    		} else {
    			break;
    		}
    	}
    }
    Didn't you say that you program better than I do? *cough* fucktard *cough*
    Who the fuck are you?
     

  9. #9  
    Registered Member
    Join Date
    Dec 2008
    Posts
    203
    Thanks given
    1
    Thanks received
    3
    Rep Power
    6
    Quote Originally Posted by DunnKz View Post
    L2 read, it's not the same.
    L2 growup, it looks very damn similar to me besides the fact that i said to rip it from insanitys i didn't say it was so maybe you also need to l2 read yes?
    BAM
     

  10. #10  
    Registered Member
    .Dan's Avatar
    Join Date
    Sep 2008
    Age
    28
    Posts
    873
    Thanks given
    54
    Thanks received
    115
    Rep Power
    494
    Quote Originally Posted by rcscape View Post
    L2 growup, it looks very damn similar to me besides the fact that i said to rip it from insanitys i didn't say it was so maybe you also need to l2 read yes?
    Are you blind?
    Quote Originally Posted by rcscape View Post
    same thing anyway...
     

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

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