SureAI

Forums covering SureAI game titles.

https://sureai.net/forum/

Topic title - Problem in Quest "Teil von etwas bedeutsamen II"

https://sureai.net/forum/viewtopic.php?t=8219

Page 6 of 6
Re: Problem in Quest "Teil von etwas bedeutsamen II" - by stuemper
Posted: 27.02.2017 11:54
27.02.2017 07:50Mölli wrote:
Also kann es am Inventar eigentlich nicht liegen, es muss ein anderer Fehler sein.
Liegt aber am Inventar, weil RemoveAllItems das Spiel freezt.
Ist übrigens im nächsten Patch gefixt.
[+] Code
Function PlayerDrinksPotion()
	_00E_TeleportGlobal.SetValue(1)
	Game.ForceThirdPerson()
	debug.SendAnimationEvent(PlayerREF as objectreference, "IdleDrinkPotion")
	Game.GetPlayer().RemoveItem(_00E_MQ05_RitualDrinkBottle, 1)
	Utility.Wait(5)
	Game.ForceFirstPerson()
	PlayerREF.PlayIdle(TG05_KnockOut)
	TG05SequenceImod.Apply()
	MAGVampireSunlight.Play(PlayerREF)
	Wait(3.2)
	FadeToBlackHoldImod.Apply()
	_00E_NPCKillBodyfall.Play(PlayerREF)
	Wait(2)
	
	; PlayerREF.RemoveAllItems(akTransferTo = MQ05Container, abKeepOwnership = false, abRemoveQuestItems = true)
	Levelsystem.RemoveAllItemsSafeVersion(MQ05Container)
	
	PlayerREF.AddItem(ClothesPrisonerRags, 1, true)
	PlayerREF.EquipItem(ClothesPrisonerRags)
	PlayerREF.AddItem(_01E_01Messer, 1, true)
	PlayerREF.EquipItem(_01E_01Messer)
	PlayerREF.MoveTo(MQ05_JailPlayerStartMarker)
	FadeToBlackHoldImod.Remove()
	TG05SequenceImod.Remove()
	_00E_WakeUp.Apply()
	PlayerREF.PlayIdle(Idle_1stPersonWoozyGetUpFromBed)
	Wait(5)
	Game.EnablePlayerControls()
	Game.SetPlayerAIDriven(False)
	Self.SetStage(95)
	if Ryon.GetReference().GetParentCell() != PlayerREF.GetParentCell()
		; Failsave for some weird cases where Aixon is missing. I
		; hope this solves http://sureai.net:9898/browse/ERB-1794 .
		Debug.Trace("MQ05: Aixon forcibly moved to player cell!")
		Ryon.GetReference().MoveTo(PlayerREF)
	else
		Debug.Trace("MQ05: Aixon correctly located in player cell.")
	endif
        
        _00E_SilenceTransitionHighPriority.Remove()
	
	Game.RequestAutoSave()
    
EndFunction
All times are UTC
Page 6 of 6
Powered by phpBB® Forum Software © phpBB Limited