use:
if getPlayerVocation(cid) == 1 or getPlayerVocation(cid) == 5 then
doPlayerAddMagLevel(cid, 1) -- magic level
doPlayerAddSkill(cid,5,1) -- skill shield
doPlayerSendTextMessage(cid,22,"Voce Ganhou Pontos Em Skills de magic e shield")
end
if getPlayerVocation(cid) == 3 or getPlayerVocation(cid) == 6 then
doPlayerAddMagLevel(cid, 1) -- magic level
doPlayerAddSkill(cid,5,1) -- skill shield
doPlayerSendTextMessage(cid,22,"Voce Ganhou Pontos Em Skills de magic e shield")
end
if getPlayerVocation(cid) == 3 or getPlayerVocation(cid) == 7 then
doPlayerAddSkill(cid,4,1) -- skill distance
doPlayerAddSkill(cid,5,1) -- skill shield
doPlayerSendTextMessage(cid,22,"Voce Ganhou Pontos Em Skills de Distance e shield")
end
if getPlayerVocation(cid) == 4 or getPlayerVocation(cid) == 8 then
doPlayerAddSkill(cid,2,1) -- skill sword
doPlayerAddSkill(cid,3,1) -- skill axe
doPlayerSendTextMessage(cid,22,"Voce Ganhou Pontos Em Skills de sword e axe")
end
explicação:
doPlayerAddMagLevel(cid, 1) -- magic level
vermelho: quanto de skill que vai subir
doPlayerAddSkill(cid,2,1)
azul: Numero da skill
vermelho: quanto de skill Msgic level que vai subir
lista de skill:
0, Fist.
1, Club.
2, Sword.
3, Axe.
4, Distance.
5, Shielding.
6, Fishing.