Qual é os ID's das vocations?
info
Grupo: Artesão
Registrado: 13/05/10
Posts: 114
Reputação: +11

info
Grupo: Campones
Registrado: 05/06/10
Posts: 58
Reputação: +13
Char no Tibia: noob

local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)
function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end
function onCreatureDisappear(cid) npcHandler:onCreatureDisappear(cid) end
function onCreatureSay(cid, type, msg) npcHandler:onCreatureSay(cid, type, msg) end
function onThink() npcHandler:onThink() end
function promotion(cid, message, keywords, parameters, node)
if(not npcHandler:isFocused(cid)) then
return false
end
if isPremium(cid) then
if(getPlayerPromotionLevel(cid) >= parameters.promotion) then
npcHandler:say('You are already promoted!', cid)
elseif(getPlayerLevel(cid) < parameters.level) then
npcHandler:say('I am sorry, but I can only promote you once you have reached level ' .. parameters.level .. '.', cid)
elseif(not doPlayerRemoveMoney(cid, parameters.cost)) then
npcHandler:say('You do not have enough money!', cid)
else
setPlayerPromotionLevel(cid, parameters.promotion)
npcHandler:say(parameters.text, cid)
end
else
npcHandler:say("You need a premium account in order to get promoted.", cid)
end
npcHandler:resetNpc()
return true
end
local node1 = keywordHandler:addKeyword({'promotion'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'You need Level 50 to second promotion.'})
node1:addChildKeyword({'yes'}, promotion, {npcHandler = npcHandler, cost = 20000, level = 50, promotion = 2, text = 'Gz Man You are Promoted'})
node1:addChildKeyword({'no'}, promotion, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then, come back when you are ready.', reset = true})
npcHandler:addModule(FocusModule:new())
info
Grupo: Campones
Registrado: 22/04/10
Posts: 84
Reputação: +2
Char no Tibia: Vendido!

ID Das Vocations 9/10/11/12
info
Grupo: Campones
Registrado: 05/06/10
Posts: 58
Reputação: +13
Char no Tibia: noob

usa o script do Npc que eu te mandei ele da o segond promotion ese você presisa dos Npc cml eu mando tb ![]()
info
Grupo: Campones
Registrado: 22/04/10
Posts: 84
Reputação: +2
Char no Tibia: Vendido!

Ok Manda ai.
Você tem o Script do Second Promotion tb?
info
Grupo: Campones
Registrado: 05/06/10
Posts: 58
Reputação: +13
Char no Tibia: noob

mas esse e o script do segond promotion lol :X
Antiemoxml Vc Mandou O script DO NPC Nao o Da Vocation (;
Insira Isso Na Vocation.xml
<vocation id="9" name="Helmut Sorcerer" description="an Helmut Sorcerer" needpremium="0" gaincap="10" gainhp="5" gainmana="30" gainhpticks="4" gainhpamount="75" gainmanaticks="2" gainmanaamount="200" manamultiplier="1.1" attackspeed="800" soulmax="200" gainsoulticks="15" fromvoc="5" lessloss="50">
<formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
<skill fist="1.5" club="2.0" sword="2.0" axe="2.0" distance="2.0" shielding="1.5" fishing="1.1" experience="1.0"/>
</vocation>
<vocation id="10" name="Mystic Druid" description="Mystic Druid" needpremium="0" gaincap="10" gainhp="5" gainmana="30" gainhpticks="4" gainhpamount="75" gainmanaticks="2" gainmanaamount="200" manamultiplier="1.1" attackspeed="800" soulmax="200" gainsoulticks="15" fromvoc="6" lessloss="50">
<formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
<skill fist="1.5" club="1.8" sword="1.8" axe="1.8" distance="1.8" shielding="1.5" fishing="1.1" experience="1.0"/>
</vocation>
<vocation id="11" name="Arcani Paladin" description="an Arcani Paladin" needpremium="0" gaincap="20" gainhp="10" gainmana="15" gainhpticks="3" gainhpamount="115" gainmanaticks="3" gainmanaamount="95" manamultiplier="1.4" attackspeed="710" soulmax="200" gainsoulticks="15" fromvoc="7" lessloss="50">
<formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
<skill fist="1.2" club="1.2" sword="1.2" axe="1.2" distance="1.1" shielding="1.1" fishing="1.1" experience="1.0"/>
</vocation>
<vocation id="12" name="Legendary Knight" description="an Legendary Knight" needpremium="0" gaincap="25" gainhp="15" gainmana="5" gainhpticks="8" gainhpamount="195" gainmanaticks="4" gainmanaamount="60" manamultiplier="3.0" attackspeed="600" soulmax="200" gainsoulticks="15" fromvoc="8" lessloss="50">
<formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
<skill fist="1.1" club="1.1" sword="1.1" axe="1.1" distance="1.4" shielding="1.1" fishing="1.1" experience="1.0"/>
</vocation>
o NPC Use o Script Mandado pelo Antiemoxml
era isso que voce estava presisando? (:
Editado Junho 27 por 1tyi
info
Grupo: Artesão
Registrado: 13/05/10
Posts: 114
Reputação: +11

@UP
Olha o título:
'[Pedido] Second Promotion E Npc. Da Um Help Ae'
entao o Antiemoxml fez certo...
Editado Junho 27 por MasterMathw
info
Grupo: Campones
Registrado: 22/04/10
Posts: 84
Reputação: +2
Char no Tibia: Vendido!

Tipo Ele Posto o NPC Mais Preciso Ainda do Second Promotion
Nao Sei Fazer O Second Promotion.
Eu Botei O NPC Dai Ele Vende Uma Vocaçao so Que Dai Fika
You Are. =S
a Vocaçao nao Tem Nome.
Dai Eu Tava Olhando Agora La No Meu Vocations.xml
e Tem Epic Druid...Epid Paladin e tals
Com ID 9/10/11/12
So que O NPC Vende Vocaçao e Nao Tem Nome.
Alguem Consegue Me Ensina a Aruma Certinho?
Editado Junho 27 por xAlucard
Vende Sem NOme?
![]()
Poste o script do seu npc..
info
Grupo: Campones
Registrado: 22/04/10
Posts: 84
Reputação: +2
Char no Tibia: Vendido!

local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)
function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end
function onCreatureDisappear(cid) npcHandler:onCreatureDisappear(cid) end
function onCreatureSay(cid, type, msg) npcHandler:onCreatureSay(cid, type, msg) end
function onThink() npcHandler:onThink() end
function promotion(cid, message, keywords, parameters, node)
if(not npcHandler:isFocused(cid)) then
return false
end
if isPremium(cid) then
if(getPlayerPromotionLevel(cid) >= parameters.promotion) then
npcHandler:say('You are already promoted!', cid)
elseif(getPlayerLevel(cid) < parameters.level) then
npcHandler:say('I am sorry, but I can only promote you once you have reached level ' .. parameters.level .. '.', cid)
elseif(not doPlayerRemoveMoney(cid, parameters.cost)) then
npcHandler:say('You do not have enough money!', cid)
else
setPlayerPromotionLevel(cid, parameters.promotion)
npcHandler:say(parameters.text, cid)
end
else
npcHandler:say("You need a premium account in order to get promoted.", cid)
end
npcHandler:resetNpc()
return true
end
local node1 = keywordHandler:addKeyword({'promotion'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'You need Level 50 to second promotion.'})
node1:addChildKeyword({'yes'}, promotion, {npcHandler = npcHandler, cost = 20000, level = 50, promotion = 2, text = 'Gz Man You are Promoted'})
node1:addChildKeyword({'no'}, promotion, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then, come back when you are ready.', reset = true})
npcHandler:addModule(FocusModule:new())
Foi o antiemoxml Que Postou ;D
o NPC Aparece No jogo ele vende a Classe
Mais Ela Fika Sem Nome Dai Nao tem como usar magia Nenhuma.
Se Quiser Me add No Msn Pra Explicar Melhor
sir_rules@hotmail.com
info
Grupo: Cavaleiro
Registrado: 17/07/09
Posts: 153
Reputação: +3
Char no Tibia: Victorseksi

Antiemoxml
testei aqui e não pegou a second promotion! tava precisando de um que funçionaçe, concerta ele ai, por favor!
info
Grupo: Campones
Registrado: 22/04/10
Posts: 84
Reputação: +2
Char no Tibia: Vendido!

Sim Eu Axo Que Ja Tenho as Novas Vocaçoes em meu OT.
So Que Preciso De Um NPC PRa Testar
Alguem Pode Nos Fornecer Um NPC que Funciona com as ID 9/10/11/12.
Thanks
info
Grupo: Campones
Registrado: 05/06/10
Posts: 58
Reputação: +13
Char no Tibia: noob

o script ta serto manda suas vocations xml pra eu ver 1 coisa acho que você Não mudo o prevoc




info
Grupo: Campones
Registrado: 22/04/10
Posts: 84
Reputação: +2
Char no Tibia: Vendido!
Tipo do script: Vocations
Protocolo (versão do Tibia): 8.54 - 8.57
Servidor utilizado: Slayer Yourots [ The Forgotten Sever];
Nível de experiência: Intermediario.
Adicionais/Informações:
Gente Eu Queria Pedir a Ajuda De Vocês Para,
Fazer Um System De Second Promote com NPC.
Nome Das Novas Vocation Seriam
* Legendary Knight [ Knight]
* Mystic Druid [Druid]
* Helmut Sorcerer [sorcerer]
* Arcani Paladin [Paladin];
- Queria Que O Preço Vendido pelo NPC Fosse; 20kk
* Tambem Queria Um Tutorial De Como Adicionar A Second Promote e Como Adicionar Novas Magia a Esta Vocaçao.
Espero nao Estar Pedindo Demais.
Abraço a Todos Membros e Colaborados Do XTibia.