--- Setup-Raziel.tp2	Tue Jun 28 18:27:16 2005
+++ C:\BWP Patchstudio\patched files\Setup-Raziel.tp2	Sun Nov 27 12:04:48 2016
@@ -1,6 +1,8 @@
 BACKUP ~raziel/backup~
 AUTHOR ~damian-staniszewski@wp.pl~
 
+VERSION ~v1 BWP Fix~
+
 BEGIN ~Raziel NPC~
 
 COPY_EXISTING ~key13.itm~ ~override/key50.itm~
@@ -9,8 +11,15 @@
   SAY DESC ~Typowy klucz do celi, jaki można znaleć w każdym więzieniu. Ten może pasować do drzwi w celi Raziela.~
 
 COPY_EXISTING ~ar0602.are~ ~override/ar0602.are~
-  WRITE_ASCII   0x9708 ~KEY50~
-  WRITE_LONG   0x971c ~100~
+//  WRITE_ASCII   0x9708 ~KEY50~
+//  WRITE_LONG   0x971c ~100~
+LAUNCH_PATCH_FUNCTION ALTER_AREA_DOOR
+  INT_VAR flag_locked     = 1
+          lock_difficulty = 100
+  STR_VAR door_name       = "Cell06"
+          door_key        = "key50"
+END		  
+BUT_ONLY_IF_IT_CHANGES
 
 COPY ~raziel/cre/Raziel.cre~ ~override/Raziel.cre~
   SAY NAME1 ~Raziel~
@@ -36,7 +45,33 @@
 
 COMPILE ~raziel/baf/RazielX.baf~
 
-COMPILE ~raziel/baf/NEWGAME.baf~
+// COMPILE ~raziel/baf/NEWGAME.baf~
+
+ACTION_IF NOT (FILE_EXISTS ~data/BG1are.bif~) AND NOT (FILE_EXISTS_IN_GAME ~SPIN506.SPL~) THEN BEGIN
+COPY_EXISTING ~NEWGAME.bcs~ ~override~
+  REPLACE_BCS_BLOCK ~raziel/baf/oNEWGAME.BAF~ ~raziel/baf/nNEWGAME.BAF~
+END
+
+ACTION_IF (NOT (FILE_EXISTS ~data/BG1are.bif~) AND (FILE_EXISTS_IN_GAME ~SPIN506.SPL~)) THEN BEGIN
+COPY_EXISTING ~NEWGAME.bcs~ ~override~
+  REPLACE_BCS_BLOCK ~raziel/baf/oNEWGAMENEJ.baf~ ~raziel/baf/nNEWGAMENEJ.baf~
+END
+
+ACTION_IF ((FILE_EXISTS ~data/BG1are.bif~) AND NOT (FILE_EXISTS_IN_GAME ~SPIN506.SPL~)) THEN BEGIN
+COPY_EXISTING ~NEWGAME.bcs~ ~override~
+  REPLACE_BCS_BLOCK ~raziel/baf/oNEWGAMEBGT.BAF~ ~raziel/baf/nNEWGAMEBGT.BAF~
+END
+
+ACTION_IF ((FILE_EXISTS ~data/BG1are.bif~) AND (FILE_EXISTS_IN_GAME ~SPIN506.SPL~)) THEN BEGIN
+COPY_EXISTING ~NEWGAME.bcs~ ~override~
+  REPLACE_BCS_BLOCK ~raziel/baf/oNEWGAMENEJBGT.BAF~ ~raziel/baf/nNEWGAMENEJBGT.BAF~
+END
+
+COPY_EXISTING ~newgame.bcs~ ~override~
+DECOMPILE_BCS_TO_BAF
+REPLACE 9999999 "Poczekaj tylko, aż wydostanę się z tej klatki!" [RAZ001]
+REPLACE 9999998 "Cicho, psie!" [RAZ002]
+COMPILE_BAF_TO_BCS
 
 APPEND ~pdialog.2da~
 ~Raziel RazielP RazielJ RazielD~
