- Katılım
- 20 Eki 2017
- Konular
- 468
- Mesajlar
- 9,380
- Çözüm
- 271
- Online süresi
- 11mo 27d
- Reaksiyon Skoru
- 8,233
- Altın Konu
- 47
- TM Yaşı
- 8 Yıl 7 Ay 24 Gün
- Başarım Puanı
- 326
- Yaş
- 25
- MmoLira
- 97,491
- DevLira
- 242
ROHAN2 WORLD 1-120 TR TİPİ OFFICIAL YOHARA, BALATHOR VE AMON! 80. GÜNÜNDE! +10.000 ONLİNE! HİLE VE BOT %100 ENGELLİ HEMEN TIKLA!
hayırlı ramazanlarBende ramazandan dolayı evdeyim sıkılınca bakıyorum öyle![]()

- Katılım
- 8 Eyl 2017
- Konular
- 49
- Mesajlar
- 679
- Çözüm
- 10
- Online süresi
- 1mo 22d
- Reaksiyon Skoru
- 293
- Altın Konu
- 0
- Başarım Puanı
- 161
- MmoLira
- 22,627
- DevLira
- 0
0411 20:44:05202 ::konuya dahil ettim
networkModule.py(line:209) SetSelectCharacterPhase
system.py(line:130) __pack_import
system.py(line:110) _process_result
introSelect.py(line:24) <module>
system.py(line:130) __pack_import
system.py(line:110) _process_result
uiAffectShower.py(line:8) <module>
system.py(line:130) __pack_import
networkModule.SetSelectCharacterPhase - <type 'exceptions.IndentationError'>:expected an indented block (uiToolTip.py, line 2280)
0411 20:44:05202 :: ============================================================================================================
0411 20:44:05202 :: Abort!!!!
süreyi eklerken bu hatayı alıyorum
- Katılım
- 11 Mar 2017
- Konular
- 146
- Mesajlar
- 2,117
- Çözüm
- 20
- Online süresi
- 6mo 15d
- Reaksiyon Skoru
- 1,776
- Altın Konu
- 2
- Başarım Puanı
- 284
- MmoLira
- 3,286
- DevLira
- 16
ACCESSORY_SOCKET_MAX_SIZEofflineshop kullanmıyorum ki
Kısmını kendinize göre duzenledinizmi
- Katılım
- 19 Nis 2013
- Konular
- 170
- Mesajlar
- 1,209
- Çözüm
- 3
- Online süresi
- 1mo 25d
- Reaksiyon Skoru
- 146
- Altın Konu
- 0
- TM Yaşı
- 13 Yıl 1 Ay 24 Gün
- Başarım Puanı
- 194
- MmoLira
- 4,027
- DevLira
- 12
taş slot sayısı 5 fakat cevher için bir değişiklik yapmadım sistemi eklerkenACCESSORY_SOCKET_MAX_SIZE
Kısmını kendinize göre duzenledinizmi
- Katılım
- 13 Eki 2010
- Konular
- 59
- Mesajlar
- 879
- Çözüm
- 4
- Online süresi
- 3mo 23d
- Reaksiyon Skoru
- 50
- Altın Konu
- 0
- TM Yaşı
- 15 Yıl 8 Ay 4 Gün
- Başarım Puanı
- 141
- MmoLira
- 11,081
- DevLira
- 0
paylaşım için teşekkürler
cevher eklerken böyle bi syser veriyor
[CODE title="syserr"]
0411 21:46:37274 :: Traceback (most recent call last):
0411 21:46:37274 :: File "ui.py", line 1522, in OnOverInItem
0411 21:46:37274 :: File "ui.py", line 88, in __call__
0411 21:46:37274 :: File "ui.py", line 79, in __call__
0411 21:46:37274 :: File "uiInventory.py", line 1066, in OverInItem
0411 21:46:37274 :: File "uiInventory.py", line 1285, in ShowToolTip
0411 21:46:37274 :: File "uiToolTip.py", line 570, in SetInventoryItem
0411 21:46:37274 :: File "uiToolTip.py", line 992, in AddItemData
0411 21:46:37274 :: File "uiToolTip.py", line 1755, in __AppendAccessoryMetinSlotInfo
0411 21:46:37275 :: IndexError
0411 21:46:37275 :: :
0411 21:46:37275 :: list index out of range
0411 21:46:37275 ::
[/CODE]
cevher eklerken böyle bi syser veriyor
[CODE title="syserr"]
0411 21:46:37274 :: Traceback (most recent call last):
0411 21:46:37274 :: File "ui.py", line 1522, in OnOverInItem
0411 21:46:37274 :: File "ui.py", line 88, in __call__
0411 21:46:37274 :: File "ui.py", line 79, in __call__
0411 21:46:37274 :: File "uiInventory.py", line 1066, in OverInItem
0411 21:46:37274 :: File "uiInventory.py", line 1285, in ShowToolTip
0411 21:46:37274 :: File "uiToolTip.py", line 570, in SetInventoryItem
0411 21:46:37274 :: File "uiToolTip.py", line 992, in AddItemData
0411 21:46:37274 :: File "uiToolTip.py", line 1755, in __AppendAccessoryMetinSlotInfo
0411 21:46:37275 :: IndexError
0411 21:46:37275 :: :
0411 21:46:37275 :: list index out of range
0411 21:46:37275 ::
[/CODE]
Python:
if app.ENABLE_TOOLTIP_ACCESSORY:
def __AppendAccessoryMetinSlotInfo(self, metinSlot, mtrlVnum):
ACCESSORY_SOCKET_MAX_SIZE = 3
cur=min(metinSlot[0], ACCESSORY_SOCKET_MAX_SIZE)
end=min(metinSlot[1], ACCESSORY_SOCKET_MAX_SIZE)
affectType1, affectValue1 = item.GetAffect(0)
affectType2, affectValue2 = item.GetAffect(1)
affectType3, affectValue3 = item.GetAffect(2)
mtrlPos=0
mtrlList=[mtrlVnum]*cur+[player.METIN_SOCKET_TYPE_SILVER]*(end-cur)
if app.ENABLE_TOOLTIP_ACCESSORY:
attr_total = [0,0,0,0,0]
self.AppendSpace(5)
if mtrlVnum > 0 and end > 0:
item.SelectItem(mtrlVnum)
self.AppendTextLine(str(item.GetItemName()),self.CONDITION_COLOR)
self.AppendSpace(5)
socket_lv = metinSlot[2]
sockets=[]
i = 0
while(socket_lv > 0):
mod = int(socket_lv % 10)
sockets.append(int(mod))
socket_lv = int(socket_lv / 10)
i+=1
sockets.reverse()
#self.AppendTextLine("[{}]".format(','.join([str(i) for i in sockets])), 0xFF00b6d6)
height = self.toolTipHeight
for mtrl in mtrlList:
if app.ENABLE_TOOLTIP_ACCESSORY:
lv = 0
if mtrl > 1:
lv = sockets[mtrlPos]
newP = 175
affectList1=[0, max(1, affectValue1*(5*lv)/int(newP)), max(1, affectValue1*(5*lv)/int(newP)), max(1, affectValue1*(5*lv)/int(newP)), max(1, affectValue1*(5*lv)/int(newP)), max(1, affectValue1*(5*lv)/int(newP)), max(1, affectValue1*(5*lv)/int(newP)), max(1, affectValue1*(5*lv)/int(newP)), max(1, affectValue1*(5*lv)/int(newP))]
affectList2=[0, max(1, affectValue2*(5*lv)/int(newP)), max(1, affectValue2*(5*lv)/int(newP)), max(1, affectValue2*(5*lv)/int(newP)), max(1, affectValue2*(5*lv)/int(newP)), max(1, affectValue2*(5*lv)/int(newP)), max(1, affectValue2*(5*lv)/int(newP)), max(1, affectValue2*(5*lv)/int(newP)), max(1, affectValue2*(5*lv)/int(newP))]
affectList3=[0, max(1, affectValue3*(5*lv)/int(newP)), max(1, affectValue3*(5*lv)/int(newP)), max(1, affectValue3*(5*lv)/int(newP)), max(1, affectValue3*(5*lv)/int(newP)), max(1, affectValue3*(5*lv)/int(newP)), max(1, affectValue3*(5*lv)/int(newP)), max(1, affectValue3*(5*lv)/int(newP)), max(1, affectValue3*(5*lv)/int(newP))]
affectString1 = self.__GetAffectString(affectType1, affectList1[mtrlPos+1])
affectString2 = self.__GetAffectString(affectType2, affectList2[mtrlPos+1])
affectString3 = self.__GetAffectString(affectType3, affectList3[mtrlPos+1])
if mtrl > 1:
if affectString1:
attr_total[0] += affectList1[mtrlPos+1]
if affectString2:
attr_total[1] += affectList2[mtrlPos+1]
if affectString3:
attr_total[2] += affectList3[mtrlPos+1]
else:
affectString1 = self.__GetAffectString(affectType1, affectList1[mtrlPos+1]-affectList1[mtrlPos])
affectString2 = self.__GetAffectString(affectType2, affectList2[mtrlPos+1]-affectList2[mtrlPos])
affectString3 = self.__GetAffectString(affectType3, affectList3[mtrlPos+1]-affectList3[mtrlPos])
leftTime = 0
if cur == mtrlPos+1:
leftTime=metinSlot[2]
if app.ENABLE_TOOLTIP_ACCESSORY:
self.__AppendMetinSlotInfo_AppendMetinSocketData_New(mtrlPos, mtrl, height, end, lv, leftTime)
else:
self.__AppendMetinSlotInfo_AppendMetinSocketData(mtrlPos, mtrl, affectString1, affectString2, affectString3, leftTime)
mtrlPos+=1
if app.ENABLE_TOOLTIP_ACCESSORY:
if end > 0:
if end > 4:
self.toolTipHeight += 70
else:
self.toolTipHeight += 35
self.ResizeToolTip()
affectString11 = self.__GetAffectString(affectType1, attr_total[0])
affectString22 = self.__GetAffectString(affectType2, attr_total[1])
affectString33 = self.__GetAffectString(affectType3, attr_total[2])
self.AppendSpace(5)
if affectString11:
self.AppendTextLine(affectString11, self.POSITIVE_COLOR)
if affectString22:
self.AppendTextLine(affectString22, self.POSITIVE_COLOR)
if affectString33:
self.AppendTextLine(affectString33, self.POSITIVE_COLOR)
self.ResizeToolTip()
if app.ENABLE_TOOLTIP_ACCESSORY:
def __AppendMetinSlotInfo_AppendMetinSocketData_New(self, index, metinSlotData, height=0, end=0, socket_lv=0, leftTime=0):
slotType = self.GetMetinSocketType(metinSlotData)
itemIndex = self.GetMetinItemIndex(metinSlotData)
if 0 == slotType:
return
slotImage = ui.ImageBox()
slotImage.SetParent(self)
slotImage.Show()
if player.METIN_SOCKET_TYPE_SILVER == slotType:
slotImage.LoadImage("d:/ymir work/ui/game/windows/metin_slot_silver.sub")
elif player.METIN_SOCKET_TYPE_GOLD == slotType:
slotImage.LoadImage("d:/ymir work/ui/game/windows/metin_slot_gold.sub")
self.childrenList.append(slotImage)
if index > 3:
height += 35
index = index-4
if end > 4:
end = 4
calc_x = (self.toolTipWidth/2) - (17.5*end)
slotImage.SetPosition(calc_x+index*35, height)
metinImage = ui.ImageBox()
metinImage.SetParent(slotImage)
metinImage.Show()
self.childrenList.append(metinImage)
lvText = ui.TextLine()
lvText.SetParent(metinImage)
lvText.SetFontName(self.defFontName)
lvText.SetPackedFontColor(self.CONDITION_COLOR)
lvText.SetOutline()
lvText.SetFeather()
# lvText.Show()
lvText.Hide()
self.childrenList.append(lvText)
if itemIndex:
item.SelectItem(itemIndex)
## Image
try:
metinImage.LoadImage(item.GetIconImageFileName())
except:
dbg.TraceError("ItemToolTip.__AppendMetinSocketData() - Failed to find image file %d:%s" %
(itemIndex, item.GetIconImageFileName())
)
metinImage.SetPosition(1, 1)
lvText.SetPosition(6, 16)
lvText.SetText("Lv %d" % (socket_lv))
if 0 != leftTime:
timeText = (localeInfo.LEFT_TIME2 + " : " + localeInfo.SecondToDHM(leftTime))
timeTextLine = ui.TextLine()
timeTextLine.SetParent(self)
timeTextLine.SetFontName(self.defFontName)
timeTextLine.SetPackedFontColor(self.POSITIVE_COLOR)
timeTextLine.SetPosition(50, self.toolTipHeight + 16 + 2 + 16 + 2)
timeTextLine.SetOutline()
timeTextLine.SetFeather()
timeTextLine.Show()
timeTextLine.SetText(timeText)
self.childrenList.append(timeTextLine)
self.toolTipHeight += 16 + 2
else:
def __AppendAccessoryMetinSlotInfo(self, metinSlot, mtrlVnum):
ACCESSORY_SOCKET_MAX_SIZE = 3
cur=min(metinSlot[0], ACCESSORY_SOCKET_MAX_SIZE)
end=min(metinSlot[1], ACCESSORY_SOCKET_MAX_SIZE)
affectType1, affectValue1 = item.GetAffect(0)
affectList1=[0, max(1, affectValue1*10/100), max(2, affectValue1*20/100), max(3, affectValue1*40/100)]
affectType2, affectValue2 = item.GetAffect(1)
affectList2=[0, max(1, affectValue2*10/100), max(2, affectValue2*20/100), max(3, affectValue2*40/100)]
mtrlPos=0
mtrlList=[mtrlVnum]*cur+[player.METIN_SOCKET_TYPE_SILVER]*(end-cur)
for mtrl in mtrlList:
affectString1 = self.__GetAffectString(affectType1, affectList1[mtrlPos+1]-affectList1[mtrlPos])
affectString2 = self.__GetAffectString(affectType2, affectList2[mtrlPos+1]-affectList2[mtrlPos])
leftTime = 0
if cur == mtrlPos+1:
leftTime=metinSlot[2]
self.__AppendMetinSlotInfo_AppendMetinSocketData(mtrlPos, mtrl, affectString1, affectString2, leftTime)
mtrlPos+=1
Şu an konuyu görüntüleyenler (Toplam : 0, Üye: 0, Misafir: 0)
Benzer konular
- Kilitli
- Cevaplar
- 211
- Görüntüleme
- 34K
- Cevaplar
- 14
- Görüntüleme
- 3K
- Kilitli
- Cevaplar
- 1
- Görüntüleme
- 2K
- Cevaplar
- 486
- Görüntüleme
- 68K
- Kilitli
- Cevaplar
- 310
- Görüntüleme
- 53K



