SCTX |
scn UmbacanoScript
; used in MS21, MS22, MS27
short sayCount
begin gamemode
if getstage ms27 == 80 && getiscurrentpackage MS27UmbacanoToThrone == 1 && getsitting == 3
setstage ms27 85
endif
end
begin OnPackageStart MS21UmbacanoPlaceStatue1
set MS21.fQuestDelayTime to .1
end
begin OnPackageDone MS21UmbacanoPlaceStatue1
set MS21.placeStatues to 1
end
begin OnPackageStart MS21UmbacanoPlaceStatues
set MS21.fQuestDelayTime to .1
end
begin OnPackageDone MS21UmbacanoPlaceStatues
set MS21.placeStatues to 1
end
begin OnPackageStart MS27WaitAtNenalata
additem LL2NPCWeaponBossCombDaggerLvl100 1
end
begin OnPackageStart MS27UmbacanoActivateCarvingWall
set MS27CarvingWall.timer to Say MS27Voice
MS27CarvingWall.activate umbacanoRef 1
end
begin OnPackageStart MS27UmbacanoWaitAtCarvingWall
if sayCount == 0
SayTo player MS27Voice
set sayCount to 1
endif
end
begin OnPackageStart MS27UmbacanoToThrone
if sayCount < 2
Say MS27Voice
set sayCount to 2
endif
end
begin OnDeath
if getstage ms27 >= 60 && getstage ms27 < 80
setstage ms27 89
endif
if getstage ms27 == 80
; trigger undead attack so player can escape
setstage ms27 84
endif
if getstagedone ms27 55 == 1 && getstage MS27 == 85
setstage ms27 95
endif
if getstagedone ms27 86 == 1
; turn off exterior minions when he dies as King
Nenalata03Start.disable
endif
; complete MS21
setstage MS21 100
end |