ScriptName AnvilCastleJailorScript
Float KeepTime
; the OnDeath script is on many guards in Castle Anvil
Begin OnDeath Player
If GetStage TG07Lex >= 10 && GetStage TG07Lex < 100
Set TG07Lex.TotalDead to TG07Lex.TotalDead + 1
SetStage TG07BloodPrice 70
EndIf
End
Begin OnPackageEnd AnvilPrisonFollowPCDay
Set NQDGuard.AnvilDoorOpen to 0
End
Begin OnPackageEnd AnvilPrisonFollowPCNight
Set NQDGuard.AnvilDoorOpen to 0
End
Begin GameMode
If NQDGuard.SayWarnings == 1 && GetInFaction Jailor == 1
If KeepTime <= 0
Set KeepTime to 6
SayTo Player NQDGuardWarning
Else
Set KeepTime to KeepTime - GetSecondsPassed
EndIf
EndIf
End
|