- CommonDefines.h veya service.h içerisine ekleyiniz.
- #define ENABLE_WEAPON_KILL_SYSTEM
- char.cpp içerisinde
- }
- void CHARACTER::Create
- //Aratın
- #ifdef ENABLE_WEAPON_KILL_SYSTEM
- MaraKillList.clear();
- #endif
- // Üzerine ekleyiniz.
- char.h içerisinde
- bool DragonSoul_RefineWindow_CanRefine();
- //Aratın
- #ifdef ENABLE_WEAPON_KILL_SYSTEM
- public:
- std::map<DWORD, DWORD> MaraKillList;
- #endif
- //Altına ekleyin.
- char_battle.cpp içerisinde
- //Aratın
- ClearAffect(true);
- if (pkKiller && IsPC())
- {
- if (!pkKiller->IsPC())
- {
- if (!isForked)
- {
- sys_log(1, "DEAD: %s %p WITH PENALTY", GetName(), this);
- SET_BIT(m_pointsInstant.instant_flag, INSTANT_FLAG_DEATH_PENALTY);
- LogManager::instance().CharLog(this, pkKiller->GetRaceNum(), "DEAD_BY_NPC", pkKiller->GetName());
- }
- }
- else
- {
- // Altına Ekle
- #ifdef ENABLE_WEAPON_KILL_SYSTEM
- LPITEM item = pkKiller->GetWear(WEAR_WEAPON);
- if (item)
- {
- if (item->GetType() == ITEM_WEAPON)
- {
- std::map<DWORD, DWORD>::iterator MaraKillerIterator;
- MaraKillerIterator = pkKiller->MaraKillList.find(GetPlayerID());
- bool MaraReturn = true;
- if (MaraKillerIterator != pkKiller->MaraKillList.end())
- if (MaraKillerIterator->second + (60 * 60) > time(0))
- MaraReturn = false;
- if (MaraReturn)
- {
- const TPlayerItemAttribute& attrItem = item->GetAttribute(7);
- item->SetForceAttribute(7, 0, attrItem.sValue + 1);
- pkKiller->MaraKillList[GetPlayerID()] = time(0);
- }
- else
- {
- pkKiller->ChatPacket(CHAT_TYPE_INFO, LC_TEXT("Bu rakip'den les puani zaten aldin 1 saat beklemelisin."));
- }
- }
- }
- #endif
- locale_string.txt içerisine ekle
- "Bu rakip'den les puani zaten aldin 1 saat beklemelisin.";
- "Bu rakip'den leş puanı zaten aldın 1 saat beklemelisin.";
- Locale_inc.h içerisine
- #define ENABLE_WEAPON_KILL_SYSTEM
- // Ekle
- PythonApplicationModule.cpp içerisine
- #ifdef ENABLE_WEAPON_KILL_SYSTEM
- PyModule_AddIntConstant(poModule, "ENABLE_WEAPON_KILL_SYSTEM", 1);
- #else
- PyModule_AddIntConstant(poModule, "ENABLE_WEAPON_KILL_SYSTEM", 0);
- #endif
- // Ekle
- uitooltip.py içerisinde
- ## ºÎäÀÏ °æ¿ì ¸¶°øÀ» ¸ÕÀú Ç¥½ÃÇÑ´Ù.
- if item.WEAPON_FAN == itemSubType:
- self.__AppendMagicAttackInfo()
- self.__AppendAttackPowerInfo()
- else:
- self.__AppendAttackPowerInfo()
- self.__AppendMagicAttackInfo()
- self.__AppendAffectInformation()
- self.__AppendAttributeInformation(attrSlot)
- // Arat
- if app.ENABLE_WEAPON_KILL_SYSTEM:
- if item.ITEM_TYPE_WEAPON == item.GetItemType() and not item.WEAPON_ARROW == item.GetItemSubType() and not item.WEAPON_QUIVER == item.GetItemSubType():
- self.AppendKill(attrSlot)
- // Altına ekle
- def __DragonSoulInfoString (self, dwVnum):
- // Arat
- if app.ENABLE_WEAPON_KILL_SYSTEM:
- def AppendKill(self, attrSlot):
- if 0 != attrSlot:
- self.AppendTextLine(localeInfo.lessystem % (attrSlot[7][1]), 0xffFF0000)
- // Üzerine ekle
- locale_game.txt içerisine
- lessystem = [Leş Sayısı: %s]
- // Ekle