Untitled
unknown
lua
2 years ago
651 B
8
Indexable
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
endEditor is loading...