Ir para conteúdo

Featured Replies

Postado

Descrição: NPC Simples do Tibia Global que transporta para Okolnir, Helheim, raider camp e tyrsung.

Nome do Npc: Buddel

Função: Transporte

 

Transporta para:

  • Okolnir
  • Helheim
  • Raider Camp
  • Tyrsung

 

Preços:

0 Gp. Todos

 

Buddel.lua

local keywordHandler = KeywordHandler:new()
        local npcHandler = NpcHandler:new(keywordHandler)
        NpcSystem.parseParameters(npcHandler)
        
        
        
        -- OTServ event handling functions start
        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
        -- OTServ event handling functions end
        
        
        -- Don't forget npcHandler = npcHandler in the parameters. It is required for all StdModule functions!
        local travelNode = keywordHandler:addKeyword({'okolnir'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Give me 0 gold and I bring you to Okolnir home of the frost dragons. Alright?'})
        	travelNode:addChildKeyword({'yes'}, StdModule.travel, {npcHandler = npcHandler, premium = false, level = 0, cost = 0, destination = {x=32225, y=31381, z=7} })
        	travelNode:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, reset = true, text = 'SHIP AHOY! I AM BUDDEL THE ..... did you say no??? Alright.'})
        
	local travelNode = keywordHandler:addKeyword({'helheim'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Give me 0 gold and I bring you to Helheim. kay?'})
        	travelNode:addChildKeyword({'yes'}, StdModule.travel, {npcHandler = npcHandler, premium = false, level = 0, cost = 0, destination = {x=32462, y=31174, z=7} })
        	travelNode:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, reset = true, text = 'You shouldn\'t miss the experience.'})
        
	local travelNode = keywordHandler:addKeyword({'tyrsung'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Give me 0 gold and I bring you to Tyrsung where the Venoran hunters have their settlement. Alright?'})
        	travelNode:addChildKeyword({'yes'}, StdModule.travel, {npcHandler = npcHandler, premium = false, level = 0, cost = 0, destination = {x=32333, y=31227, z=7} })
        	travelNode:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, reset = true, text = 'You shouldn\'t miss the experience.'})
			
			local travelNode = keywordHandler:addKeyword({'raider camp'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Give me 0 gold and I bring you to the south of Hrodmir where the camps of the barbarians are located. kay?'})
        	travelNode:addChildKeyword({'yes'}, StdModule.travel, {npcHandler = npcHandler, premium = false, level = 0, cost = 0, destination = {x=32154, y=31375, z=7} })
        	travelNode:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, reset = true, text = 'You shouldn\'t miss the experience.'})
       

        npcHandler:addModule(FocusModule:new())

 

Buddel.xml

<?xml version="1.0" encoding="UTF-8"?>
<npc name="Buddel" script="data/npc/scripts/Buddel.lua" walkinterval="2000" floorchange="0">
<health now="100" max="100"/>
<look type="143" head="19" body="57" legs="22" feet="20" addons="0"/>
<voices>
<voice text="Oh geeze, where are we again? *HICKS*" interval2="120" margin="1" yell="no"/>
<voice text="*HICKS*" interval2="100" margin="1" yell="no"/>
<voice text=" LALALALA ... an' a bottle of RUM !!!" interval2="90" margin="1" yell="no"/>
</voices>
<parameters>
		<parameter key="module_shop" value="1" />
		<parameter key="shop_sellable" value="i,11213,45;"/>
		<parameter key="message_sendtrade" value="Got any compasses for me?" />
        <parameter key="message_greet" value="Ho ho, *HICKS*. Captain Buddel is always at your service!"/>
        <parameter key="message_farewell" value="Bye."/>
		<parameter key="message_walkaway" value="Bye." />
</parameters>
</npc>

 

Postado

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.

 

Bruno Carvalho / Ex-Administrador TibiaKing

[email protected]

 

Em 26/12/2016 em 03:47, Spraypaint disse:

A força da alienação vem dessa fragilidade dos indivíduos, quando apenas conseguem identificar o que os separa e não o que os une.

-miltinho

 

wMwSJFE.png?1

 

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

Quem Está Navegando 0

  • Nenhum usuário registrado visualizando esta página.

Estatísticas dos Fóruns

  • Tópicos 96.9k
  • Posts 519.7k

Informação Importante

Confirmação de Termo