carlinhous1996
New Member
this script makes people with item 10142 go through a certain port. How do I replace this item with the storage
40210) >= 6 then
it's possible?
40210) >= 6 then
it's possible?
Lua:
if item.uid == 5231 then
local items = { --[Quantidade] = ITEMID,
[1] = 10142,
}
for count, id in pairs(items) do
if getPlayerItemCount(cid, id) < count then
doPlayerSendTextMessage(cid,20, "Voce nao tem "..(count - getPlayerItemCount(cid, id)).." ".. getItemNameById(id).." para passar.")
doSendMagicEffect(fromPosition, CONST_ME_POFF)
return false
end
end
doorEnter(cid, item, toPosition)
return true
end