Hello, i just release some basic scripts ^^
This will add levels to your character when you use the item!
This will add levels to your character when you use the item!
Lua:
local config = {
addlevels = 1, --- How many levels you will get!
itemid = 6119, --- What item you use
maxlevel = 100 --- Over this level you can't use this item
}
function onUse(cid, item, fromPosition, itemEx, toPosition)
if getPlayerLevel(cid) > config.maxlevel then
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR,"You are to high level to use this scroll!")
else
doPlayerAddLevel(cid, config.addlevels)
doCreatureSay(cid, "You have recived "..config.addlevels.." levels!", TALKTYPE_ORANGE_1)
doRemoveItem(item.uid)
end
return TRUE
end