Ir para conteúdo
  • Cadastre-se

Posts Recomendados

Descrição: NPC Simples do Tibia Global que vende armas e armaduras. O Sam, assim como no global, troca uma Old and Used Backpack por uma Dwarven Armor.

Nome do Npc: Sam

Função: Comerciante de Armas, Comerciante de Armaduras.

 

Vende:

  • Axe
  • Battle Hammer
  • Brass Armor
  • Chain Armor
  • Chain Helmet
  • Chain Legs
  • Dagger
  • Hand Axe
  • Leather Armor
  • Leather Helmet
  • Mace
  • Rapier
  • Sabre
  • Spear
  • Steel Shield
  • Sword
  • Throwing Knife
  • Wooden Shield

 

Compra:

  • Axe
  • Battle Axe
  • Battle Hammer
  • Battle Shield
  • Brass Armor
  • Chain Armor
  • Chain Helmet
  • Chain Legs
  • Dagger
  • Halberd
  • Hand Axe
  • Leather Armor
  • Leather Helmet
  • Mace
  • Morning Star
  • Plate Armor
  • Rapier
  • Sabre
  • Short Sword
  • Spear
  • Steel Helmet
  • Steel Shield
  • Swoord
  • Two Handed Sword
  • Wooden Shield

 

Troca:

  • t47.gif.b3cab03069d3753261f328c735d3b463.gif Old And Used Backpack    X    t48.gif.a395ce68c60788b08110570d51f84483.gif Dwarven Armor

Sam.lua

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

local config = {
	storage = 18256,
}

function creatureSayCallback(cid, type, msg)
	if(not npcHandler:isFocused(cid)) then
		return false
	end

	local talkUser = NPCHANDLER_CONVBEHAVIOR == CONVERSATION_DEFAULT and 0 or cid

	if (msgcontains(msg, "old backpack")) then
		if (getPlayerItemCount(cid, 3960) >= 1) and doPlayerRemoveItem(cid,3960,1)then
				selfSay('Thank you very much! This brings back good old memories! Please, as a reward, travel to Kazordoon and ask my old friend Kroox to provide you a special dwarven armor.', cid)
				selfSay('I will mail him about you immediately. Just tell him, his old buddy sam is sending you.', cid)
			setPlayerStorageValue(cid, config.storage, 1)
		else
			selfSay("You don't have my backpack.", cid)
		end
		talkState[talkUser] = 0
	elseif(msgcontains(msg, 'no') and isInArray({1}, talkState[talkUser])) then
		talkState[talkUser] = 0
		selfSay("Bye.", cid)
	end

	return true
end

npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback)
npcHandler:addModule(FocusModule:new())

 

Sam.xml

<?xml version="1.0" encoding="UTF-8"?>
<npc name="Sam" script="data/npc/scripts/default.lua" walkinterval="2000" floorchange="0">
    <health now="100" max="100"/>
    <look type="131" head="57" body="112" legs="48" feet="95" addons="0"/>
    <parameters>
        <parameter key="message_greet" value="Welcome to my shop, adventurer |PLAYERNAME|! I {trade} with weapons and armor."/>
        <parameter key="message_farewell" value="Good bye and come again, |PLAYERNAME|."/>
        <parameter key="module_keywords" value="1" />
        <parameter key="keywords" value="job;" />
        <parameter key="keyword_reply1" value="I am the blacksmith. If you need weapons or armor - just ask me." />

        <parameter key="module_shop" value="1"/>
        <parameter key="shop_buyable" value="axe,2386,20;battle hammer,2417,350;brass armor,2465,450;chain armor,2464,200;chain helmet,2458,52;chain legs,2648,80;dagger,2379,5;hand axe,2380,8;leather armor,2467,35;leather helmet,2461,12;mace,2398,90;rapier,2384,15;sabre,2385,35;spear,2389,10;steel shield,2509,240;sword,2376,85;throwing knife,2410,25;wooden shield,2512,15;" />
        <parameter key="shop_sellable" value="axe,2386,7;battle axe,2378,80;battle hammer,2417,120;battle shield,2513,95;brass armor,2465,150;chain armor,2464,70;chain helmet,2458,17;chain legs,2648,25;dagger,2379,2;halberd,2381,400;hand axe,2380,4;leather armor,2467,12;leather helmet,2461,4;mace,2398,30;morning star,2394,90;plate armor,2463,400;rapier,2384,5;sabre,2385,12;short sword,2406,10;spear,2389,3;steel helmet,2457,190;steel shield,2509,80;sword,2376,25;two handed sword,2377,450;wooden shield,2512,5;" />
    </parameters>
</npc>

 

Link para o post
Compartilhar em outros sites

Parabéns, seu tópico de conteúdo foi aprovado!
Muito obrigado pela sua contribuição, nós do Tibia King agradecemos.
Seu conteúdo com certeza ajudará à muitos outros, você recebeu +1 REP.

Spoiler

Congratulations, your content has been approved!
Thank you for your contribution, we of Tibia King we are grateful.
Your content will help many other users, you received +1 REP.

 

                                                              ezgif-1-98aab239f3.gif.1a897c9c3225228909e7b356a5cfb8e4.gif

Link para o post
Compartilhar em outros sites

Participe da conversa

Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.

Visitante
Responder

×   Você colou conteúdo com formatação.   Remover formatação

  Apenas 75 emojis são permitidos.

×   Seu link foi automaticamente incorporado.   Mostrar como link

×   Seu conteúdo anterior foi restaurado.   Limpar o editor

×   Não é possível colar imagens diretamente. Carregar ou inserir imagens do URL.

  • Quem Está Navegando   0 membros estão online

    Nenhum usuário registrado visualizando esta página.

  • Conteúdo Similar

    • Por Drafenous
      Fala galera, eu aqui novamente precisando de um help (infelizmente, ou felizmente para os que gostam de ajudar aqui no forum, assim como eu )...
      O problema de agora é o seguinte...
       
      Eu editei alguns itens em meu OT, porém, não consigo fazer eles adicionarem os atributos aos players... Ele aparece na mensagem dizendo que tem o atributo, porém, não adiciona na skill informations dos players.
       
      Segue os itens no items.xml do ot:
      <item id="8925" article="a" name="solar axe"> <attribute key="weight" value="11000" /> <attribute key="defense" value="30" /> <attribute key="attack" value="55" /> <attribute key="SkillAxe" value="3" /> <attribute key="weaponType" value="axe" /> <attribute key="extradef" value="3" /> <attribute key="showattributes" value="1" /> </item> <item id="8927" article="a" name="dark trinity mace"> <attribute key="weight" value="9900" /> <attribute key="defense" value="30" /> <attribute key="attack" value="55" /> <attribute key="weaponType" value="club" /> <attribute key="SkillClub" value="3" /> <attribute key="showattributes" value="1" /> <attribute key="extradef" value="3" /> </item> <item id="8930" article="an" name="emerald sword"> <attribute key="weight" value="4100" /> <attribute key="defense" value="30" /> <attribute key="attack" value="55" /> <attribute key="weaponType" value="sword" /> <attribute key="skillSword" value="3" /> <attribute key="extradef" value="3" /> <attribute key="showattributes" value="1" /> </item> <item id="7958" article="a" name="jester staff"> <attribute key="weight" value="725" /> <attribute key="weaponType" value="club" /> <attribute key="magiclevelpoints" value="3" /> <attribute key="weaponType" value="wand" /> <attribute key="shootType" value="energy" /> <attribute key="range" value="5" /> <attribute key="showattributes" value="1" /> </item> Em weapons.xml está assim:
      <melee id="8930" level="80" unproperly="1" event="function" value="default"/> <vocation name="knight"/> <vocation id="8" showInDescription="0"/> </melee> <melee id="8925" level="80" unproperly="1" event="function" value="default"/> <vocation name="knight"/> <vocation id="8" showInDescription="0"/> </melee> <melee id="8927" level="80" unproperly="1" event="function" value="default"/> <vocation name="knight"/> <vocation id="8" showInDescription="0"/> </melee> <wand id="7958" range="10" lvl="80" mana="10" enabled="1" exhaustion="0" script="1.lua"> <vocation id="1"/> <vocation id="5"/> </wand> Como eu vi na Jester Staff, ele puxa o arquivo 1.lua, então, segue o código do arquivo:
      local combat = createCombatObject() setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_HOLYDAMAGE) setCombatParam(combat, COMBAT_PARAM_EFFECT, 31) setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, 30) setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -1.0, -90, 1.6, -150) function onUseWeapon(cid, var) return doCombat(cid, combat, var) end Como dito, quando eu dou look nos itens, eles aparecem que tem o atributo, porém, não adiciona ao player, alguém pode me ajudar? eu dou um rep+ legalzinho a quem conseguir ajudar :3
       
    • Por Ribeiro Foda
      Olá pessoal! Estou precisando de 1 script de quest para 8.4. 
       
      Esse script de quest serve para eu montar 1 ancient helmet se eu tiver as peças e colocar elas no lugar certo, e quando puxar uma alavanca e tiver todas as peças o ancient helmet aparece.
       
      Aqui está 1 video de como é:

       
      Vejam só do 0:13 a 00:44.
       
      P.S: Eu ja fiz esse lugar no mapa eu só preciso da script da quest!
       
      ATT: R1B31R0!
    • Por Sekk
      Olá galera, esses dias ciriei um tópico pedindo um script para mudar o elemento das armas, no caso, o arrow fazia parte. Bom, não achei aqui no fórum um tópico sobre isso, e ninguém postou algum script para que eu pudesse testar. Sendo assim, eu procurei mais na Internet, e achei um tutorial
       
      Bom, vamos ao que interessa:
       
      Multi Elemental Arrow
       
      Vá em data/actions/actions.xml e adicione as seguintes tags:
       
        Ainda em actions, abra a pasta scripts e crie um arquivo chamado transformarrow.lua e adicione o seguinte código:     Pronto, agora você só precisa tirar os seguintes items do loot dos monsters, e mudar seus nomes no items.xml. ID dos arrow fire, energy, ice e earth:   Multi Elemental Shield:   Vá em data/actions/actions.xml e adicione as seguintes tags:   Pronto, agora você só precisa tirar os seguintes items do loot dos monsters, e mudar seus nomes no items.xml. ID dos shields normal, fire, energy, earth e ice:  
       
      Créditos
      Rozinx Team -- Por criar o script e usá-lo em seus servidores
      [T][R][O][N] -- De outro fórum, por postar o script para quem quer o mesmo
      jvcasarin(EU) -- Por compartilhar com vocês do TK o script
    • Por dravitar
      I have made a new sprite of Oblivion Blade link for download
      Link of download MEGA
      Link of the blade img
      VIRUS TOTAL SCAN 
      URL
      https://www.virustotal.com/gui/url/71216ea7e98991af2c7f6226d581d2ba513e14cc585f8e8d0f6cf04bf112f755/detection
      FILE
      https://www.virustotal.com/gui/file/ae8cbed2857cdfa3a6e8e40e8426018d056eaebbb1fc25694598f2981d6d158a/detection






    • Por Kazuya9629
      Download
      https://www.mediafire.com/file/2zewaqdyiwq9ww1/escanor_axe.rar/file Virustotal
       
      https://www.virustotal.com/pt/file/5fb9154506d8e7f87940c5e9349a45a418c4505f7d96838db7ddfdef8e099c2b/analysis/1543083506/ Credito: @Kazuya9629
×
×
  • Criar Novo...

Informação Importante

Confirmação de Termo