Thread: cooking

Results 1 to 2 of 2
  1. #1 cooking 
    Registered Member
    Eminem™'s Avatar
    Join Date
    Oct 2008
    Age
    30
    Posts
    2,044
    Thanks given
    19
    Thanks received
    44
    Rep Power
    1743
    this is my code.
    Code:
    		if(itemId == 377 && player.getLevelForXP(7) >= 40) { //raw lobster cook	
    		Engine.playerItems.deleteItem(player, 377, Engine.playerItems.getItemSlot(player, 377), 1);
    		Engine.playerItems.addItem(player, 379, 1);
                            player.requestAnim(883, 0);
    		player.appendExperience(500, 7);
    		player.getActionSender().sendMessage(player, "You cook the raw lobster.");
    		}
    how do i make it so it will say you need 40 cook to cook loster.
    I know this part i just need to know first part.
    player.getActionSender().sendMessage(player, "You cook the raw lobster.");


    As Legit As I Can Be.
    Formerly That One Choob/Tehsexibitch
    Reply With Quote  
     

  2. #2  
    Registered Member
    Nando's Avatar
    Join Date
    Feb 2009
    Age
    29
    Posts
    3,517
    Thanks given
    2,439
    Thanks received
    1,108
    Rep Power
    5000
    Code:
    if(p.skillLvl[7] < 40) {
    p.getActionSender().sendMessage(p, "You need the cooking level of 40 to cook this.");
    	return;
    }


    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

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