Mt2Hizmet 1
Mt2Hizmet
Fethi Polat 1
Fethi Polat
farkmt2official 1
farkmt2official
BlackFullMoon 1
BlackFullMoon
Hikaye Ekle
Kaynak ikonu

Client Affect Container 2025-12-21

indirmek için izniniz yok
  • Konuyu başlatan Konuyu başlatan Reached
  • Başlangıç tarihi Başlangıç tarihi
  • Cevaplar Cevaplar 24
  • Görüntüleme Görüntüleme 2K

Ayyıldız2 | 2008 TR Yapısı • 1-99 Orta Emek Destan • Oto Avsız • 10 Temmuz 21:00 HEMEN TIKLA!

Teşekkürler, affectshower için örnek kullanımı nasıl olacak pythonda gösterebilir misiniz? @Reached
Python:
#Ara

        try:
            print "Add affect %s" % affect
# Üstüne
        if affect == player.AFFECT_TIMED_QUEST:
            bonuses = player.GetAffectAppliesByType(affect)
            if bonuses and self.itemToolTip:
                extra_lines = []
                for (applyOn, val) in bonuses:
                    try:
                        applyIdx = item.GetPointApply(applyOn)
                        s = self.itemToolTip.GetAffectString(applyIdx, val)
                        if s:
                            extra_lines.append(s)
                    except:
                        pass
                if extra_lines:
                    description = "Timed Quests" + "\n" + "\n".join(extra_lines)
 
Python:
#Ara

        try:
            print "Add affect %s" % affect
# Üstüne
        if affect == player.AFFECT_TIMED_QUEST:
            bonuses = player.GetAffectAppliesByType(affect)
            if bonuses and self.itemToolTip:
                extra_lines = []
                for (applyOn, val) in bonuses:
                    try:
                        applyIdx = item.GetPointApply(applyOn)
                        s = self.itemToolTip.GetAffectString(applyIdx, val)
                        if s:
                            extra_lines.append(s)
                    except:
                        pass
                if extra_lines:
                    description = "Timed Quests" + "\n" + "\n".join(extra_lines)
1223 01:33:32536 :: Traceback (most recent call last):

1223 01:33:32536 :: File "game.py", line 773, in BINARY_NEW_AddAffect

1223 01:33:32536 :: File "uiAffectShower.py", line 630, in BINARY_NEW_AddAffect

1223 01:33:32536 :: AttributeError
1223 01:33:32536 :: :
1223 01:33:32536 :: 'module' object has no attribute 'AFFECT_TIMED_QUEST'
1223 01:33:32536 ::

pythonplayer ya da pythonplayermodule.cpp'ye AFFECT_TIMED_QUEST bu isimde bişey eklemedik ki hocam nasıl olacak
 
1223 01:33:32536 :: Traceback (most recent call last):

1223 01:33:32536 :: File "game.py", line 773, in BINARY_NEW_AddAffect

1223 01:33:32536 :: File "uiAffectShower.py", line 630, in BINARY_NEW_AddAffect

1223 01:33:32536 :: AttributeError
1223 01:33:32536 :: :
1223 01:33:32536 :: 'module' object has no attribute 'AFFECT_TIMED_QUEST'
1223 01:33:32536 ::

pythonplayer ya da pythonplayermodule.cpp'ye AFFECT_TIMED_QUEST bu isimde bişey eklemedik ki hocam nasıl olacak
Örnek istediniz, örnek attım kendi sistemim üzerinden. Kullanacağınız sisteme göre düzenleyebilirsiniz.
 

Şu an konuyu görüntüleyenler (Toplam : 0, Üye: 0, Misafir: 0)

Geri
Üst