Thread: CP 2.0 Error
View Single Post
03/22/21, 06:56 AM   #9
ownedbynico
AddOn Author - Click to view addons
Join Date: Nov 2019
Posts: 9
Originally Posted by Irniben View Post
Hey, I had the same problem with CSPS. I used the following code before sending the purchase request to prevent the game from trying to play a confirm animation while not in the perks scene and do the needed preparation for it if the scene is shown:

Code:
	
if CHAMPION_PERKS_SCENE:GetState() == "shown" then 
	CHAMPION_PERKS:PrepareStarConfirmAnimation()
	cancelAnimation = false
else
	cancelAnimation = true
end
ZO_PreHook(CHAMPION_PERKS, "StartStarConfirmAnimation", 
	function()
		if cancelAnimation then
			cancelAnimation = false
			return true 
		end 
	end)
Thanks! That fixes the problem.
So there is actually a way to get the ChampionPerks stuff.

Last edited by ownedbynico : 03/22/21 at 07:08 AM.
  Reply With Quote