Postado Agosto 15, 2017 7 anos Hi there, and welcome to the magic store. Descrição: NPC Simples do Tibia Global que comercia wands, rods, runes e outros itens mágicos. Nome do Npc: Alexander Função: Comerciante de Itens Mágicos. Vende: Spellbook Blank Stone shower rune Thunderstorm rune Icicle rune Holy missile rune Desintegrate rune Poison bomb rune Energy bomb rune Soulfire rune Magic wall rune Animate dead rune Paralyze rune Fireball rune Wild growth rune Wand of dragonbreath Wand of decay Wand of cosmic energy Wand of voodoo Wand of starstorm Wand of inferno Wand of draconia Wand of vortex Snakebite rod Moonlight rod Necrotic rod Terra rod Underworld rod Springsprout rod Northwind rod Hailstorm rod Life ring Crystal ball Spellbook of enlightenment Spellbook of warding Spellbook of mind control Spellbook of lost souls Crystal ball life crystal Mind stone Alexander.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 shopModule = ShopModule:new() npcHandler:addModule(shopModule) shopModule:addBuyableItem({'spellbook'}, 2175, 150, 'spellbook') shopModule:addBuyableItem({'blank'}, 2260, 10, 1, 'blank rune') shopModule:addBuyableItem({'stone shower rune'}, 2288, 37, 4, 'stone shower rune') shopModule:addBuyableItem({'thunderstorm rune'}, 2315, 37, 4, 'thunderstorm rune') shopModule:addBuyableItem({'icicle rune'}, 2271, 30, 5, 'icicle rune') shopModule:addBuyableItem({'holy missile rune'}, 2295, 16, 5, 'holy missile rune') shopModule:addBuyableItem({'desintegrate rune'}, 2310, 26, 3, 'desintegrate rune') shopModule:addBuyableItem({'poison bomb rune'}, 2286, 85, 2, 'poison bomb rune') shopModule:addBuyableItem({'energy bomb rune'}, 2262, 162, 2, 'energy bomb rune') shopModule:addBuyableItem({'soulfire rune'}, 2308, 46, 3, 'soulfire rune') shopModule:addBuyableItem({'magic wall rune'}, 2293, 116, 3, 'magic wall rune') shopModule:addBuyableItem({'animate dead rune'}, 2316, 375, 1, 'animate dead rune') shopModule:addBuyableItem({'paralyze rune'}, 2278, 700, 1, 'paralyze rune') shopModule:addBuyableItem({'fireball rune'}, 2302, 30, 5, 'fireball rune') shopModule:addBuyableItem({'wild growth rune'}, 2269, 160, 2, 'wild growth rune') shopModule:addBuyableItem({'wand of dragonbreath', 'dragonbreath'}, 2191, 1000, 1, 'wand of dragonbreath') shopModule:addBuyableItem({'wand of decay', 'decay'}, 2188, 5000, 1, 'wand of decay') shopModule:addBuyableItem({'wand of cosmic energy', 'cosmic energy'}, 2189, 10000, 1, 'wand of cosmic energy') shopModule:addBuyableItem({'wand of voodoo', 'voodoo'}, 8922, 22000, 1, 'wand of voodoo') shopModule:addBuyableItem({'wand of starstorm', 'starstorm'}, 8920, 18000, 1, 'wand of starstorm') shopModule:addBuyableItem({'wand of inferno', 'inferno'}, 2187, 15000, 1, 'wand of inferno') shopModule:addBuyableItem({'wand of draconia', 'draconia'}, 8921, 7500, 1, 'wand of draconia') shopModule:addBuyableItem({'wand of vortex', 'vortex'}, 2190, 500, 1, 'wand of vortex') shopModule:addBuyableItem({'snakebite rod', 'snakebite'}, 2182, 500, 1, 'snakebite rod') shopModule:addBuyableItem({'moonlight rod', 'moonlight'}, 2186, 1000, 1, 'moonlight rod') shopModule:addBuyableItem({'necrotic rod', 'necrotic'}, 2185, 5000, 1, 'necrotic rod') shopModule:addBuyableItem({'terra rod', 'terra'}, 2181, 10000, 1, 'terra rod') shopModule:addBuyableItem({'underworld rod', 'underworld'}, 8910, 22000, 1, 'underworld rod') shopModule:addBuyableItem({'springsprout rod', 'springsprout'}, 8912, 18000, 1, 'springsprout rod') shopModule:addBuyableItem({'northwind rod', 'northwind'}, 8911, 7500, 1, 'northwind rod') shopModule:addBuyableItem({'hailstorm rod', 'hailstorm'}, 2183, 15000, 1, 'hailstorm rod') shopModule:addBuyableItem({'life ring', 'life ring'}, 2168, 900, 1, 'life ring') shopModule:addBuyableItem({'crystal ball', 'crystal ball'}, 2192, 530, 1, 'crystal ball') shopModule:addSellableItem({'spellbook of enlightenment', 'spellbook of enlightenment'}, 8900, 4000, 'spellbook of enlightenment') shopModule:addSellableItem({'spellbook of warding', 'spellbook of warding'}, 8901, 8000, 'spellbook of warding') shopModule:addSellableItem({'spellbook of mind control', 'spellbook of mind control'}, 8902, 13000, 'spellbook of mind control') shopModule:addSellableItem({'spellbook of lost souls', 'spellbook of lost souls'}, 8903, 19000, 'spellbook of lost souls') shopModule:addSellableItem({'crystal ball', 'crystal ball'}, 2192, 190, 'crystal ball') shopModule:addSellableItem({'life Crystal', 'life Crystal'}, 2177, 85, 'life crystal') shopModule:addSellableItem({'mind Stone', 'mind Stone'}, 2178, 170, 'mind stone') function creatureSayCallback(cid, type, msg) if(not npcHandler:isFocused(cid)) then return false end end npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new()) Alexander.xml <?xml version="1.0" encoding="UTF-8"?> <npc name="Alexander" script="data/npc/scripts/Alexander.lua" walkinterval="2000" floorchange="0"> <health now="100" max="100"/> <look type="130" head="96" body="63" legs="71" feet="97" addons="0"/> <voices> <voice text="Selling all sorts of magic equipment. Come and have a look." interval2="120" margin="1" yell="no"/> </voices> <parameters> <parameter key="module_keywords" value="1" /> <parameter key="keywords" value="magic;" /> <parameter key="keyword_reply1" value="I'm selling runes, life rings, wands, rods and crystal balls. I also buy powerful spellbooks. If you like to see my offers, ask me for a {trade}."/> <parameter key="message_greet" value="Hi there |PLAYERNAME|, and welcome to the {magic} store."/> <parameter key="message_farewell" value="See you, |PLAYERNAME|."/> <parameter key="message_sendtrade" value="Of course, just browse through my wares. Or do you want to look only at {runes} or {wands}?" /> <parameter key="message_walkaway" value="See you, |PLAYERNAME|." /> </parameters> </npc> Ot Design: https://discord.gg/VgtVRNmCD7
Postado Agosto 15, 2017 7 anos 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.
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.