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

BEGIN ~_VITIAR~

IF ~True()
~ THEN BEGIN 0 // from:
  SAY #77129 /* ~Good day! Consider yourself victimized by Vitiare, master thief and pickpocket extraordinaire! No time to chat!~ */
  IF ~~ THEN DO ~TakePartyGold(100)
EscapeArea()
~ EXIT
  IF ~  InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
~ THEN DO ~TakePartyGold(100)
SetGlobal("X#MinscVitiare","GLOBAL",1)
~ EXIT
  IF ~Global("X#ImoenVitiar1","GLOBAL",0)
InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Class(Player1,THIEF_ALL)
OR(3)
!InParty("minsc")
!InMyArea("minsc")
StateCheck("minsc",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#ImoenVitiar1","GLOBAL",1)~ EXTERN ~_IMOEN2~ 221
  IF ~Global("X#ImoenVitiar2","GLOBAL",0)
InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
!Class(Player1,THIEF_ALL)
OR(3)
!InParty("minsc")
!InMyArea("minsc")
StateCheck("minsc",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#ImoenVitiar2","GLOBAL",1)~ EXTERN ~_IMOEN2~ 222
END

IF ~~ THEN BEGIN 1 // from:
  SAY #99896 /* ~Oh... well... you see, I *am* a "pickpocket extraordinaire" and... oh dear... would you please let go of my arm?~ */
  IF ~~ THEN EXIT
  IF ~  InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
~ THEN GOTO 4
  IF ~  InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
~ THEN GOTO 3
  IF ~  InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
~ THEN EXTERN ~_MINSCJ~ 27
  IF ~  InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
InParty("ajantis")
~ THEN EXTERN ~_AJANTJ~ 189
  IF ~  InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
~ THEN GOTO 2
  IF ~  InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
~ THEN EXTERN ~_MINSCJ~ 26
END

IF ~~ THEN BEGIN 2 // from: 1.5
  SAY #99898 /* ~But how am I supposed to make a living? (By Mask, my arm really hurts!) *whimper*~ */
  IF ~~ THEN EXIT
  IF ~  InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
~ THEN GOTO 4
  IF ~  InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
~ THEN GOTO 3
  IF ~  InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
~ THEN EXTERN ~_MINSCJ~ 27
  IF ~  InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
InParty("ajantis")
~ THEN EXTERN ~_AJANTJ~ 189
END

IF ~~ THEN BEGIN 3 // from: 2.2 1.2
  SAY #99901 /* ~*gulp* Mask, have mercy on me! I... I... I see the light! I do, I swear! I'll never steal again in my life! Here take it back! Take it *all* back!~ */
  IF ~~ THEN EXIT
  IF ~  InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
~ THEN GOTO 4
END

IF ~~ THEN BEGIN 4 // from: 3.1 2.1 1.1
  SAY #99902 /* ~Now please let me go! Pleeaaaseee!~ */
  IF ~~ THEN DO ~GiveGoldForce(120)
SetGlobal("X#MinscVitiare","GLOBAL",4)
~ EXIT
END

IF ~~ THEN BEGIN 5 // from:
  SAY #99904 /* ~Yes, sir! I swear, sir!... Goodbye, sir!~ */
  IF ~~ THEN DO ~ActionOverride("vitiare",EscapeArea())
SetGlobal("X#MinscVitiare","GLOBAL",6)
~ EXIT
  IF ~  InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
InParty("ajantis")
InMyArea("ajantis")
!StateCheck("ajantis",CD_STATE_NOTVALID)
~ THEN DO ~ActionOverride("vitiare",EscapeArea())
SetGlobal("X#MinscVitiare","GLOBAL",6)
~ EXTERN ~_MINSCJ~ 32
  IF ~  InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
InParty("ajantis")
InMyArea("ajantis")
!StateCheck("ajantis",CD_STATE_NOTVALID)
~ THEN DO ~ActionOverride("vitiare",EscapeArea())
SetGlobal("X#MinscVitiare","GLOBAL",6)
~ EXTERN ~_AJANTJ~ 193
  IF ~  InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
InParty("ajantis")
InMyArea("ajantis")
!StateCheck("ajantis",CD_STATE_NOTVALID)
~ THEN DO ~ActionOverride("vitiare",EscapeArea())
SetGlobal("X#MinscVitiare","GLOBAL",6)
~ EXTERN ~_MINSCJ~ 31
  IF ~  InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
InParty("ajantis")
InMyArea("ajantis")
!StateCheck("ajantis",CD_STATE_NOTVALID)
~ THEN DO ~ActionOverride("vitiare",EscapeArea())
SetGlobal("X#MinscVitiare","GLOBAL",6)
~ EXTERN ~_AJANTJ~ 192
  IF ~  InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
InParty("ajantis")
InMyArea("ajantis")
!StateCheck("ajantis",CD_STATE_NOTVALID)
~ THEN DO ~ActionOverride("vitiare",EscapeArea())
SetGlobal("X#MinscVitiare","GLOBAL",6)
~ EXTERN ~_MINSCJ~ 30
  IF ~  InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
InParty("ajantis")
InMyArea("ajantis")
!StateCheck("ajantis",CD_STATE_NOTVALID)
~ THEN DO ~ActionOverride("vitiare",EscapeArea())
SetGlobal("X#MinscVitiare","GLOBAL",6)
~ EXTERN ~_AJANTJ~ 191
  IF ~  InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
InParty("ajantis")
InMyArea("ajantis")
!StateCheck("ajantis",CD_STATE_NOTVALID)
~ THEN DO ~ActionOverride("vitiare",EscapeArea())
SetGlobal("X#MinscVitiare","GLOBAL",6)
~ EXTERN ~_MINSCJ~ 29
  IF ~  InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
InParty("ajantis")
InMyArea("ajantis")
!StateCheck("ajantis",CD_STATE_NOTVALID)
~ THEN DO ~ActionOverride("vitiare",EscapeArea())
SetGlobal("X#MinscVitiare","GLOBAL",6)
~ EXTERN ~_AJANTJ~ 190
END

IF ~~ THEN BEGIN 6 // from:
  SAY #100329 /* ~Gotta go!~ */
  IF ~~ THEN DO ~TakePartyGold(100)
EscapeArea()
~ EXIT
  IF ~  InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
~ THEN DO ~TakePartyGold(100)
SetGlobal("X#MinscVitiare","GLOBAL",1)
~ EXIT
END

IF ~~ THEN BEGIN 7 // from:
  SAY #100329 /* ~Gotta go!~ */
  IF ~~ THEN DO ~TakePartyGold(100)
EscapeArea()
~ EXIT
  IF ~  InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
~ THEN DO ~TakePartyGold(100)
SetGlobal("X#MinscVitiare","GLOBAL",1)
~ EXIT
END
