Jump to content
metin2dev

Johnny69

Members
  • Content count

    24
  • Joined

  • Last visited

Johnny69 last won the day on September 9

Johnny69 had the most liked content!

Community Reputation

21 Good

1 Follower

About Johnny69

  • Rank
    Neutral
  • Birthday 08/06/1995

Profile Information

  • Gender
    Male
  • Location
    France
  1. open [I PAY] Arial font problem

    Just change PichFont from DEFAULT_PITCH to VARIABLE_PITCH: DEFAULT_PITCH: The default pitch, which is implementation-dependent. FIXED_PITCH: A fixed pitch, which means that all the characters in the font occupy the same width when output in a string. VARIABLE_PITCH: A variable pitch, which means that the characters in the font occupy widths that are proportional to the actual widths of the glyphs when output in a string. For example, the "i" and space characters usually have much smaller widths than a "W" or "O" character. https://msdn.microsoft.com/en-us/library/cc250403.aspx
  2. open Notify emotions message! [PAY 5 EURO]

    Let me understand. I'm stupid because I tried to help you and you are not because didn't know to include a file ?
  3. open Notify emotions message! [PAY 5 EURO]

    # You don't deserve it
  4. c++ New Item Type = ITEM_GACHA

    Thanks @xP3NG3Rx. I did not make those changes because in official server GACHA box is not stackable.
  5. Very good code. Thanks.
  6. 9 hours ago, Johnny69 said:

    I found this in my recycle bin (code is shit and is from a public source).

    https://mega.nz/#!s9UUxRDB!9Umk1g6nqZXwpKhLA15VU_SuyCJATuEDn6pjWu7JxaA

    does this system work?

  7. open Search Guild System!

    I found this in my recycle bin (code is shit and is from a public source). https://mega.nz/#!s9UUxRDB!9Umk1g6nqZXwpKhLA15VU_SuyCJATuEDn6pjWu7JxaA
  8. New class used in official servers for minigameokey (move cards). Code can be improved, who have a better code please make a new topic. No one is forced to use my code. https://mega.nz/#!NpMR2AYI!2xgiiBn3dGLvxcnTv2oVH2RnqvL8DRZGAEtY_tdYJNY Screen (Shang) :
  9. open game.core

    //Replace: p.bHPPercent = MINMAX(0, (GetHP() * 100) / GetMaxHP(), 100); //With: p.bHPPercent = GetMaxHP() <= 0 ? 0 : MINMAX(0, (GetHP() * 100) / GetMaxHP(), 100);
  10. c++ New Item Type = ITEM_GACHA

    Anyone who has problems make a topic here and give me link in PM or just send me PM with problem and I help you. Don't make spam with problems here.
  11. c++ New Item Type = ITEM_GACHA

    Sorry , I hurried and forgot. I have other types between BELT and this type and I don't use define in ProtoReader.cpp / ItemCSVReader.cpp. I edited.
  12. This item type is the new type from official servers used for battle boxes and recently for boss chest and fish event boxes. You can open boxes few times (set in item_proto). 1. You can use macro ENABLE_BATTLE_FIELD because was added with battle zone. 2. Number of openings is in item_proto -> LimitValue1 (Like official) Let's start: Server Source Part: #db\src\ProtoReader.cpp (same steps in ItemCSVReader.cpp) //Search: "ITEM_BELT", //Add after: "ITEM_GACHA" //Search: in array string* arSubType 0, //34 //Add after: 0, //37 //Search: in array int arNumberOfSubtype 0, //34 //Add after: 0, //37 #common\item_length.h //Search: ITEM_BELT, //Add after: ITEM_GACHA, #game\src\item_manager.cpp //Search: if (id == 0) //Add before: (be careful , before) if(item->GetType() == ITEM_GACHA) item->SetSocket(0, item->GetLimitValue(1)); #game\src\char_item.cpp //Search: (CHARACTER::UseItemEx) case ITEM_EXTRACT: ... break; //Add after: case ITEM_GACHA: { DWORD dwBoxVnum = item->GetVnum(); std::vector <DWORD> dwVnums; std::vector <DWORD> dwCounts; std::vector <LPITEM> item_gets(0); int count = 0; if (GiveItemFromSpecialItemGroup(dwBoxVnum, dwVnums, dwCounts, item_gets, count)) { if(item->GetSocket(0) > 1) item->SetSocket(0, item->GetSocket(0) - 1); else ITEM_MANAGER::instance().RemoveItem(item, "REMOVE (ITEM_GACHA)"); } } break; Client Source Part: #GameLib\ItemData.h //Search: ITEM_TYPE_BELT, //Add after: ITEM_TYPE_GACHA, #UserInterface\PythonItemModule.cpp //Search: PyModule_AddIntConstant(poModule, "ITEM_TYPE_BELT", CItemData::ITEM_TYPE_BELT); //Add after: PyModule_AddIntConstant(poModule, "ITEM_TYPE_GACHA", CItemData::ITEM_TYPE_GACHA); Client root part: #root\uitooltip.py #Search: elif item.ITEM_TYPE_FISH == itemType: if 0 != metinSlot: self.__AppendFishInfo(metinSlot[0]) #Add after: ### Gacha = Battle Shop Chest ### elif item.ITEM_TYPE_GACHA == itemType: if 0 != metinSlot: if self.isShopItem: restUsableCount = int(item.GetLimit(1)[1]) else: restUsableCount = int(metinSlot[0]) self.AppendSpace(5) self.AppendTextLine(localeInfo.TOOLTIP_REST_USABLE_COUNT % (restUsableCount), grp.GenerateColor(0.5, 1.0, 0.3, 1.0)) Client locale part: #locale_game.txt #Add: TOOLTIP_REST_USABLE_COUNT Left: %d Server Item_proto example: 25111 fish 보상상자 ITEM_GACHA 0 1 NONE NONE NONE NONE 0 0 0 0 0 LIMIT_NONE 0 LIMIT_NONE 1 APPLY_NONE 0 APPLY_NONE 0 APPLY_NONE 0 0 0 0 0 0 0 0 0 0 12 25112 fish 보상상자 ITEM_GACHA 0 1 NONE NONE NONE NONE 0 0 0 0 0 LIMIT_NONE 0 LIMIT_NONE 2 APPLY_NONE 0 APPLY_NONE 0 APPLY_NONE 0 0 0 0 0 0 0 0 0 0 12 25113 fish 보상상자 ITEM_GACHA 0 1 NONE NONE NONE NONE 0 0 0 0 0 LIMIT_NONE 0 LIMIT_NONE 3 APPLY_NONE 0 APPLY_NONE 0 APPLY_NONE 0 0 0 0 0 0 0 0 0 0 12
  13. open lycan skill error !!

    I think you are using marty source.(there i saw this problem) So let's explain: Active slot effect is set when skill affect is set. PythonPlayerSkill.cpp -> SetAffect In SetAffect function is called AffectIndexToSkillIndex to get skill index by affect type. (passing by reference) AffectIndexToSkillIndex search values in a vector and skill 174 (red possession) is not in that vector. Fix: Go in PythonPlayer.cpp , search: m_kMap_dwAffectIndexToSkillIndex.insert(make_pair(int(CInstanceBase::AFFECT_HEUKSIN), 79)); Add after: #ifdef ENABLE_WOLFMAN_CHARACTER m_kMap_dwAffectIndexToSkillIndex.insert(make_pair(int(CInstanceBase::AFFECT_RED_POSSESSION), 174)); #endif
  14. [FIX]uiQuest SetEvent bug for some people

    That "bug" is because the quest window is not destroyed properly. In interfaceModule.py search: eachQuestWindow.CloseSelf() Replace with: eachQuestWindow.OnPressEscapeKey() How to test that "bug". Press logout button and in those 3 seconds open a quest, when you login again you can't click in quest area but quest is not there.
  15. open EterManager

    You change windows configuration from 32bits to 64bits and that dll not work on 64bits. Here you have a version which work on 64 bits: https://mega.nz/#!x0020IKB!MCK5bXv6K3ep8dSg8rgy0LD2wbyiWj__WPL4vCv8QiI
×