Npc De Teleporte Por Vocation

notle2012
em NPCs, monsters e raids

notle2012

uoʇן£
avatar
Conde
Conde

INFOS

Grupo: CondeRegistrado: 03/01/12Posts: 884Char no Tibia: Segredo

NPCDEPALADIN

 

 

data\npc\NPCDEPALADIN.xml

<npc name="NPCDEPALADIN" script="data/npc/scripts/telepaladin.lua" walkinterval="2000" floorchange="0">
<health now="100" max="100"/>
<look type="134" head="78" body="88" legs="0" feet="88" addons="3"/>
	<parameters>
			<parameter key="message_greet" value="Ola. Para mais informacoes de meus servicos diga {go}." />
			<parameter key="message_farewell" value="Tchau." />
			<parameter key="message_walkaway" value="Tchau." />
	</parameters>
</npc>

data\npc\scripts\telepaladin.lua

local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)
local pos = {x=160,y=54,z=7} -------------- Pos para onde o player sera levado
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
function creatureSayCallback(cid, type, msg)
if msgcontains(msg, 'go') then
if getPlayerVocation(cid) == 3 or getPlayerVocation(cid) == 7 or getPlayerVocation(cid) == 11 then		
selfSay("Boa viagem.", cid)
doTeleportThing(cid, pos)
else
selfSay("Eu Não Posso Te Teleporta só Fiel A Os Paladin. E Vc Não è UM", cid)
end
end
return TRUE  
end

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

 

 

NPCDEKNIGHT

 

 

data\npc\NPCDEKNIGHT.xml

<npc name="NPCDEKNIGHT" script="data/npc/scripts/teleknight.lua" walkinterval="2000" floorchange="0">
<health now="100" max="100"/>
<look type="134" head="78" body="88" legs="0" feet="88" addons="3"/>
	<parameters>
			<parameter key="message_greet" value="Ola. Para mais informacoes de meus servicos diga {go}." />
			<parameter key="message_farewell" value="Tchau." />
			<parameter key="message_walkaway" value="Tchau." />
	</parameters>
</npc>

data\npc\scripts\teleknight.lua

local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)
local pos = {x=160,y=54,z=7} -------------- Pos para onde o player sera levado
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
function creatureSayCallback(cid, type, msg)
if msgcontains(msg, 'go') then
if getPlayerVocation(cid) == 4 or getPlayerVocation(cid) == 8 or getPlayerVocation(cid) == 12 then		
selfSay("Boa viagem.", cid)
doTeleportThing(cid, pos)
else
selfSay("Eu Não Posso Te Teleporta só Fiel A Os Kinght. E Vc Não è UM", cid)
end
end
return TRUE  
end

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

 

 

NPCDEMAGES

 

 

data\npc\scripts\telemages.lua

<npc name="NPCDEMAGES" script="data/npc/scripts/telemages.lua" walkinterval="2000" floorchange="0">
<health now="100" max="100"/>
<look type="134" head="78" body="88" legs="0" feet="88" addons="3"/>
	<parameters>
			<parameter key="message_greet" value="Ola. Para mais informacoes de meus servicos diga {go}." />
			<parameter key="message_farewell" value="Tchau." />
			<parameter key="message_walkaway" value="Tchau." />
	</parameters>
</npc>

data\npc\scripts\telemages.lua

local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)
local pos = {x=160,y=54,z=7} -------------- Pos para onde o player sera levado

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

function creatureSayCallback(cid, type, msg)
if msgcontains(msg, 'go') then
if getPlayerVocation(cid) == 1 or getPlayerVocation(cid) == 2 or getPlayerVocation(cid) == 5 or getPlayerVocation(cid) == 6 or getPlayerVocation(cid) == 9 or getPlayerVocation(cid) == 10 then		  
selfSay("Boa viagem.", cid)
doTeleportThing(cid, pos)
else
selfSay("Eu Não Posso Te Teleporta só Fiel A Os Druds E Magos E Vc Não è UM", cid)
end
end
return TRUE  
end


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

 

 

Por Favor quando for fazer pedidos faz o pedido com mais clareza e com os mínimos detalhes
GOSTO DOS MEUS SCRIPT CLICK EM CURTIR :D

 

sistema de fome

TROCA TROCA

sistema coliseum by notle v1

new sistema [KILLER-UP]

 

 

jcLmJPT.png

Plfmoura

Suave ~~~~
avatar
Artesão
Artesão

INFOS

Grupo: ArtesãoRegistrado: 03/04/09Posts: 149Char no Tibia: Hiporion

Teleporta pra onde? o.O

Sente o Naipe mermao.

 

 

2554.png

notle2012

uoʇן£
avatar
Conde
Conde

INFOS

Grupo: CondeRegistrado: 03/01/12Posts: 884Char no Tibia: Segredo

Teleporta pra onde? o.O

pra onde vc edita

deixei assim

 

local pos = {x=160,y=54,z=7} -------------- Posição para onde o player sera levado

Por Favor quando for fazer pedidos faz o pedido com mais clareza e com os mínimos detalhes
GOSTO DOS MEUS SCRIPT CLICK EM CURTIR :D

 

sistema de fome

TROCA TROCA

sistema coliseum by notle v1

new sistema [KILLER-UP]

 

 

jcLmJPT.png

Raidou

Nunca vendeu maconha.
avatar
Banidos
Banidos

INFOS

Grupo: BanidosRegistrado: 31/07/12Posts: 279Char no Tibia: Raidou

Cara,que foda esse script, nunca vi nada igual parabens.

Qkpoy.png

 

 

Ajudo no que eu posso!

Seja feliz com isso.

Plfmoura

Suave ~~~~
avatar
Artesão
Artesão

INFOS

Grupo: ArtesãoRegistrado: 03/04/09Posts: 149Char no Tibia: Hiporion

Zim! um npc desse ia cair bem para teleportar pra "monk trainers" da vocação especifica. Vou usar aqui *-* mas em um sisteminha de Empire Wars!

Sente o Naipe mermao.

 

 

2554.png

Molina12

avatar
Campones
Campones

INFOS

Grupo: CamponesRegistrado: 07/06/24Posts: 1
Em 31/07/2012 em 00:40, notle2012 disse:

NPCDEPALADIN

 

  Mostrar conteúdo oculto

 

data\npc\NPCDEPALADIN.xml

 

<npc name="NPCDEPALADIN" script="data/npc/scripts/telepaladin.lua" walkinterval="2000" floorchange="0">
<health now="100" max="100"/>
<look type="134" head="78" body="88" legs="0" feet="88" addons="3"/>
	<parameters>
			<parameter key="message_greet" value="Ola. Para mais informacoes de meus servicos diga {go}." />
			<parameter key="message_farewell" value="Tchau." />
			<parameter key="message_walkaway" value="Tchau." />
	</parameters>
</npc>
 

 

data\npc\scripts\telepaladin.lua

 

local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)
local pos = {x=160,y=54,z=7} -------------- Pos para onde o player sera levado
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
function creatureSayCallback(cid, type, msg)
if msgcontains(msg, 'go') then
if getPlayerVocation(cid) == 3 or getPlayerVocation(cid) == 7 or getPlayerVocation(cid) == 11 then		
selfSay("Boa viagem.", cid)
doTeleportThing(cid, pos)
else
selfSay("Eu Não Posso Te Teleporta só Fiel A Os Paladin. E Vc Não è UM", cid)
end
end
return TRUE  
end

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

 

 

 

NPCDEKNIGHT

 

  Mostrar conteúdo oculto

 

data\npc\NPCDEKNIGHT.xml

 

<npc name="NPCDEKNIGHT" script="data/npc/scripts/teleknight.lua" walkinterval="2000" floorchange="0">
<health now="100" max="100"/>
<look type="134" head="78" body="88" legs="0" feet="88" addons="3"/>
	<parameters>
			<parameter key="message_greet" value="Ola. Para mais informacoes de meus servicos diga {go}." />
			<parameter key="message_farewell" value="Tchau." />
			<parameter key="message_walkaway" value="Tchau." />
	</parameters>
</npc>
 

 

data\npc\scripts\teleknight.lua

 

local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)
local pos = {x=160,y=54,z=7} -------------- Pos para onde o player sera levado
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
function creatureSayCallback(cid, type, msg)
if msgcontains(msg, 'go') then
if getPlayerVocation(cid) == 4 or getPlayerVocation(cid) == 8 or getPlayerVocation(cid) == 12 then		
selfSay("Boa viagem.", cid)
doTeleportThing(cid, pos)
else
selfSay("Eu Não Posso Te Teleporta só Fiel A Os Kinght. E Vc Não è UM", cid)
end
end
return TRUE  
end

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

 

 

 

NPCDEMAGES

 

  Mostrar conteúdo oculto

 

data\npc\scripts\telemages.lua

 

<npc name="NPCDEMAGES" script="data/npc/scripts/telemages.lua" walkinterval="2000" floorchange="0">
<health now="100" max="100"/>
<look type="134" head="78" body="88" legs="0" feet="88" addons="3"/>
	<parameters>
			<parameter key="message_greet" value="Ola. Para mais informacoes de meus servicos diga {go}." />
			<parameter key="message_farewell" value="Tchau." />
			<parameter key="message_walkaway" value="Tchau." />
	</parameters>
</npc>
 

 

data\npc\scripts\telemages.lua

 

local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)
local pos = {x=160,y=54,z=7} -------------- Pos para onde o player sera levado

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

function creatureSayCallback(cid, type, msg)
if msgcontains(msg, 'go') then
if getPlayerVocation(cid) == 1 or getPlayerVocation(cid) == 2 or getPlayerVocation(cid) == 5 or getPlayerVocation(cid) == 6 or getPlayerVocation(cid) == 9 or getPlayerVocation(cid) == 10 then		  
selfSay("Boa viagem.", cid)
doTeleportThing(cid, pos)
else
selfSay("Eu Não Posso Te Teleporta só Fiel A Os Druds E Magos E Vc Não è UM", cid)
end
end
return TRUE  
end


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

 

 

 

ficaria top apenas um npc fazer essa funçao reconhecer a vocaçao e manda para posiçao diferete  tipo as quadro voc cada um para uma localizaçao diferete no mesmo script