Fala galera!
Gostaria que vcs me ajudassem com uma script que troque a vocation do player de acordo com o level das skills dele.
Por exemplo:
Player 1 atinge Sword lvl 10, Critical lvl 10 e 25 Magic Level
ELE EVOLUI DA VOCATION ATUAL "x" para a VOCATION "y" determinada na SCRIPT
Vocation p/Skills

1 hora atrás, Coach Lord disse:Fala galera!
Gostaria que vcs me ajudassem com uma script que troque a vocation do player de acordo com o level das skills dele.
Por exemplo:
Player 1 atinge Sword lvl 10, Critical lvl 10 e 25 Magic Level
ELE EVOLUI DA VOCATION ATUAL "x" para a VOCATION "y" determinada na SCRIPT
Qual TFS vc ta usando
Agora, Coach Lord disse:
PQ vc nao pois o banco de dados? '-'
Qual link do topico q vc pegou?
Testa isso, em vocation poe a vocação
function onAdvance(player, skill, oldLevel, newLevel)
if getPlayerSkill(SKILL_FIST) == 20 and (getPlayerStorageValue(cid, 8484) == EMPTY_STORAGE) then
doPlayerSetVocation(cid, vocation)
setPlayerStorageValue(cid, 8000, 1)
doSendMagicEffect(getCreaturePosition(cid), CONST_ME_HOLYDAMAGE)
doPlayerSendTextMessage(cid,22,"Congratulations, you obtained a promotion!")
else
return true
end
end
Registra em creaturescript
2 minutos atrás, brazvct disse:PQ vc nao pois o banco de dados? '-'
Qual link do topico q vc pegou?Testa isso, em vocation poe a vocação
function onAdvance(player, skill, oldLevel, newLevel) if getPlayerSkill(SKILL_FIST) == 20 and (getPlayerStorageValue(cid, 8484) == EMPTY_STORAGE) then doPlayerSetVocation(cid, vocation) setPlayerStorageValue(cid, 8000, 1) doSendMagicEffect(getCreaturePosition(cid), CONST_ME_HOLYDAMAGE) doPlayerSendTextMessage(cid,22,"Congratulations, you obtained a promotion!") else return true end end
Nao coloquei o banco de dados ainda pq tava organizando o Znote e as SPR do cliente. Fazendo Layout's etc... agora que vou entrar no servidor.
Perai to almoçando ja testo.
local vocation = 2
function onAdvance(player, skill, oldLevel, newLevel)
if getPlayerSkill(SKILL_FIST) == 20 and getPlayerSkill(SKILL_SWORD) == 25 then
doPlayerSetVocation(cid, vocation)
doSendMagicEffect(getCreaturePosition(cid), CONST_ME_HOLYDAMAGE)
doPlayerSendTextMessage(cid, 27, "Congratulations, you received a new vocation!")
else
return true
end
end
Usa esse
53 minutos atrás, brazvct disse:local vocation = 2
function onAdvance(player, skill, oldLevel, newLevel)
if getPlayerSkill(SKILL_FIST) == 20 and getPlayerSkill(SKILL_SWORD) == 25 then
doPlayerSetVocation(cid, vocation)
doSendMagicEffect(getCreaturePosition(cid), CONST_ME_HOLYDAMAGE)
doPlayerSendTextMessage(cid, 27, "Congratulations, you received a new vocation!")
else
return true
end
end
Usa esse
PErai que estou com problemas na DATABASE agora , cosnegue me ajudar? Nao sei os camando para executar. Fala que tafaltando as table de history, skills
To quase terminando de arrumar