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

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

;Debug.notification(ActorUtil.CountPackageOverride(akSpeaker) + " old packages")


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

ActorUtil.AddPackageOverride(akSpeaker, gohome,100)
ActorUtil.AddPackageOverride(akSpeaker, gohome2,100)
;QuestSlaveAlias.ForceRefTo(akSpeaker)
akSpeaker.evaluatePackage()

;Debug.notification("PackageOverride evaluated")
;Debug.notification(ActorUtil.CountPackageOverride(akSpeaker) + " new packages")
;END CODE
EndFunction
;END FRAGMENT

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

Faction Property SlavesReleasedFaction Auto
Faction Property SlavesWorkerFaction Auto
Idle Property slaveidle Auto
Package Property gohome Auto
Package Property gohome2 Auto



