Thread: Can't wear any items [Matrix]

Results 1 to 6 of 6
  1. #1 Can't wear any items [Matrix] 
    Registered Member
    Join Date
    Oct 2012
    Posts
    66
    Thanks given
    1
    Thanks received
    0
    Rep Power
    11
    Whenever I try to equip an item it will just say "you can't wear that"

    I fixed it sort of but all the items would just go into slot 3 so I reverted it back.

    Heres my buttonhandler.java file where it is.


    public static boolean sendWear(Player player, int slotId, int itemId) {
    if (player.hasFinished() || player.isDead())
    return false;
    player.stopAll(false, false);
    Item item = player.getInventory().getItem(slotId);
    String itemName = item.getDefinitions() == null ? "" : item
    .getDefinitions().getName().toLowerCase();
    if (item == null || item.getId() != itemId)
    return false;
    if (item.getDefinitions().isNoted()
    || !item.getDefinitions().isWearItem(player.getAppear ence().isMale())) {
    player.getPackets().sendGameMessage("You can't wear that.");
    return true;
    }
    int targetSlot = Equipment.getItemSlot(itemId);
    if (targetSlot == -1) {
    player.getPackets().sendGameMessage("You can't wear that.");
    return true;
    }
    if (item.getDefinitions().isNoted()
    || !item.getDefinitions().isWearItem(player.getAppear ence().isMale()) && itemId != 4084) {
    player.getPackets().sendGameMessage("You can't wear that.");
    return false;
    }
    int targetSlot = Equipment.getItemSlot(itemId);
    if(itemId == 4084)
    targetSlot = 3;
    if (targetSlot == -1) {
    player.getPackets().sendGameMessage("You can't wear that.");
    return false;
    }
    Reply With Quote  
     

  2. #2  
    Strive for whats best.

    Chaz's Avatar
    Join Date
    Jul 2012
    Age
    28
    Posts
    2,499
    Thanks given
    376
    Thanks received
    614
    Rep Power
    170
    Did you do anything to ItemDefenitions.java?
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Oct 2012
    Posts
    66
    Thanks given
    1
    Thanks received
    0
    Rep Power
    11
    Quote Originally Posted by Java! View Post
    Did you do anything to ItemDefenitions.java?
    No? Unless I added the opcodes.
    Reply With Quote  
     

  4. #4  
    Registered Member

    Join Date
    May 2012
    Posts
    326
    Thanks given
    44
    Thanks received
    43
    Rep Power
    96
    It's probably something retarded you didn't notice. Revert everything and you'll probably be better off.
    Reply With Quote  
     

  5. #5  
    Registered Member
    Join Date
    Oct 2012
    Posts
    66
    Thanks given
    1
    Thanks received
    0
    Rep Power
    11
    Quote Originally Posted by RuneRebellion View Post
    It's probably something retarded you didn't notice. Revert everything and you'll probably be better off.
    I've tried that and still nothing,
    Reply With Quote  
     

  6. #6  
    Developer

    Holy Symbol's Avatar
    Join Date
    Dec 2011
    Age
    25
    Posts
    1,763
    Thanks given
    1,093
    Thanks received
    239
    Rep Power
    365
    Its the opcodes. Remove the opcodes you don't need and it should work fine.
    Spoiler for big sig:


    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

Similar Threads

  1. i cant wear items anymore...
    By yesimanub in forum Help
    Replies: 8
    Last Post: 08-01-2012, 06:06 AM
  2. must wear 4 items to be able to attack
    By Braveyy in forum Help
    Replies: 2
    Last Post: 03-10-2012, 05:37 PM
  3. Players cannot wear items.
    By ProjectAurora in forum Help
    Replies: 2
    Last Post: 11-15-2011, 09:33 AM
  4. [PI]Where are wear items set
    By zivkovic in forum Help
    Replies: 2
    Last Post: 11-10-2011, 08:11 PM
  5. Wear items ?
    By Jord in forum Help
    Replies: 0
    Last Post: 08-29-2011, 06:53 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
  •