• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Buying script and help with other 2

bury

Active Member
Joined
Jul 27, 2008
Messages
421
Solutions
7
Reaction score
25
Hello, im looking for somebody for making me one script and help me with other two (the last will be easy).

I pay 5€ via paypal

Whoever is interested msg me plz :d
 
FFS stop feed people to start selling scripts, use request board people will help you.
 
Okei well

I explain you my request. It's an antibot system, ofc I have searched for one here in otland but none it was what I wanted.

I want it only make a question of an ecuation to levels more from 450. (I supposse there will be so much questions)
In trainers you dont receive the question
There are 3 attempts, if u fail all u loose 3 levels. Or 2 minutes for answering, if u dont say nothing... then the same, you loose 3 levels.
 
Just threw this together. Have to deal with it if you want it.

Make 3 lua files in globalevents folder.
first one: Name it botcheck1

LUA:
local waitTime = 30 -- wait for answer in seconds --

local idleTime 15 -- time in minues to wait before checking player. --

local warnings = {5 * 5, 2 * 5, 3 * 8, 5 * 3, "What is 5 plus 9", "are you a noob?"}

local caughtMSG = "You've been caught cheating!"

local warn1 = "This is your first warning, if you get it right this will end."
local warn2 = "You have advanced to check 2, there is one more then you will suffer the consequesnces."
local lastwarn = "This is your final try!"	

function onThink(intraval)
	if (isPlayer(getPlayerOnline())) then
	for pid,v in ipairs(getPlayerOnline()) do
		if math.random(warnings) == warnings[1] then
			doPlayerSetStorageValue(pid, botCheck, 1)
                        setPlayerStorageValue(cid, warningUsed, 1)
				doPlayerSendCancel(pid, "You have 30 seconds to answer this question!")
				doPlayerPopupFYI(pid, warning[1] " type !answer to answer.")
		elseif math.random(warnings) == warnings[2] then
			doPlayerSetStorageValue(cid, botCheck, 1)
                 setPlayerStorageValue(cid, warningUsed, 2)
				doPlayerSendCancel(pid, "You have 30 seconds to answer this question!")
				doPlayerPopupFYI(pid, warning[2])
		elseif math.random(warnings) == warnings[3] then
			doPlayerSetStorageValue(pid, botCheck, 1)
                        setPlayerStorageValue(cid, warningUsed, 3)
				doPlayerSendCancel(pid, "You have 30 seconds to answer this question!")
				doPlayerPopupFYI(pid, warning[3])
		elseif math.random(warnings) == warnings[4] then
			doPlayerSetStorageValue(pid, botCheck, 1)
                        setPlayerStorageValue(cid, warningUsed, 4)
				doPlayerSendCancel(pid, "You have 30 seconds to answer this question!")
				doPlayerPopupFYI(pid, warning[4])
		elseif math.random(warnings) == warnings[5] then
			doPlayerSetStorageValue(pid, botCheck, 1)
                      setPlayerStorageValue(cid, warningUsed, 5)
				doPlayerSendCancel(pid, "You have 30 seconds to answer this question!")
				doPlayerPopupFYI(pid, warning[5])
		elseif math.random(warnings) == warnings[6] then
			doPlayerSetStorageValue(pid, botCheck, 1)
				doPlayerSendCancel(pid, "You have 30 seconds to answer this question!")
				doPlayerPopupFYI(pid, warning[6])
		end
	end
end
return true
end


Second: name it botcheck2
LUA:
local function nextCheck()
	if (isPlayer(cid)) then
		if getPlayerStorage(cid, botCheck) == 1 then
		doPlayerSendCancel(cid, "You have taken to long to answer.")
			setPlayerStorageValue(cid, botCheck, 2)
			doPlayerSendTextMessage(cid, "Answer this in time.")
	elseif getPlayerStorageValue(cid, botCheck) == 2 then
		setPlayerStorageValue(cid, botCheck, 3)
		doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_RED, "You have waited through 2 checks. You will suffer consiquences if you do not answer this one.")
		elseif getPlayerStorageValue(cid, botCheck) == 3 then
		doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_RED, "You have failed all 3 warnings! You will now lose 3 levels!")
		doPlayerRemoveLevel(cid, 3)
		setPlayerStorageValue(cid, botCheck, 0)
	end
end
end
end

local waitTime = 30


function onThink(intravel)
	if	if(isPlayer(cid)) then
		nextCheck()
	end
return true
end

and three: name it botcheck3

LUA:
local function nextCheck()
	if (isPlayer(cid)) then
		if getPlayerStorage(cid, botCheck) == 1 then
		doPlayerSendCancel(cid, "You have taken to long to answer.")
			setPlayerStorageValue(cid, botCheck, 2)
			doPlayerSendTextMessage(cid, "Answer this in time.")
	elseif getPlayerStorageValue(cid, botCheck) == 2 then
		setPlayerStorageValue(cid, botCheck, 3)
		doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_RED, "You have waited through 2 checks. You will suffer consiquences if you do not answer this one.")
		elseif getPlayerStorageValue(cid, botCheck) == 3 then
		doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_RED, "You have failed all 3 warnings! You will now lose 3 levels!")
		doPlayerRemoveLevel(cid, 3)
		setPlayerStorageValue(cid, botCheck, 0)
	end
end
end
end

local waitTime = 30


function onThink(intravel)
	if	if(isPlayer(cid)) then
		nextCheck()
	end
return true
end

now in globalevents.xml put this
Code:
<globalevent name="botcheck" interval="60000" event="script" value="nathans scripts/botcheck1.lua"/>
<globalevent name="botcheck1" interval="65000" event="script" value="nathans scripts/botcheck2.lua"/>
<globalevent name="botcheck2" interval="70000" event="script" value="nathans scripts/botcheck3.lua"/>


Now make a new lua script in your talkactions

LUA:
local warnings = {5 * 5, 2 * 5, 3 * 8, 5 * 3, "What is 5 plus 9", "are you a noob? (type !yes or !no)"}




function onSay(cid, word, param)
	if	getPlayerStorageValue(cid, botCheck) == 1 then
		if getPlayerStorageValue(cid, warningUsed) == 1 then
			if (param == "!25") then
				doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_RED, "Bot check complete. You answered correctly.")
				setPlayerStorageValue(cid, botCheck, 0)
				setPlayerStorageValue(cid, warningUsed, 0)
			else
				doPlayerSendCancel(cid, "This is not the right answer! You have been moved to the next question!")
					if math.random(warnings) == warnings[1] then
						doPlayerPopupFYI(cid, math.random(warnings))
						setPlayerStorageValue(cid, botCheck, 2)
					elseif math.random(warnings) == warnings[2] then
						doPlayerPopupFYI(cid, math.random(warnings))
						setPlayerStorageValue(cid, botCheck, 2)
					elseif math.random(warnings) == warnings[3] then
						doPlayerPopupFYI(cid, math.random(warnings))
						setPlayerStorageValue(cid, botCheck, 2)
					elseif math.random(warnings) == warnings[4] then
						doPlayerPopupFYI(cid, math.random(warnings))
						setPlayerStorageValue(cid, botCheck, 2)
					elseif math.random(warnings) == warnings[5] then
						doPlayerPopupFYI(cid, math.random(warnings))
						setPlayerStorageValue(cid, botCheck, 2)
					elseif math.random(warnings) == warnings[6] then
						doPlayerPopupFYI(cid, math.random(warnings))
						setPlayerStorageValue(cid, botCheck, 2)
					end
			end
	elseif getPlayerStorageValue(cid, warningUsed) == 2 then
			if (param == "!10") then
				doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_RED, "Bot check complete. You answered correctly.")
				setPlayerStorageValue(cid, botCheck, 0)
				setPlayerStorageValue(cid, warningUsed, 0)
			else
				doPlayerSendCancel(cid, "This is not the right answer! You have been moved to the next question!")
					if math.random(warnings) == warnings[1] then
						doPlayerPopupFYI(cid, math.random(warnings))
						setPlayerStorageValue(cid, botCheck, 2)
					elseif math.random(warnings) == warnings[2] then
						doPlayerPopupFYI(cid, math.random(warnings))
						setPlayerStorageValue(cid, botCheck, 2)
					elseif math.random(warnings) == warnings[3] then
						doPlayerPopupFYI(cid, math.random(warnings))
						setPlayerStorageValue(cid, botCheck, 2)
					elseif math.random(warnings) == warnings[4] then
						doPlayerPopupFYI(cid, math.random(warnings))
						setPlayerStorageValue(cid, botCheck, 2)
					elseif math.random(warnings) == warnings[5] then
						doPlayerPopupFYI(cid, math.random(warnings))
						setPlayerStorageValue(cid, botCheck, 2)
					elseif math.random(warnings) == warnings[6] then
						doPlayerPopupFYI(cid, math.random(warnings))
						setPlayerStorageValue(cid, botCheck, 2)
					end
			end
	elseif getPlayerStorageValue(cid, warningUsed) == 2 then
			if (param == "!10") then
				doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_RED, "Bot check complete. You answered correctly.")
				setPlayerStorageValue(cid, botCheck, 0)
				setPlayerStorageValue(cid, warningUsed, 0)
			else
				doPlayerSendCancel(cid, "This is not the right answer! You have been moved to the next question!")
					if math.random(warnings) == warnings[1] then
						doPlayerPopupFYI(cid, math.random(warnings))
						setPlayerStorageValue(cid, botCheck, 2)
					elseif math.random(warnings) == warnings[2] then
						doPlayerPopupFYI(cid, math.random(warnings))
						setPlayerStorageValue(cid, botCheck, 2)
					elseif math.random(warnings) == warnings[3] then
						doPlayerPopupFYI(cid, math.random(warnings))
						setPlayerStorageValue(cid, botCheck, 2)
					elseif math.random(warnings) == warnings[4] then
						doPlayerPopupFYI(cid, math.random(warnings))
						setPlayerStorageValue(cid, botCheck, 2)
					elseif math.random(warnings) == warnings[5] then
						doPlayerPopupFYI(cid, math.random(warnings))
						setPlayerStorageValue(cid, botCheck, 2)
					elseif math.random(warnings) == warnings[6] then
						doPlayerPopupFYI(cid, math.random(warnings))
						setPlayerStorageValue(cid, botCheck, 2)
					end
			end
	elseif getPlayerStorageValue(cid, warningUsed) == 2 then
			if (param == "!10") then
				doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_RED, "Bot check complete. You answered correctly.")
				setPlayerStorageValue(cid, botCheck, 0)
				setPlayerStorageValue(cid, warningUsed, 0)
			else
				doPlayerSendCancel(cid, "This is not the right answer! You have been moved to the next question!")
					if math.random(warnings) == warnings[1] then
						doPlayerPopupFYI(cid, math.random(warnings))
						setPlayerStorageValue(cid, botCheck, 2)
					elseif math.random(warnings) == warnings[2] then
						doPlayerPopupFYI(cid, math.random(warnings))
						setPlayerStorageValue(cid, botCheck, 2)
					elseif math.random(warnings) == warnings[3] then
						doPlayerPopupFYI(cid, math.random(warnings))
						setPlayerStorageValue(cid, botCheck, 2)
					elseif math.random(warnings) == warnings[4] then
						doPlayerPopupFYI(cid, math.random(warnings))
						setPlayerStorageValue(cid, botCheck, 2)
					elseif math.random(warnings) == warnings[5] then
						doPlayerPopupFYI(cid, math.random(warnings))
						setPlayerStorageValue(cid, botCheck, 2)
					elseif math.random(warnings) == warnings[6] then
						doPlayerPopupFYI(cid, math.random(warnings))
						setPlayerStorageValue(cid, botCheck, 2)
					end
			end
		elseif getPlayerStorageValue(cid, warningUsed) == 3 then
			if (param == "!10") then
				doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_RED, "Bot check complete. You answered correctly.")
				setPlayerStorageValue(cid, botCheck, 0)
				setPlayerStorageValue(cid, warningUsed, 0)
			else
				doPlayerSendCancel(cid, "This is not the right answer! You have been moved to the next question!")
					if math.random(warnings) == warnings[1] then
						doPlayerPopupFYI(cid, math.random(warnings))
						setPlayerStorageValue(cid, botCheck, 2)
					elseif math.random(warnings) == warnings[2] then
						doPlayerPopupFYI(cid, math.random(warnings))
						setPlayerStorageValue(cid, botCheck, 2)
					elseif math.random(warnings) == warnings[3] then
						doPlayerPopupFYI(cid, math.random(warnings))
						setPlayerStorageValue(cid, botCheck, 2)
					elseif math.random(warnings) == warnings[4] then
						doPlayerPopupFYI(cid, math.random(warnings))
						setPlayerStorageValue(cid, botCheck, 2)
					elseif math.random(warnings) == warnings[5] then
						doPlayerPopupFYI(cid, math.random(warnings))
						setPlayerStorageValue(cid, botCheck, 2)
					elseif math.random(warnings) == warnings[6] then
						doPlayerPopupFYI(cid, math.random(warnings))
						setPlayerStorageValue(cid, botCheck, 2)
					end
			end
	elseif getPlayerStorageValue(cid, warningUsed) == 4 then
			if (param == "!24") then
				doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_RED, "Bot check complete. You answered correctly.")
				setPlayerStorageValue(cid, botCheck, 0)
				setPlayerStorageValue(cid, warningUsed, 0)
			else
				doPlayerSendCancel(cid, "This is not the right answer! You have been moved to the next question!")
					if math.random(warnings) == warnings[1] then
						doPlayerPopupFYI(cid, math.random(warnings))
						setPlayerStorageValue(cid, botCheck, 2)
					elseif math.random(warnings) == warnings[2] then
						doPlayerPopupFYI(cid, math.random(warnings))
						setPlayerStorageValue(cid, botCheck, 2)
					elseif math.random(warnings) == warnings[3] then
						doPlayerPopupFYI(cid, math.random(warnings))
						setPlayerStorageValue(cid, botCheck, 2)
					elseif math.random(warnings) == warnings[4] then
						doPlayerPopupFYI(cid, math.random(warnings))
						setPlayerStorageValue(cid, botCheck, 2)
					elseif math.random(warnings) == warnings[5] then
						doPlayerPopupFYI(cid, math.random(warnings))
						setPlayerStorageValue(cid, botCheck, 2)
					elseif math.random(warnings) == warnings[6] then
						doPlayerPopupFYI(cid, math.random(warnings))
						setPlayerStorageValue(cid, botCheck, 2)
					end
			end
	elseif getPlayerStorageValue(cid, warningUsed) == 5 then
			if (param == "!15") then
				doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_RED, "Bot check complete. You answered correctly.")
				setPlayerStorageValue(cid, botCheck, 0)
				setPlayerStorageValue(cid, warningUsed, 0)
			else
				doPlayerSendCancel(cid, "This is not the right answer! You have been moved to the next question!")
					if math.random(warnings) == warnings[1] then
						doPlayerPopupFYI(cid, math.random(warnings))
						setPlayerStorageValue(cid, botCheck, 2)
					elseif math.random(warnings) == warnings[2] then
						doPlayerPopupFYI(cid, math.random(warnings))
						setPlayerStorageValue(cid, botCheck, 2)
					elseif math.random(warnings) == warnings[3] then
						doPlayerPopupFYI(cid, math.random(warnings))
						setPlayerStorageValue(cid, botCheck, 2)
					elseif math.random(warnings) == warnings[4] then
						doPlayerPopupFYI(cid, math.random(warnings))
						setPlayerStorageValue(cid, botCheck, 2)
					elseif math.random(warnings) == warnings[5] then
						doPlayerPopupFYI(cid, math.random(warnings))
						setPlayerStorageValue(cid, botCheck, 2)
					elseif math.random(warnings) == warnings[6] then
						doPlayerPopupFYI(cid, math.random(warnings))
						setPlayerStorageValue(cid, botCheck, 2)
					end
			end
	elseif getPlayerStorageValue(cid, warningUsed) == 6 then
			if (param == "!yes" or "!no") then
				doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_RED, "Bot check complete. You answered correctly.")
				setPlayerStorageValue(cid, botCheck, 0)
				setPlayerStorageValue(cid, warningUsed, 0)
			else
				doPlayerSendCancel(cid, "This is not the right answer! You have been moved to the next question!")
					if math.random(warnings) == warnings[1] then
						doPlayerPopupFYI(cid, math.random(warnings))
						setPlayerStorageValue(cid, botCheck, 2)
					elseif math.random(warnings) == warnings[2] then
						doPlayerPopupFYI(cid, math.random(warnings))
						setPlayerStorageValue(cid, botCheck, 2)
					elseif math.random(warnings) == warnings[3] then
						doPlayerPopupFYI(cid, math.random(warnings))
						setPlayerStorageValue(cid, botCheck, 2)
					elseif math.random(warnings) == warnings[4] then
						doPlayerPopupFYI(cid, math.random(warnings))
						setPlayerStorageValue(cid, botCheck, 2)
					elseif math.random(warnings) == warnings[5] then
						doPlayerPopupFYI(cid, math.random(warnings))
						setPlayerStorageValue(cid, botCheck, 2)
					elseif math.random(warnings) == warnings[6] then
						doPlayerPopupFYI(cid, math.random(warnings))
						setPlayerStorageValue(cid, botCheck, 2)
					end
			end
elseif getPlayerStorageValue(cid, botCheck) == 2 then
		if getPlayerStorageValue(cid, warningUsed) == 1 then
			if (param == "!25") then
				doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_RED, "Bot check complete. You answered correctly.")
				setPlayerStorageValue(cid, botCheck, 0)
				setPlayerStorageValue(cid, warningUsed, 0)
			else
				doPlayerSendCancel(cid, "This is not the right answer! You have been moved to the next question!")
					if math.random(warnings) == warnings[1] then
						doPlayerPopupFYI(cid, math.random(warnings))
						setPlayerStorageValue(cid, botCheck, 3)
					elseif math.random(warnings) == warnings[2] then
						doPlayerPopupFYI(cid, math.random(warnings))
						setPlayerStorageValue(cid, botCheck, 3)
					elseif math.random(warnings) == warnings[3] then
						doPlayerPopupFYI(cid, math.random(warnings))
						setPlayerStorageValue(cid, botCheck, 3)
					elseif math.random(warnings) == warnings[4] then
						doPlayerPopupFYI(cid, math.random(warnings))
						setPlayerStorageValue(cid, botCheck, 3)
					elseif math.random(warnings) == warnings[5] then
						doPlayerPopupFYI(cid, math.random(warnings))
						setPlayerStorageValue(cid, botCheck, 3)
					elseif math.random(warnings) == warnings[6] then
						doPlayerPopupFYI(cid, math.random(warnings))
						setPlayerStorageValue(cid, botCheck, 3)
					end
			end
	elseif getPlayerStorageValue(cid, warningUsed) == 2 then
			if (param == "!10") then
				doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_RED, "Bot check complete. You answered correctly.")
				setPlayerStorageValue(cid, botCheck, 0)
				setPlayerStorageValue(cid, warningUsed, 0)
			else
				doPlayerSendCancel(cid, "This is not the right answer! You have been moved to the next question!")
					if math.random(warnings) == warnings[1] then
						doPlayerPopupFYI(cid, math.random(warnings))
						setPlayerStorageValue(cid, botCheck, 3)
					elseif math.random(warnings) == warnings[2] then
						doPlayerPopupFYI(cid, math.random(warnings))
						setPlayerStorageValue(cid, botCheck, 3)
					elseif math.random(warnings) == warnings[3] then
						doPlayerPopupFYI(cid, math.random(warnings))
						setPlayerStorageValue(cid, botCheck, 3)
					elseif math.random(warnings) == warnings[4] then
						doPlayerPopupFYI(cid, math.random(warnings))
						setPlayerStorageValue(cid, botCheck, 3)
					elseif math.random(warnings) == warnings[5] then
						doPlayerPopupFYI(cid, math.random(warnings))
						setPlayerStorageValue(cid, botCheck, 3)
					elseif math.random(warnings) == warnings[6] then
						doPlayerPopupFYI(cid, math.random(warnings))
						setPlayerStorageValue(cid, botCheck, 3)
					end
			end
	elseif getPlayerStorageValue(cid, warningUsed) == 2 then
			if (param == "!10") then
				doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_RED, "Bot check complete. You answered correctly.")
				setPlayerStorageValue(cid, botCheck, 0)
				setPlayerStorageValue(cid, warningUsed, 0)
			else
				doPlayerSendCancel(cid, "This is not the right answer! You have been moved to the next question!")
					if math.random(warnings) == warnings[1] then
						doPlayerPopupFYI(cid, math.random(warnings))
						setPlayerStorageValue(cid, botCheck, 3)
					elseif math.random(warnings) == warnings[2] then
						doPlayerPopupFYI(cid, math.random(warnings))
						setPlayerStorageValue(cid, botCheck, 3)
					elseif math.random(warnings) == warnings[3] then
						doPlayerPopupFYI(cid, math.random(warnings))
						setPlayerStorageValue(cid, botCheck, 3)
					elseif math.random(warnings) == warnings[4] then
						doPlayerPopupFYI(cid, math.random(warnings))
						setPlayerStorageValue(cid, botCheck, 3)
					elseif math.random(warnings) == warnings[5] then
						doPlayerPopupFYI(cid, math.random(warnings))
						setPlayerStorageValue(cid, botCheck, 3)
					elseif math.random(warnings) == warnings[6] then
						doPlayerPopupFYI(cid, math.random(warnings))
						setPlayerStorageValue(cid, botCheck, 3)
					end
			end
	elseif getPlayerStorageValue(cid, warningUsed) == 2 then
			if (param == "!10") then
				doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_RED, "Bot check complete. You answered correctly.")
				setPlayerStorageValue(cid, botCheck, 0)
				setPlayerStorageValue(cid, warningUsed, 0)
			else
				doPlayerSendCancel(cid, "This is not the right answer! You have been moved to the next question!")
					if math.random(warnings) == warnings[1] then
						doPlayerPopupFYI(cid, math.random(warnings))
						setPlayerStorageValue(cid, botCheck, 3)
					elseif math.random(warnings) == warnings[2] then
						doPlayerPopupFYI(cid, math.random(warnings))
						setPlayerStorageValue(cid, botCheck, 3)
					elseif math.random(warnings) == warnings[3] then
						doPlayerPopupFYI(cid, math.random(warnings))
						setPlayerStorageValue(cid, botCheck, 3)
					elseif math.random(warnings) == warnings[4] then
						doPlayerPopupFYI(cid, math.random(warnings))
						setPlayerStorageValue(cid, botCheck, 3)
					elseif math.random(warnings) == warnings[5] then
						doPlayerPopupFYI(cid, math.random(warnings))
						setPlayerStorageValue(cid, botCheck, 3)
					elseif math.random(warnings) == warnings[6] then
						doPlayerPopupFYI(cid, math.random(warnings))
						setPlayerStorageValue(cid, botCheck, 3)
					end
			end
		elseif getPlayerStorageValue(cid, warningUsed) == 3 then
			if (param == "!10") then
				doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_RED, "Bot check complete. You answered correctly.")
				setPlayerStorageValue(cid, botCheck, 0)
				setPlayerStorageValue(cid, warningUsed, 0)
			else
				doPlayerSendCancel(cid, "This is not the right answer! You have been moved to the next question!")
					if math.random(warnings) == warnings[1] then
						doPlayerPopupFYI(cid, math.random(warnings))
						setPlayerStorageValue(cid, botCheck, 3)
					elseif math.random(warnings) == warnings[2] then
						doPlayerPopupFYI(cid, math.random(warnings))
						setPlayerStorageValue(cid, botCheck, 3)
					elseif math.random(warnings) == warnings[3] then
						doPlayerPopupFYI(cid, math.random(warnings))
						setPlayerStorageValue(cid, botCheck, 3)
					elseif math.random(warnings) == warnings[4] then
						doPlayerPopupFYI(cid, math.random(warnings))
						setPlayerStorageValue(cid, botCheck, 3)
					elseif math.random(warnings) == warnings[5] then
						doPlayerPopupFYI(cid, math.random(warnings))
						setPlayerStorageValue(cid, botCheck, 3)
					elseif math.random(warnings) == warnings[6] then
						doPlayerPopupFYI(cid, math.random(warnings))
						setPlayerStorageValue(cid, botCheck, 3)
					end
			end
	elseif getPlayerStorageValue(cid, warningUsed) == 4 then
			if (param == "!24") then
				doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_RED, "Bot check complete. You answered correctly.")
				setPlayerStorageValue(cid, botCheck, 0)
				setPlayerStorageValue(cid, warningUsed, 0)
			else
				doPlayerSendCancel(cid, "This is not the right answer! You have been moved to the next question!")
					if math.random(warnings) == warnings[1] then
						doPlayerPopupFYI(cid, math.random(warnings))
						setPlayerStorageValue(cid, botCheck, 3)
					elseif math.random(warnings) == warnings[2] then
						doPlayerPopupFYI(cid, math.random(warnings))
						setPlayerStorageValue(cid, botCheck, 3)
					elseif math.random(warnings) == warnings[3] then
						doPlayerPopupFYI(cid, math.random(warnings))
						setPlayerStorageValue(cid, botCheck, 3)
					elseif math.random(warnings) == warnings[4] then
						doPlayerPopupFYI(cid, math.random(warnings))
						setPlayerStorageValue(cid, botCheck, 3)
					elseif math.random(warnings) == warnings[5] then
						doPlayerPopupFYI(cid, math.random(warnings))
						setPlayerStorageValue(cid, botCheck, 3)
					elseif math.random(warnings) == warnings[6] then
						doPlayerPopupFYI(cid, math.random(warnings))
						setPlayerStorageValue(cid, botCheck, 3)
					end
			end
	elseif getPlayerStorageValue(cid, warningUsed) == 5 then
			if (param == "!15") then
				doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_RED, "Bot check complete. You answered correctly.")
				setPlayerStorageValue(cid, botCheck, 0)
				setPlayerStorageValue(cid, warningUsed, 0)
			else
				doPlayerSendCancel(cid, "This is not the right answer! You have been moved to the next question!")
					if math.random(warnings) == warnings[1] then
						doPlayerPopupFYI(cid, math.random(warnings))
						setPlayerStorageValue(cid, botCheck, 3)
					elseif math.random(warnings) == warnings[2] then
						doPlayerPopupFYI(cid, math.random(warnings))
						setPlayerStorageValue(cid, botCheck, 3)
					elseif math.random(warnings) == warnings[3] then
						doPlayerPopupFYI(cid, math.random(warnings))
						setPlayerStorageValue(cid, botCheck, 3)
					elseif math.random(warnings) == warnings[4] then
						doPlayerPopupFYI(cid, math.random(warnings))
						setPlayerStorageValue(cid, botCheck, 3)
					elseif math.random(warnings) == warnings[5] then
						doPlayerPopupFYI(cid, math.random(warnings))
						setPlayerStorageValue(cid, botCheck, 3)
					elseif math.random(warnings) == warnings[6] then
						doPlayerPopupFYI(cid, math.random(warnings))
						setPlayerStorageValue(cid, botCheck, 3)
					end
			end
	elseif getPlayerStorageValue(cid, warningUsed) == 5 then
			if (param == "!yes" or "!no") then
				doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_RED, "Bot check complete. You answered correctly.")
				setPlayerStorageValue(cid, botCheck, 0)
				setPlayerStorageValue(cid, warningUsed, 0)
			else
				doPlayerSendCancel(cid, "This is not the right answer! You have been moved to the next question!")
					if math.random(warnings) == warnings[1] then
						doPlayerPopupFYI(cid, math.random(warnings))
						setPlayerStorageValue(cid, botCheck, 3)
					elseif math.random(warnings) == warnings[2] then
						doPlayerPopupFYI(cid, math.random(warnings))
						setPlayerStorageValue(cid, botCheck, 3)
					elseif math.random(warnings) == warnings[3] then
						doPlayerPopupFYI(cid, math.random(warnings))
						setPlayerStorageValue(cid, botCheck, 3)
					elseif math.random(warnings) == warnings[4] then
						doPlayerPopupFYI(cid, math.random(warnings))
						setPlayerStorageValue(cid, botCheck, 3)
					elseif math.random(warnings) == warnings[5] then
						doPlayerPopupFYI(cid, math.random(warnings))
						setPlayerStorageValue(cid, botCheck, 3)
					elseif math.random(warnings) == warnings[6] then
						doPlayerPopupFYI(cid, math.random(warnings))
						setPlayerStorageValue(cid, botCheck, 3)
					end
			end
	end
end
end
end

Code:
<talkaction words="!25;!24;!14;!15;!yes;!no;!10" event="function" value="botcheck"/>
 
Last edited:
do that gigastar -.- XD
LUA:
local waitTime = 30 -- wait for answer in seconds --

local idleTime 15 -- time in minues to wait before checking player. --

local warnings = {3 / 5, 2 * 5, 3 * 8, 5 * 3, "What is 5 plus 9", "are you a noob?"}

local caughtMSG = "You've been caught cheating!"

local warn1 = "This is your first warning, if you get it right this will end."
local warn2 = "You have advanced to check 2, there is one more then you will suffer the consequesnces."
local lastwarn = "This is your final try!"

function nextCheck()
if (not param == math.random(warnings)) then
if (os.time == waitTime) then
doPlayerSendCancel(cid, "You have taken to long to answer.")
if getPlayerStorageValue(cid, botCheck) == 1 then
setPlayerStorageValue(cid, botCheck, 2)
doPlayerSendTextMessage(cid, "Answer this in time.")
elseif getPlayerStorageValue(cid, botCheck) == 2 then
setPlayerStorageValue(cid, botCheck, 3)
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_RED, "You have waited through 2 checks. You will suffer consiquences if you do not answer this one.")
elseif getPlayerStorageValue(cid, botCheck) == 3 then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_RED, "You have failed all 3 warnings! You will now lose 3 levels!")
doPlayerRemoveLevel(cid, 3)
setPlayerStorageValue(cid, botCheck, 0)
end
end
if getPlayerStorageValue(cid, botCheck) == 1 then
doPlayerSendCancel(cid, "This is not the right answer!")
setPlayerStorageValue(cid, botCheck, 2)
doPlayerSendTextMessage(cid, "You have advanced to check 2, there is one more then you will suffer the consequesnces.")
elseif (not param == math.random(warnings)) and getPlayerStorageValue(cid, botCheck) == 2 then
doPlayerSendCancel(cid, "This is not the right answer!")
doPlayerSendTextMessage(cid, lastwarn)
setPlayerStorageValue(cid, botCheck, 3)
elseif (not param == math.random(warnings)) and getPlayerStorageValue(cid, botCheck) == 3 then
doPlayerSendCancel(cid, "This is not the right answer!")
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_RED, "3 wrong answer. You will now lose 3 levels!")
doPlayerRemoveLevel(cid, 3)
setPlayerStorageValue(cid, botCheck, 0)
end
end
end



function onThink(intraval)
if (isPlayer(getPlayerOnline())) then
for pid,v in ipairs(getPlayerOnline()) do
if doPlayerGetIdleTime(getPlayersOnline()) >= os.time idleTime * 1000 * 60 then
if math.random(warnings) == warnings[1] then
doPlayerSetStorageValue(pid, botCheck, 1)
doPlayerSendCancel(pid, "You have 30 seconds to answer this question!")
doPlayerPopupFYI(pid, warning[1])
elseif math.random(warnings) == warnings[2] then
doPlayerSetStorageValue(cid, botCheck, 1)
doPlayerSendCancel(pid, "You have 30 seconds to answer this question!")
doPlayerPopupFYI(pid, warning[2])
elseif math.random(warnings) == warnings[3] then
doPlayerSetStorageValue(pid, botCheck, 1)
doPlayerSendCancel(pid, "You have 30 seconds to answer this question!")
doPlayerPopupFYI(pid, warning[3])
elseif math.random(warnings) == warnings[4] then
doPlayerSetStorageValue(pid, botCheck, 1)
doPlayerSendCancel(pid, "You have 30 seconds to answer this question!")
doPlayerPopupFYI(pid, warning[4])
elseif math.random(warnings) == warnings[5] then
doPlayerSetStorageValue(pid, botCheck, 1)
doPlayerSendCancel(pid, "You have 30 seconds to answer this question!")
doPlayerPopupFYI(pid, warning[5])
elseif math.random(warnings) == warnings[6] then
doPlayerSetStorageValue(pid, botCheck, 1)
doPlayerSendCancel(pid, "You have 30 seconds to answer this question!")
doPlayerPopupFYI(pid, warning[6])
end
end
end

if doPlayerGetIdleTime(cid) > idleTime + idleTime then
nextCheck()
elseif doPlayerGetIdleTime(cid) > idleTime + idleTime + idleTime then
nextCheck()
end
end
return true
end
 
wait 5 seconds b4 commenting mido. If you spent more time scripting, and less time flaming peoples post, you might of acually gotten somewhere with it.

atleast im trying to help.

- - - Updated - - -

BTW if you want to send the $$$ go right on ahead to [email protected]
 
Back
Top