Postado Agosto 9, 2015 9 anos Olá amigos do TK gostaria de saber se existe alguma script, ou onde devo alterar pra dar exhausted nos rotate dos personagem. quando eles usam bot, eles ficam rodando mt rapido.
Postado Agosto 9, 2015 9 anos O tópico foi movido para a área correta, preste mais atenção da próxima vez! Leia as regras do fórum: http://tibiaking.com/forum/topic/1281-regras-gerais/?p=7680Este tópico foi movido: De: "OTServ → Suporte OTServ → Suporte de Scripts" Para: "OTServ → Suporte OTServ → Suporte de Programação" Essa alteração é feita nas sources do servidor, ou até no client também, mas, não tem nenhum arquivo lua que possa fazer essa alteração. _ .-'` `} _./) / } .'o \ | } '.___.'`.\ {` /`\_/ , `. } ME DA UMA NOZ! \=' .-' _`\ { `'`;/ `, } _\ @ ; } /__`;-...'--' Cluck!
Postado Agosto 10, 2015 9 anos Solução Creaturescripts: local delay = 200 -- milliseconds local cidTable = {} function onDirection(cid, old, current) if(old == current) then return true end if(cidTable[cid] and cidTable[cid] > os.clock()) then return false end cidTable[cid] = os.clock() + (delay/1000) return true end TAG: <event type="direction" name="NOME" event="script" value="NOME.lua"/> Login.lua: registerCreatureEvent(cid, "NOME")
Postado Agosto 10, 2015 9 anos Creaturescripts: local delay = 200 -- milliseconds local cidTable = {} function onDirection(cid, old, current) if(old == current) then return true end if(cidTable[cid] and cidTable[cid] > os.clock()) then return false end cidTable[cid] = os.clock() + (delay/1000) return true end TAG: <event type="direction" name="NOME" event="script" value="NOME.lua"/> Login.lua: registerCreatureEvent(cid, "NOME") Não entendi, isso faz rodar menos?
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.