;BEGIN FRAGMENT CODE - Do not edit anything between this and the end comment
;NEXT FRAGMENT INDEX 1
Scriptname SlaveintoWorker01 Extends TopicInfo Hidden

;BEGIN FRAGMENT Fragment_0
Function Fragment_0(ObjectReference akSpeakerRef)
Actor akSpeaker = akSpeakerRef as Actor
;BEGIN CODE
akSpeaker.removeFromFaction(SlavesReleasedFaction)
akSpeaker.addtoFaction(WorkerFaction)

ActorUtil.ClearPackageOverride(akSpeaker)
;Debug.notification("Packages removed")

ActorUtil.AddPackageOverride(akSpeaker, newpack,90)
ActorUtil.AddPackageOverride(akSpeaker, newpack2,100)
;QuestSlaveAlias.ForceRefTo(akSpeaker)
akSpeaker.evaluatePackage()
;END CODE
EndFunction
;END FRAGMENT

;END FRAGMENT CODE - Do not edit anything between this and the begin comment


Faction Property SlavesReleasedFaction Auto
Faction Property WorkerFaction Auto
Package Property newpack Auto
Package Property newpack2 Auto

