project-topaz / topaz

Server emulator for FFXI
Other
157 stars 222 forks source link

Add introductory dialogues for the Dynamis currency goblins #1505

Closed MarianArlt closed 3 years ago

MarianArlt commented 3 years ago

I affirm:

After getting access to Dynamis and having been instructed to go get a Prismatic Hourglass, any Dynamis currency goblin in Beadeaux, Davoi or Castle Oztroja will talk to the player about the key item at this point. Once. After that all goblins will introduce their currency to the player. Once. After that they will all show the menu.

This PR adds the missing events and makes it so that: • either of the goblins will introduce the hourglass. After doing so, the others won't. • the player may skip this dialogue by trading 50k gil right away without talking to the goblin and receiving the hourglass • before offering the dialogue menu each goblin will introduce the currency he trades once and then never again • after all three goblins have introduced their currency to the player the charVar responsible for this is deleted • the player may move freely between these three in any state of this logic without messing anything up

A lot of the lines in the commit are just parenthesis clean up. The important bit is the onTrigger() function in each goblins script and the resulting onEventFinish().