• 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!

Windows DepotItems

Hanoger

Member
Joined
Mar 7, 2011
Messages
247
Reaction score
6
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
 
so check any other movement scripts or only leave this script enabled in movements.xml, then find the culprit script

btw you have 2 onStepIn functions
 

Similar threads

Back
Top