Fethi Polat 1
Fethi Polat
InfernoShade 1
InfernoShade
farkmt2official 1
farkmt2official
romegames 1
romegames
bikral 1
bikral
PrimeAC 1
PrimeAC
shrpnl 1
shrpnl
Agora Metin2 1
Agora Metin2
xranzei 1
xranzei
Bvural41 1
Bvural41
Hikaye Ekle

Cevaplandı System won with offlineshop great

  • Konuyu başlatan Konuyu başlatan Nuzzo
  • Başlangıç tarihi Başlangıç tarihi
  • Cevaplar Cevaplar 5
  • Görüntüleme Görüntüleme 879

Nuzzo

Level 2
Üye
Katılım
20 Eki 2022
Konular
30
Mesajlar
94
Çözüm
6
Online süresi
19d 6h
Reaksiyon Skoru
2
Altın Konu
0
TM Yaşı
3 Yıl 7 Ay 29 Gün
Başarım Puanı
58
MmoLira
2,717
DevLira
0
Ticaret - 0%
0   0   0

HERAKLES Otomatik Avlı kalıcı sunucu. 19 Haziran'da açılıyor. Atius & Wizard güvencesiyle hemen kayıt ol, ön kayıt ödülleri aktif. HEMEN TIKLA!

I added the won system after entering great offline shop.
If I set the sale with won in offshop only yang appear.

In the online shop, on the other hand, it works correctly.

(no syserr)


Can you please help me? Thank you
 

Ekli dosyalar

uiShop.py open and find (This is an example of my file.)
Kod:
    def OverInItem(self, slotIndex):
        slotIndex = self.__GetRealIndex(slotIndex)
        if mouseModule.mouseController.isAttached():
            return

        if 0 != self.tooltipItem:
            if app.ENABLE_2TH_SHOPEX_SYSTEM:
                coinType = shop.GetTabCoinType(self.tabIdx)
                if shop.SHOP_COIN_TYPE_GOLD == coinType:
                    self.tooltipItem.SetShopItem(slotIndex)
                else:
                    self.tooltipItem.SetShopItemBySecondaryCoin(slotIndex, coinType)
            else:
                if shop.SHOP_COIN_TYPE_GOLD == shop.GetTabCoinType(self.tabIdx):
                    self.tooltipItem.SetShopItem(slotIndex)
                else:
                    self.tooltipItem.SetShopItemBySecondaryCoin(slotIndex)

Look: self.tooltipItem.SetShopItem(slotIndex)

and

uiTooltip.py open and find (This is an example of my file.)
Kod:
    def SetShopItem(self, slotIndex):
        itemVnum = shop.GetItemID(slotIndex)
        if 0 == itemVnum:
            return

        price = shop.GetItemPrice(slotIndex)
        if app.ENABLE_CHEQUE_SYSTEM:
            cheque = shop.GetItemCheque(slotIndex)

        self.ClearToolTip()
        self.isShopItem = True

        metinSlot = []
        for i in xrange(player.METIN_SOCKET_MAX_NUM):
            metinSlot.append(shop.GetItemMetinSocket(slotIndex, i))
        attrSlot = []
        for i in xrange(player.ATTRIBUTE_SLOT_MAX_NUM):
            attrSlot.append(shop.GetItemAttribute(slotIndex, i))
        apply_random_list = []
        if app.ENABLE_APPLY_RANDOM:
            for i in xrange(player.APPLY_RANDOM_SLOT_MAX_NUM):
                apply_random_list.append(shop.GetItemApplyRandom(slotIndex, i))

        if app.ENABLE_REFINE_ELEMENT:
            refineElement = shop.GetItemRefineElement(slotIndex)
            self.AddItemData(itemVnum, metinSlot, attrSlot, refineElement = refineElement, apply_random_list = apply_random_list)
        else:
            self.AddItemData(itemVnum, metinSlot, attrSlot)

        if app.BL_TRANSMUTATION_SYSTEM:
            self.AppendChangeLookInfoShopWIndow(slotIndex)

        if shop.IsOwner():
            self.AppendOfflineShopPrice(price, cheque)
        else:
            if shop.IsYearRound():
                self.AppendYearRound(price)
            elif shop.IsChequeDeskNpc():
                self.AppendLimitedCountChequeDesk(shop.GetLimitedPurchaseCount(slotIndex), shop.GetMyStok(slotIndex), cheque)
            elif app.ENABLE_12ZI and shop.IsLimitedItemShop():
                count = shop.GetLimitedCount(slotIndex)
                if count != 0:
                    purchaseCount = shop.GetLimitedPurchaseCount(slotIndex)
                    self.AppendLimitedCount(count, purchaseCount, price)
            else:
                if app.ENABLE_CHEQUE_SYSTEM:
                    self.AppendPrice(price, cheque)
                else:
                    self.AppendPrice(price)

Look:

if app.ENABLE_CHEQUE_SYSTEM:
self.AppendPrice(price, cheque)
else:
self.AppendPrice(price)

and try again uiTooltip. find(This is an example of my file.)

Kod:
    if app.ENABLE_CHEQUE_SYSTEM:
        def AppendPrice(self, price, cheque = 0):
            self.AppendSpace(5)
            self.AppendTextLine(localeInfo.CHEQUE_SYSTEM_SELL_PRICE, grp.GenerateColor(1.0, 0.9686, 0.3098, 1.0))
            
            if cheque < 1 and price < 1:
                self.AppendTextLine(localeInfo.UCRETSIZ, self.POSITIVE_COLOR)
            else:
                if cheque > 0:
                    self.AppendTextLine(localeInfo.CHEQUE_SYSTEM_WON % (str(cheque)), grp.GenerateColor(0.0, 0.8470, 1.0, 1.0))
            
                if price > 0:
                    self.AppendTextLine(localeInfo.CHEQUE_SYSTEM_YANG % (localeInfo.NumberToMoneyString(price)), self.GetPriceColor(price))   
    else:
        def AppendPrice(self, price):   
            self.AppendSpace(5)
            self.AppendTextLine(localeInfo.TOOLTIP_BUYPRICE  % (localeInfo.NumberToMoneyString(price)), self.GetPriceColor(price))
 
Does the new offline store have its own file?

Example: uiofflineshop.py etc.
 
Does the new offline store have its own file?

Example: uiofflineshop.py etc.
I solved it was a problem with definitions in locale_inc and service.h.

However, now I have another problem, should I make a separate post?

TR: Locale_inc ve service.h'deki tanımlarla ilgili bir sorun olduğunu çözdüm.
 
Moderatör tarafında düzenlendi:
Çözüm
I solved it was a problem with definitions in locale_inc and service.h.

However, now I have another problem, should I make a separate post?
If I open offline store and put more than one item for sale per won, I can't cash them in until I sell everything or close the store, while yang can cash them in
 

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

Geri
Üst