SCTX |
ScriptName MGExpulsion02Script
;Handles 2nd expulsion from Mages Guild in the event of rule-breaking
;Note: Blocking dialogue for Mages Guild NPCs is contained in quest MG00General
;dialogue for Raminus Polus is in quest MGExpulsion02
short RaminusTarget
Begin GameMode
if ( GetStage MGExpulsion02 == 0 )
;If player steals from Guild, expel him and set appropriate stage
if ( GetStage MGExpulsion02 < 10 )
If GetPCFactionSteal MagesGuild == 1
SetPCExpelled MagesGuild 1
player.removeitem MagesGuildKey 1
SetStage MGExpulsion02 10
endif
endif
;If player attacks a guild member, expel him and set stage
;Commented out for now
;if ( GetStage MGExpulsion02 < 20 )
; if GetPCFactionAttack MagesGuild == 1
; SetPCExpelled MagesGuild 1
; SetStage MGExpulsion02 20
; endif
;endif
;If player kills a guild member, expel him and set appropriate stage
if ( GetStage MGExpulsion02 < 30 )
If GetPCFactionMurder MagesGuild == 1
SetPCExpelled MagesGuild 1
player.removeitem MagesGuildKey 1
SetPCFactionMurder MagesGuild 0
SetStage MGExpulsion02 30
endif
endif
endif
End
|