Thread: Delta help

Results 1 to 5 of 5
  1. #1 Delta help 
    Registered Member cryingsoul's Avatar
    Join Date
    Jul 2008
    Posts
    257
    Thanks given
    0
    Thanks received
    2
    Rep Power
    15
    is there anyway i can do that if u got a cooking glatus then u wont burn food ...

    is that possible to code in cause i saw it in few servers.

    Thanks

    cryingsoul
     

  2. #2  
    Ash
    Guest
    So you wont when you cook food you dont burn it?
     

  3. #3  
    Registered Member cryingsoul's Avatar
    Join Date
    Jul 2008
    Posts
    257
    Thanks given
    0
    Thanks received
    2
    Rep Power
    15
    Quote Originally Posted by *Legend-Scape* View Post
    So you wont when you cook food you dont burn it?
    lol i want that .xD that is cool. i already added it ..

    but now i need that if anybody got a cooking glatutus on him or her. then he got 100 % chance to NOT burn. ..
     

  4. #4  
    Previously Hyperion


    Join Date
    Jan 2009
    Posts
    1,254
    Thanks given
    3
    Thanks received
    18
    Rep Power
    138
    give me a sec i can make the code real fast. Post your code for the random burning here and i can fix it for you to work.
     

  5. #5  
    Registered Member cryingsoul's Avatar
    Join Date
    Jul 2008
    Posts
    257
    Thanks given
    0
    Thanks received
    2
    Rep Power
    15
    Quote Originally Posted by grimreaper61 View Post
    give me a sec i can make the code real fast. Post your code for the random burning here and i can fix it for you to work.
    k here is it ..

    Code:
    	public void cookFish() {
    if(!playerHasItem(317) && !playerHasItem(377) && !playerHasItem(383) && !playerHasItem(389) && !playerHasItem(395)){
    return;
    }
    		if (playerHasItem(395)) {
    			if (misc.random(1) == 0 || misc.random(1) == 1) {
    				setAnimation(883);
    				deleteItem(395, getItemSlot(395), 1);
    				addSkillXP(1220, 7);
    				addItem(397, 1);
    				sM("You successfully cook a sea turtle.");
    				lastAction = System.currentTimeMillis();
    			} else {
    				setAnimation(883);
    				deleteItem(395, getItemSlot(395), 1);
    				addItem(399, 1);
    				lastAction = System.currentTimeMillis();
    				sM("You accidentally burn a sea turtle.");
    			}
    		}
    		if (playerHasItem(321)) {
    			if (misc.random(1) == 0 || misc.random(1) == 1) {
    				setAnimation(883);
    				deleteItem(321, getItemSlot(321), 1);
    				addSkillXP(870, 7);
    				addItem(319, 1);
    				sM("You successfully cook an Anchovie.");
    				lastAction = System.currentTimeMillis();
    			} else {
    				setAnimation(883);
    				deleteItem(395, getItemSlot(395), 1);
    				addItem(323, 1);
    				lastAction = System.currentTimeMillis();
    				sM("You accidentally burn an Anchovie.");
    			}
    		}
    		if (playerHasItem(331)) {
    			if (misc.random(1) == 0 || misc.random(1) == 1) {
    				setAnimation(883);
    				deleteItem(331, getItemSlot(331), 1);
    				addSkillXP(820, 7);
    				addItem(329, 1);
    				sM("You successfully cook a Salmon.");
    				lastAction = System.currentTimeMillis();
    			} else {
    				setAnimation(883);
    				deleteItem(331, getItemSlot(331), 1);
    				addItem(323, 1);
    				lastAction = System.currentTimeMillis();
    				sM("You accidentally burn a salmon.");
    			}
    		}
    		if (playerHasItem(335)) {
    			if (misc.random(1) == 0 || misc.random(1) == 1) {
    				setAnimation(883);
    				deleteItem(335, getItemSlot(335), 1);
    				addSkillXP(810, 7);
    				addItem(333, 1);
    				sM("You successfully cook a trout.");
    				lastAction = System.currentTimeMillis();
    			} else {
    				setAnimation(883);
    				deleteItem(335, getItemSlot(335), 1);
    				addItem(323, 1);
    				lastAction = System.currentTimeMillis();
    				sM("You accidentally burn a trout.");
    			}
    		}
    		if (playerHasItem(359)) {
    			if (misc.random(1) == 0 || misc.random(1) == 1) {
    				setAnimation(883);
    				deleteItem(359, getItemSlot(39), 1);
    				addSkillXP(820, 7);
    				addItem(361, 1);
    				sM("You successfully cook a tuna.");
    				lastAction = System.currentTimeMillis();
    			} else {
    				setAnimation(883);
    				deleteItem(359, getItemSlot(359), 1);
    				addItem(323, 1);
    				lastAction = System.currentTimeMillis();
    				sM("You accidentally burn a tuna.");
    			}
    		}
    		if (playerHasItem(371)) {
    			if (misc.random(1) == 0 || misc.random(1) == 1) {
    				setAnimation(883);
    				deleteItem(371, getItemSlot(371), 1);
    				addSkillXP(920, 7);
    				addItem(373, 1);
    				sM("You successfully cook a swordfish");
    				lastAction = System.currentTimeMillis();
    			} else {
    				setAnimation(883);
    				deleteItem(371, getItemSlot(371), 1);
    				addItem(375, 1);
    				lastAction = System.currentTimeMillis();
    				sM("You accidentally burn a swordfish.");
    			}
    		}
    		if (playerHasItem(383)) {
    			if (misc.random(1) == 0 || misc.random(1) == 1) {
    				setAnimation(883);
    				deleteItem(383, getItemSlot(383), 1);
    				addSkillXP(1180, 7);
    				addItem(385, 1);
    				sM("You successfully cook a shark.");
    				lastAction = System.currentTimeMillis();
    			} else {
    				setAnimation(883);
    				deleteItem(383, getItemSlot(383), 1);
    				addItem(387, 1);
    				lastAction = System.currentTimeMillis();
    				sM("You accidentally burn a shark.");
    			}
    		}
    		if (playerHasItem(389)) {
    			if (misc.random(1) == 0 || misc.random(1) == 1) {
    				setAnimation(883);
    				deleteItem(389, getItemSlot(389), 1);
    				addSkillXP(1190, 7);
    				addItem(391, 1);
    				sM("You successfully cook a manta ray.");
    				lastAction = System.currentTimeMillis();
    			} else {
    				setAnimation(883);
    				deleteItem(389, getItemSlot(389), 1);
    				addItem(393, 1);
    				lastAction = System.currentTimeMillis();
    				sM("You accidentally burn the manta ray.");
    			}
    		}
    		if (playerHasItem(377)) {
    			if (misc.random(1) == 0 || misc.random(1) == 1) {
    				setAnimation(883);
    				deleteItem(377, getItemSlot(377), 1);
    				addSkillXP(1000, 7);
    				addItem(379, 1);
    				sM("You successfully cook a lobster.");
    				lastAction = System.currentTimeMillis();
    			} else {
    				setAnimation(883);
    				deleteItem(377, getItemSlot(377), 1);
    				addItem(381, 1);
    				lastAction = System.currentTimeMillis();
    				sM("You accidentally burn the lobster.");
    			}
    		}
    		if (playerHasItem(7944)) {
    			if (misc.random(1) == 0 || misc.random(1) == 1) {
    				setAnimation(883);
    				deleteItem(7944, getItemSlot(7944), 1);
    				addSkillXP(1170, 7);
    				lastAction = System.currentTimeMillis();
    				sM("You successfully cook a monkfish.");
    				lastAction = System.currentTimeMillis();
    			} else {
    				setAnimation(883);
    				deleteItem(7944, getItemSlot(7944), 1);
    				addItem(7948, 1);
    				lastAction = System.currentTimeMillis();
    				sM("You accidentally burn the monkfish.");
    			}
    		}
    		if (playerHasItem(317)) {
    				deleteItem(317, getItemSlot(317), 1);
    				addSkillXP(500, 7);
    				addItem(315, 1);
    				sM("You successfully cook a shrimp.");
    				lastAction = System.currentTimeMillis();
    				setAnimation(883);
    		}
    }
     


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
  •