Jump to content

Server Files KraizySama Project ZERO


Recommended Posts

Hola gente, pongo a la venta server files que tengo algo de tiempo trabajando, basada en martysama 5.3, usa gcc8, mysql 5.6 y visual studio 2022.

Informacion:

Multi lenguaje 11 idiomas

Offline shop y search shop

Inventario especial (libros, materiales, piedras, cofres y bonus)

Switchbot

Calendario de eventos

Biologo portatil

Informacion de mazmorras

Item shop con render target

Sistema filtro de recogida de objetos

Sistema de correo (mail box)

Sistema ocultar atuendos

Sistema ver jefes en mapa

Sistema cambio de won a yang y viceversa

Mazmorras de dracaryS

Sistema back dungeon (re entrar a la mazmorra si te saca por x motivo)

y un gran etc, dejo Locale_inc.h y CommonDefines.h

Si estas interesado/a manda mensaje privado aqui o en discord

 

Captura-de-pantalla-2024-04-11-213756.pn

Captura-de-pantalla-2024-04-11-211045.pn

 

Locale_inc.h

#pragma once

/****************************************
* title_name		: Project ZERO		*
* filename			: Locale_inc.h		*
* author			: KraizySama		*
* version			: Version 10.2.4	*
* update			: 06 Apr 2024		*
****************************************/

/* Ymir Service */
#define LOCALE_SERVICE_EUROPE								//	Locale Service Europe
/* Ymir Service */

#define VERSION 10.2.4

/* Multi Language System */
#define ENABLE_MULTI_LANGUAGE_KS							//	Multi language fixed version by KraizySama
#define ENABLE_WHISPER_DETAILS								//	Extended whisper target inforamtion
#define ENABLE_ATLAS_MARK_INFO								//	Atlas mark info from client
/* Multi Language System */

/* General */
#define ENABLE_PACK_GET_CHECK								//	Pack get check
#define ENABLE_CANSEEHIDDENTHING_FOR_GM						//	Can see hidden thing for gm
#define ENABLE_NO_MOUNT_CHECK								//	No mount check
#define ENABLE_EXTEND_INVEN_SYSTEM							//	4 inventory
#define ENABLE_PROTOSTRUCT_AUTODETECT						//	Proto struck auto detect
#define ENABLE_DISCORD_RPC									//	Discord presences
/* General */

/* System Enable */
#define ENABLE_NEW_EQUIPMENT_SYSTEM							//	Belt equip
#define ENABLE_DICE_SYSTEM									//	Dice
#define ENABLE_OBJ_SCALLING									//	OBJ scaling
#define ENABLE_ENERGY_SYSTEM								//	Energy system
#define ENABLE_DRAGON_SOUL_SYSTEM							//	DS system
#define ENABLE_GACHA_SYSTEM									//	ENABLE_BOSS_BOX Gacha boxes
#define ENABLE_CHEQUE_SYSTEM								//	New currency (cheque)
#define ENABLE_GEM_SYSTEM									//	Gem market and new curreny (gaya)
#define ENABLE_FOV_OPTION									//	Enable extended field of view game option
#define ENABLE_MAILBOX_SYSTEM								//	Mailbox system
#if defined(ENABLE_MAILBOX_SYSTEM)
	#define ENABLE_PORTABLE_MAILBOX							//	Enable portable Mailbox system
#endif
#define ENABLE_NEW_DROP_DIALOG								//	New drop dialog with remove item option
#define ENABLE_SWAP_SLOT_SYSTEM								//	Swap item slot
#ifdef ENABLE_SWAP_SLOT_SYSTEM
	#define ENABLE_SWAP_SLOT_DIFFUSE_COLOR					//	Swap item slot diffuse color on over event
#endif
#define ENABLE_GUILD_LEADER_GRADE_NAME						//	Shows guild leader grade name on text tail
#define ENABLE_SPECIAL_INVENTORY_SYSTEM						//	Special K inventory 5 pages
#define ENABLE_DS_GRADE_MYTH								//	Dragon soul mythical grade
#define ENABLE_DS_SET										//	Dragon soul table handling
#define ENABLE_67TH_BONUS									//	6th and 7th rare bonus (classic)
#define ENABLE_MOVE_CHANNEL									//	Move game channel
#define ENABLE_HIDE_COSTUME_SYSTEM							//	Hide costume parts
#define ENABLE_VIEW_TARGET_DECIMAL_HP						//	View targets decimal hp
#ifdef ENABLE_VIEW_TARGET_DECIMAL_HP
	#define ENABLE_VIEW_TARGET_PLAYER_HP					//	View target player's hp
#endif
#define ENABLE_MINI_GAME_OKEY								//	Mini game rumi (okey)
#define ENABLE_MINI_GAME_CATCH_KING							//	Mini game catch king
#define ENABLE_PENDANT_SYSTEM								//	Talismans of elements
#define ENABLE_ELEMENT_ADD									//	Monsters element
#define ENABLE_SEND_TARGET_INFO								//	Monsters information
#define ENABLE_DETAILS_UI									//	Character details (bonus page)
#define ENABLE_CHANGE_LOOK_SYSTEM							//	Change look of item
#define ENABLE_CHANGE_LOOK_MOUNT_SYSTEM						//	Change look of mount
#define ENABLE_EXTENDED_DS_INVENTORY						//	2 pages ds inventory
#define ENABLE_TAB_NEXT_TARGET								//	Enable next target on key tab
#define ENABLE_REFINE_RENEWAL								//	Auto refinement option
//#define ENABLE_GENDER_ALIGNMENT								//	Gender alignment (m, f)
#define ENABLE_LOADING_TIP									//	Loading text info
#define ENABLE_REFINE_FAIL_TYPE								//	Extended refine fail message
#define ENABLE_QUIVER_SYSTEM								//	Quiver
#define ENABLE_MAP_LOCATION_APP_NAME						//	Enable map location on the app name
#define ENABLE_NEW_BLEND_AFFECT								//	New blend affects with icon
#define ENABLE_ITEM_SOCKET5									//	Extend item sockets
#define ENABLE_EXTENDED_BLEND_AFFECT						//	Extended blend item affect
#define ENABLE_DSS_EXTENDED_RECHARGE						//	Dragon soul extended recharge
#define ENABLE_OFFLINE_SHOP_SYSTEM							//	Offline private shop
#define ENABLE_PRIVATE_SHOP_SEARCH_SYSTEM					//	Private shop search
#define ENABLE_WON_EXCHANGE_WINDOW							//	Won exchange window with Yang
#define ENABLE_ATTR_METIN_BOSS								//	New attr metin & boss
#define ENABLE_QUEST_RENEWAL								//	Quest page renewal
#define ENABLE_SOUL_BIND_SYSTEM								//	Soul bind items
#define ENABLE_DECO_PRIVATE_SHOP							//	Deco private shop
#define ENABLE_HYPERLINK_ITEM_ICON							//	Show item icon on hyperlinks
#define ENABLE_PICKUP_INSTANT_FILTER						//	Pickup filter and instant pickup
#ifdef ENABLE_PICKUP_INSTANT_FILTER
	#define ENABLE_FIX_PICKUP_ITEM							//	Fix Pickup Item Distance
#endif
#define ENABLE_BOSS_ICON_ON_MAP								//	All boss or boss group added in boss.txt are shown with an icon on the map "M".
#ifdef ENABLE_BOSS_ICON_ON_MAP
	#define FIX_NAMES_MULTI_LANGUAGE_KS						//	Fix correct translation of boss names for multi language.
#endif
#define ENABLE_BIOLOG_SYSTEM								//	Biolog system
#define ENABLE_DUNGEON_INFO_SYSTEM							//	Dungeon information system
#define ENABLE_SWITCHBOT									//	Switchbot system
#define ENABLE_RENEWAL_NOTICE								//	New notice aspect
#define ENABLE_DRACARYS_DUNGEONS							//	Dungeons by DracaryS
#define ENABLE_EVENT_MANAGER								//	Auto event and event calendar
#define ENABLE_BACK_DUNGEON									//	Return to the dungeons if you were taken out for some reason
/* System Enable */

/* Official System */
#define ENABLE_OFFICIAL_GLOVE_SYSTEM						//	Official Glove System
#define ENABLE_9THSKILL										//	Official 9th Skill's
#define ENABLE_UPDATE_GYEONGGONG_SKILL						//	Official Assassin Bow Skill Update
#define ENABLE_ENVIRONMENT_EFFECT_OPTION					//	Official Environment Effect Options
#define ENABLE_QUEST_WIDTH_EXPANSION						//	Official Quest Width
#define ENABLE_CHATTING_WINDOW_RENEWAL						//	Official Chat Windows
/* Official System */

/* WJ */
#define WJ_SHOW_ALL_CHANNEL									//	Show all channel
#define WJ_ENABLE_TRADABLE_ICON								//	Block un-tradable items
#define WJ_SHOW_MOB_INFO									//	Show monsters level & aggressive flag
#define WJ_ENABLE_PICKUP_ITEM_EFFECT						//	Pickup item effect
#define WJ_SAFEBOX_CHECKOUT_UPDATE							//	Simple right click safebox
#define WJ_SORT_LASTPLAYTIME								//	Play last time
#define WJ_ENABLE_HIDE_EFFECT								//	Hide effect buff, skill
#define WJ_MULTI_TEXTLINE									//	Multi textline
#define WJ_REMOTE_SHOP										//	Buying at a distance
/* WJ */

/* Modification & Correction */
#define ENABLE_EXTENDED_ITEM_COUNT							//	Extend the amount of items
#define ENABLE_NO_RECV_GAME_LIMIT							//	No limit recv game
//#define SIMPLE_REFINED_EFFECT_CHECK							//	Applies its respective +7 +8 +9 effect to all items without depending on GetValue
#define REMOVE_MOUNTS_COLLISION								//	Remove mounts collision
#define REMOVE_PETS_COLLISION								//	Remove pets collision
#define REMOVE_SHOPS_COLLISION								//	Remove shops collision
#define REMOVE_SAFEZONE_COLLISION							//	Remove safezone collision
#define REMOVE_OX_PLAYER_COLLISION							//	Remove ox player collision
#define ENABLE_DRAGON_SOUL_EFFECT							//	Ds effect
#define ENABLE_AUTO_REFINE_DS								//	Auto refine button ds
#define ENABLE_FLAG_ON_NAME									//	Flag on name
#define ENABLE_EMOJI_IN_TEXT								//	Emoji in text
#define LOGIN_COUNT_DOWN_UI_MODIFY							//	Login count down ui modify
#define LEVEL_REFRESH_UPDATE								//	Refresh level after lvlup
#define ENABLE_SKILL_COOLTIME_UPDATE						//	Refresh skill cooldown after death
#define ENABLE_SHAMAN_ATTACK_FIX							//	Shaman attack with horse/mount
#define ENABLE_IMPROVED_LOGOUT_POINTS						//	Enable improved logout points which shows the last player status points and parts on intro select
#define ENABLE_LOAD_FROM_ROOT_KS							//	Load files that do not need translation from root
#define ENABLE_HUGE_AND_NO_PUSHING_MOB_KS					//	The bosses do not move from the place and they will not fall when attacked.
#define ENABLE_BOSS_ICON_OVER_HEAD							//	Bosses show an icon above their head
#define ENABLE_FOG_FIX										//	Fix for fog now you can see it or not
#define ENABLE_OUTLINE_OPTIONS_KS							//	Performance improvement by disabling names shadow it is activated and deactivated in client.
#define ENABLE_SHINING_RENDER_TARGET						//	Show shinings on render target
#define ENABLE_FIX_MOBS_LAG									//	Increase performance mobs
#if defined(ENABLE_FIX_MOBS_LAG)
	#define FIX_MOBS_LAG_FIX								//	With this new define all this problems are fixed.
#endif
/* Modification & Correction */

/* Costume Enable */
#define ENABLE_WEAPON_COSTUME_SYSTEM						//	Weapon costume system
#ifdef ENABLE_WEAPON_COSTUME_SYSTEM
	#define USE_WEAPON_COSTUME_WITH_EFFECT					//	Weapon costume with effect +9
#endif
#define ENABLE_ACCE_COSTUME_SYSTEM							//	Acce costume system
#define ENABLE_COSTUME_SYSTEM								//	Costume system
#ifdef ENABLE_COSTUME_SYSTEM
	#define USE_BODY_COSTUME_WITH_EFFECT					//	Body costume with effect +9
#endif
#define ENABLE_MOUNT_COSTUME_SYSTEM							//	Mount costume system
#define ENABLE_COSTUME_ATTR_SYSTEM							//	Costume attributes
/* Costume Enable */

/* Wolfman */
#define ENABLE_WOLFMAN_CHARACTER							//	Enable Wolfman character
#ifdef ENABLE_WOLFMAN_CHARACTER
	// #define DISABLE_WOLFMAN_CREATION							//	Disable Wolfman create
	#define ENABLE_PLAYER_PER_ACCOUNT5						//	Enable 5 players per account
#endif
/* Wolfman */

/* Enable for debug mod packet */
// #define ENABLE_PRINT_RECV_PACKET_DEBUG					//	Debug recv packet debug
/* Enable for debug mod packet */

CommonDefines.h

#ifndef __INC_METIN2_COMMON_DEFINES_H__
#define __INC_METIN2_COMMON_DEFINES_H__

/****************************************************
* title_name		: Project ZERO					*
* filename			: ../../common/CommonDefines.h	*
* author			: KraizySama					*
* version			: Version 10.2.4				*
* update			: 06 Apr 2024					*
****************************************************/

enum eCommonDefines {
	MAP_ALLOW_LIMIT = 32,								//	32 default
};

/* Multi Language System */
#define __ENABLE_MULTI_LANGUAGE_KS__					//	Multi language fixed version by KraizySama
#define __ENABLE_WHISPER_DETAILS__						//	Extended whisper target inforamtion
#define __BINARY_ATLAS_MARK_INFO__						//	Atlas Mark Info Load
/* Multi Language System */

/* General */
#define __NEWSTUFF__									//	New stuff
#define __DNJGUILD__									//	DNJ guild
#define __BELT_INVENTORY_EX__							//	Belt
#define __FULL_NOTICE__									//	Full notice /b
#define __DISABLE_STOP_RIDING_WHEN_DIE__				//	Disable stop riding when die
#define __PORT_SECURITY__								//	Port security
#define __CMD_WARP_IN_DUNGEON__							//	Cmd warp in dungeon
#define __PLAYER_PER_ACCOUNT5__							//	5 player per account
/* General */

/* System Enable */
#define __EXTEND_INVEN_SYSTEM__							//	4 inventory
#define __DICE_SYSTEM__									//	Dice
#define __GACHA_SYSTEM__								//	Gacha boxes (x use time)
#define __CHEQUE_SYSTEM__								//	Cheque like Won
#define __SPECIAL_INVENTORY_SYSTEM__					//	Special inventory
#define __SORT_INVENTORY_ITEMS__						//	Sorts all inventory items
#define __SWAP_ITEM_SYSTEM__							//	Swap items between inventory slots
#define __GUILD_LEADER_GRADE_NAME__						//	Shows guild leader grade name on text tail
#define __MAILBOX_SYSTEM__								//	Mailbox system
#if defined(__MAILBOX_SYSTEM__)
	#define __PORTABLE_MAILBOX__						//	Portable Mailbox system (open anywhere)
#endif
#define __NEW_DROP_DIALOG__								//	New drop dialog with remove item option
#if defined(__NEW_DROP_DIALOG__)
	#define __NEW_DROP_DIALOG_UPDATE__					//	Upgrade destroy item > give energy
#endif
#define __GEM_SYSTEM__									//	Gem system
#if defined(__GEM_SYSTEM__)
	#define __GEM_MARKET_SYSTEM__						//	Gem market
#endif
#define __DS_SET__										//	Dragon soul handle bonus
#define __DS_GRADE_MYTH__								//	Dragon soul mythical grade
#define __MOVE_CHANNEL__								//	Move channel system
#define __HIDE_COSTUME_SYSTEM__							//	Hide costume part
#define __VIEW_TARGET_DECIMAL_HP__						//	View targets decimal hp
#ifdef __VIEW_TARGET_DECIMAL_HP__
	#define __VIEW_TARGET_PLAYER_HP__					//	View target players' hp
#endif
#define __MINI_GAME_OKEY__								//	Mini game okey/runi
#define __MINI_GAME_CATCH_KING__						//	Mini game catch king
#define __ELEMENT_SYSTEM__								//	Elements of monsters and pendants
#define __PENDANT_SYSTEM__								//	Talismans of elements
#define __SEND_TARGET_ELEMENT__							//	Target element
#define __SEND_TARGET_INFO__							//	Monster target info
#define __CHANGE_LOOK_SYSTEM__							//	Change look of item
#define __CHANGE_LOOK_MOUNT_SYSTEM__					//	Change look of mount
#define __CUBE_RENEWAL__								//	Copy attr renewal
#define __CUBE_STONE_RENEWAL__							//	Do not remove the stone
#define __EXTENDED_DS_INVENTORY__						//	2 pages ds inventory
//#define __GENDER_ALIGNMENT__								//	Gender alignment
#define __LOADING_TIP__									//	Loading text info
#define __REFINE_FAIL_TYPE__							//	Extended refine fail message
#define __QUIVER_SYSTEM__								//	Ninja quiver
#define __NEW_BLEND_AFFECT__							//	New blend affect
#define __ITEM_SOCKET5__								//	Extend item sockets
#define __EXTENDED_BLEND__								//	Extened blend affect
#define __EXTENDED_DSS_RECHARGE__						//	Dragon soul extended recharge
#define __OFFLINE_PRIVATE_SHOP_SYSTEM__					//	Offline private shop
#define __PRIVATE_SHOP_SEARCH_SYSTEM__					//	Search private shop items
#ifdef __PRIVATE_SHOP_SEARCH_SYSTEM__
	#define __PRIVATE_SHOP_SEARCH_NEED_ITEM__			//	Require special search item
#endif
#define __DECO_PRIVATE_SHOP__							//	Deco private shop
#define __WON_EXCHANGE_WINDOW__							//	Won exchange window with Yang
#define __ATTR_METIN_BOSS__								//	New attr metin & boss
#define __QUEST_RENEWAL__								//	Quest renewal with categories
#define __EXTENDED_ITEM_AWARD__							//	Extended item award
#define __FISHINGROD_RENEWAL__							//	Fishingrod renewal
#define __SOUL_BIND_SYSTEM__							//	Soul bind items
#define __ENABLE_BOSS_ICON_ON_MAP__						//	All boss or boss group added in boss.txt are shown with an icon on the map "M".
#ifdef __ENABLE_BOSS_ICON_ON_MAP__
	#define __FIX_NAMES_MULTI_LANGUAGE_KS__				//	Fix correct translation of boss names for multi language.
#endif
#define __ENABLE_BIOLOG_SYSTEM__						//	Biolog system
#define __DUNGEON_INFO_SYSTEM__							//	Dungeon information system
#define __ENABLE_SWITCHBOT__							//	Switchbot system
#define __ENABLE_DRACARYS_DUNGEONS__					//	Dungeons Libs Dracarys
#define __ENABLE_EVENT_MANAGER__						//	Auto events and event calendar
#define __ENABLE_BACK_DUNGEON__							//	Return to the dungeons if you were taken out for some reason
/* System Enable */

/* Official System */
#define __OFFICIAL_GLOVE_SYSTEM__						//	Official glove System
#define __9THSKILL__									//	Official 9th skill's
#define __UPDATE_GYEONGGONG_SKILL__						//	Official Update assassin skill bow
#define __CHATTING_WINDOW_RENEWAL__						//	Official chat window
/* Official System */

/* WJ */
#define __WJ_SAFEBOX_CHECKOUT_UPDATE__					//	Simple right click safebox
#define __WJ_SHOW_MOB_INFO__							//	Show monster aggregate flag and level
#define __WJ_PICKUP_ITEM_EFFECT__						//	Pickup item effect
#define __WJ_SORT_LASTPLAYTIME__						//	Last play time
#define __WJ_REMOTE_SHOP__								//	Buying at a distance
/* WJ */

/* Modification & Corrections */
#define __SKILL_COOLTIME_UPDATE__						//	Refresh skill cooldown after death
#define __EXTENDED_ITEM_COUNT__							//	Extend the amount of items
#define __IMPROVED_LOGOUT_POINTS__						//	Improved update packet on logout
#define __EFFECT_EXTRAPOT__								//	Effect extrapot
#define __FIREWORK_STUN__								//	Firework stun
#define __ADDSTONE_FAILURE__							//	Addstone failure %
#define __ANTI_CMD_FLOOD__								//	Anti cmd flood
#define __CHAT_LOGGING__								//	Chat loggin
#define __CHAT_SPAMLIMIT__								//	Chat spam limit
#define __WHISPER_CHAT_SPAMLIMIT__						//	Whisper chat spam limit
#define __CHECK_GHOSTMODE__								//	Check ghost mode
#define __EFFECT_PENETRATE__							//	Effect penetrate
#define __NEW_ICEDAMAGE_SYSTEM__						//	New icedamage
#define __GOHOME_IF_MAP_NOT_ALLOWED__					//	Go home if map not allowed
#define __GOHOME_IF_MAP_NOT_EXIST__						//	Go home if map not exist
#define __QUEST_DIE_EVENT__								//	Die event
#define __SET_STATE_WITH_TARGET__						//	ACMD(do_set_state) > update
#define __LEVEL_REFRESH_UPDATE__						//	Refresh level after lvlup
#define __BOOKS_STACKFIX__								//	Book stack fix
#define __ENABLE_FORCE2MASTERSKILL__					//	M1 skill with 17 points
#define __ENABLE_INCREASE_PICKUP_DISTANCE__				//	Increase pickup distance 300 to 500
/* Modification & Corrections */

/* Costume Enable */
#define __WEAPON_COSTUME_SYSTEM__						//	Weapon costume system
#define __ACCE_COSTUME_SYSTEM__							//	Acce costume system
#define __COSTUME_SYSTEM__								//	Costume system
#define __MOUNT_COSTUME_SYSTEM__						//	Mount costume system
#define __COSTUME_ATTR_SYSTEM__							//	Costume attribute switchers
/* Costume Enable */

/* Wolfman */
#define __WOLFMAN_CHARACTER__							//	Wolfman
#ifdef __WOLFMAN_CHARACTER__
	#define __USE_MOB_BLEEDING_AS_POISON__				//	Wolfman mob bleeding as poison
	#define __USE_MOB_CLAW_AS_DAGGER__					//	Wolfman mob claw as dagger
	// #define __USE_ITEM_BLEEDING_AS_POISON__				//	Wolfman item bleeding as poison
	// #define __USE_ITEM_CLAW_AS_DAGGER__					//	Wolfman item claw as dagger
	// #define __USE_LYCAN_CREATE_POSITION__				//	Wolfman official position creation
	// #define __DISABLE_WOLFMAN_CREATION__					//	Disable Wolfman creation
	#define __9THSKILL_WOLFMAN_CHARACTER__				//	9Th skill
	#define __USE_WOLFMAN_STONES__						//	Wolfman stones
	#define __USE_WOLFMAN_BOOKS__						//	Wolfman books
#endif
/* Wolfman */

/* Enable for debug mod packet */
// #define __SYSLOG_PACKET_SENT__							//	Debug syslog packet sent
/* Enable for debug mod packet */
#endif

 

Link to comment
Share on other sites

  • 2 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...