noisiv 1
noisiv
Manwe Work 1
Manwe Work
Agora Metin2 1
Agora Metin2
Bvural41 1
Bvural41
Mt2Hizmet 1
Mt2Hizmet
SLyFeLLowTR 1
SLyFeLLowTR
Hikaye Ekle

Cevaplandı Efsun Nesnesi 2 Kere Kullanıyor

  • Konuyu başlatan Konuyu başlatan q1ock
  • Başlangıç tarihi Başlangıç tarihi
  • Cevaplar Cevaplar 11
  • Görüntüleme Görüntüleme 206
  • Etiketler Etiketler
    #yardim

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!

Bir tane efsun nesnesi kullandığım halde ekte göründüğü gibi 2 kere kullanıyor bunun sebebi nedir?
 

Ekli dosyalar

  • 1763489953202.png
    1763489953202.png
    318.7 KB · Görüntüleme: 0
Çözüm
Sorunun kaynağını buldum. uiinventory.py'de bulunan
def __SendUseItemToItemPacket(self, srcSlotPos, dstSlotPos):
if uiPrivateShopBuilder.IsBuildingPrivateShop():
chat.AppendChat(chat.CHAT_TYPE_INFO, localeInfo.USE_ITEM_FAILURE_PRIVATE_SHOP)
return

dstItemVNum = player.GetItemIndex(dstSlotPos)
srcItemVNum = player.GetItemIndex(srcSlotPos)
if ENABLE_SELF_STACK_SCROLLS and dstItemVNum == srcItemVNum:
self.__SendMoveItemPacket(srcSlotPos, dstSlotPos, 0)
else:
net.SendItemUseToItemPacket(srcSlotPos, dstSlotPos)

net.SendItemUseToItemPacket(srcSlotPos, dstSlotPos)

bu fonksiyonda 2 kez net.SendItemUseToItemPacket(srcSlotPos, dstSlotPos)...
char_item.cpp: In member function 'bool CHARACTER::UseItemEx(LPITEM, TItemPos)':
char_item.cpp:5509:64: error: 'aiChangeProb' was not declared in this scope
5509 | item2->ChangeAttribute(aiChangeProb);
| ^~~~~~~~~~~~
char_item.cpp:5511:33: error: 'else' without a previous 'if'
5511 | else if (item->GetVnum() == 76014)
| ^~~~
char_item.cpp:5644:25: error: duplicate case value
5644 | case USE_ADD_ATTRIBUTE:
| ^~~~
char_item.cpp:5381:17: note: previously used here
5381 | case USE_ADD_ATTRIBUTE:
| ^~~~
char_item.cpp:5757:25: error: duplicate case value
5757 | case USE_ADD_ATTRIBUTE2:
| ^~~~
char_item.cpp:5382:17: note: previously used here
5382 | case USE_ADD_ATTRIBUTE2:
| ^~~~
char_item.cpp:5826:25: error: duplicate case value
5826 | case USE_ADD_ACCESSORY_SOCKET:
| ^~~~
char_item.cpp:5378:17: note: previously used here
5378 | case USE_ADD_ACCESSORY_SOCKET:
| ^~~~
char_item.cpp:5865:25: error: duplicate case value
5865 | case USE_PUT_INTO_BELT_SOCKET:
| ^~~~
char_item.cpp:5375:17: note: previously used here
5375 | case USE_PUT_INTO_BELT_SOCKET:
| ^~~~
char_item.cpp:5866:25: error: duplicate case value
5866 | case USE_PUT_INTO_ACCESSORY_SOCKET:
| ^~~~
char_item.cpp:5377:17: note: previously used here
5377 | case USE_PUT_INTO_ACCESSORY_SOCKET:
| ^~~~
char_item.cpp:5908:25: error: duplicate case value
5908 | case USE_PUT_INTO_AURA_SOCKET:
| ^~~~
char_item.cpp:5384:17: note: previously used here
5384 | case USE_PUT_INTO_AURA_SOCKET:
| ^~~~
char_item.cpp:5933:29: error: 'item2' was not declared in this scope; did you mean 'item'?
5933 | if (item2->IsEquipped())
| ^~~~~
| item
char_item.cpp:5969:17: error: duplicate case value
5969 | case USE_MOVE:
| ^~~~
char_item.cpp:2895:9: note: previously used here
2895 | case ITEM_USE:
| ^~~~
char_item.cpp:6007:17: error: duplicate case value
6007 | case USE_RECIPE:
| ^~~~
char_item.cpp:2731:9: note: previously used here
2731 | case ITEM_GIFTBOX:
| ^~~~
char_item.cpp:6076:9: error: break statement not within loop or switch
6076 | break;
| ^~~~~
char_item.cpp:6078:9: error: case label 'ITEM_METIN' not within a switch statement
6078 | case ITEM_METIN:
| ^~~~
char_item.cpp:6162:9: error: break statement not within loop or switch
6162 | break;
| ^~~~~
char_item.cpp:6164:9: error: case label 'ITEM_AUTOUSE' not within a switch statement
6164 | case ITEM_AUTOUSE:
| ^~~~
char_item.cpp:6165:9: error: case label 'ITEM_MATERIAL' not within a switch statement
6165 | case ITEM_MATERIAL:
| ^~~~
char_item.cpp:6166:9: error: case label 'ITEM_SPECIAL' not within a switch statement
6166 | case ITEM_SPECIAL:
| ^~~~
char_item.cpp:6167:9: error: case label 'ITEM_TOOL' not within a switch statement
6167 | case ITEM_TOOL:
| ^~~~
char_item.cpp:6168:9: error: case label 'ITEM_LOTTERY' not within a switch statement
6168 | case ITEM_LOTTERY:
| ^~~~
char_item.cpp:6169:17: error: break statement not within loop or switch
6169 | break;
| ^~~~~
char_item.cpp:6171:9: error: case label 'ITEM_TOTEM' not within a switch statement
6171 | case ITEM_TOTEM:
| ^~~~
char_item.cpp:6176:9: error: break statement not within loop or switch
6176 | break;
| ^~~~~
char_item.cpp:6178:9: error: case label 'ITEM_BLEND' not within a switch statement
6178 | case ITEM_BLEND:
| ^~~~
char_item.cpp:6205:17: error: break statement not within loop or switch
6205 | break;
| ^~~~~
compiling char_state.cpp
char_item.cpp:6206:9: error: case label 'ITEM_EXTRACT' not within a switch statement
6206 | case ITEM_EXTRACT:
| ^~~~
char_item.cpp:6231:9: error: break statement not within loop or switch
6231 | break;
| ^~~~~
char_item.cpp:6233:9: error: case label 'ITEM_NONE' not within a switch statement
6233 | case ITEM_NONE:
| ^~~~
char_item.cpp:6235:17: error: break statement not within loop or switch
6235 | break;
| ^~~~~
char_item.cpp:6237:9: error: case label not within a switch statement
6237 | default:
| ^~~~~~~
char_item.cpp: At global scope:
char_item.cpp:6242:9: error: expected unqualified-id before 'return'
6242 | return true;
| ^~~~~~
char_item.cpp:6243:1: error: expected declaration before '}' token
6243 | }
| ^
char_item.cpp: In member function 'bool CHARACTER::EquipItem(LPITEM, int)':
char_item.cpp:7954:51: error: expected statement at end of input
7954 | if (0 == duration)
| ^
char_item.cpp:7954:51: error: expected '}' at end of input
char_item.cpp:7950:25: note: to match this '{'
7950 | {
| ^
char_item.cpp:7954:51: error: expected '}' at end of input
7954 | if (0 == duration)
| ^
char_item.cpp:7947:17: note: to match this '{'
7947 | {
| ^
char_item.cpp:7954:51: error: expected '}' at end of input
7954 | if (0 == duration)
| ^
char_item.cpp:7944:9: note: to match this '{'
7944 | {
| ^
char_item.cpp:7954:51: error: expected '}' at end of input
7954 | if (0 == duration)
| ^
char_item.cpp:7795:1: note: to match this '{'
7795 | {
 
Sorunun kaynağını buldum. uiinventory.py'de bulunan
def __SendUseItemToItemPacket(self, srcSlotPos, dstSlotPos):
if uiPrivateShopBuilder.IsBuildingPrivateShop():
chat.AppendChat(chat.CHAT_TYPE_INFO, localeInfo.USE_ITEM_FAILURE_PRIVATE_SHOP)
return

dstItemVNum = player.GetItemIndex(dstSlotPos)
srcItemVNum = player.GetItemIndex(srcSlotPos)
if ENABLE_SELF_STACK_SCROLLS and dstItemVNum == srcItemVNum:
self.__SendMoveItemPacket(srcSlotPos, dstSlotPos, 0)
else:
net.SendItemUseToItemPacket(srcSlotPos, dstSlotPos)

net.SendItemUseToItemPacket(srcSlotPos, dstSlotPos)

bu fonksiyonda 2 kez net.SendItemUseToItemPacket(srcSlotPos, dstSlotPos) satırı kullanılmış tek problem bu konu kapatılabilir sorun yaşayan arkadaşlar olursa da çözüm olabilir :)
 
Çözüm

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

Geri
Üst