Ir para conteúdo

Featured Replies

Postado

Eae pessoal do TK venho aqui pedir um tutorial ou explicar como criar area vip para meu servidor de narutibia.

 

E tipo assim la no meu ot 

 

La no meu ot tem um npc chamado Minuro dai quando se fala "hi" "travel" "area vip" ele fala "ola posso lhe levar para esta area vip"  "Tal tal tal" e tambem para "bla bla bla" dai se fala onde quer ir e vai.

Queria saber fazer isto tipo eu crio uma area no meu mapa e coloco as coordenadas para la que so vip pode ir.

Queria que alguem me ajudaçe a criar isto obrg

 

3 Dias de +REP para quem ajuda.

  • Respostas 10
  • Visualizações 1k
  • Created
  • Última resposta

Top Posters In This Topic

Postado
  • Autor

Aqui eo npc minuro.xml

 

<?xml version="1.0" encoding="UTF-8"?>

 
-<npc floorchange="0" speed="0" walkinterval="2000" script="data/npc/scripts/travel/boat.lua" name="Minoru">
 
<health max="100" now="100"/>
 
<look addons="0" feet="115" legs="95" body="113" head="19" type="206"/>
 
 
-<parameters>
 
<parameter value="Ola,|PLAYERNAME|. Gostaria De Viaja No Meu Barco?,Posso Lhe Leva Para As {Area Free},Se Caso Voce For Um Player Vip Posso Lhe Leva Para a {Area Vip}" key="message_greet"/>
 
</parameters>
 
</npc

 

 

 

Aqui esta o script do travel quero me explique se der tipo position essas coisas

 

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 = true, 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 = true, 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.'})
 
 
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())

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.9k

Informação Importante

Confirmação de Termo