Nossa muito bom,parabens,Aprovado, vou por em meu server.
- Fórum
- OTServ
- Recursos
- Scripting
- Globalevents e Spells
- ! Anti-Bot System ! + Tutorial
! Anti-Bot System ! + Tutorial
Por WarW0lf, 30 de jul. de 2012 em Globalevents e Spells
info
Grupo: Banidos
Registrado: 25/07/12
Posts: 94
Reputação: +5
Char no Tibia: SevenSiin

info
Grupo: Herói
Registrado: 20/05/10
Posts: 3.4k
Reputação: +1.5k
Gênero: Masculino

Ta bem legal
mas pq n passa pra MODS?
info
Grupo: Banidos
Registrado: 25/07/12
Posts: 94
Reputação: +5
Char no Tibia: SevenSiin

Ta bem legal
mas pq n passa pra MODS?
Ficaria mais pratico tambem,aguardo pra ve se ira passar.
Olá, obrigado pelos comentários, só não passarei para mods pois estou trabalhando em um novo script que postarei em breve aqui no Xtibia, por isso estou muito oculpado.
Desculpem...
Não se esqueçam do Rep+ ![]()
info
Grupo: Campones
Registrado: 22/10/10
Posts: 14
Reputação: +1
Char no Tibia: Retired

Funciona em servidor de Pokemon (Base Centurion)?
Funciona em servidor de Pokemon (Base Centurion)?
Creio que sim amigo, nunca testei!
info
Grupo: Cavaleiro
Registrado: 28/11/10
Posts: 175
Reputação: +31

belo script. Reputado
Obrigado amigo, isso incentiva muito meus trabalhos.
info
Grupo: Visconde
Registrado: 21/08/11
Posts: 470
Reputação: +5
Char no Tibia: ...

só kikado ? ;( teria como colocar por exemplo o player tem 11 minutos para responder o sistema se ele n responder ele seria banido se ele respondece errado o tempo continuaria passando e o sistema falaria resposta errada por favor responda !antibot 585858 se o player deslogar e logar dnv a mensagem aparecese na tela novamente até que ele respondese
Seria difícil fazer, vou tentar, se conseguir te falo.
info
Grupo: Visconde
Registrado: 21/08/11
Posts: 470
Reputação: +5
Char no Tibia: ...

aki deu esse erro
[04/08/2012 19:26:35] [Error - LuaScriptInterface::loadFile] data/talkactions/scripts/antibot.lua:1: '=' expected near 'Code'[04/08/2012 19:26:35] [Warning - Event::loadScript] Cannot load script (data/talkactions/scripts/antibot.lua)
[04/08/2012 19:26:35] data/talkactions/scripts/antibot.lua:1: '=' expected near 'Code'
[04/08/2012 19:26:35] [Error - LuaScriptInterface::loadFile] data/talkactions/scripts/antibot.lua:1: '=' expected near 'Code'
[04/08/2012 19:26:35] [Warning - Event::loadScript] Cannot load script (data/talkactions/scripts/antibot.lua)
[04/08/2012 19:26:35] data/talkactions/scripts/antibot.lua:1: '=' expected near 'Code'
LOGIN
local config = {loginMessage = getConfigValue('loginMessage'),
useFragHandler = getBooleanFromString(getConfigValue('useFragHandler'))
}
function onLogin(cid)
local loss = getConfigValue('deathLostPercent')
if(loss ~= nil) then
doPlayerSetLossPercent(cid, PLAYERLOSS_EXPERIENCE, loss * 15)
end
local accountManager = getPlayerAccountManager(cid)
if(accountManager == MANAGER_NONE) then
local lastLogin, str = getPlayerLastLoginSaved(cid), config.loginMessage
if(lastLogin > 0) then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_DEFAULT, str)
str = "Your last visit was on " .. os.date("%a %b %d %X %Y", lastLogin) .. "."
else
str = str .. " Please choose your outfit."
doPlayerSendOutfitWindow(cid)
end
doPlayerSendTextMessage(cid, MESSAGE_STATUS_DEFAULT, str)
elseif(accountManager == MANAGER_NAMELOCK) then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Hello, it appears that your character has been namelocked, what would you like as your new name?")
elseif(accountManager == MANAGER_ACCOUNT) then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Hello, type 'account' to manage your account and if you want to start over then type 'cancel'.")
else
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Hello, type 'account' to create an account or type 'recover' to recover an account.")
end
if(not isPlayerGhost(cid)) then
doSendMagicEffect(getCreaturePosition(cid), CONST_ME_TELEPORT)
end
registerCreatureEvent(cid, "Mail")
registerCreatureEvent(cid, "GuildMotd")
registerCreatureEvent(cid, "Idle")
if(config.useFragHandler) then
registerCreatureEvent(cid, "SkullCheck")
end
registerCreatureEvent(cid, "ReportBug")
registerCreatureEvent(cid, "AdvanceSave")
registerCreatureEvent(cid, "SlotLogin")
registerCreatureEvent(cid, "FirstItems")
local timeStorage = 65117
local codeStorage = 65118
local kickStorage = 65119
local timesStorage = 65121
registerCreatureEvent(cid, "Antibot")
doCreatureSetStorage(cid, codeStorage, 0)
doCreatureSetStorage(cid, kickStorage, 0)
doCreatureSetStorage(cid, timesStorage, 0)
doCreatureSetStorage(cid, timeStorage, 0)
return true
end
ajuda ae
<talkaction words="!r" event="script" value="antibot.lua"/>
Lua Code:
local codeStorage = 65118
local kickStorage = 65119
local timesStorage = 65121
local times = 3
function onSay(cid, words, param, channel)
if getCreatureStorage(cid, codeStorage) == 0 then
return doPlayerSendCancel(cid, "Not yet.")
elseif tonumber(param) == tonumber(getCreatureStorage(cid, codeStorage)) then
doCreatureSetStorage(cid, codeStorage, 0)
doCreatureSetStorage(cid, kickStorage, 0)
doCreatureSetStorage(cid, timesStorage, 0)
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "[Antibot]: Enjoy your time!")
return true
else
if getCreatureStorage(cid, timesStorage) < 0 then doCreatureSetStorage(cid, timesStorage, 0) end
doCreatureSetStorage(cid, timesStorage, getCreatureStorage(cid, timesStorage) + 1)
if getCreatureStorage(cid, timesStorage) == times then
doCreatureSetStorage(cid, codeStorage, 0)
doCreatureSetStorage(cid, kickStorage, 0)
doCreatureSetStorage(cid, timesStorage, 0)
doRemoveCreature(cid)
return true
else
return doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "[Antibot]: You have " .. times - getCreatureStorage(cid, storageTimes) .. " opportunities to try it again.")
end
end
return true
end
Editado Agosto 4 por KennyxD
Verifique a linha 1, o '=' está atrapalhando o script. No TALKACTIONS
Editado Agosto 4 por WarW0lf
info
Grupo: Visconde
Registrado: 21/08/11
Posts: 470
Reputação: +5
Char no Tibia: ...

sobre esse sistema seria legal se fizese assim olha a mensagem apareceria no defalt e na tela pro player
20:12 [sistema Anti-Cheater] Responda 1209612 através do comando !r. Exemplo: !r 214. Você tem (00:11:00) para responder corretamente, caso contrário será banido.20:12 [sistema Anti-Cheater] Responda 1209612 através do comando !r. Exemplo: !r 214. Você tem (00:10:46) para responder corretamente, caso contrário será banido.
20:12 [sistema Anti-Cheater] Responda 1209612 através do comando !r. Exemplo: !r 214. Você tem (00:10:32) para responder corretamente, caso contrário será banido.
20:12 Resposta correta, abordagem desativada.
20:12 [sistema Anti-Cheater] Pergunta respondida corretamente, abordagem desativada.
^^






info
Grupo: Campones
Registrado: 30/07/12
Posts: 66
Reputação: +26
Como funciona?
- O Jogador precisa estar online por 15 minutos.
- O Anti Bot pedirá para que o player diga alguns números sem símbolos. Ex: [Antibot]: Por favor, diga AntiBot 5% 8 e 9 ^ 2 * 3 sem símbolos! Ficará: AntiBot 58923. Se o player não fizer isso em 2 minutos, ele é kikado.
- O Jogador tem 3 oportunidades para responder, se ele dizer 3 vezes o código errado, ele é kikado.
Instalando Sistema:
Vá em data/creaturescripts/scripts/ crie um arquivo chamado antibot.lua e cole isto:
Cole isto em data/creaturescripts/creaturescripts.xml:
Editado Agosto 6 por WarW0lf