View Single Post
04/18/18, 01:34 AM   #4
Dolgubon
 
Dolgubon's Avatar
AddOn Author - Click to view addons
Join Date: Jan 2016
Posts: 409
Originally Posted by Phuein View Post
I've been trying different calls and options for hours, and I only got as far as this:

Code:
PLAYER_INVENTORY:RefreshInventorySlotLocked(1, slotId, lock, bagId)
All values checked valid. It only fades out the item and toggles the .locked property, but doesn't do the rest of what happens when locking an item. Is there just a simple call to lock/unlock items? I couldn't find it. I found this:
http://esodata.uesp.net/100022/src/i....lua.html#2694
http://esodata.uesp.net/100022/src/i....lua.html#1595
What you are toggling there is just the UI's lock value. You aren't actually changing the base game's UI value. So if the Inventory ran a refresh then the item wouldn't be 'locked' anymore. It's like you are telling someone some false information, but you aren't actually changing the records where that information is kept.
  Reply With Quote