SCTX |
scn AncontarScript
; QUESTS:
; MS47
float timer
short count
begin OnDeath
if getstagedone ms47 42 == 0
additem MS47ReverseInvisibilityScroll 1
elseif player.getitemcount MS47ReverseInvisibilityScroll == 0 && getstage MS47 < 50
setstage MS47 70
endif
end
begin gamemode
if timer > 0
set timer to timer - getsecondspassed
else
if getstage ms47 == 20 && count < 3
if count < 2 && getdistance player < 1000
; message "DEBUG: MS47 Ancotar speaking, count=%.0f", count
set timer to sayto player GREETING
set timer to timer + 20 ; 20 seconds between his speaking
set count to count + 1
endif
if count == 2
evaluatepackage
endif
endif
endif
end |