Finish-Event not working
whoshenry opened this issue · 8 comments
I have tried to put a finish-event on one of the stages for a Quest, for example giving an item to the player. But it does not work when the player completes that stage, the only way I got it to work was to make the event a start-event at the beginning of the next stage.
I have also tried this with events that include teleporting the player, applying effects and despawning npcs, the only way it works is to make it a start-event.
Update: I think this is only when there is more than one stage, it seems to work when a finish-event is on a Single Stage Quest, but not multiple ones.
Well it happens with quite a few quests if you put the finish-event as something such as despawning an NPC.
Here's one quest we had that didn't work, so we changed the finish-event: faeambush to a start-event in the next stage.
custom1:
name: A Fair Deal
npc-giver-id: 108
ask-message: Poor cat... Perhaps there's something you can do for it.
finish-message: And so, you think to yourself, "What in the world was that about??"
gui-display: name-FISHING_ROD:amount-1
requirements:
mcmmo-skills:
- Taming
mcmmo-amounts:
- 20
fail-requirement-message: The cat blatantly ignores you. Perhaps you need to work on your animal skills...
stages:
ordered:
'1':
fish-to-catch: 1
start-message: Looking towards you, Pangur Bán let's you pet him. Perhaps a fish would score some brownie-points.
'2':
locations-to-reach:
- Quests 137.0 40.0 -449.0
reach-location-radii:
- 7
reach-location-names:
- Pangur Bán's Stump
finish-event: FaeAmbush
'3':
npc-ids-to-kill:
- 116
npc-kill-amounts:
- 1
death-event: DeathFail
'4':
items-to-deliver:
- name-RAW_FISH:amount-1
npc-delivery-ids:
- 108
delivery-messages:
- The cat gobbles the poor fish up, totally undisturbed by the events it just witnessed.
finish-event: TitleComplete
rewards:
quest-points: 2
mcmmo-skills:
- Fishing
- Taming
mcmmo-levels:
- 5
- 2
This is what the FaeAmbush event is:
FaeAmbush:
message: You sense a disturbing force approaching...
commands:
- npc spawn 116
When it was a finish-event, the NPC didn't ever spawn. Only when we changed it to a start-event on the next stage.
Sorry whoshenry, could you throw that up on pastebin or something that includes the indents? I can't seem to get the file formatted properly without them.
Sure, the quests entry - http://pastebin.com/2Jmgj1EC and the events entry - http://pastebin.com/8Vgqvhdj
I was able to complete the quest using the information you provided (I only changed the NPC IDs to some I had already spawned). http://i.imgur.com/QpccXLn.png