
Lucas MS.
Membro
-
Registro em
-
Última visita
Solutions
-
Lucas MS.'s post in (Resolvido)Pokemon sumonado do player ao sair da tela teletransporta pra perto do player novamente was marked as the answerNo GlobalEvents.xml coloque essa Tag
<globalevent name="teleport" interval="1" event="script" value="poke.lua"/> poke.lua
function onThink(interval, lastExecution, thinkInterval) local tabla = {} local maxDistance = 7 for _, pid in ipairs(getPlayersOnline()) do local summons = getCreatureSummons(pid) if #summons > 0 then table.insert(tabla, pid) end end for _, t in ipairs(tabla) do local summ = getCreatureSummons(t) if getThingPos(t).z ~= getThingPos(summ[1]).z or getDistanceBetween(getThingPos(t), getThingPos(summ[1])) > maxDistance then doTeleportThing(summ[1], getThingPos(t)) doSendMagicEffect(getThingPos(t), 10) end end return true end Configurando
local maxDistance = 77 é a distancia que fica entre o pokemon e o player se quiser pode por menor.
-
Lucas MS.'s post in (Resolvido)ajuda com website otpokemon was marked as the answerE so ir na pasta imagens do layout e subistituir a imagem
[]'s