Thread: Just won't work :/

Page 1 of 2 12 LastLast
Results 1 to 10 of 14
  1. #1 Just won't work :/ 
    Member Market Banned Market Banned
    Mr Joopz's Avatar
    Join Date
    Aug 2012
    Age
    23
    Posts
    1,412
    Thanks given
    259
    Thanks received
    96
    Rep Power
    14
    I'm not sure why this won't work, because I've never had an issue before, but I'm trying to make it so you use 5000 gano flakes on a mycillum poncho to make a ganodermic ponch, but it does nothing.

    Code:
    if (player.getEquipment().getWeaponId() == -1 && itemUsed.getId() == 22451 && usedWith.getId() == 22456) {
    				if (player.getInventory().containsItem(22451, 5000) 
    				&& (player.getInventory().containsItem(22456, 1))) {
    				player.getInventory().deleteItem(22456, 1);
    				player.getInventory().deleteItem(22451, 5000);
    				player.getInventory().addItem(22490, 1);
    				player.getDialogueManager().startDialogue("Ganodermic");
    				return;
    				}
    			}
    		}
    I changed it many times, but nothing. Thanks!
    Reply With Quote  
     

  2. #2  
    Registered Member
    maffia-rpg's Avatar
    Join Date
    Jul 2011
    Posts
    2,776
    Thanks given
    587
    Thanks received
    759
    Rep Power
    120
    Probably wrong inventory option.
    Reply With Quote  
     

  3. #3  
    Member Market Banned Market Banned
    Mr Joopz's Avatar
    Join Date
    Aug 2012
    Age
    23
    Posts
    1,412
    Thanks given
    259
    Thanks received
    96
    Rep Power
    14
    This similar method worked for the polystaff.
    Reply With Quote  
     

  4. #4  
    The stupid noob


    Join Date
    May 2011
    Age
    26
    Posts
    2,227
    Thanks given
    2,446
    Thanks received
    1,100
    Rep Power
    852
    You have one extra bracket in that block if that makes a difference.

    Edit: Double check and make sure the other item on item methods you have still work properly.
    Reply With Quote  
     

  5. #5  
    Registered Member
    maffia-rpg's Avatar
    Join Date
    Jul 2011
    Posts
    2,776
    Thanks given
    587
    Thanks received
    759
    Rep Power
    120
    Quote Originally Posted by user name.. View Post
    This similar method worked for the polystaff.
    You should print out what option it is, to be sure. Or you fucked it up with the brackets.
    Reply With Quote  
     

  6. #6  
    Member Market Banned Market Banned
    Mr Joopz's Avatar
    Join Date
    Aug 2012
    Age
    23
    Posts
    1,412
    Thanks given
    259
    Thanks received
    96
    Rep Power
    14
    If I take away the bracket I get 76 errors lol
    Reply With Quote  
     

  7. #7  
    The stupid noob


    Join Date
    May 2011
    Age
    26
    Posts
    2,227
    Thanks given
    2,446
    Thanks received
    1,100
    Rep Power
    852
    Quote Originally Posted by user name.. View Post
    If I take away the bracket I get 76 errors lol
    You probably placed that check at the bottom of the block, could be unreachable. Try and place it somewhere in the middle of the others or something.

    Try below;
    Code:
    	if (itemUsed.getId() == LeatherCrafting.NEEDLE.getId()
    					|| usedWith.getId() == LeatherCrafting.NEEDLE.getId()) {
    				if (LeatherCrafting
    						.handleItemOnItem(player, itemUsed, usedWith)) {
    					return;
    				}
    			}
    Reply With Quote  
     

  8. #8  
    Member Market Banned Market Banned
    Mr Joopz's Avatar
    Join Date
    Aug 2012
    Age
    23
    Posts
    1,412
    Thanks given
    259
    Thanks received
    96
    Rep Power
    14
    Still not working, could anyone write one up for me please
    Reply With Quote  
     

  9. #9  
    The stupid noob


    Join Date
    May 2011
    Age
    26
    Posts
    2,227
    Thanks given
    2,446
    Thanks received
    1,100
    Rep Power
    852
    Quote Originally Posted by user name.. View Post
    Still not working, could anyone write one up for me please
    Did you check and see if the other methods work? Such as crafting?

    Because there's nothing wrong from the looks of the code.
    Reply With Quote  
     

  10. #10  
    Member Market Banned Market Banned
    Mr Joopz's Avatar
    Join Date
    Aug 2012
    Age
    23
    Posts
    1,412
    Thanks given
    259
    Thanks received
    96
    Rep Power
    14
    Quote Originally Posted by Tylerr View Post
    Did you check and see if the other methods work? Such as crafting?

    Because there's nothing wrong from the looks of the code.
    Adding it as a crafting method are you saying?
    Reply With Quote  
     

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

Similar Threads

  1. adding ints won't work with npc death
    By pureiiipker in forum Help
    Replies: 12
    Last Post: 07-04-2009, 12:20 AM
  2. Hmm this won't work..
    By Zoft in forum Help
    Replies: 1
    Last Post: 06-29-2009, 11:06 PM
  3. Replies: 7
    Last Post: 04-25-2009, 11:31 PM
  4. [Dodian] item on object won't work
    By Zahhak in forum Help
    Replies: 2
    Last Post: 03-13-2009, 08:23 AM
  5. Replies: 2
    Last Post: 01-30-2009, 01:16 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •