Thread: Unequip items

Results 1 to 2 of 2
  1. #1 Unequip items 
    Registered Member

    Join Date
    Sep 2008
    Posts
    4,833
    Thanks given
    894
    Thanks received
    1,439
    Rep Power
    2924
    Been looking for a while, which PI Method handles Unequipping it items from a certain slot & putting it into invent? As i dont want to delete the item and re-add it. Because that requires a BIG loop to find out which item id they had previously.
    "Know thy self, know thy enemy. A thousand battles, a thousand victories." - Sun Tzu
    GitHub: https://github.com/Faris-Mckay
    Reply With Quote  
     

  2. #2  
    Registered Member

    Join Date
    Sep 2008
    Posts
    4,833
    Thanks given
    894
    Thanks received
    1,439
    Rep Power
    2924
    Nvm, found this for those who want it ,use a switch to specifiy item
    so for example

    Code:
     switch (player.playerEquipment[3]) {
                case 1267:
                case 1269:
    			case 1271:
    			case 1273:
    			case 1275:
                    player.getItems().removeItem(player.playerEquipment[3], 3);
                    break;
            }
    "Know thy self, know thy enemy. A thousand battles, a thousand victories." - Sun Tzu
    GitHub: https://github.com/Faris-Mckay
    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. Replies: 7
    Last Post: 07-26-2011, 05:18 AM
  2. [517] Item is unequip able !!
    By Snake in forum Help
    Replies: 1
    Last Post: 01-11-2011, 10:07 PM
  3. Replies: 5
    Last Post: 08-04-2010, 06:10 AM
  4. [562] Actions on Unequip Item
    By snwspeckle in forum Help
    Replies: 0
    Last Post: 07-25-2010, 06:18 PM
  5. 554 Equip/Unequip Stand/Walk Animations
    By Armo in forum Show-off
    Replies: 10
    Last Post: 09-01-2009, 11:09 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
  •