hi can someone edit this script so it wont make me lvl 1 when i use it many times? its for a highexp server.
what happens
lvl 500000 ----> use exp scroll -----> lvl 1 -----> use exp scroll -----> 300001....................and so on
what i want to happen
lvl 500000 ----> use exp scroll -----> lvl 717217 ----> cant use anymore.
ohh, it also gives players debug!
what happens
lvl 500000 ----> use exp scroll -----> lvl 1 -----> use exp scroll -----> 300001....................and so on
what i want to happen
lvl 500000 ----> use exp scroll -----> lvl 717217 ----> cant use anymore.
ohh, it also gives players debug!
HTML:
local cfg = {
amount = 300000 -- here how many levels you want
}
function onUse(cid, item, fromPosition, itemEx, toPosition)
doPlayerAddLevel(cid, cfg.amount)
doCreatureSay(cid, "CONGRATULATIONS! You Have Advanced 300k Levels!. ", TALKTYPE_ORANGE_1)
doSendMagicEffect(getCreaturePosition(cid), 28)
doRemoveItem(item.uid,1)
return TRUE
end
Last edited: