Faisher 6 Postado Dezembro 24, 2010 Share Postado Dezembro 24, 2010 (editado) Well, I made this script little time ago and seen that pokemon servers are progressing a lot I decided post it. Script work: When your summon (pokemon) is far from you or fallen down a hole teleports to your position. Go to globalevents/scripts/ create a LUA file called teleport.lua and add this: function onThink(interval, lastExecution, thinkInterval) local tabla = {} local maxDistance = 10 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), 12) end end return true end Now you go to globalevents.xml and add this: <globalevent name="teleport" interval="1" event="script" value="teleport.lua"/> Xafterin. Editado Dezembro 24, 2010 por Faisher Link para o comentário https://xtibia.com/forum/topic/148141-pokemon-teleportation-of-summons/ Compartilhar em outros sites More sharing options...
AlphaLove 39 Postado Dezembro 24, 2010 Share Postado Dezembro 24, 2010 Pra quem nao Intender eu Tomei a Liberdade de Traduzi oque ele escreveu. A Seguir a Tradução: Bem, eu fiz esse script há pouco tempo e visto que os servidores pokemon estão progredindo muito, decidi publicá-la. Trabalho Script: Quando a sua convocação (pokemon) está longe de você ou caído em um buraco se teletransporta para a sua posição. Ir para globalevents / scripts / criar um arquivo chamado LUA teleport.lua e acrescentar o seguinte: function onThink(interval, lastExecution, thinkInterval) local tabla = {} local maxDistance = 10 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), 12) end end return true end Agora você vai globalevents.xml e acrescentar o seguinte: <globalevent name="teleport" interval="1" event="script" value="teleport.lua"/> Xafterin. Ajudei na Tradução ? REP + Link para o comentário https://xtibia.com/forum/topic/148141-pokemon-teleportation-of-summons/#findComment-980562 Compartilhar em outros sites More sharing options...
Faisher 6 Postado Dezembro 24, 2010 Autor Share Postado Dezembro 24, 2010 @up: Thanks. Link para o comentário https://xtibia.com/forum/topic/148141-pokemon-teleportation-of-summons/#findComment-980580 Compartilhar em outros sites More sharing options...
lemooca 2 Postado Dezembro 26, 2010 Share Postado Dezembro 26, 2010 Thanks man, repp + only for faisher Link para o comentário https://xtibia.com/forum/topic/148141-pokemon-teleportation-of-summons/#findComment-981126 Compartilhar em outros sites More sharing options...
Avronex 104 Postado Dezembro 28, 2010 Share Postado Dezembro 28, 2010 Muito bom, todo mundo tava precisando dele ainda mais agora que saiu a nova versão do poketibia, pra complementar seria perfeito Link para o comentário https://xtibia.com/forum/topic/148141-pokemon-teleportation-of-summons/#findComment-982045 Compartilhar em outros sites More sharing options...
Faisher 6 Postado Dezembro 29, 2010 Autor Share Postado Dezembro 29, 2010 Thanks for your comment Avronex. Link para o comentário https://xtibia.com/forum/topic/148141-pokemon-teleportation-of-summons/#findComment-982502 Compartilhar em outros sites More sharing options...
srjoao 1 Postado Dezembro 31, 2010 Share Postado Dezembro 31, 2010 se pega do + rep Link para o comentário https://xtibia.com/forum/topic/148141-pokemon-teleportation-of-summons/#findComment-983182 Compartilhar em outros sites More sharing options...
gmharea 3 Postado Janeiro 3, 2011 Share Postado Janeiro 3, 2011 booa jogadoor até faz uma animaçãozinha huahaau... gostei mesmo, se tivesse REP+ eu dava... Link para o comentário https://xtibia.com/forum/topic/148141-pokemon-teleportation-of-summons/#findComment-984052 Compartilhar em outros sites More sharing options...
Posts Recomendados