At the request of a forum member I added this.
was made by another community but it is functional.
Bitte melden Sie sich an, um dieses Bild zu sehen.
Code
- open char_item.cpp
- Search:
- if ((item2 = GetItem(DestCell)) && item != item2 && item2->IsStackable() &&
- !IS_SET(item2->GetAntiFlag(), ITEM_ANTIFLAG_STACK) &&
- item2->GetVnum() == item->GetVnum())
- add before:
- #ifdef ENABLE_BLEND_EXTENDED_TIME
- if ((item2 = GetItem(DestCell)) && item->GetType() == ITEM_BLEND && item->GetSubType() == NORMAL_BLEND && item2->GetType() == ITEM_BLEND && item2->GetSubType() == NORMAL_BLEND)
- {
- if (item2->GetSocket(0) != item->GetSocket(0))
- ChatPacket(CHAT_TYPE_INFO, LC_TEXT("They must have the same bonus to combine my reasons."));
- else if (item2->GetSocket(1) != item->GetSocket(1))
- ChatPacket(CHAT_TYPE_INFO, LC_TEXT("They must have the same bonus to combine my reasons."));
- else if (item2->GetSocket(0) == item->GetSocket(0) && item2->GetSocket(1) == item->GetSocket(1))
- {
- if (item2->GetCount() == item->GetCount())
- {
- long time = item2->GetSocket(2) + item->GetSocket(2);
- item->RemoveFromCharacter();
- item2->SetSocket(2, time);
- return true;
- }
- else
- {
- long time = (item2->GetSocket(2)*item2->GetCount()) + (item->GetSocket(2)*item->GetCount());
- item->RemoveFromCharacter();
- item2->SetCount(1);
- item2->SetSocket(2, time);
- return true;
- }
- }
- }
- #endif
- open service.h
- add:
- #define ENABLE_BLEND_EXTENDED_TIME
- open locale_inc.h
- add:
- #define ENABLE_BLEND_EXTENDED_TIME
- open
- pythonapplicationmodule.cpp
- search:
- #ifdef ENABLE_NEW_BLEND
- PyModule_AddIntConstant(poModule, "ENABLE_NEW_BLEND", 1);
- #else
- PyModule_AddIntConstant(poModule, "ENABLE_NEW_BLEND", 0);
- #endif
- add:
- #ifdef ENABLE_BLEND_EXTENDED_TIME
- PyModule_AddIntConstant(poModule, "ENABLE_BLEND_EXTENDED_TIME", 1);
- #else
- PyModule_AddIntConstant(poModule, "ENABLE_BLEND_EXTENDED_TIME", 0);
- #endif
- open uitooltip
- search:
- if minute > 0:
- timeString += str(minute) + localeInfo.TOOLTIP_POTION_MIN
- if second > 0:
- timeString += " " + str(second) + localeInfo.TOOLTIP_POTION_SEC
- self.AppendTextLine(timeString)
- add:
- if app.ENABLE_BLEND_EXTENDED_TIME:
- self.AppendTextLine(localeInfo.BLEND_TIME_TOOLTIP, self.SPECIAL_POSITIVE_COLOR)
- open locale_game.txt
- add:
- BLEND_TIME_TOOLTIP The duration can be combined.