kralhakan2009 1
kralhakan2009
Bodyguardd 1
Bodyguardd
Vahsi Uzman 1
Vahsi Uzman
noisiv 1
noisiv
Manwe Work 1
Manwe Work
Bvural41 1
Bvural41
Reklam vermek için turkmmo@gmail.com

[Py] Item Antiflag Tooltip

Durum
Üzgünüz bu konu cevaplar için kapatılmıştır...
dRGCdab.png


[CODE lang="python" title="uitooltip.py"]# Arat

def __AppendPotionInformation(self):

# Üstüne Ekle


def AppendAntiFlagInformation(self):
flagList = [
[item.ITEM_ANTIFLAG_GIVE, "ticareti"],
[item.ITEM_ANTIFLAG_SAFEBOX, "depolanması"],
[item.ITEM_ANTIFLAG_DROP, "düşürülmesi"],
[item.ITEM_ANTIFLAG_SELL, "satılması"],
[item.ITEM_ANTIFLAG_MYSHOP, "pazara koyulması"],
[item.ITEM_ANTIFLAG_DESTROY, "silinmesi"],
]

antiflagNames_First = ""
antiflagNames_Second = ""
antiflagNames_Third = ""
antiflagCount = 0
for i in xrange(len(flagList)):
if item.IsAntiFlag(flagList[0]):
antiflagCount += 1
if antiflagCount > 4:
antiflagNames_Third += flagList[1] + ", "
elif antiflagCount > 2:
antiflagNames_Second += flagList[1] + ", "
else:
antiflagNames_First += flagList[1] + ", "
if antiflagNames_First != "":
self.AppendSpace(5)
if antiflagNames_Third != "":
self.AppendTextLine("Bu nesnenin "+antiflagNames_First, self.DISABLE_COLOR, True)
self.AppendTextLine(antiflagNames_Second, self.DISABLE_COLOR, True)
self.AppendTextLine(antiflagNames_Third[:-2]+" mümkün değil.", self.DISABLE_COLOR, True)
elif antiflagNames_Second != "":
self.AppendTextLine("Bu nesnenin "+antiflagNames_First, self.DISABLE_COLOR, True)
self.AppendTextLine(antiflagNames_Second[:-2]+" mümkün değil.", self.DISABLE_COLOR, True)
else:
self.AppendTextLine("Bu nesnenin "+antiflagNames_First[:-2]+" mümkün değil.", self.DISABLE_COLOR, True)

textLine.SetFeather()

# Arat

self.ShowToolTip()

def __DragonSoulInfoString (self, dwVnum):

# Üstüne Ekle

self.AppendAntiFlagInformation() ## show antiflag info[/CODE]
 
Son düzenleme:
Durum
Üzgünüz bu konu cevaplar için kapatılmıştır...

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

Geri
Üst