Pawcio6
Member
- Joined
- Sep 26, 2009
- Messages
- 143
- Solutions
- 4
- Reaction score
- 15
Hi
I want to create custom otclient slots but when i tried get item with this
it works only when container is open but there is a way to link a item without any player help?
I want to create custom otclient slots but when i tried get item with this
Code:
local item = player:getInventoryItem(InventorySlotExtra)
skillsWindow:getChildById('itemView'):setItemId(item:getId())
skillsWindow:getChildById('itemView'):setItem(item)
local container = g_game.getContainer(skillsWindow:getChildById('itemView').index)
skillsWindow:getChildById('itemView2'):setItemId(container:getItem(2):getId())
skillsWindow:getChildById('itemView2'):setItem(container:getItem(2))
skillsWindow:getChildById('itemView2').position = container:getSlotPosition(2)