donacool
Mapper Scripter Ot Owner
- Joined
- Jan 15, 2010
- Messages
- 97
- Reaction score
- 0
hey i maked this script so when you get at level 200
you vocation get changed.
but when i tested it the server tells me that ")" is expected near shadow.
how do i fix this?
you vocation get changed.
but when i tested it the server tells me that ")" is expected near shadow.
how do i fix this?
PHP:
function onAdvance(cid,skill, oldLevel, newLvel)
if isPlayer(cid) and getPlayerLevel(cid) == 200 then
if getPlayerVocation(cid) == 1 then
doPlayerSetVocation(cid, Elite Shadow Wizzard)
doSendAnimatedText(getCreaturePos(cid), "Your vocation has changed!", 150)
elseif getPlayerVocation(cid) == 2 then
doPlayerSetVocation(cid, Elite Shadow Mare)
doSendAnimatedText(getCreaturePos(cid), "Your vocation has changed!", 150)
elseif getPlayerVocation(cid) == 3 then
doPlayerSetVocation(cid, Elite Shadow Vain)
doSendAnimatedText(getCreaturePos(cid), "Your vocation has changed!", 150)
elseif getPlayerVocation(cid) == 4 then
doPlayerSetVocation(cid, Elite Shadow Bersenerker)
doSendAnimatedText(getCreaturePos(cid), "Your vocation has changed!", 150)
end
return true
end
return true
end
return true
Last edited: