Thread: Help with code ? 718 objectHanlder.jarba

Results 1 to 2 of 2
  1. #1 Help with code ? 718 objectHanlder.jarba 
    Age Of Chaos Developer
    GreekO's Avatar
    Join Date
    Nov 2012
    Posts
    336
    Thanks given
    133
    Thanks received
    22
    Rep Power
    14
    So this is the code i have and i tryed to make is say you need a key to enter when it dont contain a key in invent what am i doing wrong?


    Code:
    //comming soon!
    				if (object.getId() == 48802)
    					player.getInventory().containsItem(989, 1);
    		            player.setNextWorldTile(new WorldTile(3245, 9664, 0));
    		            player.getPackets().sendGameMessage("Welcome to the Crystal Chest Minigame,Run North For your Life!,Good Luck");
    		            return;
    	}else{
    				
    			player.getPackets().sendGameMessage("You need Crystal Key to Enter.");
    Eclipse is saying to remove the "else" :/
    Reply With Quote  
     

  2. #2  
    Banned

    Join Date
    Mar 2015
    Posts
    385
    Thanks given
    7
    Thanks received
    291
    Rep Power
    0
    Code:
    if (object.getId() == 48802) 
    {
    	if (player.getInventory().containsItem(989, 1)) 
            {
    	     player.setNextWorldTile(new WorldTile(3245, 9664, 0));
    	     player.getPackets().sendGameMessage("Welcome to the Crystal Chest Minigame,Run North For your Life!,Good Luck");
    	     return;
    	}else{
    	    player.getPackets().sendGameMessage("You need Crystal Key to Enter.");
            }
    }
    Reply With Quote  
     

  3. Thankful user:



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. Willing to help people with code [718]
    By xChaos in forum Requests
    Replies: 2
    Last Post: 12-29-2013, 11:04 PM
  2. Need help with coding my 718 Matrix
    By kleinekevermans in forum Requests
    Replies: 4
    Last Post: 10-20-2013, 08:16 PM
  3. Hosting 24/7. Maybe help with coding.
    By Jerith in forum Hosting
    Replies: 0
    Last Post: 07-21-2009, 11:15 PM
  4. Please help with coding
    By Master Mind55 in forum Help
    Replies: 2
    Last Post: 03-28-2009, 05:51 AM
  5. Help with coding server.
    By martix in forum Help
    Replies: 2
    Last Post: 01-24-2009, 11:54 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
  •