em talkactions cria um arquivo antibot e coloca iso dentro
function onSay(cid, words, param, channel)if getPlayerAccess(cid) > 3 then
return false
elseif getPlayerStorageValue(cid,9564) == -1 then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_WARNING, 'Você ainda não recebeu um novo número de confirmação anti-bot.')
elseif tonumber(param) == getPlayerStorageValue(cid,9564) then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_WARNING, 'Confirmado com sucesso. Bom jogo.')
doPlayerSendTextMessage(cid, MESSAGE_STATUS_WARNING, 'Antha anti-bot system.')
setPlayerStorageValue(cid,9564,-1)
setPlayerStorageValue(cid,9565,-1)
else
doPlayerSendTextMessage(cid, MESSAGE_STATUS_WARNING,'Número de confirmação errado. O seu número de confirmação é '..getPlayerStorageValue(cid,9564)..'.')
end
return true
end
<talkaction words="!confirmbot" script="antibot.lua"/>
em globalevents cria um arquivo botter e adciona iso dentro
function onThink(interval, lastExecution)for x=1,#getOnlinePlayers() do
if getPlayerAccess(getCreatureByName(getOnlinePlayers()[x])) < 4 and (not isPlayerPzLocked(getCreatureByName(getOnlinePlayers()[x]))) and getOnlinePlayers()[x] ~= "Account Manager" then
if getPlayerStorageValue(getCreatureByName(getOnlinePlayers()[x]),9564) == -1 then
local numero = math.random(0,99999)
doPlayerSendTextMessage(getCreatureByName(getOnlinePlayers()[x]), MESSAGE_STATUS_WARNING, 'Anti-bot . Seu número de confirmação anti-bot é: '..numero..'. Por favor digite !confirmbot XXXXX onde XXXXX é seu número de confirmação.')
setPlayerStorageValue(getCreatureByName(getOnlinePlayers()[x]),9564,numero)
elseif getPlayerStorageValue(getCreatureByName(getOnlinePlayers()[x]),9565) == -1 then
setPlayerStorageValue(getCreatureByName(getOnlinePlayers()[x]),9565,1)
doPlayerSendTextMessage(getCreatureByName(getOnlinePlayers()[x]), MESSAGE_STATUS_WARNING, 'Último aviso. Confirme seu número gerado pelo sistema anti-bot pelo comando !confirmbot ou você será banido.')
elseif getPlayerStorageValue(getCreatureByName(getOnlinePlayers()[x]),9565) == 1 then
doAddAccountBanishment(getAccountIdByName(getOnlinePlayers()[x]))
setPlayerStorageValue(getCreatureByName(getOnlinePlayers()[x]),9565,-1)
doRemoveCreature(getCreatureByName(getOnlinePlayers()[x]))
end
end
end
return TRUE
end
<globalevent name="booting" interval="60" script="botter.lua"/>
voce so edita o interval nao sei quantos seg e 2 hora







info
Grupo: Campones
Registrado: 14/12/07
Posts: 36
Reputação: +1
Tipo do script: Anti Bot
Protocolo (versão do Tibia): 8.6
Servidor utilizado: TFS (trunk.r3884)
Nível de experiência: Não sei
Adicionais/Informações:
Funcionamento: o sistema irá manda uma mensagem para o player e o player tera que responder a mensagem usando um comando.
Exemplo:
Mensagem enviada:
Usando os números de forma aleatoria
Resposta:
Comando usado pelo player para responder a mensagem.
Caso o player não responda a mensagem dentro de 2 minutos, será setado uma warning para ele.
Execução do script:
Será executado a cada 2 horas.