Guest User

Untitled

a guest
Sep 11th, 2026
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.80 KB | None | 0 0
  1. #ifndef __INC_SERVICE_H__
  2. #define __INC_SERVICE_H__
  3. #define ENABLE_AUTODETECT_INTERNAL_IP
  4. #define ENABLE_PROXY_IP
  5. #endif
  6.  
  7.  
  8. /*
  9. -----------------------============================-----------------------
  10. Server Defines
  11. -----------------------============================-----------------------
  12. */
  13.  
  14.  
  15. #define ENABLE_HEAVY_FIXES // @ All available fixes for ymir sources
  16. #define ENABLE_SERVERSIDE_SECURITY // @ Server-side anti-cheat: per-target hit rate limit (speed/BowHack) + teleport/WH distance check on every PC hit, blocked-hit counter written to hack_log on logout. Tunables in ServerConfig.h
  17. #define ENABLE_PRELOAD_ENTITIES // @ Preload a map's unique mob races on Entergame to kill the ~200ms first-meeting freeze
  18. #define ENABLE_SERVER_OPTIMIZATIONS // @ Inventory slots moved off CHARACTER into a heap PlayerSlotT allocated only for players (mobs no longer carry them)
  19. #define ENABLE_EXTEND_ITEM_AWARD // @ item_award (webshop delivery) hardening: item attributes, addon-type/skillbook/socket/count/blend sanity checks
  20. #define USE_ITEM_AWARD_CHECK_ATTRIBUTES // @ clamp webshop-delivered bonuses to the item_attr/item_attr_rare lv1-lv5 range for that item's attribute set, drop duplicates and bonuses illegal on that item type
  21. #define ENABLE_MULTI_FARMBLOCK // @ Per-machine cap on how many characters may collect loot at once (client and server MUST match: TPacketCGLogin2 grows a mac field). Cap in ServerConfig.h
  22. #define ENABLE_REGEN_RT // @ REAL TIME - Wall clock boss regen from real_time_regen.json / TXT/real_time_regen.txt: every N minutes, or at fixed hours. Tunables in ServerConfig.h
  23. #define ENABLE_PARTY_POSITION // @ Party member marks on the atlas even when out of view: 3s server tick sends every member x/y/rot (client and server MUST match: new packet). The client define has the SAME name
  24. #define ENABLE_NEW_EMOTIONS // @ 26 extra emotions (dance7-9, selfie, doze, exercise, pushup, ...).
  25. #define ENABLE_INVENTORY_PAGES // @ Inventory grows from 2 to INVENTORY_PAGE_COUNT (ServerConfig.h) The client define has the SAME name
  26. #define ENABLE_PVP_BALANCE_IMPROVING // @ Gyeonggong becomes a 1s damage aura (needs skill_proto 49 szPointPoly2 + dwSplashRange, see sql/migrations) + stun duration clamp. The client define has the SAME name
  27. #define ENABLE_PARTY_PROFICY // @ Party Proficiency (skill 133): the leader takes a share of every member role bonus, scaled by leadership tier + skill level. Needs skill_proto 133 + item_proto 50338-50340. The client define has the SAME name
  28. #define ENABLE_GUILD_RENEWAL_SHOW // @ Guild name on the text tail: rank prefix (Leader - Guild) + colour by ladder rank (top 1/2/3). Client and server MUST match: packet_char_additional_info, packet_update_char and packet_guild_name grow. The client define has the SAME name
  29. #define ENABLE_MAINTENANCE_SYSTEM // @ Maintenance system w/ blocking access to non-gm players
  30. #define ENABLE_MULTILANGUAGE_SYSTEM // @ In-game language switch, per-player country code, country/empire flags in chat
  31.  
  32.  
  33.  
  34. /*
  35. -----------------------============================-----------------------
  36.  
  37. /*
  38. -----------------------============================-----------------------
  39. Basic Systems Defines
  40. -----------------------============================-----------------------
  41. */
  42.  
  43. #define ENABLE_MARKING_SYSTEM // @ Sends the source inventory cell of an item added to a trade so the client can mark it (client and server MUST match: packet_exchange grows)
  44. #define ENABLE_CHAT_SETTINGS // @ Multi-tab chat w/ per-tab filter profiles + exp/item/money chat types (client and server MUST match: the chat type enum is on the wire)
  45. #define ENABLE_GLOBAL_CHAT // @ Kingdoms can coordinate: shouts reach every empire (not just the shouters own) and the cross-empire text scrambling is off for map chat AND whisper, so the Language skills / Ring of Language stop mattering. The name in a chat line becomes a whisper hyperlink. Flags on the line come from ENABLE_MULTILANGUAGE_SYSTEM. Server only; the client python branch is inert without it
  46. #define ENABLE_QUEST_RENEWAL // @ Categorised quest page: server tags each quest with a category from questcategory.txt + a per-player seen flag (client and server MUST match: packet_quest_info grows)
  47. #define ENABLE_MOVE_CHANNEL // @ In-game channel switch (/change_channel). game and db MUST be rebuilt together: TMapLocation grows a channel byte
  48. #define ENABLE_OPTION_UNSTUCK // @ Unstuck button in the system menu: teleports a player off a blocked tile, or to town. Client side is python only. Tunables in ServerConfig.h
  49. #define ENABLE_TASKBAR_ANTIEXP // @ Taskbar toggle that blocks all exp gain (/anti_exp), state kept as a persistent affect (client and server MUST match). Cooldown in ServerConfig.h
  50. #define ENABLE_RESTART_DIALOG_TIMER // @ Countdown on the death/restart dialog: greys the restart buttons until the server accepts them and shows the auto revive timer (client and server MUST match: packet_dead grows). Tunables in ServerConfig.h
  51. #define ENABLE_TARGET_INFO // @ "?" on the target board: mob stats + its real drop table with a per-item chance and a drop-eligibility line (client and server MUST match: new packet). Cooldown in ServerConfig.h
  52. #define ENABLE_TARGET_HP_SYSTEM // @ Exact hp numbers on the target board, and other players get an hp bar at all (stock hides it) (client and server MUST match: packet_target grows). The client define has the SAME name
  53. #define ENABLE_SPECIAL_INVENTORY // @ Four extra type-sorted inventories (skill books / upgrade materials / stones / chests), SPECIAL_INVENTORY_PAGE_COUNT pages of 45 each, appended after the belt (client and server MUST match). The client define has the SAME name
  54. #define __PET_SYSTEM__
  55.  
  56.  
  57.  
  58.  
Add Comment
Please, Sign In to add comment