Thread: How do you prevent items from moving when used in the inventory

Results 1 to 4 of 4
  1. #1 How do you prevent items from moving when used in the inventory 
    Member
    Join Date
    Aug 2008
    Posts
    32
    Thanks given
    0
    Thanks received
    0
    Rep Power
    0
    Basically when ever someone drinks a pot it goes the the highest available slot how do I make it so it stays in the slot it was when it was clicked? Same goes for when you equip and unequip armor.
    Reply With Quote  
     

  2. #2  
    Registered Member

    Join Date
    Oct 2007
    Posts
    1,063
    Thanks given
    155
    Thanks received
    162
    Rep Power
    286
    Wrong section, but anyway...


    Edit your add item method.
    The server sends the client to which slot it gets added.

    Don't let it search for the first free slot.
    Reply With Quote  
     

  3. #3  
    Member
    Join Date
    Aug 2008
    Posts
    32
    Thanks given
    0
    Thanks received
    0
    Rep Power
    0
    What do I change the add item method to and how would I do this for items?
    Reply With Quote  
     

  4. #4  
    How do you prevent items from moving when used in the inventory



    Scu11's Avatar
    Join Date
    Aug 2007
    Age
    30
    Posts
    16,307
    Thanks given
    7,215
    Thanks received
    12,308
    Rep Power
    5000
    Its not clientside moron. Look at the addItem method and find something like "getSlot();", replace that with an int specified, then use the slot it was clicked on.

    Attached image
    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

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