Goueki 12 Posted June 4, 2020 Share Posted June 4, 2020 Olá galera, tudo bem com vocês? Meu problema é o seguinte: No meu cliente, tenho instalado o switchbot do Mijago 2.3, porém no add 6/7 ele só consegue parar em somente 1 add que eu coloco, como na foto abaixo: Please login or register to see this image. Mas quando eu tento colocar dois adds, o switch fica em um loop infinito, ou seja, ele não consegue parar nos dois bônus que eu coloquei, eu já testei e ele passa direto! Lembrando que esse problema só acontece com os adds 6/7, os adds verdes estão normais. Tenho uma leve impressão que o problema esteja nas seguintes funções: def checkSwitch_rare(self): def GetProb_rare(self): Alguém pode ajudar? Abaixo está o código do switch: Hidden Content Give reaction or reply to this topic to see the hidden content. 1 1 Link to post Share on other sites
[Admin] tierrilopes 3217 Posted June 4, 2020 Share Posted June 4, 2020 Experimenta mudar a função checkSwitch_rare para assim (não testei e estou cansado por isso pode não dar): Hidden Content Give reaction or reply to this topic to see the hidden content. 2 Link to post Share on other sites
Goueki 12 Posted June 5, 2020 Author Share Posted June 5, 2020 Please login or register to see this quote. Não chega a nem rodar agora amigo, fica só no "6/7 Ativo" Please login or register to see this image. Link to post Share on other sites
Metin2 238 Posted June 5, 2020 Share Posted June 5, 2020 Please login or register to see this quote. Hidden Content Give reaction or reply to this topic to see the hidden content. 2 Link to post Share on other sites
Metin2 238 Posted June 5, 2020 Share Posted June 5, 2020 (edited) Please login or register to see this quote. Edited June 5, 2020 by Metin2 desculpe duple post Link to post Share on other sites
Goueki 12 Posted June 5, 2020 Author Share Posted June 5, 2020 Please login or register to see this quote. Muito obrigado amigo, comparando o "meu" código com seu, pude perceber que o erro estava realmente na função def GetProb_rare(self): nas linhas 827 e 833 (Quando aberto com notepad++) O problema era: [827] values = [player.GetItemAttribute(self.index, i+6) for i in range(0,2)] [833] self.bonusSelector.ibi[i+6].SetText(affectString) Solução: values = [player.GetItemAttribute(self.index, i+5) for i in range(0,2)] self.bonusSelector.ibi[i+5].SetText(affectString) Switchbot funcionando perfeitamente agora! 2 Link to post Share on other sites
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now