Solutions
-
lucasromero's post in (Resolvido)(Pedido) Teleport was marked as the answerMovements.xml
<movevent type="StepIn" actionid="7094" event="script" value="teleport24.lua"/> Movements/scripts/teleport24.lua
function getTime(s) local h = math.floor(s/3600) local m = math.floor((s - h * 3600) / 60) return h, m, (s - h * 3600) - m * 60 end function onStepIn(cid, item, position, fromPosition) local config = { pos = {x=1000,y=1000,z=7}, --Posição que vai ser teleportado stor = getPlayerStorageValue(cid,7094) - os.time(), } local hora, minuto, segundo = getTime(config.stor) if getPlayerStorageValue(cid,7094) < os.time() then doTeleportThing(cid,config.pos,true) setPlayerStorageValue(cid,7094,os.time()+60*60*24) else doPlayerSendTextMessage(cid, 19, "Você só poderá entrar daqui a: ".. hora .." hora(s), ".. minuto .." minuto(s) e ".. segundo .." segundo(s)") doTeleportThing(cid,fromPosition) return false end return true end -
lucasromero's post in (Resolvido)[TalkAction] Desbugar was marked as the answerCrie um arquivo .lua dentro da pasta talkactions/scripts com o nome desbugar Transcreva o código abaixo e configure a gosto. function onSay(cid, words, param) local tempo = 60 --Tempo em minutos local pos = {x=1000,y=1000,z=7} --Posicao do Templo if getPlayerStorageValue(cid,1000) < os.time() then doTeleportThing(cid, pos, true) setPlayerStorageValue(cid,1000,os.time()+(tempo) * 60) doSendMagicEffect(getCreaturePosition(cid), CONST_ME_TELEPORT) else return doPlayerSendTextMessage(cid, 27, "Voce ja utilizou o comando !desbugar. Aguarde ".. getPlayerStorageValue(cid,1000) - os.time() .." segundos.") end return true end <talkaction words="!desbugar" event="script" value="desbugar.lua"/>
-
lucasromero's post in (Resolvido){Ajuda} Mudar cor do hit da spell was marked as the answersetCombatParam(combat, COMBAT_PARAM_HITCOLOR, 94)
-
lucasromero's post in (Resolvido)(Pedido simples) NPC falar só. was marked as the answerTente esse:
Isso é um arquivo lua.
-
lucasromero's post in (Resolvido)Oque é TFS,DISTRO,SOURCE Etc... was marked as the answerSource é o CÓDIGO que fica dentro do seu TFS, TFS é o EXECUTÁVEL do jogo, aquele que aparece The Forgotten Server, quando você ABRE o OT.
Pra compilar precisa de um programa chamado Stian Repack DEV C++, isso você consegue em vários links, para compilar é só apertar F9 ou colocar COMPILAR.
Não HÁ modo de ver as sources dentro do executável, apenas fora, ou seja, source você só pega em link para baixar, não da pra DESCOMPILAR.
Source é tudo que faz seu OT rodar, seja, SPELLS, Talkactions, pois as funções: doCastSpell, vem tudo de dentro das sources.
Para abrir é só usar o Stian Repack DEV C++ também.
Mais algo? Diga que eu re-edito o post.
O melhor distro pra Baiak Barão é esse:
http://www.tibiaking.com/forum/topic/33395-tfs-04-dev-anti-dv-warsystem-cast-system-sem-bugs/
-
lucasromero's post in (Resolvido)[URGENTE] NPC was marked as the answerNPC.xml
NPC/script/viajar.lua