Ir para conteúdo
  • Cadastre-se

(Resolvido)Npc Boat (Teleport city nao leva para a city)


Ir para solução Resolvido por KotZletY,

Posts Recomendados

Script

Spoiler

local keywordHandler = KeywordHandler:new()

local npcHandler = NpcHandler:new(keywordHandler)

NpcSystem.parseParameters(npcHandler)


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 travelNode = keywordHandler:addKeyword({'suna'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Do you wanna go to Suna Gakure, are you sure?'})
 
travelNode:addChildKeyword({'yes'}, StdModule.travel, {npcHandler = npcHandler,  level = 1, cost = 0, destination = {x=564, y=1145, z=7} })
 
travelNode:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, reset = true, text = 'Next time maybe.'})


local travelNode = keywordHandler:addKeyword({'mist'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Dou you wanna go to Mist Gakure, are you sure?'})
 
travelNode:addChildKeyword({'yes'}, StdModule.travel, {npcHandler = npcHandler,  level = 1, cost = 0, destination = {x=1149, y=1218, z=7} })
 
travelNode:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, reset = true, text = 'Next time maybe.'})

local travelNode = keywordHandler:addKeyword({'twist'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Dou you wanna go to twist Gakure, are you sure?'})
 
travelNode:addChildKeyword({'yes'}, StdModule.travel, {npcHandler = npcHandler,  premium = true,  level = 1, cost = 0, destination = {x=1307, y=1279, z=2} })
 
travelNode:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, reset = true, text = 'Next time maybe.'})


local travelNode = keywordHandler:addKeyword({'konoha'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Dou you wanna go to Konoha Gakure, are you sure?'})
 
travelNode:addChildKeyword({'yes'}, StdModule.travel, {npcHandler = npcHandler, level = 1, cost = 0, destination = {x=1015, y=906, z=7} })
 
travelNode:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, reset = true, text = 'Next time maybe.'})


local travelNode = keywordHandler:addKeyword({'amegakure'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Do you wanna go to Amekagure no Sato, are you sure?'})
 
travelNode:addChildKeyword({'yes'}, StdModule.travel, {npcHandler = npcHandler, level = 1, cost = 0, destination = {x=972, y=1430, z=7} })
 
travelNode:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, reset = true, text = 'Next time maybe.'})


local travelNode = keywordHandler:addKeyword({'valley of the end'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Dou you wanna go to Valley of the End, are you sure?'})
 
travelNode:addChildKeyword({'yes'}, StdModule.travel, {npcHandler = npcHandler, level = 1, cost = 0, destination = {x=965, y=830, z=7} })
 
travelNode:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, reset = true, text = 'Next time maybe.'})


local travelNode = keywordHandler:addKeyword({'south florest'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Dou you wanna go to Souty Florest, are you sure?'})
 
travelNode:addChildKeyword({'yes'}, StdModule.travel, {npcHandler = npcHandler, premium = false, level = 1, cost = 0, destination = {x=912, y=1179, z=7} })
 
travelNode:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, reset = true, text = 'Next time maybe.'})


local travelNode = keywordHandler:addKeyword({'west desert'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Do you wanna go to West Desert, are you sure?'})
 
travelNode:addChildKeyword({'yes'}, StdModule.travel, {npcHandler = npcHandler, level = 1, cost = 0, destination = {x=1496, y=1053, z=7} })
 
travelNode:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, reset = true, text = 'Next time maybe.'})


local travelNode = keywordHandler:addKeyword({'south island'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Do you wanna go to Sounth Island, are you sure?'})
 
travelNode:addChildKeyword({'yes'}, StdModule.travel, {npcHandler = npcHandler, level = 1, cost = 0, destination = {x=1084, y=1400, z=7} })
 
travelNode:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, reset = true, text = 'Next time maybe.'})

--------------------------------------
local travelNode = keywordHandler:addKeyword({'zetsu covil'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Do you wanna go to zetsu covil, are you sure?'})
 
travelNode:addChildKeyword({'yes'}, StdModule.travel, {npcHandler = npcHandler,  premium = false, level = 1, cost = 0, destination = {x=1658, y=33, z=7} })
 
travelNode:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, reset = true, text = 'Next time maybe.'})

--------------------------------------
local travelNode = keywordHandler:addKeyword({'member akatsuki covil'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Do you wanna go to member akatsuki covil, are you sure?'})
 
travelNode:addChildKeyword({'yes'}, StdModule.travel, {npcHandler = npcHandler,  premium = false, level = 1, cost = 0, destination = {x=1715, y=204, z=7} })
 
travelNode:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, reset = true, text = 'Next time maybe.'})

--------------------------------------
local travelNode = keywordHandler:addKeyword({'paper island'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Do you wanna go to paper island, are you sure?'})
 
travelNode:addChildKeyword({'yes'}, StdModule.travel, {npcHandler = npcHandler,  premium = false, level = 1, cost = 0, destination = {x=1942, y=548, z=7} })
 
travelNode:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, reset = true, text = 'Next time maybe.'})

--------------------------------------
local travelNode = keywordHandler:addKeyword({'vila shinobi'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Do you wanna go to Vila Shinobi, are you sure?'})
 
travelNode:addChildKeyword({'yes'}, StdModule.travel, {npcHandler = npcHandler,  premium = false, level = 1, cost = 0, destination = {x=792, y=1496, z=7} })
 
travelNode:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, reset = true, text = 'Next time maybe.'})

-------------------------------------
local travelNode = keywordHandler:addKeyword({'kyuuby hunt'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Do you wanna go to kyuuby hunt, are you sure?'})
 
travelNode:addChildKeyword({'yes'}, StdModule.travel, {npcHandler = npcHandler,  premium = false, level = 1299, cost = 0, destination = {x=776, y=813, z=7} })
 
travelNode:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, reset = true, text = 'Next time maybe.'})
-------------------------------------
local travelNode = keywordHandler:addKeyword({'Iwagakure'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Do you wanna go to Iwagakure, are you sure?'})
 
travelNode:addChildKeyword({'yes'}, StdModule.travel, {npcHandler = npcHandler,  premium = false, level = 250, cost = 0, destination = {x=608, y=438, z=8} })
 
travelNode:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, reset = true, text = 'Next time maybe.'})


keywordHandler:addKeyword({'area free'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 
'I can take you to Suna,Mist,Konoha,Amegakure,Valley of the End,South Florest,South Island,West Desert,Zetsu Covil,Member Akatsuki Covil.'})

keywordHandler:addKeyword({'area vip'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 
'Posso Lhe Leva Para a {Paper Island},Onde a Konans Que Dão Muinto Dinheiro,Tambem Posso Lhe Leva Para a {Vila Shinobi},Onde Muintos Shinobis Vivem e Comercializa Items,e Casas.'})

keywordHandler:addKeyword({'area evento'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 
'Nesse Momento a Area Dos Eventos Esta Em Construção.'})
        
-- Makes sure the npc reacts when you say hi, bye etc.
        
npcHandler:addModule(FocusModule:new())

 

 

<?xml version="1.0" encoding="UTF-8"?>
<npc name="Minoru" script="data/npc/scripts/travel/boat.lua" walkinterval="2000" speed="0" floorchange="0">
<health now="100" max="100"/>
<look type="206" head="19" body="113" legs="95" feet="115" addons="0"/>
  <parameters>
    <parameter key="message_greet" value="Ola,|PLAYERNAME|. Para onde voce gostaria de ir {Suna}, {Mist}, {Konoha}, {Amegakure}, {Valley of the End}, {South Florest}, {South Island}, {West Desert}, {Zetsu Covil}, {Member Akatsuki Covil}, {Paper Island}, {Vila Shinobi}, {kyuuby hunt}, {Iwagakure}." />
  </parameters>
</npc>

bom esse npc nao leva para Iwagakure nao aparece nada nao contem erro nada demais, só nao teleporta para iwagakure

O rei de seu proprio destino é aquele que luta pela gloria do amanhã!
Discord : ZoR#9373


 

Link para o post
Compartilhar em outros sites
  • Solução

@ZikaLord coloque os nomes sempre em minúsculos:

local travelNode = keywordHandler:addKeyword({'iwagakure'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Do you wanna go to Iwagakure, are you sure?'})

 

                                                              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.

×
×
  • Criar Novo...

Informação Importante

Confirmação de Termo