Poderia colocar como o script funciona, o que ele faz, sei que tem o vídeo
mais muitas pessoas não podem assistir por ter conexão baixa, como eu.
Parece estar muito legal a script é 100% sua??
(caso não for bote os créditos)
Rep+
Continue trazendo conteúdo ao Xtibia.com!









info
Grupo: Cavaleiro
Registrado: 05/01/08
Posts: 153
Reputação: +93
Char no Tibia: nenhum
{T}ive um idéia babaca enquanto estava atoa em casa...
.-.
porque não fazer um anti-bot system?
lol
Gtz champz!!! ¬¬
{A}lguns detalhes do sistema:
1º - Para não atrapalhar wars ele não faaz a verificação o player está PZ Locked.
2º - Se você der logout sem fazer a verificação, ao entrar novamente ele lhe informará o último código não confirmado por você.
3º - Os gods/gms/account managers não recebem nenhuma msg por motivos óbvios.
{E}m globalevents.xml localizado na pasta data\globalevents coloque a linha abaixo antes de </globalevents>:
{A}pós fazer isto, vamos criar o script correspondente ao evento. Crie um arquivo chamado anthaab.lua em data\globalevents\scripts com o code abaixo:
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 system by Antharaz. Seu número de confirmação anti-bot é: '..numero..'. Por favor digite !anthaab 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 !anthaab 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{A}gora vá em talkactions.xml na pasta data/talkactions e adicione a linha abaixo antes de </talkactions>:
{A}gora em data/talkactions/scripts crie um arquivo chamado anthaab.lua com o code abaixo:
{A}gora vá em data\creaturescripts\scripts, abara o arquivo login.lua e coloque o código abaixo antes do return true:
{V}ídeo:
http://www.screencast.com/t/MmM5NjFiY
PS:.. o vídeo demora um pouco para começar mesmo...
Editado Fevereiro 26 por Antharaz