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