Untitled
Anonymous
plain_text
06/09/2024 3:14 AM
960 B
12
Indexable
local config = {
animationColor = TEXTCOLOR_LIGHTBLUE, --[[Color de la animación | Por defecto = Azul Claro]]
textType = TALKTYPE_ORANGE_1, --[[Color del texto | Por defecto = Verde]]
levelGain = 10 -- Cantidad de niveles que se ganarán
}
function onUse(cid, item, fromPosition, itemEx, toPosition)
local currentLevel = getPlayerLevel(cid)
local newLevel = currentLevel + config.levelGain
doPlayerSetLevel(cid, newLevel)
doSendAnimatedText(getThingPosition(cid), "+" .. config.levelGain, config.animationColor)
doPlayerSendTextMessage(cid, config.textType, "Has ganado " .. config.levelGain .. " niveles. ¡Felicidades!")
doRemoveItem(item.uid, 1)
return true
endEditor is loading...
Leave a Comment