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!
Locale_inc :
#def ENABLE_10X_CHEST_OPEN
PythonApplicationModule :
Arat :
Kod:
#ifdef ENABLE_COSTUME_SYSTEM
PyModule_AddIntConstant(poModule, "ENABLE_COSTUME_SYSTEM", 1);
PyModule_AddIntConstant(poModule, "ENABLE_CHECK_IF_SAFEBOX_OPEN", 1);
#else
PyModule_AddIntConstant(poModule, "ENABLE_COSTUME_SYSTEM", 0);
#endif
Altına ekle:
Kod:
#ifdef ENABLE_10X_CHEST_OPEN
PyModule_AddIntConstant(poModule, "ENABLE_10X_CHEST_OPEN", 1);
#else
PyModule_AddIntConstant(poModule, "ENABLE_10X_CHEST_OPEN", 0);
#endif
Python
uiinventory.py:
Arat:
Kod:
def UseItemSlot(self, slotIndex):
if constInfo.GET_ITEM_QUESTION_DIALOG_STATUS():
return
slotIndex = self.__InventoryLocalSlotPosToGlobalSlotPos(slotIndex)
self.__UseItem(slotIndex)
mouseModule.mouseController.DeattachObject()
self.OverOutItem()
Kod:
if app.ENABLE_10X_CHEST_OPEN:
def IsTreasureBox(self, slotIndex):
itemVnum = player.GetItemIndex(slotIndex)
item.SelectItem(itemVnum)
if item.GetItemType() == item.ITEM_TYPE_GIFTBOX:
return True
## Dacă un item nu are type giftbox adaugi simplu aici vnumul lui.
treasures = {
0: 50011,
1: 50024,
2: 50025,
3: 50031,
4: 50032,
}
if itemVnum in treasures.values():
return True
return False
def SendMultipleUseItemPacket(self, slotIndex):
for i in xrange(player.GetItemCount(slotIndex)):
self.__SendUseItemPacket(slotIndex)
Kod:
def __UseItem(self, slotIndex):
ItemVNum = player.GetItemIndex(slotIndex)
item.SelectItem(ItemVNum)
Kod:
if app.ENABLE_10X_CHEST_OPEN:
if app.IsPressed(app.DIK_LCONTROL) and self.IsTreasureBox(slotIndex):
self.SendMultipleUseItemPacket(slotIndex)
return
- 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)
Benzer konular
- Çözüldü
- Cevaplar
- 2
- Görüntüleme
- 72
Altın Konu
Oyun içi imsakiye & iftar/sahur alarmı
- Cevaplar
- 29
- Görüntüleme
- 3K
