mirror of
https://github.com/OTCv8/otclientv8.git
synced 2025-04-30 03:09:20 +02:00
34 lines
1.7 KiB
Lua
34 lines
1.7 KiB
Lua
local context = G.botContext
|
|
|
|
context.SlotOther = InventorySlotOther
|
|
context.SlotHead = InventorySlotHead
|
|
context.SlotNeck = InventorySlotNeck
|
|
context.SlotBack = InventorySlotBack
|
|
context.SlotBody = InventorySlotBody
|
|
context.SlotRight = InventorySlotRight
|
|
context.SlotLeft = InventorySlotLeft
|
|
context.SlotLeg = InventorySlotLeg
|
|
context.SlotFeet = InventorySlotFeet
|
|
context.SlotFinger = InventorySlotFinger
|
|
context.SlotAmmo = InventorySlotAmmo
|
|
context.SlotPurse = InventorySlotPurse
|
|
|
|
context.getInventoryItem = function(slot) return context.player:getInventoryItem(slot) end
|
|
context.getSlot = context.getInventoryItem
|
|
|
|
context.getHead = function() return context.getInventoryItem(context.SlotHead) end
|
|
context.getNeck = function() return context.getInventoryItem(context.SlotNeck) end
|
|
context.getBack = function() return context.getInventoryItem(context.SlotBack) end
|
|
context.getBody = function() return context.getInventoryItem(context.SlotBody) end
|
|
context.getRight = function() return context.getInventoryItem(context.SlotRight) end
|
|
context.getLeft = function() return context.getInventoryItem(context.SlotLeft) end
|
|
context.getLeg = function() return context.getInventoryItem(context.SlotLeg) end
|
|
context.getFeet = function() return context.getInventoryItem(context.SlotFeet) end
|
|
context.getFinger = function() return context.getInventoryItem(context.SlotFinger) end
|
|
context.getAmmo = function() return context.getInventoryItem(context.SlotAmmo) end
|
|
context.getPurse = function() return context.getInventoryItem(context.SlotPurse) end
|
|
|
|
|
|
context.getContainers = function() return g_game.getContainers() end
|
|
context.getContainer = function(index) return g_game.getContainer(index) end
|