// creator  : weidu.exe (version 23100)
// argument : P#IMANEL.DLG
// game		 : .
// source	 : ./override/P#IMANEL.DLG
// dialog	 : ./DIALOG.TLK
// dialogF  : (none)

BEGIN ~P#IMANEL~

IF ~  OR(3)
!InParty("kivan")
!InMyArea("kivan")
StateCheck("kivan",CD_STATE_NOTVALID)
Global("P#EMMAFight","GLOBAL",0)
~ THEN BEGIN 0 // from:
  SAY #102159 /* ~Snowball, here! Swiftclaw, EXCUSE you!
Dread, leave the <RACE> alone!
Babe, stay, you're a good girl... Fang, stop drooling all over this good <LADYLORD>. 
<PRO_HESHE> is not our prey.~ */
  IF ~~ THEN EXIT
END

IF ~  InParty("kivan")
InMyArea("kivan")
!StateCheck("kivan",CD_STATE_NOTVALID)
Global("P#EMMAFight","GLOBAL",1)
~ THEN BEGIN 1 // from:
  SAY #102160 /* ~Hail, travelers. That cloaked elf matches the description I was given. Are you Kivan of Shilmista?~ */
  IF ~~ THEN DO ~SetGlobal("P#EMMAFight","GLOBAL",2)
~ EXTERN ~_KIVANJ~ 267
END

IF ~  Global("P#EMMAFight","GLOBAL",5)
Dead("kivan")
~ THEN BEGIN 2 // from:
  SAY #102161 /* ~So, apparently you can kill. Very good.~ */
  IF ~~ THEN REPLY #102162 /* ~Are you joining me, Imanel?~ */ GOTO 3
  IF ~~ THEN REPLY #102163 /* ~Do I get a reward?~ */ GOTO 6
  IF ~  Race(Player1,ELF)
~ THEN REPLY #102164 /* ~Yep, that was fun.~ */ GOTO 4
  IF ~  !Race(Player1,ELF)
~ THEN REPLY #102164 /* ~Yep, that was fun.~ */ GOTO 5
END

IF ~~ THEN BEGIN 3 // from: 2.0
  SAY #102165 /* ~*chuckles* You have done what I have planned you to do. You are of no further use. Be grateful that I allow you to leave with your hides untouched.~ */
  IF ~~ THEN REPLY #102163 /* ~Do I get a reward?~ */ GOTO 6
  IF ~~ THEN REPLY #95403 /* ~Fair enough.~ */ GOTO 5
END

IF ~~ THEN BEGIN 4 // from: 2.2
  SAY #102166 /* ~Farewell then. When you grow up, mellonamin, you just *might* become an acceptable companion for me. Good hunting.~ */
  IF ~~ THEN DO ~ReputationInc(-4)
SetGlobal("P#EMMAFight","GLOBAL",7)
ActionOverride("P#IMANEL",EscapeArea())
ActionOverride("P#WOLF01",EscapeArea())
ActionOverride("P#WOLF02",EscapeArea())
ActionOverride("P#WOLF03",EscapeArea())
ActionOverride("P#WOLF04",EscapeArea())
ActionOverride("P#WOLF05",EscapeArea())
~ EXIT
END

IF ~~ THEN BEGIN 5 // from: 3.1 2.3
  SAY #102167 /* ~Farewell then. Good hunting.~ */
  IF ~~ THEN DO ~ReputationInc(-4)
SetGlobal("P#EMMAFight","GLOBAL",7)
ActionOverride("P#IMANEL",EscapeArea())
ActionOverride("P#WOLF01",EscapeArea())
ActionOverride("P#WOLF02",EscapeArea())
ActionOverride("P#WOLF03",EscapeArea())
ActionOverride("P#WOLF04",EscapeArea())
ActionOverride("P#WOLF05",EscapeArea())
~ EXIT
END

IF ~~ THEN BEGIN 6 // from: 3.0 2.1
  SAY #102168 /* ~*laughs* Speaking of rewards, there was a bounty on your head, as well. I think that this money is mine! You are weakened and would not put up much of a fight. By all gods, I like stupid prey!~ */
  IF ~~ THEN DO ~ReputationInc(-4)
SetGlobal("P#EMMAFight","GLOBAL",7)
ActionOverride("P#WOLF01",MoveToObject("P#IMANEL"))
ActionOverride("P#WOLF02",MoveToObject("P#IMANEL"))
ActionOverride("P#WOLF03",MoveToObject("P#IMANEL"))
ActionOverride("P#WOLF04",MoveToObject("P#IMANEL"))
ActionOverride("P#WOLF05",MoveToObject("P#IMANEL"))
ActionOverride("P#WOLF01",Enemy())
ActionOverride("P#WOLF02",Enemy())
ActionOverride("P#WOLF03",Enemy())
ActionOverride("P#WOLF04",Enemy())
ActionOverride("P#WOLF05",Enemy())
ActionOverride("P#IMANEL",Enemy())
~ EXIT
END

IF ~~ THEN BEGIN 7 // from: 39.0
  SAY #102169 /* ~You, <PRO_RACE>, you seem to be in charge of this... band. What say you?~ */
  IF ~~ THEN REPLY #102170 /* ~Silversword, you have taken enough of our time with your chatter. Kivan is my friend. I will fight at his side, no matter what. His enemy is my enemy.~ */ GOTO 8
  IF ~~ THEN REPLY #102171 /* ~*You* can join *me*, if you wish.~ */ GOTO 9
  IF ~~ THEN REPLY #102172 /* ~Oh, you require some company other than those beasts at your feet?~ */ GOTO 12
  IF ~~ THEN REPLY #102173 /* ~What's with all these wolves?~ */ GOTO 12
END

IF ~~ THEN BEGIN 8 // from: 12.0 7.0
  SAY #102174 /* ~*chuckles* Rubbish sticks together. More spoils then. I repeat my question: does anyone cherish free lifestyle in your midst? Or any lifestyle for that matter?~ */
  IF ~~ THEN EXTERN ~_KIVANJ~ 264
END

IF ~~ THEN BEGIN 9 // from: 12.1 7.1
  SAY #102175 /* ~You are an ambitious one, aren't you? Prove me that you are worth my calling you a commander. Kill the ranger, let me see you in action.~ */
  IF ~~ THEN REPLY #102176 /* ~How about we just let the ranger off the hook and you'd take his place in line? I like you much more... but I do not want others to say that I draw sword against my companions.~ */ GOTO 10
  IF ~~ THEN REPLY #102177 /* ~That goes without saying. To tell you the truth, I am surprised that this whiner lived that long around me.~ */ GOTO 11
END

IF ~~ THEN BEGIN 10 // from: 12.2 9.0
  SAY #102178 /* ~That is not the attitude I like in my thralls... and companions, of course. I guess today is the day you die.~ */
  IF ~~ THEN EXTERN ~_KIVANJ~ 265
END

IF ~~ THEN BEGIN 11 // from: 12.3 9.1
  SAY #102179 /* ~Perfect. Let me settle myself comfortably while you commence with the slaying.~ */
  IF ~~ THEN EXTERN ~_KIVANJ~ 266
END

IF ~~ THEN BEGIN 12 // from: 7.3 7.2
  SAY #102180 /* ~My wolves are my company. However, I'm involved in all sorts of assignments, and as often as not I require someone walking on two feet and speaking Common. Of course, I will not accept someone totally unknown to me into my service, so I will require you to pass a small test. Here, kill the ranger, let me see you in action.~ */
  IF ~~ THEN REPLY #102170 /* ~Silversword, you have taken enough of our time with your chatter. Kivan is my friend. I will fight at his side, no matter what. His enemy is my enemy.~ */ GOTO 8
  IF ~~ THEN REPLY #102181 /* ~Lady, slow down. *I* am not to serve *you*. *You* can join *me*, if you wish though.~ */ GOTO 9
  IF ~~ THEN REPLY #102176 /* ~How about we just let the ranger off the hook and you'd take his place in line? I like you much more... but I do not want others to say that I draw sword against my companions.~ */ GOTO 10
  IF ~~ THEN REPLY #102177 /* ~That goes without saying. To tell you the truth, I am surprised that this whiner lived that long around me.~ */ GOTO 11
END

IF ~~ THEN BEGIN 13 // from:
  SAY #102182 /* ~Snowball, attack! Swiftclaw, FORWARD!
Dread, gut them! Babe, be a good girl and KILL! Fang, stop drooling all over this good <LADYLORD> and rip <PRO_HISHER> throat, already!~ */
  IF ~~ THEN DO ~SetGlobal("P#EMMAFight","GLOBAL",3)
ActionOverride("P#WOLF01",MoveToObject("P#IMANEL"))
ActionOverride("P#WOLF02",MoveToObject("P#IMANEL"))
ActionOverride("P#WOLF03",MoveToObject("P#IMANEL"))
ActionOverride("P#WOLF04",MoveToObject("P#IMANEL"))
ActionOverride("P#WOLF05",MoveToObject("P#IMANEL"))
ActionOverride("P#WOLF01",Enemy())
ActionOverride("P#WOLF02",Enemy())
ActionOverride("P#WOLF03",Enemy())
ActionOverride("P#WOLF04",Enemy())
ActionOverride("P#WOLF05",Enemy())
ActionOverride("P#IMANEL",Enemy())
~ EXIT
END

IF ~~ THEN BEGIN 14 // from:
  SAY #102186 /* ~Short and to the point.~ */
  IF ~~ THEN GOTO 15
END

IF ~~ THEN BEGIN 15 // from: 14.0
  SAY #102187 /* ~My name is Imanel Silversword.~ */
  IF ~~ THEN GOTO 16
END

IF ~~ THEN BEGIN 16 // from: 15.0
  SAY #102188 /* ~I am in a mood for a pleasant conversation, but Tazok mentioned that it was your wife who did all the talking, not you. *sigh*~ */
  IF ~~ THEN GOTO 17
END

IF ~~ THEN BEGIN 17 // from: 16.0
  SAY #102189 /* ~Tazok is a friend of mine, if you failed to understand the subtlety of my hint.~ */
  IF ~~ THEN EXTERN ~_KIVANJ~ 268
END

IF ~~ THEN BEGIN 18 // from:
  SAY #102191 /* ~Oh, yes, Tazok would not know what to do with your bow, it being elven made and enchanted for only elves to use. So I have it now. It is a sweet weapon, Kivan.~ */
  IF ~~ THEN GOTO 19
END

IF ~~ THEN BEGIN 19 // from: 18.0
  SAY #102192 /* ~I like it.~ */
  IF ~~ THEN EXTERN ~_KIVANJ~ 269
END

IF ~~ THEN BEGIN 20 // from:
  SAY #102194 /* ~Oath-breaker? I can see that you have some sense of humor. I like it in men.~ */
  IF ~~ THEN GOTO 21
END

IF ~~ THEN BEGIN 21 // from: 20.0
  SAY #102195 /* ~At least I hope that's what it is. Or are you indeed one of those pathetic creatures who take the ranger's vows seriously?~ */
  IF ~~ THEN EXTERN ~_KIVANJ~ 270
END

IF ~~ THEN BEGIN 22 // from:
  SAY #102197 /* ~No sense of humor, then?~ */
  IF ~~ THEN GOTO 23
END

IF ~~ THEN BEGIN 23 // from: 22.0
  SAY #102198 /* ~How disappointing! Well, let us talk business then, shall we? I have a generous heart, and I am in need of men. The blasted fools I traveled with got themselves killed when you sacked our camp. *shrugs* What do you expect of Na'N'Tel'Quess - barely persons? You are an Elf, at least.~ */
  IF ~~ THEN GOTO 24
END

IF ~~ THEN BEGIN 24 // from: 23.0
  SAY #102199 /* ~I am inclined to give you a chance - I will take you under my protective wing and teach you what life is all about, Kivan. ~ */
  IF ~~ THEN EXTERN ~_KIVANJ~ 271
END

IF ~~ THEN BEGIN 25 // from:
  SAY #102201 /* ~Oh, do not you understand that your second option is a gravestone with your name on it? That slow, eh?~ */
  IF ~~ THEN GOTO 26
END

IF ~~ THEN BEGIN 26 // from: 25.0
  SAY #102202 /* ~I was paid for the task of returning your head to Tazok. I intend to *fulfill my vow*, if you do not give me a reason to spare you.~ */
  IF ~~ THEN GOTO 27
END

IF ~~ THEN BEGIN 27 // from: 26.0
  SAY #102203 /* ~Refuse my offer, and there would be no revenge for your pitiful Deheriana. If you take it... I'll help you to backstab Tazok. After all, he would be insisting that I cut that lovely throat of yours with all the brutal stubbornness of his lesser race.~ */
  IF ~~ THEN GOTO 28
END

IF ~~ THEN BEGIN 28 // from: 27.0
  SAY #102204 /* ~When the prospect of payback is equal, I ally myself with the cutest side, and you have that advantage over Tazok, Kivan.~ */
  IF ~~ THEN GOTO 29
END

IF ~~ THEN BEGIN 29 // from: 28.0
  SAY #102205 /* ~Hmmm... if you wash some.~ */
  IF ~~ THEN EXTERN ~_KIVANJ~ 273
  IF ~  Dead("tazok")
~ THEN GOTO 31
  IF ~  Dead("tazok")
~ THEN GOTO 30
  IF ~  Dead("tazok")
~ THEN EXTERN ~_KIVANJ~ 272
END

IF ~~ THEN BEGIN 30 // from: 29.2
  SAY #102207 /* ~Naive as well... Delicious! No, Kivan, Tazok is not dead. Tazok is serving a leader of the Iron Throne, and he brought him back to life.~ */
  IF ~~ THEN EXTERN ~_KIVANJ~ 273
  IF ~  Dead("tazok")
~ THEN GOTO 31
END

IF ~~ THEN BEGIN 31 // from: 30.1 29.1
  SAY #102208 /* ~There is a lesson for you in that - masters sometimes give treats to the dogs that serve well.~ */
  IF ~~ THEN EXTERN ~_KIVANJ~ 273
END

IF ~~ THEN BEGIN 32 // from:
  SAY #102209 /* ~Oh, not the *same* words again! Do not make a mistake of taking me lightly, mellonamin.~ */
  IF ~~ THEN EXTERN ~_KIVANJ~ 274
END

IF ~~ THEN BEGIN 33 // from:
  SAY #102211 /* ~Then you choose death.~ */
  IF ~~ THEN GOTO 34
END

IF ~~ THEN BEGIN 34 // from: 33.0
  SAY #102212 /* ~*sighs* And I was even going to offer you back that bow... after we would have found a better one.~ */
  IF ~~ THEN GOTO 35
END

IF ~~ THEN BEGIN 35 // from: 34.0
  SAY #102213 /* ~I cannot go around forever with a bow which has "mela en' coiamin Kivan" inscribed all over it. "My beloved Kivan..." - and that's not the worst of it.~ */
  IF ~~ THEN GOTO 36
END

IF ~~ THEN BEGIN 36 // from: 35.0
  SAY #102214 /* ~I wonder, why your little wife did not use parchment to write all this nonsense down and give to you? Ah, I know! She was sure that the bow would never leave your hands...~ */
  IF ~~ THEN GOTO 37
END

IF ~~ THEN BEGIN 37 // from: 36.0
  SAY #102215 /* ~How touching.~ */
  IF ~~ THEN EXTERN ~_KIVANJ~ 275
END

IF ~~ THEN BEGIN 38 // from:
  SAY #102217 /* ~Kivan, you are a fool, and you are soon to be a dead fool. Does anyone among you have a brain? Join me, and we shall have loads of gold and fun together.~ */
  IF ~~ THEN GOTO 39
END

IF ~~ THEN BEGIN 39 // from: 38.0
  SAY #102218 /* ~The imbecile ranger, of course, will have to be killed....~ */
  IF ~~ THEN DO ~CreateItem("P#BOW",0,0,0)
~ GOTO 7
END
