Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifndef __INC_COMMON_SERVICE_H__
- #define __INC_COMMON_SERVICE_H__
- ////////////////////////////////////////////////////////////////////////////////
- ///////////////////////////// FlasH Work //////////////////////////////////////
- //////////////////////////////////////////////////////////////////////////////
- /**
- * @version 5000 Owsap Productions
- **/
- #define __SERVICE_OWSAP__
- /*
- *** Defines To DEBUG ***
- */
- #define ENABLE_HALLOWEEN_AFFECT
- #ifdef __WIN32__
- //#define ENABLE_SYSLOG_PACKET_SENT
- #define NO_PACKET_INFO_LOG
- #endif
- #if defined (__FreeBSD__)
- //#define ENABLE_CSHIELD
- #endif
- #define ENABLE_ANTI_LOGIN_BRUTEFORCE
- #define ENABLE_ANTI_PACKET_FLOOD
- //#define ENABLE_ANTI_EQUIP_FLOOD
- #define DISABLE_CHECK_SPEED_HACK
- #define ENABLE_DUNGEON_PARTY_FIX
- #define ENABLE_KICK_SYNC_FIX_EXYGO
- #define ENABLE_SHOOTING_DRAGON_SKILL_FIX
- #define ENABLE_PC_SELECT_QUEST_FIX
- #define ENABLE_EXP_GROUP_FIX
- #define NEW_CLIENT_VERSION_CHECK
- #define CLIENT_VERSION "1215955213"
- ////////////////////////////////////////
- #define ENABLE_TMP_RANKS
- //#define __TITLE_SYSTEM__
- //#define __FH_CAPE_W_LEVEL_N_YANG__
- #define ENABLE_POLY_SHOP
- #define REFINE_SET_VNUM // < block blessing scroll for the refine_vnum column(refine_proto)
- //#define ENABLE_ACCOUNT_W_SPECIALCHARS //enable special characters in account names (account.account.login)
- #define ENABLE_KILL_NOTICE // Boss kill notice
- #define ENABLE_NAME_W_SPECIALCHARS
- #define ENABLE_FIX_DESTROY_GUILD_IF_WAR_IS_ACTIVE
- #define FIX_SYNC_HACK
- //#define __bet_trade__
- // #define ENABLE_INTROSELECT_WEAPON
- // #define ENABLE_INTROSELECT_MAPINDEX
- #define ENABLE_NEW_STONE_DETACH
- #define ENABLE_AFK_MODE_SYSTEM
- #define CHAT_SLOW_MODE
- #define ENABLE_6_7_BONUS_NEW_SYSTEM
- //#define ENABLE_BATTLE_PASS
- #define NEW_BONUS
- #define FAST_EQUIP_WORLDARD
- #define ENABLE_MINI_GAME_BLACKJACK
- #define __FH_FIX_RECIVE10_EXP_STONE__
- #define __FH_BUFF_KEEP_AFTER_DEAD__
- #define __FH_AFFECT_BUFF_REMOVE__
- #define __ITEM_SHINING__
- #define __FH_BIOLOG__
- #if defined(__FH_BIOLOG__)
- #define MISSION_MAX_BIOLOG 10
- #endif
- //#define u1x // < Global ranking system
- //#define ENABLE_SEARCH_BOX
- //#define ENABLE_SEARCH_BOX_GACHA
- #define __FH_FISH_AFFECT_BONUS__ // < new fish effect bonus with time
- //#define __FH_ALIGN_SYSTEM_CUSTOM__ // < new title align
- #define __FH_BLEND_AFFECT_LIMITED__ /// < Extended blend item affect for 1 day and 30 min
- #define __FH_AUTH_EXPLOIT_FIX__ /// < Exploit auth
- #define ENABLE_ECLIPSE_ELIXIR
- #define ENABLE_LEGENDARY_SWITCHERS
- #ifdef ENABLE_LEGENDARY_SWITCHERS
- #define AVERAGE_DAMAGE_ITEM_VNUM 71530
- #define SKILL_DAMAGE_ITEM_VNUM 71531
- #define AVERAGE_DAMAGE_LIMIT 70
- #define SKILL_DAMAGE_LIMIT 40
- #endif
- #define ENABLE_SPECIAL_CHAT
- #define ENABLE_PM_IN_GLOBAL_CHAT
- #define ENABLE_CMD_WARP_IN_DUNGEON
- #define ENABLE_AFFECT_POLYMORPH_REMOVE
- //#define POLYMORPH_DOG_FIX
- #define ENABLE_GM_FLAG_FOR_LOW_WIZARD
- #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.
- #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.
- // Cube Renewal
- #define ENABLE_CUBE_RENEWAL_WORLDARD
- #ifdef ENABLE_CUBE_RENEWAL_WORLDARD
- #define ENABLE_CUBE_RENEWAL_COPY_WORLDARD
- #define ENABLE_CUBE_RENEWAL_GEM_WORLDARD
- #endif
- #define __AURA_SYSTEM__
- #if defined(__AURA_SYSTEM__)
- //#define __AURA_COSTUME_SYSTEM__ /// < Open window costume when aura is equipped(slot of aura has to be in windows costume)
- #endif
- #define __ATTR_SWITCH_SYSTEM__ // Attribute switcher (switch bot)
- #if defined(__ATTR_SWITCH_SYSTEM__)
- #define __ATTR_SWITCH_SPECIAL_INVENTORY__
- #endif
- /*** Ikarus Offline Shop System ***/
- #define __ENABLE_NEW_OFFLINESHOP__
- #ifdef __ENABLE_NEW_OFFLINESHOP__
- #define __ENABLE_NEW_OFFLINESHOP_FIX_FLOOD__
- #define ENABLE_NEW_SHOP_IN_CITIES
- #define __ENABLE_CHANGELOOK_SYSTEM__
- #define ENABLE_SOULBIND_SYSTEM /// < block offlineshop soul bind items
- #define __ENABLE_CHEQUE_SYSTEM__
- #define ENABLE_NEW_OFFLINESHOP_LOGS
- //#define __ENABLE_LARGE_DYNAMIC_PACKET__
- //#define ENABLE_OFFLINESHOP_DEBUG
- #endif
- #define CHECK_COOLDOWN_MOUNT
- #ifdef CHECK_COOLDOWN_MOUNT
- #define COOLDOWN_MOUNT 3 // Tempo, em segundos, que os jogadores devem de esperar para utilizarem a montada
- #endif
- #define ENABLE_CHAMPIONS_LEAGUE
- #ifdef ENABLE_CHAMPIONS_LEAGUE
- #define BLOCK_CHAMPIONS_LEAGUE_MOUNT
- // This is a system from mali, all credits are to him:
- #define __BL_KILL_BAR__ // https://github.com/blackdragonx61/Metin2-Kill-Bar
- #endif
- //#define __SLOT_MACHINE_SYSTEM__ /// < Slot Machine System
- // #define ENABLE_TP_SPEED_CHECK //enable speed check teleport back
- ////////////////////////////////////////////////////////////////////////////////
- // Currency Related
- #define __CHEQUE_SYSTEM__ /// < Cheque currency (Won)
- #define __GEM_SYSTEM__ /// < Gem curreny (Gaya)
- #if defined(__GEM_SYSTEM__)
- # define __GEM_MARKET_SYSTEM__ /// < Gem market (Gaya)
- #endif
- ////////////////////////////////////////////////////////////////////////////////
- // Mini Games Related
- #define __MINI_GAME_OKEY__ /// < Mini game rumi (Okey)
- #define __MINI_GAME_CATCH_KING__ /// < Mini game catch king
- ////////////////////////////////////////////////////////////////////////////////
- // Dragon Soul Related
- #define __DS_GRADE_MYTH__ /// < Dragon soul mythical grade
- #define __DS_SET__ /// < Dragon soul table bonus handling
- //#define __EXTENDED_DSS_RECHARGE__ /// < Dragon soul extended recharge
- ////////////////////////////////////////////////////////////////////////////////
- // Costume Related
- #define __COSTUME_SYSTEM__ /// < Costume System
- #define __MOUNT_COSTUME_SYSTEM__ /// < Mount costume
- #define __ACCE_COSTUME_SYSTEM__ /// < Acce costume
- #define __WEAPON_COSTUME_SYSTEM__ /// < Weapon costume
- #define __COSTUME_ATTR_SYSTEM__ /// < Costume attributes
- #define __EXTENDED_COSTUME_RECHARGE__ /// < Costume extended recharge
- #define __HIDE_COSTUME_SYSTEM__ /// < Hide costume parts
- ////////////////////////////////////////////////////////////////////////////////
- // Inventory & Equipment Related
- #define __INVENTORY_4PAGES__ /// < Extended inventory pages (4)
- #define __QUIVER_SYSTEM__ /// < Quiver equipement
- #define __SWAP_ITEM_SYSTEM__ /// < Swap items between inventory slots
- #define __SPECIAL_INVENTORY_SYSTEM__ /// < Special inventory
- //#define __SORT_INVENTORY_ITEMS__ /// < Sorts all inventory items
- ////////////////////////////////////////////////////////////////////////////////
- // Player, Guild, Skills Related
- #define __WJ_NEW_USER_CARE__ /// < User care
- #define __PLAYER_PER_ACCOUNT5__ /// < 5 players per account
- #define __WOLFMAN_CHARACTER__ /// < Wolfman character
- #if defined(__WOLFMAN_CHARACTER__)
- # define __DISABLE_WOLFMAN_CREATION__ /// < Disable Wolfman creation
- #endif
- #define __VIEW_TARGET_DECIMAL_HP__ /// < View target decimal hp
- #if defined(__VIEW_TARGET_DECIMAL_HP__)
- # define __VIEW_TARGET_PLAYER_HP__ /// < View target player's hp
- #endif
- //#define __GENDER_ALIGNMENT__ /// < Gender alignment (M, F)
- #define __GUILD_LEADER_GRADE_NAME__ /// < Shows guild leader grade name on text tail
- #define __7AND8TH_SKILLS__ /// < Passive 7 & 8th skills
- #define __IGNORE_LOW_POWER_BUFF__ /// < Ignore low power buff
- #define __EXPRESSING_EMOTIONS__ /// < Special actions
- #define __SKILL_COLOR_SYSTEM__ /// < Skill color
- #define __IMPROVED_LOGOUT_POINTS__ /// < Improved update packet on logout
- #define __SKILL_COOLTIME_UPDATE__ /// < Refresh skill cooldown after death
- #define __QUEST_RENEWAL__ /// < Quest page renewal
- #define __PLAYER_PIN_SYSTEM__ /// < Player PIN Code
- #if defined(__PLAYER_PIN_SYSTEM__)
- //# define __DISABLE_PIN_SYSTEM__
- #endif
- #define __RANDOM_STATUS_PER_LEVEL__ /// < Random status per level (classic)
- #define __CONQUEROR_LEVEL__ // Conqueror Level
- ////////////////////////////////////////////////////////////////////////////////
- // Item Related
- #define __ITEM_DROP_RENEWAL__ /// < Renewal of item drops with color effect
- #define __WJ_PICKUP_ITEM_EFFECT__ /// < Pickup item effect
- #define __NEW_DROP_DIALOG__ /// < New drop dialog with remove item option
- #define __SOUL_BIND_SYSTEM__ /// < Soul bind items
- #define __GACHA_SYSTEM__ /// < __BOSS_BOX__ Gacha boxes (x use time)
- #define __MAGIC_REDUCTION__ /// < Magic reduction item
- #define __STONE_OF_BLESS__ /// < Stone of bless (refinement item)
- #define __SOUL_SYSTEM__ /// < Soul items
- #define __BLEND_AFFECT__ /// < New blend affects with icon
- #define __EXTENDED_BLEND_AFFECT__ /// < Extended blend item affect
- #define __ITEM_SOCKET5__ /// < Extend item sockets
- #define __ANTI_EXP_RING__ /// < Anti experience ring
- #define __ITEM_APPLY4__ /// < Extend item apply
- ////////////////////////////////////////////////////////////////////////////////
- // Game Related
- #define __SET_CUSTOM_ATTRIBUTE_SYSTEM__ /*
- * Title: Legendary Enchantment (Custom Select Attributes)
- * Description: A legendary enchantment item that allows you to select all 5 bonuses.
- * Author: Owsap
- * Date: 2021.11.24 (YMD)
- */
- #define __MAILBOX__
- /*
- * Description: Mail box system
- * Author: Blackdragonx61 / Mali
- * GitHub: https://github.com/blackdragonx61/Metin2-Official-MailBox
- */
- #define __CHATTING_WINDOW_RENEWAL__
- /*
- * Title: Chatting Window Renewal
- * Description: Reworked chat window with settings.
- * Author: Owsap
- */
- #define __MESSENGER_GM__ /// < Messenger gm list
- #define __MESSENGER_BLOCK_SYSTEM__ /// < Messenger block
- #define __MOVE_CHANNEL__ /// < Move game channel
- #define __12ZI_NOTICE__ /// < 12ZI mission notice (only mission notice)
- #define __WJ_SHOW_MOB_INFO__ /// < Show monsters level & aggressive flag
- #define __GUILD_DRAGONLAIR_PARTY_SYSTEM__ /// < Guild dragon lair party
- #if defined(__GUILD_DRAGONLAIR_PARTY_SYSTEM__)
- # define __GUILD_DRAGONLAIR__ /// < Guild dragon lair dungeon
- # if defined(__GUILD_DRAGONLAIR__)
- # define GUILD_DRAGONLAIR_DESTROY_STATUE_GM
- # define GUILD_DRAGONLAIR_LAZER_EFFECT_75HP
- # define GUILD_DRAGONLAIR_LAZER_EFFECT_50HP
- # endif
- #endif
- #define __TEMPLE_OCHAO__ /// < Temple of the Ochao dungeon
- #define __EREBUS_DUNGEON__ /// < Erebus dungeon
- #define __SKILLBOOK_COMB_SYSTEM__ /// < Skill book combination
- #define __PET_SYSTEM__ /// < Pet system
- #define __PRIVATESHOP_SEARCH_SYSTEM__ /*
- * Title: Private Shop Search
- * Author: blackdragonx61 / Mali
- * GitHub: https://github.com/blackdragonx61/Metin2-Private-Shop-Search
- */
- #define __SHOPEX_RENEWAL__ /// < ShopEX renewal
- #if defined(__SHOPEX_RENEWAL__)
- # define __SHOPEX_TAB4__ /// < ShopEx 4 tabs
- #endif
- #define __CHANGE_LOOK_SYSTEM__ /// < Change look of item
- #if defined(__CHANGE_LOOK_SYSTEM__)
- # define __MOUNT_CHANGE_LOOK__ /// < Change look of mount
- #endif
- #define __DICE_SYSTEM__ /// < New dice system
- #define __SEND_TARGET_INFO__ /// < Monster target information
- #define __SEND_TARGET_ELEMENT__ /// < Target element
- #define __ELEMENT_SYSTEM__ /// < Elements of monsters and pendants
- #define __PENDANT_SYSTEM__ /// < Talismans of elements
- //#define __DUNGEON_INFO_SYSTEM__ /// < Dungeon informations
- #define __EXTENDED_ITEM_AWARD__ /// < Extended item award
- #define __MULTI_LANGUAGE_SYSTEM__ /// < Multi language
- #define __EXTENDED_WHISPER_DETAILS__ /// < Extended whisper details
- #define __REFINE_FAIL_TYPE__ /// < Extended refine fail message
- //#define __CHANNEL_STATUS_UPDATE__ /// < Channel player count
- #define __9TH_SKILL__ /// < Conqueror of Yohara
- #define __WJ_SHOW_PARTY_ON_MINIMAP__ /// < Show party member on atlas
- #define __BINARY_ATLAS_MARK_INFO__ /// < Enable atlas mark info from client
- #define __PARTY_PROFICY__ /// < Party proficy passive skill
- #define __PVP_COUNTDOWN__ /// < PvP duel countdown
- #define __EVENT_BANNER_FLAG__ /// < Game event banner flags
- #define __ENVIRONMENT__ /// < System environment
- #define __MYSHOP_DECO__ /// < Private shop decoration
- #define __GLOVE_SYSTEM__ /// < Glove equipement
- #define __EXTENDED_RELOAD__ /// < Extended GM reload commands (for drops)
- //////////////////////////////////////////////////////////////////////////
- // Network Related
- #define __IMPROVED_HANDSHAKE_PROCESS__
- /*
- * Description: An Anti-spam solution that limits the amount
- * of handshakes per second and per attempts.
- * Date: YMD.2021.09.07
- * Author: Owsap, OSP (Owsap Server Protection)
- */
- #define __IMPROVED_PACKET_ENCRYPTION__ // ÆÐŶ ¾ÏÈ£È °³¼±
- #define __FH_FIX_IMPROVED_PACKET_ENCRYPTION__ // ÆÐŶ ¾ÏÈ£È °³¼±
- //#define __SEND_SEQUENCE__ // Code for finding sequence bugs
- #define __UDP_BLOCK__ /// < UDP Block
- //#define __ALLOW_EXTERNAL_PEER__ /// < Allow external peer API
- #define __HWID_DETAILS__ /// < HWID
- #endif // __INC_COMMON_SERVICE_H__
Add Comment
Please, Sign In to add comment