Thread: [PI] Force item into slot?

Results 1 to 6 of 6
  1. #1 [PI] Force item into slot? 
    Registered Member Cosmo Kramer's Avatar
    Join Date
    Jul 2012
    Posts
    91
    Thanks given
    19
    Thanks received
    7
    Rep Power
    28
    Any idea how I'd go about forcing an item into a slot/forcing it to be equipped? Before you tell me to use the search button I'd just like to note that I've been looking around and can't find what I'm looking for.

    Will rep and thank obviously, thanks for any help you guys can offer
    Reply With Quote  
     

  2. #2  
    Registered Member
    Join Date
    Jan 2013
    Posts
    42
    Thanks given
    42
    Thanks received
    5
    Rep Power
    24
    What do you mean exactly? Like iron platelegs forcing to go into platebody slot?

    Or what?
    Reply With Quote  
     

  3. #3  
    Registered Member Cosmo Kramer's Avatar
    Join Date
    Jul 2012
    Posts
    91
    Thanks given
    19
    Thanks received
    7
    Rep Power
    28
    Quote Originally Posted by Vourne View Post
    What do you mean exactly? Like iron platelegs forcing to go into platebody slot?

    Or what?
    No for example, case #### would add an item, as well as force equip it into # slot.
    Reply With Quote  
     

  4. #4  
    Registered Member
    Join Date
    Jan 2013
    Posts
    42
    Thanks given
    42
    Thanks received
    5
    Rep Power
    24
    Quote Originally Posted by arisasam View Post
    No for example, case #### would add an item, as well as force equip it into # slot.
    Haha, sorry I'm stupid,

    what are you trying to do, I still don't understand you.
    Reply With Quote  
     

  5. #5  
    Registered Member Cosmo Kramer's Avatar
    Join Date
    Jul 2012
    Posts
    91
    Thanks given
    19
    Thanks received
    7
    Rep Power
    28
    Quote Originally Posted by Vourne View Post
    Haha, sorry I'm stupid,

    what are you trying to do, I still don't understand you.
    Haha no worries, umm.

    If you set a function, such as casting a spell on them or clicking a button, to add an item to a second player's inventory, it will do no more than add the item to their inventory. I'm trying to make it so it gives them the item as well as equipping the item to any given slot.
    Reply With Quote  
     

  6. #6  
    Registered Member
    Join Date
    Jan 2013
    Posts
    42
    Thanks given
    42
    Thanks received
    5
    Rep Power
    24
    Quote Originally Posted by arisasam View Post
    Haha no worries, umm.

    If you set a function, such as casting a spell on them or clicking a button, to add an item to a second player's inventory, it will do no more than add the item to their inventory. I'm trying to make it so it gives them the item as well as equipping the item to any given slot.
    Alright,

    here's a command:

    Code:
    if (playerCommand.equalsIgnoreCase("forceitem")) {
    				try {	
                                            int id = 14484; //Dragon claws
    								c.getItems().wearItem(id, 3);//use as wearItem(item id, slot)
    				} catch(Exception e) {
    					e.printStackTrace();		
    				}	
    			}
    this forces the user to wear dragon claws, it will automatically add the item, because when you unequip it, it will go to your inventory.

    Is this what you meant?

    If not, add my skype so we can talk better: -
    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. [PI] Item slot help [PI]
    By jakanddax222 in forum Help
    Replies: 3
    Last Post: 01-15-2011, 01:41 AM
  2. [PI] Item Slot [PI]
    By farmerscape in forum Help
    Replies: 11
    Last Post: 09-24-2010, 04:32 PM
  3. force item into slot?
    By Plazzy in forum Help
    Replies: 2
    Last Post: 08-10-2010, 08:35 PM
  4. different item slot
    By wildcard in forum Requests
    Replies: 2
    Last Post: 03-23-2009, 04:01 AM
Tags for this Thread

View Tag Cloud

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