this is how i want this script to work, the player buys a skill scroll and depending on the player current skill the script will set his skill to some other skill understand lol? example if player has 150 axe skill and says the command, then set skill axe to 200, another one, if axe skill is 200 or higher, then set skill to 250, if player axe skill is 250 or higher then set skill to 300 if axe skill is 300 or higher set skill level to 350 if skill level 350 or higher set axe skill to 400, and it will stop at 400 hehe this is the script i have right now
this script right now will set the player axe skill to 400 regardless of the skill he has i have like 6 other scripts that add different skills to the players but i only need this one just to see an example i can edit the other ones. thank you i really need this script!
PHP:
function onSay(cid, words, param)
if (getTilePzInfo(getCreaturePosition(cid)) == FALSE) then
doPlayerSendTextMessage(cid,22,"You need to be in a protection zone to use this command.")
return TRUE
end
if doPlayerRemoveItem(cid,5952,1) and getPlayerVocation(cid) == 8 then
doPlayerSetSkill(cid, 3, 400)
else
doPlayerSendCancel(cid, 'You need to be promoted to Elite Knight, and have a skill scroll to use this command.')
doSendMagicEffect(getPlayerPosition(cid), CONST_ME_FLAMEAREA)
end
end