items do not disappear, but it creates the helmet.thz
tfs 0.3.6 thz
PHP:
local pos = {x=33198, y=32876, z=11}
function onStepIn(cid, item, position)
if isPlayer(cid) == TRUE then
local it = {}
for i = 2335, 2341 do
local _i = getTileItemById(pos, i).uid
if _i > 0 then it[i] = _i else return end
end
for _, v in ipairs(it) do
doRemoveItem(v)
end
doCreateItem(2342, 1, pos)
doSendMagicEffect(pos, CONST_ME_FIREAREA)
end
end
tfs 0.3.6 thz
Last edited: