// creator  : weidu.exe (version 23100)
// argument : JAN.DLG
// game		 : .
// source	 : ./DATA/DIALOG.BIF
// dialog	 : ./DIALOG.TLK
// dialogF  : (none)

BEGIN ~JAN~

IF ~NumTimesTalkedTo(0)
Global("JanMove","GLOBAL",0)
~ THEN BEGIN 0 // from:
  SAY #468 /* ~Are you interested in purchasing a bit o' merchandise, my friend?~ [JANJAN01] */
  IF ~~ THEN REPLY #496 /* ~Why not? What merchandise do you carry, good gnome?~ */ DO ~SetGlobal("TalkedToJan","LOCALS",1)
~ GOTO 1
  IF ~~ THEN REPLY #497 /* ~Not at this time, gnome.~ */ GOTO 2
END

IF ~~ THEN BEGIN 1 // from: 0.0
  SAY #469 /* ~Well, you've got the look of an adventurer about you. I've been one myself, betwixt stints as a turnip salesman that is. Occasionally the markets get down and the formerly self-respecting purveyors of fine veggies are forced to prostitute their abilities in the form of adventuring.~ */
  IF ~~ THEN REPLY #498 /* ~All right, all right. What are you getting at?~ */ GOTO 3
  IF ~~ THEN REPLY #499 /* ~Yes, of course. Mobile vegetable peddling versus heroism, the eternal question.~ */ GOTO 5
  IF ~~ THEN REPLY #500 /* ~Sorry, gnome. I haven't the time to speak with you at present.~ */ GOTO 2
END

IF ~~ THEN BEGIN 2 // from: 9.1 5.1 1.2 0.1
  SAY #470 /* ~Ah, well. 'Tis truly your loss. I've many a valuable contraption for you.~ */
  IF ~~ THEN DO ~SetGlobal("TalkedToJan","LOCALS",1)~ EXIT
END

IF ~~ THEN BEGIN 3 // from: 1.0
  SAY #471 /* ~What I'm getting at, o-so-friendly one, is that I've items to sell you that are especially created, by yours truly, to aid one on the dangerous path to heroism. They're known as Jan Jansen's (that's me) Flasher Master Bruiser Mate.~ */
  IF ~~ THEN GOTO 6
END

IF ~~ THEN BEGIN 4 // from:
  SAY #472 /* ~Argh, not again. That bottom-feeding, turnip-hating, scum-sucking brigand! Nothing better to do than stop an honest businessman from selling high quality illegal Flashers for a reasonable price. Here he comes, cover for me.~ */
  IF ~~ THEN DO ~SetGlobal("TalkedToJan","LOCALS",2)
StartCutSceneMode()
StartCutScene("Cut08c")
~ EXIT
END

IF ~~ THEN BEGIN 5 // from: 1.1
  SAY #473 /* ~You understand implicitly. That reminds me of the time that dear Cousin Josephine fell in with that gully dwarf. Miserable bloke, really. Bad teeth, rancid smell, truly a joke o' the gods. We used to torment Josey, that was my pet name for her, about her teensy-weensy nose and the way that it hooked in to her...~ */
  IF ~~ THEN REPLY #545 /* ~What is your point?~ */ GOTO 7
  IF ~~ THEN REPLY #546 /* ~Look, my gnomish friend. I'm really too busy to chit-chat right now. Perhaps another time.~ */ GOTO 2
  IF ~~ THEN REPLY #547 /* ~Would you shut-up already! By the heavens that is annoying!~ */ GOTO 8
END

IF ~~ THEN BEGIN 6 // from: 10.0 7.0 3.0
  SAY #474 /* ~Now pay attention, you take one o' these babies and chuck it at average Joe Orc, close your eyes real tight and WHOOSH!, he's running around in circles clutching at his eyeballs and screaming and yelling like Uncle Sven after three days on a turnip beer bender...~ */
  IF ~~ THEN DO ~CreateCreature("TRAX",[3074.1640],0)
CreateCreature("TRAXG",[3074.1635],0)
StartCutSceneMode()
StartCutScene("Cut08a")
~ EXIT
END

IF ~~ THEN BEGIN 7 // from: 5.0
  SAY #475 /* ~My point, o-so-friendly one, is that I've items to sell you that are especially created, by yours truly, to aid one on the dangerous path to heroism. They're known as Jan Jansen's (that's me) Flasher Master Bruiser Mate.~ */
  IF ~~ THEN GOTO 6
END

IF ~~ THEN BEGIN 8 // from: 5.2
  SAY #476 /* ~Isn't that the way it is with folks? Huffy, grumpy, unbathed and so on. Like an ogre with a finger infection; picking his nose should make him happy but it just gets him angrier. If you want to buy one of Jan Jansen's Flasher Master Bruiser Mate, you'd best return with a civil tongue and a patient ear.~ */
  IF ~~ THEN DO ~SetGlobal("TalkedToJan","LOCALS",1)~ EXIT
END

IF ~Global("TalkedToJan","LOCALS",1)
Global("JanMove","GLOBAL",0)
~ THEN BEGIN 9 // from:
  SAY #477 /* ~So you've returned. Interested in making a purchase now?~ [JANJAN62] */
  IF ~~ THEN REPLY #478 /* ~Yes, indeed. What do you carry?~ */ GOTO 10
  IF ~~ THEN REPLY #479 /* ~Not at present.~ */ GOTO 2
END

IF ~~ THEN BEGIN 10 // from: 9.0
  SAY #480 /* ~I've items to sell you that are especially created, by yours truly, to aid one on the dangerous path to heroism. They're known as Jan Jansen's (that's me) Flasher Master Bruiser Mate.~ */
  IF ~~ THEN GOTO 6
END

IF ~~ THEN BEGIN 11 // from:
  SAY #481 /* ~Trax, old friend. You do me a great wrong! I would never break the law. As my pappy always said...~ */
  IF ~~ THEN EXTERN ~TRAX~ 2
END

IF ~~ THEN BEGIN 12 // from:
  SAY #482 /* ~What cruel fate! Falsely accused by an old friend!~ */
  IF ~~ THEN EXTERN ~TRAX~ 4
END

IF ~~ THEN BEGIN 13 // from:
  SAY #483 /* ~<CHARNAME>, you have to break me out! I cannot stand another year in prison. The food is terrible! Come to the guardhouse and pay my fine. I will be your humble servant forever. Help me, <CHARNAME>, you are my only hope.~ */
  IF ~~ THEN DO ~SetGlobal("JanMove","GLOBAL",1)
~ UNSOLVED_JOURNAL #19682 /* ~Free Jan Jansen from prison.

I was approached by a, er, turnip salesman named Jan Jansen... who was promptly arrested by a guardsman for selling illegal items.  The gnome pleaded with me as he was dragged away to pay the 800 gp fine and break him out of prison, promising to be my, ah, humble servant forever if I do.~ */ EXIT
END

IF ~Global("JanMove","GLOBAL",1)
Global("JanFree","GLOBAL",0)
~ THEN BEGIN 14 // from:
  SAY #485 /* ~Ah, my old friend. You've come to retrieve me from my unjust imprisonment, I hope.~ [JANJAN63] */
  IF ~~ THEN REPLY #487 /* ~To the contrary, I believe that you have gotten what you deserve.~ */ DO ~SetGlobal("TalkedToJan2","LOCALS",1)
~ GOTO 15
  IF ~~ THEN REPLY #488 /* ~Indeed I have. There is, however, the matter of your fine.~ */ DO ~SetGlobal("TalkedToJan2","LOCALS",1)
~ GOTO 22
  IF ~~ THEN REPLY #489 /* ~I haven't enough money to pay your fine yet.~ */ DO ~SetGlobal("TalkedToJan2","LOCALS",1)
~ GOTO 23
END

IF ~~ THEN BEGIN 15 // from: 14.0
  SAY #486 /* ~Let me tell you a story. Once upon a time there was a short man named Jens who lived a large community called Akata. Young Jens was a poor man and an orphan. He did what he had to do to survive. Things such as juggling, miming and arm wrestling ogres.~ */
  IF ~~ THEN REPLY #491 /* ~Arm wrestling ogres?~ */ GOTO 16
END

IF ~~ THEN BEGIN 16 // from: 15.0
  SAY #490 /* ~Yes, why not? Anyway, poor Jens was tickling chickens one fine summer day when he was approached by an evil half-orc by the name of Trixy. Trixy began beating the completely innocent Jens senseless just because the chickens had told many lies about him earlier.~ */
  IF ~~ THEN GOTO 17
END

IF ~~ THEN BEGIN 17 // from: 16.0
  SAY #492 /* ~Jens got a beating but that very night the chickens were butchered, plucked and eaten by an ornery dragon who later used Trixy to clean his teeth.~ */
  IF ~~ THEN REPLY #493 /* ~That is a truly disturbing story, Jan but I still won't bail you out.~ */ GOTO 24
  IF ~~ THEN REPLY #494 /* ~I understand your point. I will pay your fine when I am able to.~ */ GOTO 23
  IF ~~ THEN REPLY #495 /* ~Why don't you give me a good reason why I should pay your fine?~ */ GOTO 22
END

IF ~Global("TalkedToJan","LOCALS",2)
Global("JanMove","GLOBAL",0)
~ THEN BEGIN 18 // from:
  SAY #548 /* ~There goes a truly evil man. Uncle Scratchy seems like a saint in comparison. Regardless, it seems that I'm once again out of the black market. At least until I scrounge up a fortune to set up my business and have Trax's superiors well bribed. Do you be needing a hand in your party?~ [JANJAN64] */
  IF ~~ THEN REPLY #550 /* ~I do indeed, Jan. Welcome aboard!~ */ DO ~SetGlobalTimer("JanJoined","GLOBAL",FIFTEEN_DAYS)~ GOTO 36
  IF ~~ THEN REPLY #551 /* ~What skills can you offer my party?~ */ GOTO 19
  IF ~~ THEN REPLY #552 /* ~I don't need another tag along, gnome. Get out of my sight and be thankful I've helped you at all.~ */ GOTO 20
  IF ~~ THEN REPLY #554 /* ~Thank you for offering, but I believe it to be better that I go on without you for the time being.~ */ GOTO 21
END

IF ~~ THEN BEGIN 19 // from: 18.1
  SAY #549 /* ~A fast mouth, a handy shot with a crossbow and all this illegal machinery that I invented.~ */
  IF ~~ THEN REPLY #555 /* ~I would like to have you join my party.~ */ DO ~SetGlobalTimer("JanJoined","GLOBAL",FIFTEEN_DAYS)~ GOTO 36
  IF ~~ THEN REPLY #556 /* ~You're not really what I need right now. Perhaps at a later time.~ */ GOTO 21
  IF ~~ THEN REPLY #557 /* ~You sound rather useless, gnome.~ */ GOTO 20
END

IF ~~ THEN BEGIN 20 // from: 19.2 18.2
  SAY #558 /* ~There's no call for insults, you tactless orc-lover. Obviously, it is better that I not join your party.~ */
  IF ~~ THEN DO ~EscapeArea()~ EXIT
END

IF ~~ THEN BEGIN 21 // from: 30.1 29.1 19.1 18.3
  SAY #559 /* ~Your loss. If you change your mind I live in the less-than-opulent side of town, the slums if you will. I'll probably have a turnip stand, slowly working my way up to a nice bribe. Good luck to you.~ */
  IF ~~ THEN DO ~EraseJournalEntry(19682)
EraseJournalEntry(19688)
SetGlobal("JanMove","GLOBAL",2)
MoveGlobal("AR0401","Jan",[392.343])
~ SOLVED_JOURNAL #47991 /* ~Jan Jansen returns to his home in the slums.

I managed to get a garrulous con-artist gnome out of a jam with the local authorities, and he has offered to join my party in the future should I wish to track him down at his home in the slums.  Selling turnips, he said... but somehow I doubt that.~ */ EXIT
END

IF ~~ THEN BEGIN 22 // from: 17.2 14.1
  SAY #560 /* ~I am but an impoverished gnome. If you can pay this fine for me, I will join and fight with you. As I once told you, I have been an adventurer in the past and should probably get out of the retail business for a time anyway. What say you?~ */
  IF ~~ THEN REPLY #561 /* ~I shall have to think about it.~ */ GOTO 23
  IF ~~ THEN REPLY #562 /* ~It sounds very good, Jan. Allow me to pay the fine and set you free.~ */ GOTO 25
  IF ~~ THEN REPLY #563 /* ~What do you have to offer my party?~ */ GOTO 26
END

IF ~~ THEN BEGIN 23 // from: 27.0 26.1 22.0 17.1 14.2
  SAY #565 /* ~Pay the guard when you are ready and able. As Pappy used to say during that unfortunate fiasco with the githyanki, 'You'd better pay now before the bastards really get greasy'.~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 24 // from: 17.0
  SAY #566 /* ~It's your neck, chicken. I'll make a most excellent addition to your party should you decide to give me a chance.~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 25 // from: 27.1 26.0 22.1
  SAY #567 /* ~You shall not regret it.~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 26 // from: 22.2
  SAY #568 /* ~A fast mouth, a handy shot with a crossbow and all this illegal machinery that I invented.~ */
  IF ~~ THEN REPLY #569 /* ~I would like to have you join my party. Allow me to pay the fine.~ */ GOTO 25
  IF ~~ THEN REPLY #570 /* ~Maybe another time, Jan.~ */ GOTO 23
END

IF ~Global("TalkedToJan2","LOCALS",1)
Global("JanFree","GLOBAL",0)
~ THEN BEGIN 27 // from:
  SAY #576 /* ~Have you decided to pay the fine and free me now?~ [JANJAN65] */
  IF ~~ THEN REPLY #577 /* ~I am unable to afford it yet.~ */ GOTO 23
  IF ~~ THEN REPLY #578 /* ~Yes, I have. I will pay the guard and have you freed.~ */ GOTO 25
END

IF ~Global("JanFree","GLOBAL",1)
Global("JanMove","GLOBAL",1)
~ THEN BEGIN 28 // from:
  SAY #579 /* ~Most excellent, my friend. Thank you for paying that tragically unfair fine for me.~ [JANJAN66] */
  IF ~~ THEN REPLY #580 /* ~You did try to sell illegal machinery you know.~ */ DO ~EraseJournalEntry(47987)~ GOTO 29
  IF ~~ THEN REPLY #581 /* ~It was nothing, Jan.~ */ DO ~EraseJournalEntry(47987)~ GOTO 30
END

IF ~~ THEN BEGIN 29 // from: 28.0
  SAY #582 /* ~It was always an unfair law. I was simply filling in one of the niche markets for a desperate consumer population. Regardless, I am now free and would like to know your intentions. Will you have me join your party?~ */
  IF ~~ THEN REPLY #589 /* ~Yes I would. Welcome!~ */ DO ~EraseJournalEntry(19682)
EraseJournalEntry(19688)
SetGlobalTimer("JanJoined","GLOBAL",FIFTEEN_DAYS)~ SOLVED_JOURNAL #47989 /* ~Free Jan Jansen from prison.

Jan, the gnome with a quick hand and a quicker mouth, has been freed from prison and become part of my party.~ */ GOTO 36
  IF ~~ THEN REPLY #590 /* ~Not at this time, Jan. Perhaps later.~ */ DO ~EraseJournalEntry(19682)
EraseJournalEntry(19688)~ SOLVED_JOURNAL #47990 /* ~Free Jan Jansen from prison.

Jan, the gnomish peddler with the large mouth, has been freed from prison and gone back to his home in the slums. He will be there if I need him.~ */ GOTO 21
END

IF ~~ THEN BEGIN 30 // from: 28.1
  SAY #586 /* ~Well it seems that I'm once again out of the black market. At least until I scrounge up a fortune to set up my business and have Trax's superiors well bribed. Do you be needing a hand in your party?~ */
  IF ~~ THEN REPLY #587 /* ~Yes, I would. Welcome!~ */ DO ~EraseJournalEntry(19682)
EraseJournalEntry(19688)
SetGlobalTimer("JanJoined","GLOBAL",FIFTEEN_DAYS)~ SOLVED_JOURNAL #47989 /* ~Free Jan Jansen from prison.

Jan, the gnome with a quick hand and a quicker mouth, has been freed from prison and become part of my party.~ */ GOTO 36
  IF ~~ THEN REPLY #588 /* ~Not at this time, Jan. Perhaps later.~ */ DO ~EraseJournalEntry(19682)
EraseJournalEntry(19688)~ SOLVED_JOURNAL #47990 /* ~Free Jan Jansen from prison.

Jan, the gnomish peddler with the large mouth, has been freed from prison and gone back to his home in the slums. He will be there if I need him.~ */ GOTO 21
END

IF ~Global("JanMove","GLOBAL",2)
~ THEN BEGIN 31 // from:
  SAY #616 /* ~Well by Aunt Petunia's beard! A ghost from my past? Looking to buy some turnips, perhaps?~ [JANJAN67] */
  IF ~~ THEN REPLY #617 /* ~Thanks but no thanks. I have sought you out to have you join my party.~ */ GOTO 32
  IF ~~ THEN REPLY #618 /* ~I cannot stop to chat. Another time, maybe.~ */ GOTO 33
END

IF ~~ THEN BEGIN 32 // from: 34.0 31.0
  SAY #620 /* ~Adventuring, eh? I don't know... I'm making close to 6gp per week in this exciting field of black-market veggies. What would people say?~ */
  IF ~~ THEN REPLY #622 /* ~If it makes you happy, you can tell your friends that I've pressured you into joining.~ */ GOTO 35
  IF ~~ THEN REPLY #623 /* ~I'm not going to waste my time trying to cajole you, Jan. Goodbye.~ */ GOTO 33
END

IF ~~ THEN BEGIN 33 // from: 34.1 32.1 31.1
  SAY #624 /* ~As you will. Remember, there's no turnips like Jansen turnips. Farewell.~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 34 // from:
  SAY #625 /* ~Nice doing business with you. Is there aught else that you desire?~ */
  IF ~~ THEN REPLY #637 /* ~How would you like to put vegetable peddling behind you for a time and join my party?~ */ GOTO 32
  IF ~~ THEN REPLY #638 /* ~Not today, Jan. Goodbye.~ */ GOTO 33
END

IF ~~ THEN BEGIN 35 // from: 32.0
  SAY #639 /* ~As Uncle Scratchy used to say, 'A true friend is a bald-faced liar'. Let us depart then, my new companion. I've an itch to pepper a few hobgoblins with crossbow bolts.~ */
  IF ~GlobalLT("chapter","GLOBAL",4)~ THEN REPLY #42190 /* ~I should probably tell you, first, that my goal is to rescue an old friend of mine, Imoen, who is being held hostage by the Cowled Wizards.~ */ DO ~SetGlobalTimer("JanJoined","GLOBAL",FIFTEEN_DAYS)~ GOTO 37
  IF ~GlobalLT("chapter","GLOBAL",4)~ THEN REPLY #58654 /* ~You should probably know that I've business with a powerful wizard named Irenicus.  It could be quite dangerous.~ */ DO ~SetGlobalTimer("JanJoined","GLOBAL",FIFTEEN_DAYS)~ GOTO 38
  IF ~~ THEN REPLY #42191 /* ~Alright, let's go.~ */ DO ~SetGlobalTimer("JanJoined","GLOBAL",FIFTEEN_DAYS)
AddexperienceParty(11500)
JoinParty()
~ EXIT
END

IF ~~ THEN BEGIN 36 // from: 30.0 29.0 19.0 18.0
  SAY #42189 /* ~Let us depart then, my new companion. I've an itch to pepper a few hobgoblins with crossbow bolts.~ */
  IF ~GlobalLT("chapter","GLOBAL",4)~ THEN REPLY #42193 /* ~I should probably tell you, first, that my goal is to rescue an old friend of mine, Imoen, who is being held hostage by the Cowled Wizards.~ */ DO ~SetGlobalTimer("JanJoined","GLOBAL",FIFTEEN_DAYS)~ GOTO 37
  IF ~GlobalLT("chapter","GLOBAL",4)~ THEN REPLY #58652 /* ~You should probably know that I've business with a powerful wizard named Irenicus.  It could be quite dangerous.~ */ DO ~SetGlobalTimer("JanJoined","GLOBAL",FIFTEEN_DAYS)~ GOTO 38
  IF ~~ THEN REPLY #42194 /* ~Okay, let's go.~ */ DO ~AddexperienceParty(11500)
JoinParty()
~ EXIT
END

IF ~~ THEN BEGIN 37 // from: 36.0 35.0
  SAY #42192 /* ~Ahhh, the plot thickens.  Not unlike a good bowl of turnip soup if you've let it sit out for the proper amount of time.  Traditionally, that's a week, although Pappy used to complain about the smell so much that we just went and shortened it to a day and a half.  It doesn't taste quite the same, though, which just goes to show you that you can't buck tradition.  I'll make you some, and Imoen too, if time allows.  You won't regret it!~ */
  IF ~~ THEN DO ~AddexperienceParty(11500)
JoinParty()~ EXIT
END

IF ~~ THEN BEGIN 38 // from: 36.1 35.1
  SAY #58653 /* ~I've had dangerous dealings with a wizard or two, myself.  In fact, Golodon the Unmanned had the most dangerous breath this side of Rashemen.  A casual conversation between him and Rozar the Unwilling almost started the Guild War of '42, you know.  All those spells he cast, thinking he was cursed, and all he really needed was a good dentist.  Of course, you show me a dentist whose willing to yank a rotten tooth out of the mouth of a cranky wizard and I'll show you a pig with wings.  Big ones.  They have them in the Moonshaes, you know.  But enough about me.~ */
  IF ~~ THEN DO ~AddexperienceParty(11500)
JoinParty()~ EXIT
END
