Untitled
lua
a month ago
651 B
1
Indexable
Never
function onUse(cid, item, fromPosition, itemEx, toPosition) local requiredStorageValue = 20039 -- Cambia este valor al que necesites if item.actionid == 7800 then local playerStorageValue = getPlayerStorageValue(cid, requiredStorageValue) if playerStorageValue >= 1 then if item.itemid == 6196 then doTeleportThing(cid, toPosition, true) doTransformItem(item.uid, 6197) end else doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You need the required storage value to use this item.") end end return true end