• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Anti Bot 5.0 By Karpio

Rider9595

New Member
Joined
Oct 23, 2009
Messages
7
Reaction score
0
Location
PolanD
Hi, I would like to ask if anyone can fix it in the Anti-Bot System v.5.0 by Karpio:

This is in console, when i say in game " /check NAME "
PHP:
[02/06/2010 23:33:55] [Lua Error] 
[02/06/2010 23:33:55] [string "loadBuffer"]:53: ')' expected near 'then'

Here is the whole piece + 53 line:
PHP:
local out = {}
for k, t in ipairs(dateFormat) do
local v = math.floor(t[2])
if(v > 60) then
table.insert(out, (k < #dateFormat and (#out > 0 and ', ' or '') or ' and ') .. v .. ' ' .. t[1] .. (v ~= 1 and 's' or ''))
elseif(v > 0) then
table.insert(out, (k < #dateFormat and (#out > 0 and ', ' or '') or '') .. v .. ' ' .. t[1] .. (v ~= 1 and 's' or ''))
end
end ( LINE 53 )
return table.concat(out)
end


Link to original post:
http://tibia.net.pl/talkactions/317055-system-antyboterski-v4-0-a.html

Here is translate this post :
http://translate.google.pl/translat...5-system-antyboterski-v4-0-a.html&sl=pl&tl=en

If someone umnie fix it please help:)

I need fast answer PLIX !

Refresh
 
Last edited by a moderator:
That's not line 53, ffs. Error is in talkaction /check:
Code:
	<talkaction words="/check" event="buffer"><![CDATA[
		domodlib('check_system')
		local t = string.explode(param, ",")
		if(param == "") then
			return doPlayerPopupFYI(cid, "Welcome in AntiBot Information.\nScript author: Karpio\nScript Version: 1.1\n\nMini tutorial:\n/check nick - if you want check player with name nick\n/check code - if someone check you\n\nYou can check next player "..((getPlayerStorageValue(cid, config.ptime) - os.time()) > 0 and "after "..czas(getPlayerStorageValue(cid, config.ptime) - os.time()) or "now")..".\nYou can be check "..((getPlayerStorageValue(cid, config.ttime) - os.time()) > 0 and "after "..czas(getPlayerStorageValue(cid, config.ttime) - os.time()) or "now")..".")
		elseif(t[1] == "guild") then
			if(not config.guild) then
				return doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "[AntiBot]: You can not use this function.")
			elseif(not t[2]) then
				return doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "[AntiBot]: Use it /check guild, on/off.")
			elseif(t[2] == "on" and getPlayerGuildLevel(cid) == GUILDLEVEL_LEADER) then
				return antibotGuildChange(cid, "on")
			elseif(t[2] == "off" and getPlayerGuildLevel(cid) == GUILDLEVEL_LEADER) then
				return antibotGuildChange(cid, "off")
			else
				return doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "[AntiBot]: Invalid param or you aren't leader.")
			end
		elseif(isNumber(param)) then
			if(getPlayerStorageValue(cid, config.code) < 1) then
				return doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "[AntiBot]: If you want check code, you must be checked by other player.")
			elseif(getPlayerStorageValue(cid, config.code) ~= tonumber(param)) then
				return doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "[AntiBot]: Invalid code.")
			end
			setPlayerStorageValue(cid, config.code, 0)
			doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "[AntiBot]: Code is correct.")
			return true
		else
			if(getPlayerByNameWildcard(param) == nil) then
				return doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "[AntiBot]: Target not found.")
			elseif(getPlayerByNameWildcard(param) == tonumber(cid)) then
				return doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "[AntiBot]: You can not check yourself.")
			elseif(getTileInfo(getCreaturePosition(cid)).protection) then
				return doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "[AntiBot]: You can not check players if you are in protection zone.")
			elseif(isNumber(config.lvl) and getPlayerLevel(cid) < config.lvl) then
				return doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "[AntiBot]: You can not use this system if your level is lover that "..config.lvl..".")
			elseif(getTileInfo(getCreaturePosition(getPlayerByNameWildcard(param))).protection) then
				return doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "[AntiBot]: You can not check this players, because "..(getPlayerSex(getPlayerByNameWildcard(param)) == 0 and "she" or "he").." is in protection zone.")
			elseif(config.afk and getPlayerStorageValue(cid, config.afks) > 0) then
				return doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "[AntiBot]: You can not check players if you are afk.")
			elseif(config.afk and getPlayerStorageValue(getPlayerByNameWildcard(param), config.afks) > 0) then
				return doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "[AntiBot]: You can not check this players, because "..(getPlayerSex(getPlayerByNameWildcard(param)) == 0 and "she" or "he").." is afk.")
			elseif(getPlayerStorageValue(cid, config.ptime) > os.time()) then
				return doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "[AntiBot]: You must rest if you want check next player.")
			elseif(getPlayerStorageValue(getPlayerByNameWildcard(param), config.ttime) > os.time()) then
				return doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "[AntiBot]: You can not check this player.")
			elseif((getTileInfo(getCreaturePosition(cid)).nologout or getTileInfo(getCreaturePosition(getPlayerByNameWildcard(param))).nologout) and config.nologout) then
				return doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "[AntiBot]: You can not check this player.")
			elseif(not antibotGuildCheck(cid, getPlayerByNameWildcard(param)) and config.guild) then
				return doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "[AntiBot]: You can not check this player.")
			elseif(getDistanceBetween(getCreaturePosition(cid), getCreaturePosition(getPlayerByNameWildcard(param))) > config.distance or config.distance == 0) then
				return doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "[AntiBot]: You can not check this player.")
			end
			check(cid, getPlayerByNameWildcard(param))            
		end]]>
	</talkaction>
 
Back
Top