scn actorcopyspellscr
ref me
ref copyref
ref currentspell
long spellcount
short doState
begin scripteffectstart
set me to Getself
set copyref to zzqiuclonequeset.shadowcopyref
if copyref != 0
set zzqiuclonequeset.shadowcopyref to 0
copyref.DeleteFullActorCopy
set doState to 4
else
set doState to 1
endif
end
begin ScriptEffectUpdate
if doState ==1
set copyref to me.CreateFullActorCopy
set zzqiuclonequeset.shadowcopyref to copyref
copyref.addscriptpackage actorcopyfollowplayer
copyref.setignorefriendlyhits 1
copyref.SetName "死亡陰影"
set spellcount to copyref.getspellcount
if copyref.getav destruction > copyref.getav blade || copyref.getav destruction > copyref.getav blunt || copyref.getav marksman > copyref.getav blade || copyref.getav marksman > copyref.getav blunt
copyref.setcombatstyle copyrange
else
copyref.setcombatstyle copymelee
endif
set doState to 3
endif
if doState == 2
if spellcount
set spellcount to spellcount - 1
set currentspell to copyref.getnthspell spellcount
copyref.removespell currentspell
else
set doState to 3
endif
endif
if doState ==3
set doState to 4
copyref.setrefessential 1
copyref.setfactionrank ArenaCombatants -1
copyref.setfactionrank ArenaPlayer -1
copyref.setfactionrank BlackWoodCompanyFACTION -1
copyref.setfactionrank Blades -1
copyref.setfactionrank DarkBrotherhood -1
copyref.setfactionrank FightersGuild -1
copyref.setfactionrank MagesGuild -1
copyref.setfactionrank ThievesGuild -1
copyref.setfactionrank zzqiumySlaves 100
copyref.setav magicka 0
copyref.setav Confidence 100
copyref.setav Aggression 100
copyref.setav Responsibility 100
copyref.addspell 00clonefightspell01
copyref.addspell 00clonefightspell03
copyref.addspell 00clonespell
endif
end