xAlucard 2 Postado Junho 26, 2010 Share Postado Junho 26, 2010 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. Link para o comentário Compartilhar em outros sites More sharing options...
0 matheus1000 11 Postado Junho 26, 2010 Share Postado Junho 26, 2010 Qual é os ID's das vocations? Link para o comentário Compartilhar em outros sites More sharing options...
0 Antiemoxml 13 Postado Junho 26, 2010 Share Postado Junho 26, 2010 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()) Link para o comentário Compartilhar em outros sites More sharing options...
0 xAlucard 2 Postado Junho 26, 2010 Autor Share Postado Junho 26, 2010 ID Das Vocations 9/10/11/12 Link para o comentário Compartilhar em outros sites More sharing options...
0 Antiemoxml 13 Postado Junho 26, 2010 Share Postado Junho 26, 2010 usa o script do Npc que eu te mandei ele da o segond promotion ese você presisa dos Npc cml eu mando tb Link para o comentário Compartilhar em outros sites More sharing options...
0 xAlucard 2 Postado Junho 26, 2010 Autor Share Postado Junho 26, 2010 Ok Manda ai. Você tem o Script do Second Promotion tb? Link para o comentário Compartilhar em outros sites More sharing options...
0 Antiemoxml 13 Postado Junho 26, 2010 Share Postado Junho 26, 2010 mas esse e o script do segond promotion lol :X Link para o comentário Compartilhar em outros sites More sharing options...
0 tyuahoi 80 Postado Junho 27, 2010 Share Postado Junho 27, 2010 (editado) 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, 2010 por 1tyi Link para o comentário Compartilhar em outros sites More sharing options...
0 matheus1000 11 Postado Junho 27, 2010 Share Postado Junho 27, 2010 (editado) @UP Olha o título: '[Pedido] Second Promotion E Npc. Da Um Help Ae' entao o Antiemoxml fez certo... Editado Junho 27, 2010 por MasterMathw Link para o comentário Compartilhar em outros sites More sharing options...
0 xAlucard 2 Postado Junho 27, 2010 Autor Share Postado Junho 27, 2010 (editado) 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, 2010 por xAlucard Link para o comentário Compartilhar em outros sites More sharing options...
0 tyuahoi 80 Postado Junho 27, 2010 Share Postado Junho 27, 2010 Vende Sem NOme? Poste o script do seu npc.. Link para o comentário Compartilhar em outros sites More sharing options...
0 xAlucard 2 Postado Junho 27, 2010 Autor Share Postado Junho 27, 2010 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 Link para o comentário Compartilhar em outros sites More sharing options...
0 RulezKnight 3 Postado Junho 27, 2010 Share Postado Junho 27, 2010 Antiemoxml testei aqui e não pegou a second promotion! tava precisando de um que funçionaçe, concerta ele ai, por favor! Link para o comentário Compartilhar em outros sites More sharing options...
0 xAlucard 2 Postado Junho 27, 2010 Autor Share Postado Junho 27, 2010 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 Link para o comentário Compartilhar em outros sites More sharing options...
0 Antiemoxml 13 Postado Junho 27, 2010 Share Postado Junho 27, 2010 o script ta serto manda suas vocations xml pra eu ver 1 coisa acho que você Não mudo o prevoc Link para o comentário Compartilhar em outros sites More sharing options...
0 xAlucard 2 Postado Junho 28, 2010 Autor Share Postado Junho 28, 2010 <?xml version="1.0" encoding="UTF-8"?> <vocations> <vocation id="0" name="None" description="none" needpremium="0" gaincap="5" gainhp="5" gainmana="5" gainhpticks="6" gainhpamount="1" gainmanaticks="6" gainmanaamount="1" manamultiplier="4.0" attackspeed="2000" soulmax="100" gainsoulticks="120" fromvoc="0" attackable="no"> <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="1" name="Sorcerer" description="a sorcerer" needpremium="0" gaincap="10" gainhp="5" gainmana="30" gainhpticks="6" gainhpamount="5" gainmanaticks="3" gainmanaamount="100" manamultiplier="1.1" attackspeed="1000" soulmax="100" gainsoulticks="120" fromvoc="1"> <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="2" name="Druid" description="a druid" needpremium="0" gaincap="10" gainhp="5" gainmana="30" gainhpticks="6" gainhpamount="5" gainmanaticks="3" gainmanaamount="100" manamultiplier="1.1" attackspeed="1000" soulmax="100" gainsoulticks="120" fromvoc="2"> <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="3" name="Paladin" description="a paladin" needpremium="0" gaincap="20" gainhp="10" gainmana="15" gainhpticks="4" gainhpamount="5" gainmanaticks="4" gainmanaamount="100" manamultiplier="1.4" attackspeed="1000" soulmax="100" gainsoulticks="120" fromvoc="3"> <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="4" name="Knight" description="a knight" needpremium="0" gaincap="25" gainhp="15" gainmana="5" gainhpticks="3" gainhpamount="5" gainmanaticks="6" gainmanaamount="100" manamultiplier="3.0" attackspeed="1000" soulmax="100" gainsoulticks="120" fromvoc="4"> <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> <vocation id="5" name="Master Sorcerer" description="a master sorcerer" needpremium="1" gaincap="10" gainhp="5" gainmana="30" gainhpticks="4" gainhpamount="10" gainmanaticks="2" gainmanaamount="200" manamultiplier="1.1" attackspeed="700" soulmax="200" gainsoulticks="15" fromvoc="1" lessloss="30"> <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="6" name="Elder Druid" description="an elder druid" needpremium="1" gaincap="10" gainhp="5" gainmana="30" gainhpticks="4" gainhpamount="10" gainmanaticks="2" gainmanaamount="200" manamultiplier="1.1" attackspeed="700" soulmax="200" gainsoulticks="15" fromvoc="2" lessloss="30"> <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="7" name="Royal Paladin" description="a royal paladin" needpremium="1" gaincap="20" gainhp="10" gainmana="15" gainhpticks="3" gainhpamount="10" gainmanaticks="3" gainmanaamount="200" manamultiplier="1.4" attackspeed="700" soulmax="200" gainsoulticks="15" fromvoc="3" lessloss="30"> <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="8" name="Elite Knight" description="an elite knight" needpremium="1" gaincap="25" gainhp="15" gainmana="5" gainhpticks="2" gainhpamount="10" gainmanaticks="4" gainmanaamount="200" manamultiplier="3.0" attackspeed="700" soulmax="200" gainsoulticks="15" fromvoc="4" lessloss="30"> <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> <!-- <vocation id="9" name="Epic Master Sorcerer" description="an epic master sorcerer" needpremium="0" gaincap="10" gainhp="5" gainmana="30" gainhpticks="4" gainhpamount="10" gainmanaticks="2" gainmanaamount="10" manamultiplier="1.1" attackspeed="2000" 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="Epic Elder Druid" description="an epic elder druid" needpremium="0" gaincap="10" gainhp="5" gainmana="30" gainhpticks="4" gainhpamount="10" gainmanaticks="2" gainmanaamount="10" manamultiplier="1.1" attackspeed="2000" 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="Epic Royal Paladin" description="an epic royal paladin" needpremium="0" gaincap="20" gainhp="10" gainmana="15" gainhpticks="3" gainhpamount="10" gainmanaticks="3" gainmanaamount="10" manamultiplier="1.4" attackspeed="2000" 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="Epic Elite Knight" description="an epic elite knight" needpremium="0" gaincap="25" gainhp="15" gainmana="5" gainhpticks="8" gainhpamount="10" gainmanaticks="4" gainmanaamount="10" manamultiplier="3.0" attackspeed="2000" 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> --> </vocations> Assim Esta O meu Vocations.xml Link para o comentário Compartilhar em outros sites More sharing options...
Pergunta
xAlucard 2
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.
Link para o comentário
Compartilhar em outros sites
26 respostass a esta questão
Posts Recomendados