• Content Count

  • Joined

  • Last visited

Community Reputation

2 Neutral

About Hi.

  • Rank

Profile Information

  • Gender

Recent Profile Visitors

45 profile views
  1. Hi.

    c++ Extend Time

    Hello, What make this? Extend time for some items, what items you want, i make for costume body & hair. (1.1)Open char_item.cpp and search : case USE_TIME_CHARGE_FIX: (1.2)After this case put this: https://pastebin.com/D6zqRKpg (2.1) Go in DB in ProteReader.cpp and search: static string arSub3[] = { (2.2) At the end of this list we add: "USE_EXTEND_TIME", (3.1) Go in common, open item_length.h and search: enum EUseSubTypes (3.2) In this enum going the last line and put this: USE_EXTEND_TIME, (4.1) Binary, in GameLib -> ItemData.h and search : enum EUseSubTypes (4.2)In this enum going the last line and put this: USE_EXTEND_TIME, (5.1) Userinterface, in PythonItemModule.cpp and search: https://pastebin.com/UzhrRgmt (5.2) After this line put this: https://pastebin.com/PXDUTpDi Done with game/binary source. (1.1) Open root, in uiinventory.py and search: def __DropSrcItemToDestItemInInventory(self, srcItemVID, srcItemSlotPos, dstItemSlotPos): (1.2) On this def put this: https://pastebin.com/iWQJCQuA P.S: If you want Window Dialog make this: (1.3) Search: def __IsUsableItemToItem(self, srcItemVNum, srcSlotPos): (1.4) On this def put this: https://pastebin.com/MKzGwksN (1.5) Search: def __CanUseSrcItemToDstItem(self, srcItemVNum, srcSlotPos, dstSlotPos): (1.6) On this def put this: https://pastebin.com/vQGH4v7Z Done. How to do item: You make a new item with type ITEM_USE and subtype USE_EXTEND_TIME and you put time you want on your item in Value0 (in seconds). Whit this methor you just make a new item for diferent times. About define EXTEND_TIME_COSTUME, you can remove it or you can add it in service.h (I use this define, you can use another). I don't think a screen or a video is needed.