Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 04/16/19 in all areas

  1. M2 Download Center Download Here ( Internal ) Download Here ( GitHub ) Builtin Debug Formatter A simple debug class which is used for output the messages for debugging. The class doesn't need to be called, we've added the functions into built-in functions. The purpose was to ease the work of developers. What's the difference between them? Using the new method: TraceError("str", 1, 4.0, (31, 22), [100, 200], True) Tracef("str", 1, 4.0, (31, 22), [100, 200], True) LogBox("str", 1, 4.0, (31, 22), [100, 200], True) sys_err("str", 1, 4.0, (31, 22), [100, 200], True) # No import needed, is a built-in function, you can call it everywhere. # The function sys_err or TraceError doing the same thing. # Allow to pass unlimited argument-lines, no data types check, can be everything you want: <int, float, string, tuple, list, boolean>. Using the old method: import dbg dbg.TraceError("just_one_string_allowed") dbg.Tracef("just_one_string_allowed") dbg.LogBox("just_one_string_allowed") # Need to import the module dbg every time in every file where you want to use it. # Allow to pass just one argument-line which need to be string, otherwise nothing happen. Built-In-Functions: Built in or inbuilt function are that type of functions which are already defined or created in a program or in programming framework. User don’t need to create these type of functions. User or developer can directly use built in function by only call it. This function is built into an application and can it can be accessed by end-users with simply call it. How-It-Works: TraceError(args) - function prints the given arguments to the text stream file syserr.txt Tracef(args) - function prints the given arguments to the console window (screen) while executable is compiled in a debug mode. LogBox(args) - function prints the given arguments to the dialog box that contains a system icon, a set of buttons, and a brief application-specific message, such as status or error information. sys_err(args) - same as TraceError. How-To-Call-Ex : sys_err('warning', 'error', 'unknown') << 415 17:8:1130 :: warning << 415 17:8:1130 :: error << 415 17:8:1130 :: unknown sys_err(100/2==50, 'set value to {}'.format(25)) << 415 17:6:1083 :: True << 415 17:6:1083 :: set value to 25 sys_err([45, 100], (200, 1500, 32), 42.8, 500, "donald-trump", False) << 415 17:8:1094 :: [45, 100] << 415 17:8:1094 :: (200, 1500, 32) << 415 17:8:1094 :: 42.8 << 415 17:8:1094 :: 500 << 415 17:8:1094 :: donald-trump << 415 17:8:1094 :: False sys_err("what-you-want") << 415 17:8:1072 :: what-you-want GitHub repository: [Hidden Content]
    4 points
  2. The title says it all. - Programming meme - Metin2 meme Please, no memes with people with disabilities. Please use also the spoiler function. I'll start: @martysama0134
    1 point
  3. M2 Download Center Download Here ( Internal ) I edited Async Class to use C++ Standard mutex and thread support AsyncSQL.h ASyncSQL.cpp plus if you have this line in main.cpp inside the main function inside the db core source delete it DBManager.Quit(); this line will close MySQL connections before making sure that all the queries are done (which may not save the last thing a player do before closing the server) plus it will dump a core file since the db core will abort without successful exit! #edited Using std::gurad (which unlock the mutex when the object is destroyed) instead of manually lock and unlock mutex rewrote the Profiler class with std::chrono #Note : Don't just copy and paste .. make a backup , test , then use it Best regards.
    1 point
  4. The original system is from WorldArd, simply someone resold it to you. I would like to help you, but I can't because it is against my policies to do so, I also believe that the rules of the forum are also prohibited. Im sorry
    1 point
  5. I found in source what we needed. In char_item.cpp remove: if (!item && bCell == WEAR_WEAPON) { if (IsAffectFlag(AFF_GWIGUM)) RemoveAffect(SKILL_GWIGEOM); if (IsAffectFlag(AFF_GEOMGYEONG)) RemoveAffect(SKILL_GEOMKYUNG); } Important fix. Add in bool CHARACTER::CanUnequipNow if (item->GetType() == ITEM_WEAPON) { if (IsAffectFlag(AFF_GWIGUM)) RemoveAffect(SKILL_GWIGEOM); if (IsAffectFlag(AFF_GEOMGYEONG)) RemoveAffect(SKILL_GEOMKYUNG); }
    1 point
  6. Hello everybody Today I will show my new system - I decided to release it...It's a very simple system and useful for PServers. What does it do? Well, it gives a random item to a player at every 12 hrs. He must enter the game and click on a gift to get the item. GM can set 5 items in DB and one of them will be gived to the players. You can change time for this system e.g.: Items ID are stored in a new table called "surprisebox". Server_side: FirstReq: If somebody wants to add new conditions to quest, first ask me in pm, then post here. Probably some people would think that it's my mistake...Thanks for understanding! Client_side: #####New: GS-Tool##### Updates: 13.iun.2014. - v1.2 - Added Gift box(17609 item) 3.july.2014 - v1.3 - Quest repaired. Added no-mysql_query version and shows box only when you can use it. Download the button: mega.co.nz - Add it in: (Etc.epk/eix)D:/ymir work/ui Download PHP-CPannel: mega.co.nz Kind regards, Zetsu I offer support, just ask me here or in PM! Soon I will add PHP_CPannel for beginners. I know this system it's very simple and contains some parts where i choose the hard way, but anyway.. i think this system keeps players online. Note: If you want to hide the Box press: LShift+P Sometimes it's annoying xD ...
    1 point
  7. DO NOT rename the quest. You must install it with name: thsgiftdev.quest or it doesn't work. If you renamed it i'll not help you. Good luck! Maybe some of you will understand what's written with red color
    1 point
  8. Why don't you just follow the syserr?
    0 points
×
×
  • 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.