[trp_constable_hareck,"start", [(eq,"$constable_announcement",0)],
"Hear me, people of Zendar, for I bear a message from our town's lord and protector, Count Arrasies.\
As you know, bands of river pirates have infested the vicinity of our town.\
These lawless villains devastate our realm, pillaging, robbing and murdering the innocent.\
The mischief and suffering caused by these scum has become intolerable.\
Thus, our good Count has found it necessary to call to arms his honest and law-abiding subjects against these murderous villains.",
"constable_hareck_introduce_1",[(assign,"$constable_announcement",1)]],
[trp_constable_hareck,"constable_hareck_introduce_1", [],
"People of Zendar, our Count invites you to serve him in this cause.\
Those of you that volunteer now will be equipped with arms and armor at the Count's expense\
and shall be granted the right to hunt down the river pirates, ending their miserable lives by death or imprisonment,\
and keeping their ill-gotten gains to yourselves without tax or tribute.\
Moreover, you will be paid a reward of 20 denars from the Count's treasury for every river pirate group you vanquish.", "close_window",[]],
[trp_constable_hareck,"start", [], "What do you want?", "constable_hareck_talk",[]],
[trp_constable_hareck|plyr,"constable_hareck_talk", [(eq,"$quest_accepted_zendar_river_pirates",0)],
"I want to sign up to hunt down the river pirates.", "constable_hareck_signup_1",[]],
[trp_constable_hareck,"constable_hareck_signup_1", [], "Have you worked as a manhunter before?", "constable_hareck_signup_2",[]],
[trp_constable_hareck|plyr,"constable_hareck_signup_2", [], "Yes I have.", "constable_hareck_signup_3",[]],
[trp_constable_hareck|plyr,"constable_hareck_signup_2", [], "Not really. But I learn quickly", "constable_hareck_signup_3",[]],
[trp_constable_hareck,"constable_hareck_signup_3", [],
"That's more than enough for me. Well then. I charge you to hunt down river pirates around Zendar,\
and give you this shield from the Count's armory.\
May God make you victorious.", "constable_hareck_signup_4",[(assign,"$quest_accepted_zendar_river_pirates",1),
(str_store_string, s2, "@Constable Hareck asked you to hunt down the river pirates that plague the country around Zendar.\
He promised to pay you 20 denars for each river pirate party you eliminate."),
(call_script, "script_start_quest", "qst_hunt_down_river_pirates", "$g_talk_troop"),
(troop_add_item, "trp_player","itm_wooden_shield",imod_battered)]],
[trp_constable_hareck|plyr,"constable_hareck_signup_4", [], "Is that all?", "constable_hareck_signup_5",[]],
[trp_constable_hareck,"constable_hareck_signup_5", [], "What else do you want, a good luck kiss?\
Now stop chattering and go kill some outlaws. You have to work hard to deserve that shield.", "close_window",[]],
[trp_constable_hareck,"sell_prisoner_outlaws_finished", [], "Well done my {boy/girl}. .", "close_window",[]],
[trp_constable_hareck|plyr,"constable_hareck_talk", [
(store_num_parties_destroyed_by_player, ":num_river_pirates_destroyed", "pt_river_pirates"),
(val_min,":num_river_pirates_destroyed",num_max_river_pirates),
(lt,"$river_pirates_paid_for",":num_river_pirates_destroyed")],
"I have hunted down some river pirates.", "pay_for_river_pirates",[]],
[trp_constable_hareck,"pay_for_river_pirates", [],
"Yes, my scouts informed me. That should make them think twice before wandering near Zendar! Anyway, the reward is 20 denars for every river pirate party. Here is your money, as promised.",
"pay_for_river_pirates_2",[(store_num_parties_destroyed_by_player, ":num_river_pirates_destroyed", "pt_river_pirates"),
(val_min,":num_river_pirates_destroyed",num_max_river_pirates),
(store_sub,":river_pirate_bounty",":num_river_pirates_destroyed","$river_pirates_paid_for"),
(val_mul,":river_pirate_bounty",20),
(troop_add_gold,"trp_player",":river_pirate_bounty"),
(assign,"$river_pirates_paid_for",":num_river_pirates_destroyed")]],
[trp_constable_hareck|plyr,"pay_for_river_pirates_2", [],
"Thank you, sir.", "pay_for_river_pirates_3",[]],
[trp_constable_hareck,"pay_for_river_pirates_3", [(neq,"$quest_complete_zendar_river_pirates",0),(eq,"$quest_complete_zendar_river_pirates_ack",0)],
"You certainly deserved your pay. Thanks to hunters like you most of the river pirates have been dealt with.\
The few remaining do not pose a threat any longer. So I thank you in the name of the town of Zendar. You did a mighty good job.","constable_hareck_reward_1",[[add_xp_as_reward,100],[call_script, "script_end_quest", "qst_hunt_down_river_pirates"],[assign,"$quest_complete_zendar_river_pirates_ack",1]]],
[trp_constable_hareck|plyr,"constable_hareck_reward_1", [], "Thank you sir. But does that mean you won't be paying any more rewards?", "constable_hareck_reward_2",[]],
[trp_constable_hareck,"constable_hareck_reward_2", [], "You got that right.\
The truth is, the count's accountant has found out that rewards cost him more than the pirates do.\
So, that means no more rewards for those filthy pirates.\
Nothing is stopping you from taking your own reward from their packs and hideouts, though.", "close_window",[]],
[trp_constable_hareck,"pay_for_river_pirates_3", [], "Ah, yes... Well... good luck.", "close_window",[]],
[trp_constable_hareck|plyr,"constable_hareck_talk", [], "Nothing. Good-bye.", "close_window",[]],
[anyone,"sell_prisoner_outlaws", [[store_troop_kind_count,0,"trp_river_pirate"],[ge,reg(0),1],[assign,reg(1),reg(0)],[val_mul,reg(1),10],[val_mul,reg(2),reg(0)],[val_mul,reg(2),10]],
"Hmmm. 10 denars for each river_pirate makes {reg1} denars for all {reg0} of them.", "sell_prisoner_outlaws",
[[troop_add_gold, "trp_player",reg(1)],[add_xp_to_troop,reg(2)],[remove_member_from_party,"trp_river_pirate"]]],
[anyone,"sell_prisoner_outlaws", [[store_troop_kind_count,0,"trp_bandit"],[ge,reg(0),1],[assign,reg(1),reg(0)],[val_mul,reg(1),20],[assign,reg(2),reg(0)],[val_mul,reg(2),20]],
"Let me see. You have brought {reg0} bandits. 20 denars for each makes {reg1} denars..", "sell_prisoner_outlaws",
[[troop_add_gold, "trp_player",reg(1)],[add_xp_to_troop,reg(2)],[remove_member_from_party,"trp_bandit"]]],
[anyone,"sell_prisoner_outlaws", [[store_troop_kind_count,0,"trp_brigand"],[ge,reg(0),1],[assign,reg(1),reg(0)],[val_mul,reg(1),30],[assign,reg(2),reg(0)],[val_mul,reg(2),30]],
"Well well, you have captured {reg0} brigand. Each one is worth 30 denars, that means I'll pay you a sum of {reg1}.", "sell_prisoner_outlaws",
[[troop_add_gold, "trp_player",reg(1)],[add_xp_to_troop,reg(2)],[remove_member_from_party,"trp_brigand"]]],
[anyone,"sell_prisoner_outlaws", [], "Well, I guess that would be all.", "sell_prisoner_outlaws_finished",[]],