Isso são configurações no npc. Procure um npc de travel e verifique se está pz = true.
flw
info
Grupo: Visconde
Registrado: 03/02/09
Posts: 361
Reputação: +200
Char no Tibia: Fearless Man

Isso são configurações no npc. Procure um npc de travel e verifique se está pz = true.
flw
info
Grupo: Artesão
Registrado: 18/04/08
Posts: 104
Reputação: +17

nem tem ;x pz = true ou pz = false ![]()
poderia me explicar melhor...
info
Grupo: Visconde
Registrado: 03/02/09
Posts: 361
Reputação: +200
Char no Tibia: Fearless Man

Mostre o script do seu npc para que eu possa verificar. Ou procure por
pzLocked = true
flw
info
Grupo: Artesão
Registrado: 18/04/08
Posts: 104
Reputação: +17

Ele é default
<npc name="Teleportador" script="data/npc/scripts/default.lua" floorchange="0" access="5" level="1" maglevel="1">
<health now="150" max="150"/>
<look type="151" head="114" body="12" legs="90" feet="115" addons="1" corpse="2212"/>
<parameters>
<parameter key="module_travel" value="1"/>
<parameter key="message_greet" value="Hello |PLAYERNAME|. Fale {tirar pz} para ser teleportado." />
<parameter key="travel_destinations" value="tirar pz,997,990,7,50000"/>
</parameters>
</npc>
info
Grupo: Visconde
Registrado: 03/02/09
Posts: 361
Reputação: +200
Char no Tibia: Fearless Man

Use:
Teleport.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({'Cidade'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Do you want to be teleported to cidade?'})
travelNode:addChildKeyword({'yes'}, StdModule.travel, {npcHandler = npcHandler, premium = true, level = 50, cost = 50000, pzLocked = true, destination = {x = 997, y = 990, z = 7}})
travelNode:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, reset = true, text = 'So, bye.'})
npcHandler:addModule(FocusModule:new())
Teleporter.xml:
<npc name="Teleporter" script="data/npc/scripts/Teleport.lua" floorchange="0" access="5" level="1" maglevel="1">
<health now="150" max="150"/>
<look type="151" head="114" body="12" legs="90" feet="115" addons="1" corpse="2212"/>
</npc>
flw
info
Grupo: Artesão
Registrado: 18/04/08
Posts: 104
Reputação: +17

Não funcionou, o player está battle não vai ;x quero que ele va mesmo com battle ;x
Aparece isso
Get out of there with this blood
Editado Agosto 17 por darkanderson
info
Grupo: Herói
Registrado: 20/05/10
Posts: 3.4k
Reputação: +1.5k
Gênero: Masculino

então põe
pzLocked = false
info
Grupo: Artesão
Registrado: 18/04/08
Posts: 104
Reputação: +17

então põe
pzLocked = false
Ja tentei e não funcionou...
sempre aparece
Get out of there with this blood
EDIT
Tava fuçando aqui e achei isso elseif(not pzLocked and isPlayerPzLocked(cid)) em modules dos npc ;x
Resolvi problema, pode fechar o topico algum moderador!
Editado Agosto 17 por darkanderson
info
Grupo: Artesão
Registrado: 18/04/08
Posts: 104
Reputação: +17
Queria saber como criar um npc que mesmo quando o player está pz, ele teleportasse ;x