Jump to content
  • 0
felipe vaini

NPC que Venda Addon 1 e 2

Question

Versão do Servidor: TFS - 1.0
Tipo de Script: npc
Código:
 
Link do script do Npc
https://ibb.co/pKWFYpP

Fla galera, tranquilo.

 

Queria editar um NPC que voce chegasse nele, pedia pelo outfit, addon 1 e depois addon 2, e ele te vendesse por KK's.

 

Esse é o arquivo do NPC Benjamin, que vende Parcel em Thais, como eu poderia editar ele pra ele vender Addons 1 e 2 por KKs, voce chega la e pede Assassin, Addon 1 e talz e ele te vende por dinheiro.

 

Dados no NPC Benjamin:

<?xml version="1.0" encoding="UTF-8"?>
<npc name="Benjamin" script="Benjamin.lua" walkinterval="2000" floorchange="0">
    <health now="100" max="100" />
    <look type="128" head="116" body="79" legs="117" feet="76" addons="0" />
    <parameters>
        <parameter key="module_keywords" value="1" />
        <parameter key="keywords" value="mail;letters;explain;depot;parcel;explain;" />
        <parameter key="keyword_reply1" value="With our mail system you can send {letters} and {parcels} to other Tibians. I can either explain how {letters} and {parcels} work or sell them to you if you ask me for a {trade}." />
        <parameter key="keyword_reply2" value="If you want to buy a letter, ask me for a {trade}. Or do you want me to {explain} how letters work?" />
        <parameter key="keyword_reply3" value="With a letter you can send a message to another Tibian's {depot}. If you want to send it to 'Ben', use the letter - so that a form opens - and write 'Ben' in the first line. Write your message below that. ..." />
        <parameter key="keyword_reply4" value="Each major city has at least one depot. Just step in front of one of the lockers and you can store items inside. Your mail will also arrive there. Each city has its own storage, don't forget where you store items!" />
        <parameter key="keyword_reply5" value="If you want to buy a parcel, ask me for a {trade}. Or do you want me to {explain} how parcels work?" />
        <parameter key="keyword_reply6" value="In a parcel you can send items to another Tibian's {depot}. Put your items into the parcel and also place a completed {label} with the name of the {receiver} inside. Then drag your parcel on one of the blue {mailboxes} here to send it." />
        <parameter key="module_shop" value="1" />
        <parameter key="shop_buyable" value="label,2599,1;parcel,2595,15;letter,2597,8;" />
        <parameter key="message_sendtrade" value="Here. Don't forget that you need to buy a label too if you want to send a parcel. Always write the name of the {receiver} in the first line." />
    
    
    </parameters>
</npc>
 


Como eu poderia editar este NPC?

+Rep pela ajuda.

 

Edited by felipe vaini
Link to post
Share on other sites

2 answers to this question

Recommended Posts

  • 0
Em 23/01/2020 em 18:14, felipe vaini disse:
Versão do Servidor: TFS - 1.0
Tipo de Script: npc
Código:
  Mostrar conteúdo oculto


Link do script do Npc
https://ibb.co/pKWFYpP

Fla galera, tranquilo.

 

Queria editar um NPC que voce chegasse nele, pedia pelo outfit, addon 1 e depois addon 2, e ele te vendesse por KK's.

 

Esse é o arquivo do NPC Benjamin, que vende Parcel em Thais, como eu poderia editar ele pra ele vender Addons 1 e 2 por KKs, voce chega la e pede Assassin, Addon 1 e talz e ele te vende por dinheiro.

 

Dados no NPC Benjamin:

<?xml version="1.0" encoding="UTF-8"?>
<npc name="Benjamin" script="Benjamin.lua" walkinterval="2000" floorchange="0">
    <health now="100" max="100" />
    <look type="128" head="116" body="79" legs="117" feet="76" addons="0" />
    <parameters>
        <parameter key="module_keywords" value="1" />
        <parameter key="keywords" value="mail;letters;explain;depot;parcel;explain;" />
        <parameter key="keyword_reply1" value="With our mail system you can send {letters} and {parcels} to other Tibians. I can either explain how {letters} and {parcels} work or sell them to you if you ask me for a {trade}." />
        <parameter key="keyword_reply2" value="If you want to buy a letter, ask me for a {trade}. Or do you want me to {explain} how letters work?" />
        <parameter key="keyword_reply3" value="With a letter you can send a message to another Tibian's {depot}. If you want to send it to 'Ben', use the letter - so that a form opens - and write 'Ben' in the first line. Write your message below that. ..." />
        <parameter key="keyword_reply4" value="Each major city has at least one depot. Just step in front of one of the lockers and you can store items inside. Your mail will also arrive there. Each city has its own storage, don't forget where you store items!" />
        <parameter key="keyword_reply5" value="If you want to buy a parcel, ask me for a {trade}. Or do you want me to {explain} how parcels work?" />
        <parameter key="keyword_reply6" value="In a parcel you can send items to another Tibian's {depot}. Put your items into the parcel and also place a completed {label} with the name of the {receiver} inside. Then drag your parcel on one of the blue {mailboxes} here to send it." />
        <parameter key="module_shop" value="1" />
        <parameter key="shop_buyable" value="label,2599,1;parcel,2595,15;letter,2597,8;" />
        <parameter key="message_sendtrade" value="Here. Don't forget that you need to buy a label too if you want to send a parcel. Always write the name of the {receiver} in the first line." />
    
    
    </parameters>
</npc>
 


Como eu poderia editar este NPC?

+Rep pela ajuda.

 

Vai em Data/NPC/Scripts e Poste o Benjamim.lua. 

Link to post
Share on other sites
  • 0
Em 30/01/2020 em 17:16, Yan18 disse:

Vai em Data/NPC/Scripts e Poste o Benjamim.lua. 

Eu resetei o npc pq nao estava dando certo, tem algum script ai? ai eu edito um npc qualquer.

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    No registered users viewing this page.


    Administrador |  Diretor |  Coordenador |  Moderador |  Suporter |  Estagiário |  Herói
  • Similar Content

    • By thloko
      Versão do Servidor: TFS - 1.0 Tipo de Script: actions Código: Fala ae galera, tudo bem ?
       
      Gostaria de permitir o uso da habilidade do pokemon como Surf, ride, fly, apenas se o player tiver passado de determinado ginásio, vinculando assim o uso da abilidade com a insígnia adiquirida. Retirando o vip como obrigatório.
      Alguém sabe onde consigo adicionar o script ou mesmo a linha de checagem (acho que é o mais provável) para que isso seja possível ?
       
      Acredito que eu tenha que add a checagem no script abaixo.
      Se puderem da uma força, agradeço.
      Abraço !
    • By Pluzetti
      Oi gente, eu estou precisando de um sisteminha, ele é legal em teoria, seria assim:
       
      No tibia existe uma espécie de graveto que normalmente é colocado no mapa pra enfeite, basicamente seria assim, voce colher 5 desses graveto, achar uma das pedras configuradas no script, por os graveto no chao, e começar usar a pedra nos graveto, tendo a chance de nao ascender o fogo, saindo um efeito de CONST_ME_POFF e um texto animado Fail. Caso ascenda irá fazer um efeito de sucesso...O fogo ficaria 7 segundos asceso, saindo um texto animado queimando, e em baixo do fogo saindo um efeito vermelho, como se fosse as brasas. Depois que o fogo apagar o texto para de sair e aparece para o player que o fogo apagou, Nisso o graveto some do chao, e só volta aparecer em suas posicões 30 minutos depois. < {opcional}.
       
       
      caso alguem possa ajudar, serei muito grato.
       
       
       
       
      Obrigado
    • By olddies
      Classicot Abit Special Server Never Seen.

      Classicot is a server based on the leaked CipSoft files from 2006 version 7.70 that means we are using the exact formulas as original Tibia doe’s but with some modification's to the spells, runes and vocation's to fit the old system gameplay, this server is being developed since 2017 and we are there finally. We are using a completely 7.40 based server to launch Classicot 7.10, if you remember what was the gameplay between 7.10 and 7.40 the difference is only Visual, Game Mechanics and Map also the skull's system didn't exist in that version but we keep them here to maintain the fair gameplay, as mentioned before we are using the official tracked CipSoft map from 7.40 and downgraded to 7.10, removed level door's, edited the map to look like it was back in 7.10, we invite you and your friend*'s to play this first edition of Classicot Launching this October 16!!

      [Launching 2 Server's]
       Antica, located in America (South) with regular PvP combat  Lunara, located in Germany with regular PvP combat

      [Server Information]:
      Version: 7.10
      Port: 7171
      Map: Original Map 7.10
      Support: Directx9 & OpenGL
      Shared Party Experience (Premium only)
      Anti-Bot System
      Houses: 100%
      Spawns: 100%
      NPC's: 100%
      Quests: 100%
      Tasks: No!

      [Server Rates]:
      Exp: 1x
      Skill: 1x
      Magic: 1x
      Loot: 1x
      Regeneration: 1x

      [Gameplay]:
      -Promotion lowered to (10k)
      -Properly oldchool UHTrap
      -Monster's No diagonal pathing
      -Monster's No run away on low hp
      -Monster's Always attempt to attack in melee range
      -Monster's Cant cross fields if they are not immune to them
      -Monster's Strong creatures didnt kill weaker creatures on the way
      -Monster's No retargetting

      [Cheating]:
      Cheating is strictly forbidden under the threat of deletion of all accounts that belong to, or are played by, the offender.
      Keep in mind that you are supposed to play the game yourself, not to have a tool or program play it for you. Doing so gives you an unfair advantage over players who invest time and effort to gain power. Using unofficial software such as a macro program or a so-called "tasker" or "bot" to automatically execute actions in Classicot for you may lead to a punishment. Thus, play fair. It is allowed to have only 1 character online at a time ( No MC )

      [Old items!]
      All the old items exist and they are completely identical to what they used to be in version 7.10 of Tibia.
      Amulet of Life is the replacement of amulet of loss with blessings ( wich cost 75k )
      [Old creatures!]
      All creatues are completely identical to how they used to be in version 7.10 of Tibia.
      Creatures will behave as they used to do, formulas are the same and the loot dropped by creatures are accurate!

      [Old runes and spells!]
      Runes can be conjured by players x1 and bought from other players.
      Spells can be used by reaching a certain required magic level for a specific spell.

      Account creation is open now!!
      Create Your Account Here!
    • By xGabriiel
      Outora Server [8.60 | 24 Horas | Global]!
       
      Crie sua conta e ganhe 5 dias VIP e Full Outfit Citizen ~> CUPOM: FORUM%10 ~> Cique aqui ou copie e cole a URL abaixo.
      https://www.outora.io/?subtopic=create_account
       
      Servidor Global na versão 8.60 | 24 Horas

      Rate:
      Exp Rate 80x
      Skill Rate 15x
      Magic Rate 5x
      Loot Rate 2x
       
      Informações:
      Contamos uma mega estrutura.
      Trap hunt proibido.
      Mega proteção contra ataques DDoS e outros.
      NPC Outora Event (lista de itens), participe dos eventos; ganhe coins e troque por itens!
      Eventos automáticos (horário dos eventos) e diariamente executados;
       
      Quests:
      Annihilator Quest;
      The Demon Oak;
      Wrath of the Emperor;
      Svargrond;
      Zao Arena;
       
      Sistemas novos:
      Loot Channel - !lootchannel [on] | [off] | [both];
      Monstros do dia - Extra Loot e Exp -> (info);
      Hunted System (info);
      Addon System (info);
      Raids System (info);
      Cast System (info);
      Task System (info);
      Private War (info);
      Guild War c/ emblemas (info);
       
      Eventos (calendário)
      Battlefield;
      Snowball War;
      Firestorm;
      Castle of King;
       
      Novos itens e exclusivos do Outora Server.
      Para maiores informações acesse as Informações do Server | Lista de Comandos.
       
      Chame seus amigos e sua guild, junte-se a nós!
       
      Criar conta: https://www.outora.io/?subtopic=create_account
       
      Divirta-se!
      Equipe Outora.
×
×
  • Create New...