Untitled
unknown
plain_text
a year ago
551 B
5
Indexable
function onUse(cid, item, fromPosition, itemEx, toPosition)
if item.uid == 0 or item.itemid == 0 then return false end
toPosition.stackpos = 255
if item.uid == 0 or item.itemid == 0 then return false end
toPosition.stackpos = 255
local nam = getItemName(itemEx.uid)
local newNam = nam:gsub("%s*%[.*%]","") -- Eliminar cualquier texto entre corchetes en el nombre del item
doSendMagicEffect(toPosition, 30)
doItemSetAttribute(itemEx.uid, 'name', newNam)
doRemoveItem(item.uid, 1)
return true
endEditor is loading...
Leave a Comment