----------------------------------------------------------------------
 * This file is part of Freedroid
 *
 * Freedroid is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * Freedroid is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with Freedroid; see the file COPYING. If not, write to the 
 * Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, 
 * MA 02111-1307 USA
----------------------------------------------------------------------


If you have questions concerning FreedroidRPG, please send an email to:

freedroid-discussion@lists.sourceforge.net


Beginning of new chat dialog for character="XXXXX"
----------------------------------------------------------------------

<EveryTime LuaCode>
	-- Are we human? CAPTCHA!!!
	number_one=math.random(2,7)
	number_two=math.random(1,number_one-1)
	captcha = number_one - number_two
	if (captcha == 1) then
		captcha = _"one"
	elseif (captcha == 2) then
		captcha = _"two"
	elseif (captcha == 3) then
		captcha = _"three"
	elseif (captcha == 4) then
		captcha = _"four"
	elseif (captcha == 5) then
		captcha = _"five"
	elseif (captcha == 6) then
		captcha = _"six"
	end
	response = user_input_string(_"CAPTCHA: Please write the lowercase word that answers the following: "..number_one.." - ".. number_two.." = ?")
	if (captcha ~= response) then
		npc_says(_"Non-human detected. Administering paralyzing shock.")
		npc_says(_"NOTE: If you are a human, try again, and make sure you enter a word and not digits.")
		freeze_tux_npc(7)
		hurt_tux(20)
		heat_tux(20)
		end_dialog()
	else
		npc_says(_"Welcome to MS firmware update server for region #54658.")
		npc_says(_"Please select action")
		show(1, 3, 99)
	end
</LuaCode>
----------------------------------------------------------------------

Nr=1 Text=_"Get current OS version"
<LuaCode>
	if (not has_cookie("uploaded_faulty_firmware_update")) then
		npc_says(_"Currently deployed firmware is v. 5.0.8+worldto-nogpl.")
	else
		npc_says(_"Currently deployed firmware is v. 5.0.8+" .. get_player_name() .. _"washere+gpl")
	end
</LuaCode>
----------------------------------------------------------------------

Nr=3 Text=_"Propagate firmware update"
<LuaCode>
	npc_says(_"Compressing image....")
	npc_says(_"Advertising update to clients...")
	npc_says(_"Waiting for all connections....")
	npc_says("...")
	npc_says("...")
	npc_says(_"Please resolve merge conflicts:")
	if (takeover(get_program("Hacking")+4)) then
		npc_says(_"Conflicts resolved,")
		npc_says(_"Firmware update propagated!")
		add_cookie("uploaded_faulty_firmware_update")
		end_quest(_"Propagating a faulty firmware update", _"I managed to upload the faulty firmware update to all bots within transmission range. Victory is mine!")
		hide(3)
	else
		npc_says(_"Merge failed.")
		npc_says(_"Exiting...")
		end_dialog()
	end
</LuaCode>
----------------------------------------------------------------------

Nr=99 Text=_"Logout"
<LuaCode>
	end_dialog()
</LuaCode>
----------------------------------------------------------------------

End of chat dialog for character="XXXXX"
