FlasH_Adi

service.h

Dec 17th, 2022 (edited)
1,271
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 12.57 KB | Source Code | 0 0
  1. #ifndef __INC_COMMON_SERVICE_H__
  2. #define __INC_COMMON_SERVICE_H__
  3. ////////////////////////////////////////////////////////////////////////////////
  4. ///////////////////////////// FlasH Work //////////////////////////////////////
  5. //////////////////////////////////////////////////////////////////////////////
  6. /**
  7. * @version 5000 Owsap Productions
  8. **/
  9. #define __SERVICE_OWSAP__
  10. /*
  11.     ***  Defines To DEBUG  ***
  12. */
  13. #define ENABLE_HALLOWEEN_AFFECT
  14. #ifdef __WIN32__
  15. //#define ENABLE_SYSLOG_PACKET_SENT
  16. #define NO_PACKET_INFO_LOG
  17. #endif
  18. #if defined (__FreeBSD__)
  19. //#define ENABLE_CSHIELD
  20. #endif
  21. #define ENABLE_ANTI_LOGIN_BRUTEFORCE
  22. #define ENABLE_ANTI_PACKET_FLOOD
  23. //#define ENABLE_ANTI_EQUIP_FLOOD
  24. #define DISABLE_CHECK_SPEED_HACK
  25. #define ENABLE_DUNGEON_PARTY_FIX
  26. #define ENABLE_KICK_SYNC_FIX_EXYGO
  27. #define ENABLE_SHOOTING_DRAGON_SKILL_FIX
  28. #define ENABLE_PC_SELECT_QUEST_FIX
  29. #define ENABLE_EXP_GROUP_FIX
  30.  
  31. #define NEW_CLIENT_VERSION_CHECK
  32. #define CLIENT_VERSION "1215955213"
  33. ////////////////////////////////////////
  34. #define ENABLE_TMP_RANKS
  35. //#define __TITLE_SYSTEM__
  36.  
  37. //#define __FH_CAPE_W_LEVEL_N_YANG__
  38. #define ENABLE_POLY_SHOP
  39. #define REFINE_SET_VNUM // < block blessing scroll for the refine_vnum column(refine_proto)
  40. //#define ENABLE_ACCOUNT_W_SPECIALCHARS //enable special characters in account names (account.account.login)
  41. #define ENABLE_KILL_NOTICE // Boss kill notice
  42. #define ENABLE_NAME_W_SPECIALCHARS
  43. #define ENABLE_FIX_DESTROY_GUILD_IF_WAR_IS_ACTIVE
  44. #define FIX_SYNC_HACK
  45. //#define   __bet_trade__
  46. // #define ENABLE_INTROSELECT_WEAPON
  47. // #define ENABLE_INTROSELECT_MAPINDEX
  48. #define ENABLE_NEW_STONE_DETACH
  49. #define ENABLE_AFK_MODE_SYSTEM
  50. #define CHAT_SLOW_MODE
  51. #define ENABLE_6_7_BONUS_NEW_SYSTEM
  52.  
  53. //#define ENABLE_BATTLE_PASS
  54. #define NEW_BONUS
  55. #define FAST_EQUIP_WORLDARD
  56. #define ENABLE_MINI_GAME_BLACKJACK
  57.  
  58. #define __FH_FIX_RECIVE10_EXP_STONE__
  59. #define __FH_BUFF_KEEP_AFTER_DEAD__
  60. #define __FH_AFFECT_BUFF_REMOVE__
  61. #define __ITEM_SHINING__
  62. #define __FH_BIOLOG__
  63. #if defined(__FH_BIOLOG__)
  64.     #define MISSION_MAX_BIOLOG 10
  65. #endif
  66. //#define u1x // < Global ranking system
  67. //#define ENABLE_SEARCH_BOX
  68. //#define ENABLE_SEARCH_BOX_GACHA
  69. #define __FH_FISH_AFFECT_BONUS__ // < new fish effect bonus with time
  70. //#define __FH_ALIGN_SYSTEM_CUSTOM__ // < new title align
  71. #define __FH_BLEND_AFFECT_LIMITED__ /// < Extended blend item affect for 1 day and 30 min
  72. #define __FH_AUTH_EXPLOIT_FIX__ /// < Exploit auth
  73. #define ENABLE_ECLIPSE_ELIXIR
  74. #define ENABLE_LEGENDARY_SWITCHERS
  75. #ifdef ENABLE_LEGENDARY_SWITCHERS
  76. #define AVERAGE_DAMAGE_ITEM_VNUM 71530
  77. #define SKILL_DAMAGE_ITEM_VNUM 71531
  78. #define AVERAGE_DAMAGE_LIMIT 70
  79. #define SKILL_DAMAGE_LIMIT 40
  80. #endif
  81. #define ENABLE_SPECIAL_CHAT
  82. #define ENABLE_PM_IN_GLOBAL_CHAT
  83. #define ENABLE_CMD_WARP_IN_DUNGEON
  84. #define ENABLE_AFFECT_POLYMORPH_REMOVE
  85. //#define POLYMORPH_DOG_FIX
  86. #define ENABLE_GM_FLAG_FOR_LOW_WIZARD
  87. #define ENABLE_PICKAXE_RENEWAL      //if the upgrading of the pickaxe will fail, it won't turn back of 1 grade, but just lose 10% mastering points.
  88. #define ENABLE_FISHINGROD_RENEWAL   //if the upgrading of the fishing rod will fail, it won't turn back of 1 grade, but just lose 10% mastering points.
  89.  
  90. // Cube Renewal
  91. #define ENABLE_CUBE_RENEWAL_WORLDARD
  92. #ifdef ENABLE_CUBE_RENEWAL_WORLDARD
  93.     #define ENABLE_CUBE_RENEWAL_COPY_WORLDARD
  94.     #define ENABLE_CUBE_RENEWAL_GEM_WORLDARD
  95. #endif
  96.  
  97. #define __AURA_SYSTEM__
  98. #if defined(__AURA_SYSTEM__)
  99.     //#define __AURA_COSTUME_SYSTEM__ /// < Open window costume when aura is equipped(slot of aura has to be in windows costume)
  100. #endif
  101. #define __ATTR_SWITCH_SYSTEM__ // Attribute switcher (switch bot)
  102. #if defined(__ATTR_SWITCH_SYSTEM__)
  103. #define __ATTR_SWITCH_SPECIAL_INVENTORY__
  104. #endif
  105. /*** Ikarus Offline Shop System ***/
  106. #define __ENABLE_NEW_OFFLINESHOP__
  107. #ifdef __ENABLE_NEW_OFFLINESHOP__
  108.     #define __ENABLE_NEW_OFFLINESHOP_FIX_FLOOD__
  109.     #define ENABLE_NEW_SHOP_IN_CITIES
  110.     #define __ENABLE_CHANGELOOK_SYSTEM__
  111.     #define ENABLE_SOULBIND_SYSTEM /// < block offlineshop soul bind items
  112.     #define __ENABLE_CHEQUE_SYSTEM__
  113.     #define ENABLE_NEW_OFFLINESHOP_LOGS
  114.     //#define __ENABLE_LARGE_DYNAMIC_PACKET__
  115.     //#define ENABLE_OFFLINESHOP_DEBUG
  116. #endif
  117.  
  118. #define CHECK_COOLDOWN_MOUNT
  119. #ifdef CHECK_COOLDOWN_MOUNT
  120. #define COOLDOWN_MOUNT  3 // Tempo, em segundos, que os jogadores devem de esperar para utilizarem a montada
  121. #endif
  122.  
  123. #define ENABLE_CHAMPIONS_LEAGUE
  124. #ifdef ENABLE_CHAMPIONS_LEAGUE
  125.     #define BLOCK_CHAMPIONS_LEAGUE_MOUNT
  126.     // This is a system from mali, all credits are to him:
  127.     #define __BL_KILL_BAR__ // https://github.com/blackdragonx61/Metin2-Kill-Bar
  128. #endif
  129.  
  130. //#define __SLOT_MACHINE_SYSTEM__ /// < Slot Machine System
  131.  
  132. // #define ENABLE_TP_SPEED_CHECK    //enable speed check teleport back
  133.  
  134. ////////////////////////////////////////////////////////////////////////////////
  135. // Currency Related
  136. #define __CHEQUE_SYSTEM__ /// < Cheque currency (Won)
  137. #define __GEM_SYSTEM__ /// < Gem curreny (Gaya)
  138. #if defined(__GEM_SYSTEM__)
  139. #   define __GEM_MARKET_SYSTEM__ /// < Gem market (Gaya)
  140. #endif
  141.  
  142. ////////////////////////////////////////////////////////////////////////////////
  143. // Mini Games Related
  144. #define __MINI_GAME_OKEY__ /// < Mini game rumi (Okey)
  145. #define __MINI_GAME_CATCH_KING__ /// < Mini game catch king
  146.  
  147. ////////////////////////////////////////////////////////////////////////////////
  148. // Dragon Soul Related
  149. #define __DS_GRADE_MYTH__ /// < Dragon soul mythical grade
  150. #define __DS_SET__ /// < Dragon soul table bonus handling
  151. //#define __EXTENDED_DSS_RECHARGE__ /// < Dragon soul extended recharge
  152.  
  153. ////////////////////////////////////////////////////////////////////////////////
  154. // Costume Related
  155. #define __COSTUME_SYSTEM__ /// < Costume System
  156. #define __MOUNT_COSTUME_SYSTEM__ /// < Mount costume
  157. #define __ACCE_COSTUME_SYSTEM__ /// < Acce costume
  158. #define __WEAPON_COSTUME_SYSTEM__ /// < Weapon costume
  159. #define __COSTUME_ATTR_SYSTEM__ /// < Costume attributes
  160. #define __EXTENDED_COSTUME_RECHARGE__ /// < Costume extended recharge
  161. #define __HIDE_COSTUME_SYSTEM__ /// < Hide costume parts
  162.  
  163. ////////////////////////////////////////////////////////////////////////////////
  164. // Inventory & Equipment Related
  165. #define __INVENTORY_4PAGES__ /// < Extended inventory pages (4)
  166. #define __QUIVER_SYSTEM__ /// < Quiver equipement
  167. #define __SWAP_ITEM_SYSTEM__ /// < Swap items between inventory slots
  168. #define __SPECIAL_INVENTORY_SYSTEM__ /// < Special inventory
  169. //#define __SORT_INVENTORY_ITEMS__ /// < Sorts all inventory items
  170.  
  171. ////////////////////////////////////////////////////////////////////////////////
  172. // Player, Guild, Skills Related
  173. #define __WJ_NEW_USER_CARE__ /// < User care
  174. #define __PLAYER_PER_ACCOUNT5__ /// < 5 players per account
  175. #define __WOLFMAN_CHARACTER__ /// < Wolfman character
  176. #if defined(__WOLFMAN_CHARACTER__)
  177. #   define __DISABLE_WOLFMAN_CREATION__ /// < Disable Wolfman creation
  178. #endif
  179. #define __VIEW_TARGET_DECIMAL_HP__ /// < View target decimal hp
  180. #if defined(__VIEW_TARGET_DECIMAL_HP__)
  181. #   define __VIEW_TARGET_PLAYER_HP__ /// < View target player's hp
  182. #endif
  183. //#define __GENDER_ALIGNMENT__ /// < Gender alignment (M, F)
  184. #define __GUILD_LEADER_GRADE_NAME__ /// < Shows guild leader grade name on text tail
  185. #define __7AND8TH_SKILLS__ /// < Passive 7 & 8th skills
  186. #define __IGNORE_LOW_POWER_BUFF__ /// < Ignore low power buff
  187. #define __EXPRESSING_EMOTIONS__ /// < Special actions
  188. #define __SKILL_COLOR_SYSTEM__ /// < Skill color
  189. #define __IMPROVED_LOGOUT_POINTS__ /// < Improved update packet on logout
  190. #define __SKILL_COOLTIME_UPDATE__ /// < Refresh skill cooldown after death
  191. #define __QUEST_RENEWAL__ /// < Quest page renewal
  192. #define __PLAYER_PIN_SYSTEM__ /// < Player PIN Code
  193. #if defined(__PLAYER_PIN_SYSTEM__)
  194. //# define __DISABLE_PIN_SYSTEM__
  195. #endif
  196. #define __RANDOM_STATUS_PER_LEVEL__ /// < Random status per level (classic)
  197. #define __CONQUEROR_LEVEL__ // Conqueror Level
  198.  
  199. ////////////////////////////////////////////////////////////////////////////////
  200. // Item Related
  201. #define __ITEM_DROP_RENEWAL__ /// < Renewal of item drops with color effect
  202. #define __WJ_PICKUP_ITEM_EFFECT__ /// < Pickup item effect
  203. #define __NEW_DROP_DIALOG__ /// < New drop dialog with remove item option
  204. #define __SOUL_BIND_SYSTEM__ /// < Soul bind items
  205. #define __GACHA_SYSTEM__ /// < __BOSS_BOX__ Gacha boxes (x use time)
  206. #define __MAGIC_REDUCTION__ /// < Magic reduction item
  207. #define __STONE_OF_BLESS__ /// < Stone of bless (refinement item)
  208. #define __SOUL_SYSTEM__ /// < Soul items
  209. #define __BLEND_AFFECT__ /// < New blend affects with icon
  210. #define __EXTENDED_BLEND_AFFECT__ /// < Extended blend item affect
  211. #define __ITEM_SOCKET5__ /// < Extend item sockets
  212. #define __ANTI_EXP_RING__ /// < Anti experience ring
  213. #define __ITEM_APPLY4__ /// < Extend item apply
  214.  
  215. ////////////////////////////////////////////////////////////////////////////////
  216. // Game Related
  217. #define __SET_CUSTOM_ATTRIBUTE_SYSTEM__ /*
  218. * Title: Legendary Enchantment (Custom Select Attributes)
  219. * Description: A legendary enchantment item that allows you to select all 5 bonuses.
  220. * Author: Owsap
  221. * Date: 2021.11.24 (YMD)
  222. */
  223. #define __MAILBOX__
  224. /*
  225. * Description: Mail box system
  226. * Author: Blackdragonx61 / Mali
  227. * GitHub: https://github.com/blackdragonx61/Metin2-Official-MailBox
  228. */
  229. #define __CHATTING_WINDOW_RENEWAL__
  230. /*
  231. * Title: Chatting Window Renewal
  232. * Description: Reworked chat window with settings.
  233. * Author: Owsap
  234. */
  235. #define __MESSENGER_GM__ /// < Messenger gm list
  236. #define __MESSENGER_BLOCK_SYSTEM__ /// < Messenger block
  237. #define __MOVE_CHANNEL__ /// < Move game channel
  238. #define __12ZI_NOTICE__ /// < 12ZI mission notice (only mission notice)
  239. #define __WJ_SHOW_MOB_INFO__ /// < Show monsters level & aggressive flag
  240.  
  241. #define __GUILD_DRAGONLAIR_PARTY_SYSTEM__ /// < Guild dragon lair party
  242. #if defined(__GUILD_DRAGONLAIR_PARTY_SYSTEM__)
  243. #   define __GUILD_DRAGONLAIR__ /// < Guild dragon lair dungeon
  244. #   if defined(__GUILD_DRAGONLAIR__)
  245. #       define GUILD_DRAGONLAIR_DESTROY_STATUE_GM
  246. #       define GUILD_DRAGONLAIR_LAZER_EFFECT_75HP
  247. #       define GUILD_DRAGONLAIR_LAZER_EFFECT_50HP
  248. #   endif
  249. #endif
  250. #define __TEMPLE_OCHAO__ /// < Temple of the Ochao dungeon
  251. #define __EREBUS_DUNGEON__ /// < Erebus dungeon
  252. #define __SKILLBOOK_COMB_SYSTEM__ /// < Skill book combination
  253. #define __PET_SYSTEM__ /// < Pet system
  254. #define __PRIVATESHOP_SEARCH_SYSTEM__ /*
  255. * Title: Private Shop Search
  256. * Author: blackdragonx61 / Mali
  257. * GitHub: https://github.com/blackdragonx61/Metin2-Private-Shop-Search
  258. */
  259. #define __SHOPEX_RENEWAL__ /// < ShopEX renewal
  260. #if defined(__SHOPEX_RENEWAL__)
  261. #   define __SHOPEX_TAB4__ /// < ShopEx 4 tabs
  262. #endif
  263. #define __CHANGE_LOOK_SYSTEM__ /// < Change look of item
  264. #if defined(__CHANGE_LOOK_SYSTEM__)
  265. #   define __MOUNT_CHANGE_LOOK__ /// < Change look of mount
  266. #endif
  267.  
  268. #define __DICE_SYSTEM__ /// < New dice system
  269. #define __SEND_TARGET_INFO__ /// < Monster target information
  270. #define __SEND_TARGET_ELEMENT__ /// < Target element
  271. #define __ELEMENT_SYSTEM__ /// < Elements of monsters and pendants
  272. #define __PENDANT_SYSTEM__ /// < Talismans of elements
  273. //#define __DUNGEON_INFO_SYSTEM__ /// < Dungeon informations
  274. #define __EXTENDED_ITEM_AWARD__ /// < Extended item award
  275. #define __MULTI_LANGUAGE_SYSTEM__ /// < Multi language
  276. #define __EXTENDED_WHISPER_DETAILS__ /// < Extended whisper details
  277. #define __REFINE_FAIL_TYPE__ /// < Extended refine fail message
  278. //#define __CHANNEL_STATUS_UPDATE__ /// < Channel player count
  279. #define __9TH_SKILL__ /// < Conqueror of Yohara
  280. #define __WJ_SHOW_PARTY_ON_MINIMAP__ /// < Show party member on atlas
  281. #define __BINARY_ATLAS_MARK_INFO__ /// < Enable atlas mark info from client
  282. #define __PARTY_PROFICY__ /// < Party proficy passive skill
  283. #define __PVP_COUNTDOWN__ /// < PvP duel countdown
  284. #define __EVENT_BANNER_FLAG__ /// < Game event banner flags
  285. #define __ENVIRONMENT__ /// < System environment
  286. #define __MYSHOP_DECO__ /// < Private shop decoration
  287. #define __GLOVE_SYSTEM__ /// < Glove equipement
  288. #define __EXTENDED_RELOAD__ /// < Extended GM reload commands (for drops)
  289.  
  290. //////////////////////////////////////////////////////////////////////////
  291. // Network Related
  292. #define __IMPROVED_HANDSHAKE_PROCESS__
  293. /*
  294. * Description: An Anti-spam solution that limits the amount
  295. *              of handshakes per second and per attempts.
  296. * Date: YMD.2021.09.07
  297. * Author: Owsap, OSP (Owsap Server Protection)
  298. */
  299. #define __IMPROVED_PACKET_ENCRYPTION__ // ÆÐŶ ¾Ïȣȭ °³¼±
  300. #define __FH_FIX_IMPROVED_PACKET_ENCRYPTION__ // ÆÐŶ ¾Ïȣȭ °³¼±
  301. //#define __SEND_SEQUENCE__ // Code for finding sequence bugs
  302. #define __UDP_BLOCK__ /// < UDP Block
  303. //#define __ALLOW_EXTERNAL_PEER__ /// < Allow external peer API
  304. #define __HWID_DETAILS__ /// < HWID
  305.  
  306. #endif // __INC_COMMON_SERVICE_H__
  307.  
Add Comment
Please, Sign In to add comment