Ir para conteúdo

Pesquisar na Comunidade

Mostrando resultados para as tags ''npc''.

  • Pesquisar por Tags

    Digite tags separadas por vírgulas
  • Pesquisar por Autor

Tipo de Conteúdo


Fóruns

  • xTibia - Notícias e Suporte
    • Regras
    • Noticias
    • Soluções
    • Projetos Patrocinados
    • Tutoriais para Iniciantes
    • Imprensa
  • OTServ
    • Notícias e Debates
    • OTServlist
    • Downloads
    • Recursos
    • Suporte
    • Pedidos
    • Show-Off
    • Tutoriais
  • OFF-Topic
    • Barzinho do Éks
    • Design
    • Informática

Encontrar resultados em...

Encontrar resultados que contenham...


Data de Criação

  • Início

    FIM


Data de Atualização

  • Início

    FIM


Filtrar pelo número de...

Data de Registro

  • Início

    FIM


Grupo


Sou

  1. Bom sem mais delongas, gostaria de pedir um NPC, que ensinasse varias spells de uma vez e por escolha.. Se chamara NPC elemental. Voce falaria com ele e ele te ensinaria 5 spells, de 5 classes diferentes. As classes seriam ; Fogo, Agua, Terra, Ar e Raio. Ao falar com o NPC ele lhe perguntaria, qual elemento deseja aprender? Ai o player escolheria um dos 5, e o NPC lhe ensinaria 5 magias do elemento escolhido. ---- Se o player falasse com o NPC novamente ele nao poderia escolher outro elemento. Apenas um elemento por player. --- EX: PLAYER: Hi NPC: Olá PLAYER, qual elemento deseja aprender? PLAYER: Fogo NPC: Parabéns, voce aprendeu o elemento fogo. Ai o player aprenderia 5 spells de fogo (ou 5 de agua, ou 5 de terra, dependendo do elemento escolhido). Acham que da pra fazer? Obg Qm me ajudar ganha REP+
  2. AZANIK

    Npc Vip

    OlA preciso de um npc quue teleporte para cidade vip somnte vips eu quero q o npc fique em area free mas q ele teleporte somente os vips obrigado
  3. Tipo do script: NPC Protocolo (versão do Tibia): 8.54 Servidor utilizado: Não lembro pois o server possui mais de um ano de idade e já sofreu várias alterações. Nível de experiência: Médio Adicionais/Informações: Preciso de um NPC de poketibia, onde quando um player fala com o NPC, pode colocar ou retirar um apelido do seu Pokemon. Exemplo: Player: Hi NPC: Olá Player! Eu posso colocar ou retirar apelidos de seus pokemons, por um custo de 100 Hundred Dollars. Player: colocar NPC: Me diga qual é o apelido que deseja por no seu Pokemon Obs: Ele precisa estar no slot correto. Player: Exemplo NPC: Tem certeza que deseja apelidar seu pokemon de Exemplo? Isso irá custar 100 HDs. Diga Sim ou Não. Player: Sim. NPC: Seu pokemon foi apelidado com sucesso, obrigado!
  4. Preciso de todos os Npcs do Narutibia 7.8 Porfavor alguem posta o link de download
  5. Sofft

    Função Npcs

    Xtibia, mais uma vez recorro a vocês, alguém poderia me passar as seguintes funções para NPC: NPC falar uma frase apos a outra.(Um script onde as frases ficam da seguinte forma: 'frase1','frase2') Função para o NPC parar de conversar com o player.(Ex:O player pega a missão e automaticamente o NPC para de conversar com o player e continua andando.) Se alguém tiver mais alguma função legal, é bem vindo.
  6. Olá Eu Gostaria De Um Script Desse Jeito : Tem Um NPC Chamado Brendon Você Fala Com Ele , e Ele Pedirá 3 Items. (Bote o Id Que Quiserem Depois Edito) Ae Quando Você Entregar os Items Ao Npc , e Ganha Um Title Ex : Master , Bote Qualquer Titulo Depois Edito! ( Para Meu Poketibia 8.54 )
  7. Gostaria de saber se é possível, um npc que troque itens. Exemplo: Tenho 3 itens separados (No caso IDS: 12285, 12286, 12287). E quando eu falar com o "NPC" Ele juntará os 3 itens e formará uma staff. (No caso ID: 12288). Player: Hi NPC: O que desejas aqui |PLAYERNAME|? Player: staff NPC: Então, você tem as 3 partes para completar a staff? Player: yes NPC: Aqui está a sua staff! Ou (Venha aqui depois de 10 minutos e estará pronta.) Player: bye NPC: Vá Com Deus! Bom, creio que isso seja um script. Protocolo: TFS 0.4. Versão: 8.6. Obrigado a todos!
  8. Bem, via muita gente procurando por esse NPC na seção de Pedidos, então resolvi criá-lo. O Npc está igual ao global, salvo algumas falas. Assim que o player entregar os 100 minotaur leathers, deverá esperar 2 horas (configurável) para retornar ao npc. Diálogo (igual ao global): 1. Conhecendo a quest do addon. Jogador: Hi Lubo: Welcome to my adventurer shop, <name>! What do you need? Jogador: Addon Lubo: Sorry, the backpack I wear is not for sale. It's handmade from rare minotaur leather. Jogador: Minotaur Leather Lubo: Well, if you really like this backpack, I could make one for you, but minotaur leather is hard to come by these days. Are you willing to put some work into this? Jogador: Yes Lubo: Alright then, if you bring me 100 pieces of fine minotaur leather I will see what I can do for you. You probably have to kill really many minotaurs though... so good luck! 2. Entregando os minotaur leathers Jogador: Hi Lubo: Welcome to my adventurer shop, <name>! What do you need? Jogador: Backpack Lubo: Ah, right, almost forgot about the backpack! Have you brought me 100 pieces of minotaur leather as requested? Jogador: yes Lubo: Great! Alright, I need a while to finish this backpack for you. Come ask me later, okay? [2 Horas Depois] 3. Pegando o addon da backpack Jogador: Hi Lubo: Welcome to my adventurer shop, <name>! What do you need? Jogador: Addon Lubo: Just in time! Your backpack is finished. Here you go, I hope you like it. Jogador: Bye Lubo: Good bye. ___ Agora vamos ao script: Em data/npcs/scripts crie um arquivo.lua chamado citizen.lua e cole isto dentro: local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) local talkState = {} 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 creatureSayCallback(cid, type, msg) if(not npcHandler:isFocused(cid)) then return false end local talkUser = NPCHANDLER_CONVBEHAVIOR == CONVERSATION_DEFAULT and 0 or cid local time = 2 -- tempo em horas if msgcontains(msg, 'addon') then if getPlayerStorageValue(cid, 3422) <= 0 then if getPlayerStorageValue(cid, 3491) <= 0 then selfSay('Sorry, the backpack I wear is not for sale. It is handmade from rare {minotaur leather}.', cid) talkState[talkUser] = 0 else if getPlayerStorageValue(cid, 2411) - os.time() <= 0 then if getPlayerSex(cid) == 0 then doPlayerAddOutfit(cid, 136, 1) setPlayerStorageValue(cid, 3422, 1) selfSay('Just in time! Your backpack is finished. Here you go, I hope you like it.', cid) else doPlayerAddOutfit(cid, 128, 1) setPlayerStorageValue(cid, 3422, 1) selfSay('Just in time! Your backpack is finished. Here you go, I hope you like it.', cid) end else selfSay('This job requires patient and hability. Wait a little time.', cid) end end else selfSay('You have already taken your backpack.', cid) end elseif msgcontains(msg, 'minotaur leather') then selfSay('Well, if you really like this backpack, I could make one for you, but minotaur leather is hard to come by these days. Are you willing to put some work into this?', cid) talkState[talkUser] = 1 elseif talkState[talkUser] == 1 and msgcontains(msg, 'yes') then selfSay('Alright then, if you bring me 100 pieces of fine minotaur leather I will see what I can do for you. You probably have to kill really many minotaurs though... so good luck!', cid) talkState[talkUser] = 2 elseif talkState[talkUser] == 2 and msgcontains(msg, 'backpack') then selfSay('Ah, right, almost forgot about the backpack! Have you brought me 100 pieces of minotaur leather as requested?', cid) talkState[talkUser] = 3 elseif talkState[talkUser] == 3 and msgcontains(msg, 'yes') then if doPlayerRemoveItem(cid, 5878, 100) then setPlayerStorageValue(cid, 3491, 1) setPlayerStorageValue(cid, 2411, os.time()+time*60*60) selfSay('Great! Alright, I need a while to finish this backpack for you. Come ask me later, okay?', cid) talkState[talkUser] = 4 end end return true end npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new()) Em data/npcs crie um arquivo.xml chamado Lubo.xml e cole isto dentro: <?xml version="1.0" encoding="UTF-8"?> <npc name="Lubo" script="data/npc/scripts/citizen.lua" walkinterval="5000" floorchange="0"> <health now="100" max="100"/> <look type="128" head="38" body="39" legs="96" feet="118" addons="3"/> <parameters> <parameter key="message_greet" value="Welcome to my adventurer shop, |PLAYERNAME|! What do you need?"/> <parameter key="message_farewell" value="Good bye."/> <parameter key="module_keywords" value="1" /> </parameters> </npc> Vlw, espero ter ajudado alguém, abraços.
  9. Gostaria de pidir se é possivel fazer tipo um npc pra tibia igual do poketibia que solta pokemons pra batalhar mas invez do npc soltar pokemons queria que soltase Monstros pra matar players que aceitar a proposta do npc espero resposta Valendo REP+ direto do forno
  10. Eae galera! Queria pedir um npc de quest. Tipo assim: ele determina uma série de itens, exemplo: 5 dragon claw, 5 dragon scale, 200 crystal coin. Ai quando o player obtem esses itens, vai no npc, fala com ele, o npc tira esses itens e dá outro item, obviamente, o da quest. Peço por favor ae! Agradeço desde já! ;D
  11. Bom dia Pessoal, estou desenvolvendo um campeonato pokemon para o dash porém preciso de ajuda com o seguinte, como faço para quando ganhar de um npc de duelo ele entregar um premio tipo 100 dollares e teleportar para proxima sala? ou entao como criar um item que teleporta uma unica vez! #1 Como criar um npc de entrada, que verifica se o player tem as 8 insignias conquistadas e te teleporta para o primeiro campo de batalha Sistema >> ENTRADA > DESAFIANTE 1 > DESAFIANTE 2 > DESAFIANTE 3 ..... Estou no aguardo, vamos juntos, estou fazendo uma modificação para o DASH que irei postar para download se obtiver ajuda de todos!
  12. Preciso dos npcs original que dão addon por itens, mais eu quero todo os npcs separados. +REP
  13. godjean

    Npc Reset.

    Ola pessoal então meu amigo passo um script de npc hoje. Ele reseta o player e da certas coisas para ele ao resetar uma delas é vocation ...essas coisas ae o script.(Ele é 7.92 eu gostaria passa ele para 8.54) elseif msgcontains(msg, 'reset') then if vezes == -1 or vezes == 0 then selfSay('Reset a god? Hmm... First time? Ok, i will do it free this time!') talk_state = 6 else selfSay('Reset a god? Hmm... Sure I can, but it will not be cheap, what do you say about ' .. rubys .. ' ruby coins?') talk_state = 6 end -- reset elseif talk_state == 6 then --rubys = (getPlayerLevel(cid)*4000)*(vezes*10)/1000000) if msgcontains(msg, 'yes') then if isPremium(cid) then if getPlayerLevel(cid) >= 400 then if getPlayerVocation(cid) >= 9 then --if pay(cid,(getPlayerLevel(cid)*4000)*(vezes*10)) then if getPlayerVocation(cid) == 13 then -- deuses if getPlayerLevel(cid) >= 500 then if getPlayerItemCount(cid,13685) >= rubys then selfSay('Welcome new god!') doPlayerSendTextMessage(cid,22,"Você resetou seu personagem.") health = getCreatureMaxHealth(cid) mana = getCreatureMaxMana(cid) doPlayerAddExp(cid,-10000000000) doCreatureChangeMaxHealth(cid, (health/10)*(vezes+1)) doCreatureAddHealth(cid,(health/10)*(vezes+1)) doCreatureChangeMaxMana(cid, (mana/15)*(vezes+1)) doPlayerAddMana(cid,(mana/15)*(vezes+1)) doPlayerMagicLevel(cid,25) doSendMagicEffect(getPlayerPosition(cid),12) setPlayerStorageValue(cid,7777,vezes+1) doPlayerTakeItem(cid,13685,rubys) talk_state = 0 else selfSay('Sorry mortal, but you dont have this monney!') talk_state = 0 end else selfSay('Sorry, but only gods level 500 or above can do that!') talk_state = 0 end end if getPlayerVocation(cid) == 14 then if getPlayerLevel(cid) >= 500 then if getPlayerItemCount(cid,13685) >= rubys then selfSay('Welcome new god!') doPlayerSendTextMessage(cid,22,"Você resetou seu personagem.") health = getCreatureMaxHealth(cid) mana = getCreatureMaxMana(cid) doPlayerAddExp(cid,-10000000000) doCreatureChangeMaxHealth(cid, (health/10)*(vezes+1)) doCreatureAddHealth(cid,(health/10)*(vezes+1)) doCreatureChangeMaxMana(cid, (mana/15)*(vezes+1)) doPlayerAddMana(cid,(mana/15)*(vezes+1)) doPlayerMagicLevel(cid,25) doSendMagicEffect(getPlayerPosition(cid),12) setPlayerStorageValue(cid,7777,vezes+1) doPlayerTakeItem(cid,13685,rubys) talk_state = 0 else selfSay('Sorry mortal, but you dont have this monney!') talk_state = 0 end else selfSay('Sorry, but only gods level 500 or above can do that!') talk_state = 0 end end if getPlayerVocation(cid) == 15 then if getPlayerLevel(cid) >= 500 then if getPlayerItemCount(cid,13685) >= rubys then selfSay('Welcome new god!') doPlayerSendTextMessage(cid,22,"Você resetou seu personagem.") health = getCreatureMaxHealth(cid) mana = getCreatureMaxMana(cid) doPlayerAddExp(cid,-10000000000) doCreatureChangeMaxHealth(cid, (health/10)*(vezes+1)) doCreatureAddHealth(cid,(health/10)*(vezes+1)) doCreatureChangeMaxMana(cid, (mana/10)*(vezes+1)) doPlayerAddMana(cid,(mana/10)*(vezes+1)) doPlayerMagicLevel(cid,5) doPlayerAddSkill(cid,4,25) doPlayerAddSkill(cid,5,25) doSendMagicEffect(getPlayerPosition(cid),12) setPlayerStorageValue(cid,7777,vezes+1) doPlayerTakeItem(cid,13685,rubys) talk_state = 0 else selfSay('Sorry mortal, but you dont have this monney!') talk_state = 0 end else selfSay('Sorry, but only gods level 500 or above can do that!') talk_state = 0 end end if getPlayerVocation(cid) == 16 then if getPlayerLevel(cid) >= 500 then if getPlayerItemCount(cid,13685) >= rubys then selfSay('Welcome new god!') doPlayerSendTextMessage(cid,22,"Você resetou seu personagem.") health = getCreatureMaxHealth(cid) mana = getCreatureMaxMana(cid) doPlayerAddExp(cid,-10000000000) doCreatureChangeMaxHealth(cid, (health/10)*(vezes+1)) doCreatureAddHealth(cid,(health/10)*(vezes+1)) doCreatureChangeMaxMana(cid, (mana/10)*(vezes+1)) doPlayerAddMana(cid,(mana/10)*(vezes+1)) doPlayerAddSkill(cid,0,25) doPlayerAddSkill(cid,1,25) doPlayerAddSkill(cid,2,25) doPlayerAddSkill(cid,3,25) doPlayerAddSkill(cid,5,25) doSendMagicEffect(getPlayerPosition(cid),12) setPlayerStorageValue(cid,7777,vezes+1) doPlayerTakeItem(cid,13685,rubys) talk_state = 0 else selfSay('Sorry mortal, but you dont have this monney!') talk_state = 0 end else selfSay('Sorry, but only gods level 500 or above can do that!') talk_state = 0 end end if getPlayerStorageValue(cid,7777) <= 0 and getPlayerVocation(cid) >= 13 and getPlayerLevel(cid) >= 500 then setPlayerStorageValue(cid,7777,1) end if getPlayerVocation(cid) >= 9 and getPlayerVocation(cid) < 13 then -- semis if getPlayerItemCount(cid,6500) >= 1000 then selfSay('Oh! Now you are a god!') if getPlayerVocation(cid) >= 9 and getPlayerVocation(cid) < 11 then doPlayerMagicLevel(cid,10) end if getPlayerVocation(cid) == 11 then doPlayerMagicLevel(cid,2) doPlayerAddSkill(cid,4,10) doPlayerAddSkill(cid,5,10) end if getPlayerVocation(cid) == 12 then doPlayerAddSkill(cid,0,10) doPlayerAddSkill(cid,1,10) doPlayerAddSkill(cid,2,10) doPlayerAddSkill(cid,3,10) doPlayerAddSkill(cid,5,10) end doPlayerSendTextMessage(cid,22,"Você evoluiu seu espírito a Deus.") doPlayerAddExp(cid,-10000000000) doCreatureChangeMaxHealth(cid,185) doCreatureAddHealth(cid,185) doCreatureChangeMaxMana(cid,35) doPlayerAddMana(cid,35) doPlayerSetVocation(cid, getPlayerVocation(cid)+4) doSendMagicEffect(getPlayerPosition(cid),12) doPlayerTakeItem(cid,6500,100) talk_state = 0 else selfSay('Sorry, but you dont have the 100 demoniac essense!') talk_state = 0 end end else selfSay('Sorry, but only gods i can do that!') talk_state = 0 end else selfSay('Sorry, but only gods level 500 or above can do that!') talk_state = 0 end else selfSay('Sorry but only can reset a god premmy.') talk_state = 0 end end --end
  14. Gente to fazendo um npc que tipo quando ele pergunta algo e a pessoa responde certo ele teleporta o player e depois Manda a mensage para o servido todo Então a parte da msg do servido é que eu não to conseguindo ja tentei assim doBroadcastMessage("Parabens ' .. creatureGetName(cid) .. ', está a caminho da ultima sala do templo dos Deuses, e a um passo da imortalidade. Boa Sorte!") E ele falo isso:16:02 Parabens ' .. creatureGetName(cid) .. ', está a caminho da ultima sala do templo dos Deuses, e a um passo da imortalidade. Boa Sorte! ja tentei assim tambem doBroadcastMessage("Parabens |PLAYERNAME|, está a caminho da ultima sala do templo dos Deuses, e a um passo da imortalidade. Boa Sorte!") E ele falo isso:16:02 Parabens |PLAYERNAME|, está a caminho da ultima sala do templo dos Deuses, e a um passo da imortalidade. Boa Sorte!
  15. caotic

    Npc Fight

    O sistema de npc fight e um npc de batalha ele mesmo batalha com o player. Primeiramente voce precisa configurar que creature o poder dele vai ser exemplo um "Demon" então a vida,hit e spells seram do demon ja o newtype sera o do npc. E literamente um batalha com o npc. Crie um arquivo xml em npc chamado de fight e coloque isto <npc name="Fight" script="data/npc/scripts/fight.lua" walkinterval="0" floorchange="0"> <health now="100" max="100"/> <look type="134" head="0" body="0" legs="0" feet="0" addons="0"/> <parameters> <parameter key="message_greet" value="Para batalhar nos diga {aceitar}." /> <parameter key="message_farewell" value="Ate mais." /> <parameter key="message_walkaway" value="Ate mais." /> </parameters> </npc> Agora va em npc/scripts crie um arquivo chamado fight.lua e coloque isto Importante E super recomendavel apenas um npc deste tipo no seu mapa se quiser mais tera que alterar o nome do npc no script.
  16. Aí galera, acho que esse pedido é simples. É simplesmente um Npc de barco que só leva o player que tiver a storage X. Queria que ele também teleportasse de volta. Exemplo: Player-Hi Npc: Você quer ir para a city X? Player: city X Npc: Ok [Voltando] Player: Hi Npc: Voce quer voltar para a city Y? Player: yes Testei um que tinha aqui no Fórum, mas ele dizia que eu não tinha a storage. Enfim, acho que é simples e REP+ para quem ajudar ^^
  17. godjean

    Npc retira item

    Tipo acabei de cria um npc tudo certo ele tira os itens e poem o item que eu quero mas ha um porem ele não ta pedindo todos os items por exemplo eu tiro um item e falo yes ele troca do mesmo jeito :S ae o script do npc elseif(msgcontains(msg, 'elemental necklace') or msgcontains(msg, 'Elemental Necklace')) then selfSay('You change a mysterious, dragon breath, scorpion, platinum, fluids and vampire tooth,change all for a Elemental necklace?', cid) talkState[talkUser] = 4 elseif(msgcontains(msg, 'yes') and talkState[talkUser] == 4) then if doPlayerRemoveItem(cid,2201,1) == 0 then elseif doPlayerRemoveItem(cid,2198,1) == 0 then elseif doPlayerRemoveItem(cid,2170,1) == 0 then elseif doPlayerRemoveItem(cid,2171,1) == 0 then elseif doPlayerRemoveItem(cid,2172,1) == 0 then elseif doPlayerRemoveItem(cid,2161,1) == 0 then elseif doPlayerAddItem(cid,2197,1) == 0 then selfSay('change the amulet\'s for one elemental necklace sucessfull.') else selfSay('change the amulet\'s for one elemental necklace sucessfull.') end E tambem outro script tipo se vc não tiver o dinheiro ele retira o item poem outro e retira o outro e vc fica com nada:@ elseif(msgcontains(msg, 'energyze elemental necklace') or msgcontains(msg, 'Energyze Elemental Necklace')) then selfSay('I can energyze your elemental necklace for 50k, would you like to energyza?', cid) talkState[talkUser] = 3 elseif(msgcontains(msg, 'yes') and talkState[talkUser] == 3) then if(doPlayerRemoveItem(cid, 2197, 1) == true) then if(doPlayerRemoveMoney(cid, 50000) == true) then selfSay('Thanks!', cid) doPlayerAddItem(cid, 11962, 1) talkState[talkUser] = 0 else selfSay('You do not have enough diamonds.', cid) talkState[talkUser] = 0 end end
  18. godjean

    Script Npc

    Ola galera do Xtibia Então eu vim aqui pedir um script de npc que faça o Seguinte Ele vai ter varias funções e tal... eu tenho um aqui como base porem não esta funcionando corretamente... ae ele local focus = 0 local talk_start = 0 local target = 0 local days = 0 function onThingMove(creature, thing, oldpos, oldstackpos) end function onCreatureAppear(creature) end function onCreatureDisappear(cid, pos) if focus == cid then selfSay('Good bye then.') focus = 0 talk_start = 0 end end function onCreatureTurn(creature) end function msgcontains(txt, str) return (string.find(txt, str) and not string.find(txt, '(%w+)' .. str) and not string.find(txt, str .. '(%w+)')) end function msgcontains(txt, str) return (string.find(txt, str) and not string.find(txt, '(%w+)' .. str) and not string.find(txt, str .. '(%w+)')) end function onCreatureSay(cid, type, msg) msg = string.lower(msg) if (msgcontains(msg, 'hi') and (focus == 0)) and getDistanceToCreature(cid) < 4 then selfSay('Hi ' .. creatureGetName(cid) .. '! what you want mortal?') focus = cid talk_start = os.clock() elseif msgcontains(msg, 'hi') and (focus ~= cid) and getDistanceToCreature(cid) < 4 then selfSay('Sorry, ' .. creatureGetName(cid) .. '! I talk to you in a minute.') elseif focus == cid then talk_start = os.clock() if msgcontains(msg, 'energyze elemental necklace') and getItemStackable(cid,2173) then selfSay('I can energyze your necklace for 50k, amulet for 100k or your magic amulet for 150k, do you want energyze?') talk_state = 2 elseif talk_state == 1 then if msgcontains(msg, 'yes') then if doPlayerRemoveItem(cid,2197,1) == 1 then doPlayerSendTextMessage(cid,22,"Voce Energizou seu Elemental necklace.") buy(cid,13682,getCount(msg),50000) selfSay('energyze the elemental necklace sucessfull.') else selfSay('Sorry, you do not have elemental necklace.') end end talk_state = 0 elseif msgcontains(msg, 'energyze spirit elemental amulet') or msgcontains(msg, 'energyze 2') then selfSay('I can energyze your necklace for 50k, amulet for 100k or your magic amulet for 150k, do you want energyze?') talk_state = 2 elseif talk_state == 2 then if msgcontains(msg, 'yes') then if doPlayerRemoveItem(cid,2173,1) == 1 then buy(cid,13683,getCount(msg),100000) doPlayerSendTextMessage(cid,22,"Voce Energizou seu Spirit elemental necklace.") selfSay('energyze the spirit necklace sucessfull.') else selfSay('Sorry, you do not have one spirit elemental necklace.') end end talk_state = 0 elseif msgcontains(msg, 'energyze magic elemental amulet') or msgcontains(msg, 'energyze 3') then selfSay('I can energyze your necklace for 50k, amulet for 100k or your magic amulet for 150k, do you want energyze?') talk_state = 3 elseif talk_state == 3 then if msgcontains(msg, 'yes') then if doPlayerRemoveItem(cid,2125,1) == 1 then buy(cid,13684,getCount(msg),150000) doPlayerSendTextMessage(cid,22,"Voce Energizou seu Magic elemental amulet.") selfSay('energyze the magic amulet sucessfull.') else selfSay('Sorry, you do not have one magic amulet.') end end talk_state = 0 elseif msgcontains(msg, 'elemental necklace') or msgcontains(msg, 'necklace') then selfSay('You change a mysterious, dragon breath, scorpion, platinum, fluids and vampire tooth,change all for a Elemental necklace?') talk_state = 4 elseif talk_state == 4 then if msgcontains(msg, 'yes') then if doPlayerRemoveItem(cid,2201,1) == 0 then elseif doPlayerRemoveItem(cid,2198,1) == 0 then elseif doPlayerRemoveItem(cid,2170,1) == 0 then elseif doPlayerRemoveItem(cid,2171,1) == 0 then elseif doPlayerRemoveItem(cid,2172,1) == 0 then elseif doPlayerRemoveItem(cid,2161,1) == 0 then elseif doPlayerAddItem(cid,2197,1) == 0 then selfSay('change the amulet\'s for one elemental necklace sucessfull.') else selfSay('change the amulet\'s for one elemental necklace sucessfull.') end end talk_state = 0 elseif msgcontains(msg, 'spirit elemental necklace') or msgcontains(msg, 'spirit necklace') then selfSay('You change a need a Ialamar, frozzen, sickness, Samantha, Mastafar, priest and eletric, change for a Spirit Elemental amulet?') talk_state = 5 elseif talk_state == 5 then if msgcontains(msg, 'yes') then if doPlayerRemoveItem(cid,2129,1) == 0 then elseif doPlayerRemoveItem(cid,2199,1) == 0 then elseif doPlayerRemoveItem(cid,2135,1) == 0 then elseif doPlayerRemoveItem(cid,2126,1) == 0 then elseif doPlayerRemoveItem(cid,2131,1) == 0 then elseif doPlayerRemoveItem(cid,2130,1) == 0 then elseif doPlayerRemoveItem(cid,2133,1) == 0 then elseif doPlayerAddItem(cid,2173,1) == 0 then selfSay('change the amulet\'s for one spirit elemental necklace sucessfull.') else selfSay('change the amulet\'s for one spirit elemental necklace sucessfull.') end end talk_state = 0 elseif msgcontains(msg, 'magic elemental amulet') or msgcontains(msg, 'magic amulet') then selfSay('You change a Merlian, relic of the hell, Broonier, Thordain, dark wyzard, angel and gaya,change all for Elemental magic amulet?') talk_state = 6 elseif talk_state == 6 then if msgcontains(msg, 'yes') then if doPlayerRemoveItem(cid,2138,1) == 0 then elseif doPlayerRemoveItem(cid,2139,1) == 0 then elseif doPlayerRemoveItem(cid,2142,1) == 0 then elseif doPlayerRemoveItem(cid,2200,1) == 0 then elseif doPlayerRemoveItem(cid,2196,1) == 0 then elseif doPlayerRemoveItem(cid,2132,1) == 0 then elseif doPlayerRemoveItem(cid,2136,1) == 0 then elseif doPlayerAddItem(cid,2125,1) == 0 then selfSay('change the amulet\'s for one elemental magic amulet sucessfull.') else selfSay('change the amulet\'s for one elemental magic amulet sucessfull.') end end talk_state = 0 elseif msgcontains(msg, 'bless') or msgcontains(msg, 'blessing') then getPlayerBlessing(cid,1) getPlayerBlessing(cid,2) getPlayerBlessing(cid,3) getPlayerBlessing(cid,4) getPlayerBlessing(cid,5) selfSay('deseja compra o bless ?') talk_state = 7 elseif talk_state == 7 then if msgcontains(msg, 'yes') then if pay(cid,1000000) then doPlayerAddBlessing(cid, 1) doPlayerAddBlessing(cid, 2) doPlayerAddBlessing(cid, 3) doPlayerAddBlessing(cid, 4) doPlayerAddBlessing(cid, 5) doPlayerSendTextMessage(cid,22,"Você recebeu a benção de Isolda.") else selfSay('Desculpe, mas voce não tem Ruby Coin suficiente.') end end talk_state = 0 elseif msgcontains(msg, 'reset') then selfSay('is necessary for you to reset this level 500 and Valan. Would you like to reset?') talk_state = 8 elseif msgcontains(msg, 'yes') then if getPlayerVocation(cid) > 12 then selfSay('You have no vocation required.') talk_state = 0 if getPlayerVocation(cid) < 9 then selfSay('You have no vocation required.') talk_state = 0 elseif getPlayerLevel(cid) < 500 then selfSay('Desculpe, você precisa ser level 50 para se tornar promoted.') talk_state = 0 elseif not isPremium(cid) then selfSay('Desculpe, você precisa ser premium account para ser promoted.') talk_state = 0 elseif doPlayerRemoveItem(cid,5958,1) == 1 then doPlayerSetVocation(cid, getPlayerVocation(cid)+4) doSendAnimatedText(getPlayerPosition(cid), "Promoted", TEXTCOLOR_LIGHTGREEN) doSendMagicEffect(getPlayerPosition(cid),14) selfSay('You have been reset successfully.') doPlayerSendTextMessage(cid,21,"Reset Complet.'.") talk_state = 0 else selfSay('Voce não tem o item necessario para fazer o seu Promotion.') talk_state = 1 end talk_state = 0 elseif msgcontains(msg, 'offer') then selfSay('I can do an element item or energyze your element item, i only need all "necklace", "amulet" ou "magics" amulet, also can bless a little mortal and reset a god!') elseif msgcontains(msg, 'energyze') then selfSay('I can tell your amulet energyze just say "energyze elemental necklace" "energyze elemental spirit amulet" "energyze elemental magic amulet.') elseif msgcontains(msg, 'necklace') then selfSay('I only need a mysterious, dragon breath, scorpion, platinum, fluids and vampire tooth, accept change all for a Elemental necklace?') elseif msgcontains(msg, 'amulet') then selfSay('I only need a Ialamar, frozzen, sickness, Samantha, Mastafar, priest and eletric, accept change all for a Spirit Elemental amulet?') elseif msgcontains(msg, 'magics') then selfSay('I only need a Merlian, relic of the hell, Broonier, Thordain, dark wyzard, angel and gaya, accept change all for a Elemental magic amulet?') elseif msgcontains(msg, 'bye') and getDistanceToCreature(cid) < 4 then selfSay('Good bye, ' .. creatureGetName(cid) .. '!') focus = 0 talk_start = 0 end end end function onCreatureChangeOutfit(creature) end function onThink() doNpcSetCreatureFocus(focus) if (os.clock() - talk_start) > 30 then if focus > 0 then selfSay('Next Please...') end focus = 0 end if focus ~= 0 then if getDistanceToCreature(focus) > 5 then selfSay('Good bye then.') focus = 0 end end end end Ele é um pouco antigo deve ser por isso
  19. Ola pessoal do xtibia hoje estou aqui para pedir uns pequenos script ou como fazer Npc-- O npc que eu to precisando é o seguinte...Ele é um npc de quest (Multi quest nele) e para falar precisa de certo level ou superior. Movements-- São 2 movements que são isso mesmo.A primeira é: Algo que tipo o player poem 5 items em certo lugar e da use em certo item que retira um item de certo quanto. Explicando de outra forma: tem os items dessa forma A B C X (é um exemplo) D E Tem que ter certo item (item exato) no ponto A,B,C,D e E em certa position e outro item na posição X e quando der use no item X ele retira uma pedra do caminho. Eu até tenho o script mais ele é meio ultra passado mas vou posta para ver se entende melhor: É esse o script. E o outro script é praticamente a mesma coisa porem você pega um item e usa numa pedra e ele apaga uma parede. Eu agradeço desde ja Jean Ajuda please eu sei que isso é double post mas eu preciso dessa força
  20. Olá, estou elaborando uma quest que nela tem um npc que você entrega um item pra ele (esse item some da sua bp) ai ele te teleporta pra outro local.
  21. Ae preciso do npc que vende mounts 9.1 se alguém poder me ajudar. Agradeço desde já.
  22. preciso de um npc de viajem, meu mapa tem 5 cidades e a versão do meu ot é 9.1. Obrigado.
  23. ola,eu queria pedir um npc de quest que vc desse desse um item ele e ele te desse uma stone so para min ver como se vaz um npc de quest de poketibia eu uso o serve pokemon dash advanced
  24. godjean

    Npc Level

    Eu queria um npc que só pode conversa com ele certo level pois estou fazendo npc de quest mas gostaria que só pode-se falar com ele só level 40 E outro npc que só habilita-se o trade entre esse npc se tive-se completa uma quest nesse proprio npc.
×
×
  • Criar Novo...