Relic
Mapper and Scripter
Hi there. I'm looking for a script for skill scroll that would increase player's skill level by 1.
I've been using this one for a while but the scroll only increases player's skill level by a certain number of tries, which is annoying:
Thank you!
I've been using this one for a while but the scroll only increases player's skill level by a certain number of tries, which is annoying:
HTML:
local config = {maxlvl = 80, trys = 1000, skilltype = 2}
function onUse(cid, item, fromPosition, itemEx, toPosition)
if getPlayerSkill(cid,2) <= config.maxlvl then
doPlayerAddSkillTry(cid, config.skilltype, config.trys)
doRemoveItem(item.uid, 1)
doPlayerSendTextMessage(cid,TALKTYPE_BROADCAST, "CONGRATULATIONS! You've gained ".. config.trys .." skill tries from the skill up scroll!")
else
doPlayerSendCancel(cid, "Your skill level is too high.")
end
return TRUE
end
Thank you!