Sirion_Mido
Experienced Member
now this script when you use items it will add for you a level xx
Lua:
local cfg = {
amount = 2 <!-- here how many levels you want -->
}
function onUse(cid, item, fromPosition, itemEx, toPosition)
doPlayerAddLevel(cid, cfg.amount)
doPlayerSendTextMessage(cid, 28, "You Have Advanced 2 Levels")
doSendTextAnimated(getCreaturePosition(cid), 28, TEXTCOLOR_RED
doSendMagicEffect(getCreaturePosition(cid), 28
doRemoveItem(cid, item, 1)
return true
end
Last edited: