if (item->GetID() == pAffect->dwFlag) { RemoveAffect( pAffect ); item->Lock(false); item->SetSocket(0, false); } else { LPITEM old = FindItemByID( pAffect->dwFlag ); if (NULL != old) { old->Lock(false); old->SetSocket(0, false); } RemoveAffect( pAffect ); EPointTypes bonus = POINT_NONE; if (true == isSpecialPotion) { if (type == AFFECT_AUTO_HP_RECOVERY) { bonus = POINT_MAX_HP_PCT; } else if (type == AFFECT_AUTO_SP_RECOVERY) { bonus = POINT_MAX_SP_PCT; } } AddAffect( type, bonus, 4, item->GetID(), INFINITE_AFFECT_DURATION, 0, true, false); item->Lock(true); item->SetSocket(0, true); AutoRecoveryItemProcess( type ); AddAffect(AFFECT_ITEM_BLOCK, POINT_NONE, 0, 0, 5, 0, true, false); } } } break; } break; // arat //Üstteki kodun bunun altına ekle } break; #define ENABLE_SEBOCUUU // ////////////////////////////////////////////////////////////////////////// #ifdef ENABLE_SEBOCUUU // Şebnemler case 71180: case 71181: case 71182: case 71183: case 71184: case 71185: case 71186: case 71187: case 71188: case 71189: case 71190: case 71191: case 71192: case 27102: case 27105: /// ejdarha tanrılar case 71027: case 71028: case 71029: case 71030: case 71044: case 71045: /// ejdarha tanrılar ///yedek case 71193: case 71194: case 71195: case 71196: // Ekli Olan Şebnemler case 50821: case 50822: case 50823: case 50824: case 50825: case 50826: // Ekli Olan Şebnemler { CAffect * pAffect = FindAffect(item->GetValue(0), aApplyInfo[item->GetValue(1)].bPointType); if(NULL == pAffect) { // if (FindAffect(AFFECT_ITEM_BLOCK)) // { // ChatPacket(CHAT_TYPE_INFO, ("Bunu yapabilmek için 5 saniye beklemelisin!")); // return false; // } AddAffect(item->GetValue(0), aApplyInfo[item->GetValue(1)].bPointType, item->GetValue(2), item->GetValue(3), INFINITE_AFFECT_DURATION, 0, false); item->Lock(true); item->SetSocket(0, true); } else { RemoveAffect(pAffect); item->Lock(false); item->SetSocket(0, false); } } break; #endif //////////////////////////////////////////////////////////////////////////////////////////////// #ifdef ENABLE_SEBOCUUU PyModule_AddIntConstant(poModule, "ENABLE_SEBOCUUU", 1); #else PyModule_AddIntConstant(poModule, "ENABLE_SEBOCUUU", 0); #endif //////////////////////////////////////////////////////////////////////////////////////////////// // constinfo.py // en alta ekle if app.ENABLE_SEBOCUUU: def AZURA_NEW_POTION(itemVnum): if itemVnum >= 71180 and itemVnum <= 71187: return 1 elif itemVnum >= 71027 and itemVnum <= 71030: return 1 elif itemVnum >= 71044 and itemVnum <= 71045: return 1 elif itemVnum >= 50821 and itemVnum <= 50826: return 1 return 0 def IS_AUTO_POTION(itemVnum): //arat // Kod blogunu komple degistir def IS_AUTO_POTION(itemVnum): return IS_AUTO_POTION_HP(itemVnum) or IS_AUTO_POTION_SP(itemVnum) or AZURA_NEW_POTION(itemVnum) uinventory.py if isActivated: potionType = 0; if constInfo.IS_AUTO_POTION_HP(itemVnum): //arat Kod blogunun altına ekle if app.ENABLE_SEBOCUUU: if constInfo.AZURA_NEW_POTION(itemVnum): metinSocket = [player.GetItemMetinSocket(slotNumber, j) for j in xrange(player.METIN_SOCKET_MAX_NUM)] if slotNumber >= player.INVENTORY_PAGE_SIZE * self.inventoryPageIndex: slotNumber -= player.INVENTORY_PAGE_SIZE * self.inventoryPageIndex isActivated = 0 != metinSocket[0] if isActivated: self.wndItem.ActivateSlot(slotNumber, (36.00 / 255.0), (222.00 / 255.0), (3.00 / 255.0), 1.0)// Rengi Yeşil else: self.wndItem.DeactivateSlot(slotNumber) // Uitoltip.py elif constInfo.IS_AUTO_POTION(itemVnum):/// arat kod blogunun altına ekle if app.ENABLE_SEBOCUUU and constInfo.AZURA_NEW_POTION(itemVnum): self.AppendSpace(5) self.AppendTextLine(localeInfo.ITEM_PERMANENT, self.POSITIVE_COLOR)