Problema Implementare sistem esarfe

Înainte de a posta o problemă, caută în acest forum și poate găsești rezolvare.
Închis
Avatar utilizator
Iηfιηιт²⁴ᵏ
Utilizator interzis !

Utilizator interzis !
Mesaje: 1008
Membru din: 19 Dec 2013, 09:40
Server: Metin2 s-a dus pe pl
Regat: Jinno
Aprecieri: 40  
Mulţumiri: 11  
 Contact:
Medalii

*Problemă: Problema implementare system esarfe
Tipologie server: pvm
*Resursă folosită: vegas
*ServerFiles utilizat: -
*Syserr:
Poză:
*Detalii suplimentare: uiinventory :
Afișează semnătura
Avatar utilizator
CorcoveanuMarian
Nivel 1

Nivel 1
Mesaje: 81
Membru din: 19 Aug 2017, 13:01
Aprecieri: 13  
Mulţumiri: 20  
Medalii

caută : def RefreshBagSlotWindow
replace cu ăsta
def RefreshBagSlotWindow(self):
getItemVNum=player.GetItemIndex
getItemCount=player.GetItemCount
setItemVNum=self.wndItem.SetItemSlot

for i in xrange(player.INVENTORY_PAGE_SIZE):
slotNumber = self.__InventoryLocalSlotPosToGlobalSlotPos(i)

itemCount = getItemCount(slotNumber)
# itemCount == 0이면 소켓을 비운다.
if 0 == itemCount:
self.wndItem.ClearSlot(i)
continue
elif 1 == itemCount:
itemCount = 0

itemVnum = getItemVNum(slotNumber)
setItemVNum(i, itemVnum, itemCount)

if itemVnum == 0 and slotNumber in self.liHighlightedItems:
self.liHightlightedItems.remove(slotNumber)

## 자동물약 (HP: #72723 ~ #72726, SP: #72727 ~ #72730) 특수처리 - 아이템인데도 슬롯에 활성화/비활성화 표시를 위한 작업임 - [hyo]
if constInfo.IS_AUTO_POTION(itemVnum):
# metinSocket - [0] : 활성화 여부, [1] : 사용한 양, [2] : 최대 용량
metinSocket = [player.GetItemMetinSocket(slotNumber, j) for j in xrange(player.METIN_SOCKET_MAX_NUM)]

if slotNumber >= player.INVENTORY_PAGE_SIZE:
slotNumber -= player.INVENTORY_PAGE_SIZE

isActivated = 0 != metinSocket[0]

if isActivated:
self.wndItem.ActivateSlot(slotNumber)
potionType = 0;
if constInfo.IS_AUTO_POTION_HP(itemVnum):
potionType = player.AUTO_POTION_TYPE_HP
elif constInfo.IS_AUTO_POTION_SP(itemVnum):
potionType = player.AUTO_POTION_TYPE_SP

usedAmount = int(metinSocket[1])
totalAmount = int(metinSocket[2])
player.SetAutoPotionInfo(potionType, isActivated, (totalAmount - usedAmount), totalAmount, self.__InventoryLocalSlotPosToGlobalSlotPos(i))

else:
self.wndItem.DeactivateSlot(slotNumber)

else:
self.wndItem.DeactivateSlot(slotNumber)

if app.ENABLE_SASH_SYSTEM:
slotNumberChecked = 0
if not constInfo.IS_AUTO_POTION(itemVnum):
#if app.ENABLE_HIGHLIGHT_SYSTEM:
#if not slotNumber in self.listHighlightedSlot:
self.wndItem.DeactivateSlot(i)

for j in xrange(sash.WINDOW_MAX_MATERIALS):
(isHere, iCell) = sash.GetAttachedItem(j)
if isHere:
if iCell == slotNumber:
self.wndItem.ActivateSlot(i, (36.00 / 255.0), (222.00 / 255.0), (3.00 / 255.0), 1.0)
if not slotNumber in self.listAttachedsashs:
self.listAttachedsashs.append(slotNumber)

slotNumberChecked = 1
else:
if slotNumber in self.listAttachedsashs and not slotNumberChecked:
self.wndItem.DeactivateSlot(i)
self.listAttachedsashs.remove(slotNumber)

self.__RefreshHighlights()
self.wndItem.RefreshSlot()

if self.wndBelt:
self.wndBelt.RefreshSlot()
Afișează semnătura
Avatar utilizator
Iηfιηιт²⁴ᵏ
Utilizator interzis !

Utilizator interzis !
Mesaje: 1008
Membru din: 19 Dec 2013, 09:40
Server: Metin2 s-a dus pe pl
Regat: Jinno
Aprecieri: 40  
Mulţumiri: 11  
 Contact:
Medalii

Codul il poti pune pe https://paste2.org/ cu taburile?
Afișează semnătura
Avatar utilizator
CorcoveanuMarian
Nivel 1

Nivel 1
Mesaje: 81
Membru din: 19 Aug 2017, 13:01
Aprecieri: 13  
Mulţumiri: 20  
Medalii

Afișează semnătura
Avatar utilizator
Iηfιηιт²⁴ᵏ
Utilizator interzis !

Utilizator interzis !
Mesaje: 1008
Membru din: 19 Dec 2013, 09:40
Server: Metin2 s-a dus pe pl
Regat: Jinno
Aprecieri: 40  
Mulţumiri: 11  
 Contact:
Medalii

acum zice asta

0616 11:13:20851 :: CMapOutdoor::Load - LoadMonsterAreaInfo ERROR
0616 11:13:32482 :: Traceback (most recent call last):

0616 11:13:32482 :: File "networkModule.py", line 255, in SetGamePhase

0616 11:13:32483 :: File "game.py", line 101, in __init__

0616 11:13:32483 :: File "interfaceModule.py", line 318, in MakeInterface

0616 11:13:32483 :: File "interfaceModule.py", line 184, in __MakeWindows

0616 11:13:32483 :: File "uiInventory.py", line 272, in __init__

0616 11:13:32484 :: File "uiInventory.py", line 412, in __LoadWindow

0616 11:13:32484 :: File "uiInventory.py", line 480, in SetInventoryPage

0616 11:13:32484 :: File "uiInventory.py", line 612, in RefreshBagSlotWindow

0616 11:13:32484 :: AttributeError
0616 11:13:32484 :: :
0616 11:13:32484 :: 'InventoryWindow' object has no attribute 'listAttachedsashs'
0616 11:13:32484 ::
Afișează semnătura
Avatar utilizator
CorcoveanuMarian
Nivel 1

Nivel 1
Mesaje: 81
Membru din: 19 Aug 2017, 13:01
Aprecieri: 13  
Mulţumiri: 20  
Medalii

Pentru acest mesaj, CorcoveanuMarian for the post:
Iηfιηιт²⁴ᵏ
Afișează semnătura
Avatar utilizator
Iηfιηιт²⁴ᵏ
Utilizator interzis !

Utilizator interzis !
Mesaje: 1008
Membru din: 19 Dec 2013, 09:40
Server: Metin2 s-a dus pe pl
Regat: Jinno
Aprecieri: 40  
Mulţumiri: 11  
 Contact:
Medalii

rezolvat
Afișează semnătura
Avatar utilizator
[ST]SSH
Membru Club

Membru Club
Mesaje: 1704
Membru din: 12 Apr 2016, 23:54
Server: Fost Eluria2
Regat: Jinno
Aprecieri: 132  
Mulţumiri: 245  
 Contact:
Medalii

Raspuns dat,marcat ca rezolvat!
Închis
Răspunsuri
6
Vizualizări
581
Răspunsuri
7
Vizualizări
341
Răspunsuri
4
Vizualizări
445

Înapoi la “Probleme rezolvate”

  • Informaţie
  • Cine este conectat

    Utilizatori ce ce navighează pe acest forum: Niciun utilizator înregistrat și 19 vizitatori