/usr/share/games/freedroidrpg/dialogs/HF-FirmwareUpdateServer.dialog is in freedroidrpg-data 0.15.1-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 | ----------------------------------------------------------------------
* 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"
|