Jump to content

Mali

Honorable Member
  • Posts

    918
  • Joined

  • Days Won

    876
  • Feedback

    100%

Everything posted by Mali

  1. Thanks penger. I am not at home. Topic will be updated in few days Edit:Updated
  2. And you have a developer tag.? I love this site
  3. So many PServer's packs unpacked with "pack" method. Example What is the pack method?: Game is using pack method when load .py, .pyc and .txt files. Just look at the system.py Why Simple? Because we'll just change the method name. Gf did like this little changes example: playerm2g2, chatm2g, m2netm2g .... Go UserInteface/PythonPackModule.cpp and find: Py_InitModule("pack", s_methods); And change "pack" whatever you want. I'm gonna say "examplename" Go root/system.py and find: import pack Change like this; import examplename as pack That's all. That was the simplest idea I could think of.
  4. I think if we close warnings just for mss files, it will be better: if (strFileName.find("mss") == std::string::npos) TraceError("CANNOT_FIND_PACK_FILE [%s]", strFileName.c_str());
  5. just write packnames without eix or epk
  6. UserInterface.cpp find: bool PackInitialize(const char * c_pszFolder) change: bool PackInitialize(const char * c_pszFolder) { if (_access(c_pszFolder, 0)) return true; std::string stFolder = c_pszFolder + std::string("/"); CTextFileLoader::SetCacheMode(); #if defined(USE_RELATIVE_PATH) CEterPackManager::Instance().SetRelativePathMode(); #endif CEterPackManager::Instance().SetCacheMode(); CEterPackManager::Instance().SetSearchMode(true); CSoundData::SetPackMode(); std::vector<std::string> packlist { "icon", "locale", "uiscript", "textureset", "Map", "Property", "Sound", "Terrain", "examplepack", "ymir_pack", }; for (const auto & pack : packlist) CEterPackManager::Instance().RegisterPack((stFolder + pack).c_str(), "*"); CEterPackManager::Instance().RegisterRootPack((stFolder + std::string("root")).c_str()); return true; }
  7. //Find at char_item.cpp if (true == item->IsEquipped()) { ///Add if (item->GetCount() > 1) { AutoGiveItem(item->GetVnum(), item->GetCount() - 1, -1, false); item->SetCount(1); } For stackable rings are using USE_AFFECT. I think you should use this
  8. Yes client side can make but this is the easiest way. Why do we do the hardest? You don't like packets but you like longest and weirds codes?
  9. wtf? Where do you get times?? It's not same everytime. If you open exchange or anything it will change
  10. M2 Download Center Download Here ( Internal ) Download Here ( GitHub )
  11. M2 Download Center Download Here ( Internal ) Download Here ( GitHub ) Idea is from 2014 but I think this is good feature like discord. For open gui your name must start with "[" like [GM].
  12. Look at your old locale and find GetVariableName and add to new file
  13. I made a tutorial for this. You don't need to install freebsd packages or etc. And I added a example source with c++2a support
  14. actually I used structed bindings too. c++17 and greater required. But I created a tutorial for c++2a:
  15. New meme confirmed. ?Actually little bit scary. Escape from the hell?
  16. M2 Download Center Download Here ( Internal ) Download Here ( GitHub )
  17. M2 Download Center Download Here ( Internal ) Download Here ( GitHub ) Somebody asked me about auto night and day change(server time). I coded simple func and added few features. •Auto night and day change: •Auto snow mode at winter: •Reminder for special days: •Announcement every hour You can add new features like this.
×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.