• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

OTClient New Slot Otclient

alejandro762

Well-Known Member
Joined
Sep 6, 2021
Messages
225
Reaction score
64
I followed this tutorial: TFS 1.X+ - Help new inventory slot TFS 1.3 and OTClient (https://otland.net/threads/help-new-inventory-slot-tfs-1-3-and-otclient.264537/)

Everything seems correct ( also i have added the slot to movements & luascript )

Using TFS 1.4

OnEquip / DeEquip works, slot is showed up but picture of the item is not showing,, what could be ?

1706474043732.png

Lua:
Ring2Slot < InventoryItem
  id: slot12
  image-source: /images/game/slots/finger
  &position: {x=65535, y=12, z=0}
  $on:
    image-source: /images/game/slots/finger-blessed

RingSlot
        anchors.top: prev.bottom
        anchors.horizontalCenter: prev.horizontalCenter
        margin-top: 3


InventorySlotRing2 = 12
InventorySlotFirst = 1
InventorySlotLast = 12


Solved:

id was incorrect as i revert with hotkey the code i just add the correct id on creature.h
 
Last edited:
Back
Top