Got simple script for showing depot items, but I am getting one floor underground, wtf?
Lua:
function onStepIn(cid, item, frompos, topos)
local tileUnStepped1 = 426
local depotItems = getPlayerDepotItems(cid, 1)
if item.itemid == tileUnStepped1 then
if item.actionid == 3000 then
if depotItems < 2 then
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Your depot contains 1 item.")
else
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Your depot contains " .. depotItems .. " items.")
end
return TRUE
end
function onStepIn(cid, item, frompos, topos)
local tileUnStepped2 = 446
local depotItems = getPlayerDepotItems(cid, 1)
if item.itemid == tileUnStepped2 then
if item.actionid == 3000 then
if depotItems < 2 then
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Your depot contains 1 item.")
else
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Your depot contains " .. depotItems .. " items.")
end
return TRUE
end