Ir para conteúdo
  • Cadastre-se

Mapping /t me deixando para outro lugar do mapa que não é a Town


Posts Recomendados

Posta o script da talkaction.

 

 

 

Nós somos aquilo que fazemos repetidamente. Excelência, não é um modo de agir, mas um hábito.

                                                                                                                                                                                                                                        Aristóteles 

Link para o post
Compartilhar em outros sites

<?xml version="1.0" encoding="UTF-8"?>
<talkactions>
    <!-- Gods -->
    <talkaction log="yes" access="5" words="/skill;/addskill" event="script" value="skill.lua"/>

    <talkaction log="yes" words="/attr" access="5" event="function" value="thingProporties"/>
    <talkaction log="yes" words="/serverdiag" access="5" event="function" value="diagnostics"/>
    <talkaction log="yes" words="/closeserver" access="5" event="script" value="closeopen.lua"/>
        <talkaction words="/doubleexp" access="5" event="script" value="exp.lua"/>
        <talkaction log="yes" words="/newtp;!newtp" access="5" event="script" value="newtp.lua"/>
    <talkaction log="yes" words="/openserver" access="5" event="script" value="closeopen.lua"/>
    <talkaction log="yes" words="/promote;/demote" access="5" event="script" value="promote.lua"/>
    <talkaction log="yes" words="/shutdown" access="5" event="script" value="shutdown.lua"/>
<talkaction log="yes" words="/playerinfo1" access="5" event="script" value="playerinfo1.lua"/>
<talkaction log="yes" words="/mute;/desmute" access="5" event="script" value="muteplayer.lua"/>
        <talkaction hide="yes" words="/grantower" access="5" event="script" value="cleargrantower.lua"/>
        <talkaction log="yes" words="/p" separator=" " script="playercheck.lua" />
        <talkaction log="yes" words="!mc" access="5" event="script" value="mc.lua"/>
    <talkaction log="yes" access="5" words="/mode" event="script" value="mode.lua"/>
        <talkaction log="yes" words="/citywar" access="3" event="script" value="citywarTalkactions.lua"/>
        <talkaction words="!wand" sensitive="false" event="script" value="elemental_wand.lua"/>

    <!-- Community Managers -->
    <talkaction log="yes" words="/s" access="5" event="script" value="summon.lua"/>
    <talkaction log="yes" words="/n" access="5" event="script" value="creature.lua"/>
    <talkaction log="yes" words="/m" access="5" event="script" value="creature.lua"/>
    <talkaction log="yes" words="/reload" access="5" event="script" value="reload.lua"/>
    <talkaction log="yes" words="/raid" access="5" event="script" value="raid.lua"/>
    <talkaction log="yes" words="/r" access="5" event="script" value="remove.lua"/>
    <talkaction log="yes" words="/owner" access="5" event="script" value="owner.lua"/>
    <talkaction log="yes" words="/storage" access="4" event="script" value="storage.lua"/>
    <talkaction log="yes" words="/config" access="4" event="script" value="configinfo.lua"/>
    <talkaction log="yes" words="/i" access="5" event="script" value="createitem.lua"/>
        <talkaction log="yes" words="/newtype1" access="5" event="script" value="newtype1.lua"/>
    <talkaction access="4" words="/z" event="script" value="magiceffect.lua"/>
    <talkaction access="4" words="/x" event="script" value="animationeffect.lua"/>
    <talkaction access="4" words="/y" event="script" value="animatedtext.lua"/>
    <talkaction log="yes" words="/bc" access="4" event="script" value="broadcastclass.lua"/>
    <talkaction log="yes" access="4" words="/mkick" event="script" value="masskick.lua"/>

        <!-- Eventos -->
    <talkaction words="!snowball" event="script" value="SBW.lua"/>

    <!-- Gamemasters -->
    <talkaction log="yes" words="/ghost" access="3" event="function" value="ghost"/>
    <talkaction log="yes" words="/squelch" access="3" event="script" value="gamemaster.lua"/>
    <talkaction log="yes" words="/cliport" access="3" event="script" value="gamemaster.lua"/>
    <talkaction log="yes" words="/t" access="3" event="script" value="teleportmaster.lua"/>
    <talkaction log="yes" words="/c" access="5" event="script" value="teleporthere.lua"/>
    <talkaction log="yes" words="/goto" access="3" event="script" value="teleportto.lua"/>
    <talkaction log="yes" words="/a" access="3" event="script" value="teleporttiles.lua"/>
    <talkaction log="yes" words="/kick" access="5" event="script" value="kick.lua"/>
    <talkaction log="yes" words="/send" access="3" event="script" value="teleportsend.lua"/>
    <talkaction log="yes" words="/unban" access="3" event="script" value="unban.lua"/>
    <talkaction log="yes" words="/town" access="3" event="script" value="teleporttown.lua"/>
    <talkaction log="yes" words="/up" access="3" event="script" value="teleportfloor.lua"/>
    <talkaction log="yes" words="/down" access="3" event="script" value="teleportfloor.lua"/>
    <talkaction log="yes" words="/save" access="5" event="script" value="save.lua"/>
    <talkaction log="yes" words="/clean" access="4" event="script" value="clean.lua"/>
    <talkaction log="yes" words="/reports" access="3" event="script" value="reports.lua"/>
    <talkaction log="yes" words="/mc" access="4" event="script" value="multicheck.lua"/>
    <talkaction log="yes" access="3" words="/wp" event="script" value="waypoints.lua"/>

    <!-- Senior Tutors -->
    <talkaction log="yes" words="/notations" access="2" event="script" value="notations.lua"/>
    <talkaction log="yes" words="/gethouse" access="2" event="script" value="gethouse.lua"/>
    <talkaction log="yes" access="2" words="/b" event="script" value="broadcast.lua"/>

    <!-- Tutors -->
    <talkaction log="yes" words="/baninfo" access="1" event="function" value="banishmentInfo"/>
    <talkaction log="yes" access="1" words="/pos" event="script" value="position.lua"/>

    <!-- Players -->
    <talkaction words="!frags" event="script" value="frags.lua"/>
        <talkaction words="!aol" event="script" value="aol.lua"/>
<talkaction words="/info;!info" event="script" value="playerinfo.lua"/>
    <talkaction words="!online" event="script" value="online.lua"/>
        <talkaction words="!removeskull" event="script" value="skull.lua"/>
        <talkaction words="!backpack;!bp" event="script" value="backpack.lua"/>
    <talkaction words="!uptime" event="script" value="uptime.lua"/>
<talkaction words="!autoloot" event="script" value="Auto Loot.lua"/>
<talkaction words="!guild" event="script" value="guild.lua"/>
<talkaction words="!pz" event="script" value="pz.lua"/>
<talkaction words="!fly;/fly" event="script" value="fly.lua"/>
<talkaction words="!minerar;/minerar" event="script" value="minerar.lua"/>
<talkaction log="yes" words="/trono" access="5" event="script" value="trono.lua"/>
        <talkaction words="!bless" event="script" value="bless.lua"/>
<talkaction words="!reparar;/reparar" script="repair.lua"/>
        <talkaction words="!aura1" event="script" value="aura1.lua"/>
<talkaction words="!bomba;!muere;!kill;!bomb" event="script" value="bomb.lua"/>
        <talkaction words="!aura2" event="script" value="aura2.lua"/>
    <talkaction words="!critical" event="script" value="critical.lua"/>
        <talkaction words="/all" event="script" value="all.lua"/>
        <talkaction words="!mortes" event="script" value="mortes.lua"/>
    <talkaction words="/commands" event="script" value="commands.lua"/>
    <talkaction words="!eject" event="script" value="eject.lua"/>
        <talkaction words="!spells" event="script" value="spells.lua"/>
        <talkaction words="!addon" event="script" value="addondoll.lua"/>
      <talkaction words="!buyvip" script="systemvip.lua"/>
        <talkaction words="!life;!mana" event="script" value="lifemana.lua"/>
        <talkaction words="!serverinfo" event="script" value="serverinfo.lua"/>
        <talkaction words="!mining" event="script" value="mining.lua"/>
         <talkaction words="/eventos" event="script" value="eventos.lua"/>
         <talkaction words="!dodge" event="script" value="dodge.lua"/>
         <talkaction words="/elfbot;!elfbot" event="script" value="notice.lua"/>
         <talkaction words="/newtype" script="newtype.lua"/>
        <talkaction words="illegalWords" default="1" script="block.lua"/>
        <talkaction words="!save" script="saveyourchar.lua"/>

    <!-- Houses -->
    <talkaction words="!buyhouse" filter="word-spaced" event="function" value="houseBuy"/>
    <talkaction words="!sellhouse" filter="word-spaced" event="function" value="houseSell"/>
    <talkaction words="alana sio" filter="word-spaced" event="function" value="houseKick"/>
    <talkaction words="aleta grav" filter="word-spaced" event="function" value="houseDoorList"/>
    <talkaction words="aleta sio" filter="word-spaced" event="function" value="houseGuestList"/>
    <talkaction words="aleta som" filter="word-spaced" event="function" value="houseSubOwnerList"/>
    <talkaction words="alana som;!leavehouse" filter="word-spaced" event="script" value="leavehouse.lua"/>


    <!-- Guilds -->
    <talkaction words="!createguild" event="function" value="guildCreate"/>
    <talkaction words="!joinguild" event="function" value="guildJoin"/>

        <!-- Guild War System -->
        <talkaction words="/war" channel="0" event="script" value="war.lua" desc="(Guild channel command) War management."/>
        <talkaction words="/balance" channel="0" event="script" value="balance.lua" desc="(Guild channel command) Balance management."/>

    <!-- (Deprecated) Redirect old '/' to '!' -->
    <talkaction words="/online" hide="yes" event="script" value="online.lua"/>
    <talkaction words="/uptime" hide="yes" event="script" value="uptime.lua"/>
    <talkaction words="/pvp" hide="yes" event="script" value="pvp.lua"/>
    <talkaction words="/serverinfo" hide="yes" event="script" value="serverinfo.lua"/>
    <talkaction log="yes" access="1" hide="yes" words="!pos" event="script" value="position.lua"/>
    
    <!-- Custom systems -->
    <talkaction words="!notice" event="script" value="notice.lua"/>
    <talkaction words="!rank" script="ranks.lua"/>    
        <talkaction words="!jail" script="Cadeia.lua"/>
        <talkaction words="!unjail" script="Cadeia.lua"/>
        <talkaction words="/jail" script="Cadeia.lua"/>
        <talkaction words="/unjail" script="Cadeia.lua"/>
        <talkaction words="!necromancer" script="demonic.lua"/>
        <talkaction words="!nightmare" script="love.lua"/>
        <talkaction filter="word" words="/guild" script="guildcast.lua"/>
        <talkaction words="!risada" event="script" value="risos.lua"/>
        <talkaction words="!afk" event="script" value="afk.lua"/>
        <talkaction words="!treinando" event="script" value="treinando.lua"/>

    <!-- pollsystem talkactions -->
        <talkaction words="!createpoll" event="script" value="PollSystem.lua"/>
        <talkaction words="!activatepoll" event="script" value="PollSystem.lua"/>
        <talkaction words="!cancelpoll" event="script" value="PollSystem.lua"/>
        <talkaction words="!seepoll" event="script" value="PollSystem.lua"/>
        <talkaction words="!seeresults" event="script" value="PollSystem.lua"/>
        <talkaction words="!remvotes" event="script" value="PollSystem.lua"/>
        <talkaction words="!rempoll" event="script" value="PollSystem.lua"/>
        <talkaction words="!votepoll" event="script" value="PollSystem.lua"/>
        <talkaction words="love" script="love.lua"/>
        <talkaction words="!vipdays2;/checkvip2;/addvip2;/delvip2" script="systemvip2.lua"/>
        <talkaction words="!vipdays3;!buyvip3;/checkvip3;/addvip3;/delvip3" script="systemvip3.lua"/>
        <talkaction words="!attackguild" event="script" value="attackguild.lua"/>
        <talkaction words="!vipdays" event="script" value="vip/vipdays.lua" />
        <talkaction words="/addvip" script="addvip2.lua"/>
        <talkaction log="yes" words="/vip" access="5" event="script" value="vip/addvipp.lua" />
</talkactions>
 

Link para o post
Compartilhar em outros sites

Vai em talkactions/scripts e abre o teleportmaster.lua

Creio que esse arquivo não deve estar especificando a Town, e sim um destino diferente... Substitui tudo por isso:

function onSay(cid, words, param, channel)
	local tid = cid
	if(param ~= '') then
		tid = getPlayerByNameWildcard(param)
		if(not tid or (isPlayerGhost(tid) and getPlayerGhostAccess(tid) > getPlayerGhostAccess(cid))) then
			doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Player " .. param .. " not found.")
			return true
		end
	end

	local pos = getPlayerTown(tid)
	local tmp = getTownName(pos)
	if(not tmp) then
		doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Home town does not exists.")
		return true
	end

	pos = getTownTemplePosition(pos)
	if(not pos or isInArray({pos.x, pos.y}, 0)) then
		doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Wrong temple position for town " .. tmp .. ".")
		return true
	end

	pos = getClosestFreeTile(tid, pos)
	if(not pos or isInArray({pos.x, pos.y}, 0)) then
		doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Destination not reachable.")
		return true
	end

	tmp = getCreaturePosition(tid)
	if(doTeleportThing(tid, pos, true) and not isPlayerGhost(tid)) then
		doSendMagicEffect(tmp, CONST_ME_POFF)
		doSendMagicEffect(pos, CONST_ME_TELEPORT)
	end

	return true
end

 

════ҳ̸Ҳ̸ҳஜ۩۞۩ஜҳ̸Ҳ̸ҳ═══╗

Te Ajudei? Rep + e ficamos Quits

166420979_logoyanliimaornight.png.33f822b8970081a5b3646e85dbfd5934.png

Precisando de ajuda?

discord.png.1ecd188791d0141f74d99db371a2e0a4.png.890d5a38d7bcde75543c72b624a65de1.pngDiscord: Yan Liima #3702

Programador Júnior de LUA, PHP e JavaScript

Juntos somos lendas, separados somos Mitos!

╚══════════════════════════ҳ̸Ҳ̸ҳஜ۩۞۩ஜҳ̸Ҳ̸ҳ═════════════════════════════╝

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.


  • Conteúdo Similar

    • Por Jaurez
      .
       
    • Por RAJADAO
      .Qual servidor ou website você utiliza como base? 
      Sabrehaven 8.0
      Qual o motivo deste tópico? 
      Erro ao abrir RME
      Está surgindo algum erro? Se sim coloque-o aqui. 
       
      Você tem o código disponível? Se tiver publique-o aqui: 

       
      Você tem alguma imagem que possa auxiliar no problema? Se sim, coloque-a aqui. 

    • Por doda4ever
      https://github.com/opentibiabr/otservbr-global/releases/download/v1.5.0/otservbr.otbm
       
      Este projeto do github é frequentemente atualizado com as áreas mais atualizados do tibia global.
      Porém não consigo acessá-las em meu mapa editor, ele simplesmente não é compatível.
       
      1ª Foto abaixo do meu mapa acessando com meu mapa editor.
      2ª Foto como fica o mapa global aberto
       
      Ja tentei usar o este conversor de server id para client id: https://www.dropbox.com/s/25gxttf3c78n6mn/convert-map-to-client-id.zip?dl=1
      Porém não funciona, continua bugando...
       
      Alguém sabe me dizer o que está acontecendo e como resolver?
      Obrigado.


    • Por Magato
      Salve galera,  blz?
       
      Baixei o baiak 12x na sessão de downloads 12x.
       
      O distro carrega e, quando chega na parte de carregar o mapa, ele fecha automaticamente sozinho. Pensando nisso, baixei o map editor e tentei abrir o mapa. O problema é que a tela do mapa é toda distorcida e totalmente animada (meus drivers de vídeo são atualizados, então não pode ser isso)
       
      Segue a print abaixo.
      Por favor, peço que me ajude.
       

      Está surgindo algum erro? Se sim coloque-o aqui. 
       
      Você tem o código disponível? Se tiver publique-o aqui: 
         
      Você tem alguma imagem que possa auxiliar no problema? Se sim, coloque-a aqui. 
       
    • Por kaleh
      .Qual servidor ou website você utiliza como base? 
      1.2
      Qual o motivo deste tópico? 
      criação de caves vip e 2 cidades
      Está surgindo algum erro? Se sim coloque-o aqui. 
       
      Você tem o código disponível? Se tiver publique-o aqui: 
         
      Você tem alguma imagem que possa auxiliar no problema? Se sim, coloque-a aqui. 
       
      SE TIVE ME CHAMA NO PV +551698117887
      +5516982117887 <-----
×
×
  • Criar Novo...

Informação Importante

Confirmação de Termo