CitizensDev/Citizens — Issue #530: Quest - player combat (kill npc)
Author: blankiito
Created: 2011-12-26 00:19:56+00:00
State: open

I have make a quest to kill a npc named. it work really find until you kill the npc 2 times. After that, the npc killed doesn't any more count as "player defeated".

This example work 2 times, the 3th time, kill Lysk (npc guard bouncer) doesn't count as player defeat.

killnamed:
texts:
description: kill Lysk
completion: GG reward
acceptance: You have to kill Lysk.
repeats: -1
objectives:
'0':
'0':
type: player combat
amount: 1
string: Lysk
message: GG
rewards:
'1':
type: item
id: 40
amount: 1
take: false

an other example, i have a village of bandit. You have to kill 3 bandits for the quest, but when you kill the last one, it's doesn't count like the 2 first bandits

killnamed:
texts:
description: kill bandit
completion: GG reward
acceptance: You have to kill 3 bandits.
repeats: -1
objectives:
'0':
'0':
type: player combat
amount: 3
string: bandit
message: GG, go back for reward
rewards:
'1':
type: item
id: 40
amount: 1
take: false