Thread: [718] 2H Item

Results 1 to 3 of 3
  1. #1 [718] 2H Item 
    Registered Member
    Join Date
    Jan 2014
    Posts
    3
    Thanks given
    0
    Thanks received
    0
    Rep Power
    0
    I have a two handed item that needs to be one handed so you can wield a shield with it , how do i fix this?
    Reply With Quote  
     

  2. #2  
    Registered Member
    Join Date
    Apr 2014
    Posts
    80
    Thanks given
    4
    Thanks received
    1
    Rep Power
    11
    Code:
    }
    	if (!ItemConstants.canWear(item, player))
    	    return true;
    	boolean isTwoHandedWeapon = targetSlot == 3
    		&& Equipment.isTwoHandedWeapon(item);
    	if (isTwoHandedWeapon && !player.getInventory().hasFreeSlots()
    		&& player.getEquipment().hasShield()) {
    	    player.getPackets().sendGameMessage(
    		    "Not enough free space in your inventory.");
    	    return true;
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Jan 2014
    Posts
    3
    Thanks given
    0
    Thanks received
    0
    Rep Power
    0
    Fixed it myself , was actually pretty easy lol
    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. [718]Custom items
    By Monum3ntal in forum Help
    Replies: 12
    Last Post: 11-23-2013, 10:55 PM
  2. 718 add item when kill somebody
    By L3git in forum Help
    Replies: 7
    Last Post: 09-20-2012, 01:01 AM
  3. Replies: 9
    Last Post: 09-01-2012, 09:39 PM
  4. 718 Getbank items method :O
    By izaazkothawala in forum Help
    Replies: 9
    Last Post: 08-24-2012, 01:54 PM
  5. remove shield when 2h item is equiped.
    By JeremyM in forum Help
    Replies: 7
    Last Post: 10-28-2009, 09:20 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
  •