CitizensDev/Citizens — Issue #870: CollectQuest.java - Counts all collected blocks
Author: berood001
Created: 2012-02-23 00:52:16+00:00
State: open

I am working with R3 and 1.1.5 Citizens. So ignore if this is already fixed.

Since the CollectQuest.java hasn't been updated since Jan 30th I assumed that it has not. Additionally I did not see any outstanding issues concerning this so I am assuming that it was not addressed, but then I rarely read the boards.

The event listener is not working right for me. Every collection quest I do registers EVERY block picked up and adds to counter for the quest. Could be user error so I pasted my quests here as well for you to check.

I am no expert and unfamiliar with the source code and data structures, but I did take a few minutes to look through your source. If you see no issues with my quests below, I would run a couple print statements in the update function of your CollectQuest.java, but you probably know better than me.

Thanks for the excellent mod. We love it.

V/R,

B

gatherLEATHER:
texts:
description: "We are running low on leather needed to clothe our new citizens. I will pay 600 gold for 8 bundles of leather collected."
completion: "Thank you for your assistance, here is your 600 gold."
acceptance: "Thank you, hope to see you soon."
repeats: -1
objectives:
'0':
'0':
type: collect
materialid: 334
amount: 8
optional: False
finishhere: False
message: "You have collected 8 leather. Please return for you reward."
rewards:
'0':
type: money
money: 600

gatherIRON:
texts:
description: "We are running low on Iron reserves. I will give you 800 gold to bring back 64 Iron Ore."
completion: "Thanks, we should do business again in the future. Here is your 800 gold."
acceptance: "I expect to see you soon."
repeats: -1
objectives:
'0':
'0':
type: collect
materialid: 15
amount: 64
optional: False
finishhere: False
message: "You have collected 64 iron ore, please return for your reward."
rewards:
'0':
type: money
money: 800