This file is indexed.

/usr/share/games/freedroidrpg/dialogs/Stone.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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
--------------------------------------------------------------------
 * 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"
----------------------------------------------------------------------

<FirstTime LuaCode>
	show(0)
</LuaCode>

<EveryTime LuaCode>
	if (has_cookie("stone_helping")) and
	   (not has_cookie("stone_done")) and
	   (get_gold() > 1400) then
		show(23)
	else
		hide(23)
	end

	if (has_cookie("Stone_Talk_Again_Later")) then
		show(4)
	end

	if (not has_cookie("tux_has_joined_guard")) and		-- avoid that the node is shown several times
	   (not has_cookie("Stone_Hide_Guard_Question")) then
		show(3)
	end

	show(99)
</LuaCode>
----------------------------------------------------------------------

Nr=0 Text=_"Hi! I'm new here."
<LuaCode>
	npc_says(_"Welcome to our town! I'm Ms. Stone. I run this shop.")
	set_bot_name(_"Stone -- Shopowner")
	hide(0) show(1, 10)
</LuaCode>
----------------------------------------------------------------------

Nr=1 Text=_"I would like to trade with you."
<LuaCode>
	npc_says(_"Good! Here is the selection of items I have for sale.")
	if (has_cookie("stone_no_guns")) then
		hide(2)
	else
		show(2)
	end
	trade_with("Stone")
</LuaCode>
----------------------------------------------------------------------

Nr=2 Text=_"Swords, clubs and maces? What is this? I want guns!"
<LuaCode>
	if (has_cookie("tux_has_joined_guard")) then
		npc_says(_"I think the Red Guard has their own store somewhere.")
		npc_says(_"At least, they somehow get supplement I don't sell.")
		npc_says(_"However, I'm quite sure, they don't offer the same range of products that I do.")
	else
		npc_says(_"Sorry, this is all we have for now. The Red Guard took away all of our poppers.", "NO_WAIT")
		npc_says(_"For our own good. Of course.")
		add_cookie("stone_no_guns")
	end
	hide(2)
</LuaCode>
----------------------------------------------------------------------

Nr=3 Text=_"What can you tell me about the guards here?"
<LuaCode>
	npc_says(_"Ah, the Red Guard.", "NO_WAIT")
	if (has_cookie("guard_follow_tux")) then  			-- tux followed by guard
		npc_says(_"Well, they keep the town safe.")
		npc_says(_"Without them, everything would drown in chaos, but...")
		show(4)
	elseif (has_cookie("tux_has_joined_guard")) then	-- tux joined guard/not followed by guard
		npc_says(_"Well, you ARE a red guard.")
		npc_says(_"What should I tell you about them that you don't know yet?")
		tux_says(_"Uhm, right.")
	else
		npc_says(_"Stranger, best if you don't ask such questions.", "NO_WAIT")
		npc_says(_"They keep us alive and safe from the bots, but...")
		show(4)
	end
	add_cookie("Stone_Hide_Guard_Question")  			-- avoid node being shown several times
	hide(3)
</LuaCode>
----------------------------------------------------------------------

Nr=4 Text=_"But...?"
<LuaCode>
	if (has_cookie("guard_follow_tux")) then
		npc_says(_"But nothing.")
		npc_says(_"I'm busy right now.")
		npc_says(_"We should talk again later...")
		add_cookie("Stone_Talk_Again_Later") 			-- EveryTime Code: if has cookie then show(4)
	elseif (has_cookie("tux_has_joined_guard")) then 	-- tux joined guard, not followed
			npc_says(_"But nothing!")
			npc_says(_"I don't know what you are talking about.")
			del_cookie("Stone_Talk_Again_Later")		-- Stone rejects to tell more because Tux is RG now
	else
		npc_says(_"The Guards run the town with very strict laws and demand total obedience.", "NO_WAIT")
		npc_says(_"We all need to obey their rules. We need to work hard or they hurt us.")
		npc_says(_"I guess I should not complain. The bots are far worse than the guards can be, but...")
		npc_says(_"Sucked dry by a bloodthirsty regime over many years or just sliced into bits by our former servants...", "NO_WAIT")
		npc_says(_"... What's the difference?")
		if (has_cookie("Stone_Talk_Again_Later")) then
			del_cookie("Stone_Talk_Again_Later")
		end
		show(8)
	end
	hide(4)
</LuaCode>
----------------------------------------------------------------------

Nr=8 Text=_"If things are so bad right now, why don't you leave?"
NO_TEXT
<LuaCode>
	tux_says(_"If things are so bad right now, why --")
	npc_says(_"I don't want to hear this jabberwocky.", "NO_WAIT")
	npc_says(_"A hint, Linarian: We don't have much, but we're alive and we'd rather stay that way.", "NO_WAIT")
	if (has_cookie("tux_has_joined_guard")) then
		npc_says(_"You are a Red Guardian now, feel free to make attempts on making our situation better here in this town.")
	else
		npc_says(_"If you want to start a revolution, you're on your own.")
	end
	hide(8)
</LuaCode>
----------------------------------------------------------------------

Nr=10 Text=_"How is your business going?"
<LuaCode>
	if (has_cookie("stone_done")) then
		npc_says(_"Thanks to you I have a chance now.", "NO_WAIT")
		npc_says(_"Ha! It's time to show the world that Lily Stone is not going down without putting up a REAL good fight.")
		set_bot_name(_"Lily Stone -- Shopowner")
	else
		npc_says(_"I'll be finished in about a week.", "NO_WAIT")
		npc_says(_"The Stone family always bought cheap and sold at a low profit. The times have changed, but not my prices.")
		npc_says(_"The new taxes, the worldwide economic collapse and other factors are slowly murdering the family store.")
		show(13, 16)
	end
	hide(10)
</LuaCode>
----------------------------------------------------------------------

Nr=13 Text=_"Can I help you somehow Ms. Stone?"
<LuaCode>
	npc_says(_"No, there's nothing that can be done anymore. I don't have enough money to lift the shop from the downward spiral.")
	npc_says(_"I'd need thousands to just survive the month.", "NO_WAIT")
	npc_says(_"The shop is dying, and there's nothing either of us can do about it.")
	hide(13, 16) show(15)
</LuaCode>
----------------------------------------------------------------------

Nr=15 Text=_"Maybe there is still hope, Ms. Stone. How much exactly do you need?"
<LuaCode>
	npc_says(_"I couldn't get myself to look at my finance logs for a while now. I guess about two thousand circuits.")
	add_cookie("stone_helping")
	add_quest(_"Saving the shop", _"Ms. Stone can't afford to pay her taxes, and it looks like the family business will be going under soon. She needs 2000 in cash to stay afloat. I could try to help her out.")
	if (get_gold() > 2000) then show(23) else hide(23) end
	hide(15)
</LuaCode>
----------------------------------------------------------------------

Nr=16 Text=_"A pity that nothing can be done about your store."
<LuaCode>
	npc_says(_"Yes. A tradition of six generations will die with this shop...", "NO_WAIT")
	npc_says(_"I guess it just had to happen one day...")
	hide(13, 16)
</LuaCode>
----------------------------------------------------------------------

Nr=23 Text=_"I have the money you need Ms. Stone. You can have it."
<LuaCode>
	npc_says(_"Is... Is this a joke? So much money? And you just give it to me?", "NO_WAIT")
	npc_says(_"Thank you! Thank you! Thank you! Savior!")
	if (has_cookie("tux_has_joined_guard")) then		-- joined guard
	npc_says(_"Are you sure you really have the sum of 2000 circuits?")
		if (del_gold(2000)) then
			tux_says(_"Yes, I have it.")
			npc_says(_"Oh thank you!")
			add_cookie("stone_done")
			end_quest(_"Saving the shop", _"Ms. Stone seemed relieved as I gave her the money. I hope she won't need to file bankruptcy.")
		else 											-- joined guard + not enough money
			npc_says(_"Hold on a minute, you are still a bit short on money.", "NO_WAIT")
			npc_says(_"Don't try to trick me.")
		end
	else   												-- not joined guard, Stone will be more kind
		npc_says(_"But this isn't fair to you. The Stones are a family of fair merchants and I intend to uphold that tradition.")
		npc_says(_"I need 1,547 circuits to get through the month. I will accept only that and not a transistor more.")
		if (del_gold(1547)) then
			npc_says(_"Now it's fair. Thank you.", "NO_WAIT")
			npc_says(_"You've given me a bit of hope.. ", "NO_WAIT")
			npc_says(_"Wait a second... I think I recognize you...")
			npc_says(_"You are " .. get_player_name() .. _", aren't you...?")
			npc_says(_"The hero...")
			add_cookie("stone_done")
			show(31, 32, 33)
		else 											-- not joined guard + not enough money
			npc_says(_"Hold on a minute, you are still a bit short on money.", "NO_WAIT")
			npc_says(_"Please return with the full amount if you want to help.", "NO_WAIT")
			npc_says(_"Otherwise you're throwing good money after bad, and I couldn't let you do that.")
		end
	end
	hide(23)
</LuaCode>
----------------------------------------------------------------------

Nr=31 Text=_"Yes, its me."
<LuaCode>
	npc_says(_"I thought so. My grandfather used to tell me stories about you. He said you would come here in a time of despair.", "NO_WAIT")
	npc_says(_"And here you are.")
	npc_says(_"I hope your arrival changes the tide of this war...", "NO_WAIT")
	npc_says(_"I have something here for you. I managed to hide this Shotgun from the Red Guard.")
	npc_says(_"It used to belong to my grandfather, so it's very dear to me, but I'm sure he would have like you to have it on your journey to save us all.")
	npc_says(get_player_name() .. _", if you ever find out who started the Great Assault... GIVE THEM A SWIFT KICK FROM LILY STONE!!!")
	set_bot_name(_"Lily Stone -- Shopowner")
	add_item("Two Barrel shotgun", 1)
	add_item("Shotgun shells", 20)
	end_quest(_"Saving the shop", _"Ms. Stone was really grateful for my help. She took only what she needed from me, and still rewarded me with a shotgun she had been hiding from the Red Guard.")
	end_dialog()
	hide(31, 32, 33)
</LuaCode>
----------------------------------------------------------------------

Nr=32 Text=_"It's not important who I am."
<LuaCode>
	npc_says(_"If you want to remain a stranger, I will respect your wishes.", "NO_WAIT")
	npc_says(_"So be it.")
	end_quest(_"Saving the shop", _"Ms. Stone was really grateful for my help. She took only what she needed from me.")
	end_dialog()
	hide(31, 32, 33)
</LuaCode>
----------------------------------------------------------------------

Nr=33 Text=_"Ha ha ha, You fell for it! You get nothing from me! Hahahahah!"
<LuaCode>
	npc_says(_"You... monster...", "NO_WAIT")
	npc_says(_"No one makes fun of Lily Stone's family store!", "NO_WAIT")
	npc_says(_"Say your prayers, you oversized duck!!!")
	add_gold(1547)
	npc_faction("crazy", _"Lily Stone -- Bird Hunter")
	end_quest(_"Saving the shop", _"I tricked that Ms. Stone into believing I was going to help her out. It was funny to see her get angry.")
	hide(31, 32, 33)
	end_dialog()
</LuaCode>
----------------------------------------------------------------------

Nr=99 Text=_"See you later."
<LuaCode>
	npc_says_random(_"Have a nice day!", _"Take care that you don't void any warranties.", _"Please come back if you have any questions regarding my goods.", _"I hope to see you again, soon!")
	end_dialog()
</LuaCode>
----------------------------------------------------------------------

End of chat dialog for character="XXXXX"