CoreUseNameDef.h
上传用户:dzyhzl
上传日期:2019-04-29
资源大小:56270k
文件大小:15k
源码类别:

模拟服务器

开发平台:

C/C++

  1. #ifndef COREUSENAMEDEF_H
  2. #define COREUSENAMEDEF_H
  3. #define MAX_PLAYER_IN_ACCOUNT 3
  4. #define SETTING_PATH "\settings"
  5. //---------------------------- npc res 相关 ------------------------------
  6. #define RES_INI_FILE_PATH "\settings\npcres"
  7. #define RES_NPC_STYLE_PATH "\spr\npcres\style"
  8. #define RES_SOUND_FILE_PATH "sound"
  9. #define NPC_RES_KIND_FILE_NAME "\settings\npcres\人物类型.txt"
  10. #define NPC_NORMAL_RES_FILE "\settings\npcres\普通npc资源.txt"
  11. #define NPC_NORMAL_SPRINFO_FILE "\settings\npcres\普通npc资源信息.txt"
  12. #define STATE_MAGIC_TABLE_NAME "\settings\npcres\状态图形对照表.txt"
  13. #define PLAYER_RES_SHADOW_FILE "\settings\npcres\主角动作阴影对应表.txt"
  14. #define NPC_RES_SHADOW_FILE "普通npc动作阴影对应表.txt"
  15. #define PLAYER_SOUND_FILE "\settings\npcres\主角动作声音表.txt"
  16. #define NPC_SOUND_FILE "\settings\npcres\npc动作声音表.txt"
  17. #define NPC_ACTION_NAME "npc动作表.txt"
  18. #define ACTION_FILE_NAME "动作编号表.txt"
  19. #define PLAYER_MENU_STATE_RES_FILE "\settings\npcres\界面状态与图形对照表.txt"
  20. #define PLAYER_INSTANT_SPECIAL_FILE "\settings\npcres\瞬间特效.txt"
  21. #define SPR_INFO_NAME "信息"
  22. #define KIND_NAME_SECT "人物类型"
  23. #define KIND_NAME_SPECIAL "特殊npc"
  24. #define KIND_NAME_NORMAL "普通npc"
  25. #define KIND_FILE_SECT1 "部件说明文件名"
  26. #define KIND_FILE_SECT2 "武器行为关联表1"
  27. #define KIND_FILE_SECT3 "武器行为关联表2"
  28. #define KIND_FILE_SECT4 "动作贴图顺序表"
  29. #define KIND_FILE_SECT5 "资源文件路经"
  30. //--------------------------- player 门派相关 ------------------------------
  31. // 注:下面这个设定文件必须按 金 金 木 木 水 水 火 火 土 土 的顺序排列
  32. #define FACTION_FILE "\settings\faction\门派设定.ini"
  33. //--------------------------- player PK相关 ------------------------------
  34. #define defPK_PUNISH_FILE "\settings\npc\player\PKPunish.txt"
  35. //--------------------------- player 帮会相关 ------------------------------
  36. #define defPLAYER_TONG_PARAM_FILE "\settings\tong\TongSet.ini"
  37. //----------------------------- 聊天相关 ------------------------------
  38. #define CHAT_PATH "\chat"
  39. #define CHAT_TEAM_INFO_FILE_NAME "Team.cht"
  40. #define CHAT_CHANNEL_INFO_FILE_NAME "Channel.cht"
  41. #define CHAT_CHANNEL_NAME_ALL "所有玩家"
  42. #define CHAT_CHANNEL_NAME_SCREEN "附近玩家"
  43. #define CHAT_CHANNEL_NAME_SINGLE "好友"
  44. #define CHAT_CHANNEL_NAME_TEAM "队友"
  45. #define CHAT_CHANNEL_NAME_FACTION "同门"
  46. #define CHAT_CHANNEL_NAME_TONG "帮众"
  47. #define CHAT_CHANNEL_NAME_SCREENSINGLE "陌生人"
  48. #define CHAT_CHANNEL_NAME_SYSTEM "系统"
  49. #define CHAT_TAKE_CHANNEL_NAME_TEAM "队伍频道"
  50. #define CHAT_TAKE_CHANNEL_NAME_FACTION "门派频道"
  51. #define CHAT_TAKE_CHANNEL_NAME_TONG "帮会频道"
  52. #define CHAT_TAKE_CHANNEL_NAME_SCREENSINGLE "私聊频道"
  53. //---------------------------- player 数值相关 ------------------------------
  54. #define PLAYER_LEVEL_EXP_FILE "\settings\npc\player\level_exp.txt"
  55. #define PLAYER_LEVEL_ADD_FILE "\settings\npc\player\level_add.txt"
  56. #define PLAYER_LEVEL_LEAD_EXP_FILE "\settings\npc\player\level_lead_exp.txt"
  57. #define BASE_ATTRIBUTE_FILE_NAME "\settings\npc\player\NewPlayerBaseAttribute.ini"
  58. #define PLAYER_PK_RATE_FILE "\settings\npc\PKRate.ini"
  59. #define PLAYER_BASE_VALUE "\settings\npc\player\BaseValue.ini"
  60. // 00男金 01女金 02男木 03女木 04男水 05女水 06男火 07女火 08男土 09女土
  61. #define NEW_PLAYER_INI_FILE_NAME "\settings\npc\player\NewPlayerIni%02d.ini"
  62. //---------------------------- player 交易相关 ------------------------------
  63. #define BUYSELL_FILE "\settings\buysell.txt"
  64. #define GOODS_FILE "\settings\goods.txt"
  65. //----------------------------- 物品相关 ------------------------------
  66. #define CHANGERES_MELEE_FILE "\settings\item\MeleeRes.txt"
  67. #define CHANGERES_RANGE_FILE "\settings\item\RangeRes.txt"
  68. #define CHANGERES_ARMOR_FILE "\settings\item\ArmorRes.txt"
  69. #define CHANGERES_HELM_FILE "\settings\item\HelmRes.txt"
  70. #define CHANGERES_HORSE_FILE "\settings\item\HorseRes.txt"
  71. #define ITEM_ABRADE_FILE "\settings\item\AbradeRate.ini"
  72. //--------------- npc skill missles 设定文件,用于生成模板 -------------
  73. #define SKILL_SETTING_FILE "\settings\Skills.txt"
  74. #define MISSLES_SETTING_FILE "\settings\Missles.txt"
  75. #define NPC_SETTING_FILE "\settings\NpcS.txt"
  76. #define NPC_GOLD_TEMPLATE_FILE "\settings\npc\NpcGoldTemplate.txt"
  77. //---------------------------- object 相关 ------------------------------
  78. #define OBJ_DATA_FILE_NAME "\settings\obj\ObjData.txt"
  79. #define MONEY_OBJ_FILE_NAME "\settings\obj\MoneyObj.txt"
  80. #define OBJ_NAME_COLOR_FILE "\settings\obj\ObjNameColor.ini"
  81. //---------------------------- 小地图相关 -------------------------------
  82. #define defLITTLE_MAP_SET_FILE "\Ui\Default\小地图颜色.ini"
  83. //----------------------------- 声音相关 --------------------------------
  84. #define defINSTANT_SOUND_FILE "\settings\SoundList.txt"
  85. #define defMUSIC_SET_FILE "\settings\music\MusicSet.txt"
  86. #define defMUSIC_FIGHT_SET_FILE "\settings\music\MusicFightSet.ini"
  87. //------------------------------------------------------------------------
  88. #define NPC_LEVELSCRIPT_FILENAME "\script\npclevelscript\npclevelscript.lua"
  89. #define NPC_TEMPLATE_BINFILEPATH "\settings"
  90. #define NPC_TEMPLATE_BINFILE "NpcTemplate.Bin"
  91. #define WEAPON_PHYSICSSKILLFILE "\settings\武器物理攻击对照表.txt"
  92. #define WEAPON_PARTICULARTYPE "详细类别"
  93. #define WEAPON_DETAILTYPE "具体类别"
  94. #define WEAPON_SKILLID "对应物理技能编号"
  95. //-----------------------------------------------------------------------
  96. #define WORLD_WAYPOINT_TABFILE "\settings\WayPoint.txt"
  97. #define WORLD_STATION_TABFILE "\settings\Station.txt"
  98. #define WORLD_STATIONPRICE_TABFILE "\settings\StationPrice.txt"
  99. #define WORLD_WAYPOINTPRICE_TABFILE "\settings\WayPointPrice.txt"
  100. #define WORLD_DOCK_TABFILE "\settings\Wharf.txt"
  101. #define WORLD_DOCKPRICE_TABFILE "\settings\WharfPrice.txt"
  102. #define STRINGRESOURSE_TABFILE "\settings\StringResource.txt"
  103. #define PLAYER_RANK_SETTING_TABFILE "\settings\RankSetting.txt"
  104. #define QUESTITEM_TABFILE "\settings\item\questkey.txt"
  105. //---------------------------------任务--------------------------
  106. #define TASK_MISSION_SETTING_TABFILE "\settings\task\missions.txt"
  107. //---------------------------- 消息相关 ------------------------------
  108. // 特别注意:以下字符串长度不能超过32字节,包括 %d %s 等接收具体内容以后的长度
  109. #define MSG_GET_EXP "您获得%d点经验值。"
  110. #define MSG_DEC_EXP "您损失了%d点经验值。"
  111. #define MSG_LEVEL_UP "您的等级提升至%d。"
  112. #define MSG_LEADER_LEVEL_UP "您的统率等级提升至%d!"
  113. #define MSG_GET_ATTRIBUTE_POINT "您获得%d点潜能!"
  114. #define MSG_GET_SKILL_POINT "您获得%d个技能点!"
  115. #define MSG_GET_ATTRIBUTE_SKILL_POINT "您获得%d点潜能和%d个技能点!"
  116. #define MSG_TEAM_AUTO_REFUSE_INVITE "自动拒绝他人对您的组队邀请。"
  117. #define MSG_TEAM_NOT_AUTO_REFUSE_INVITE "显示他人对您的组队邀请。"
  118. #define MSG_TEAM_SEND_INVITE "您向%s发出组队邀请!"
  119. #define MSG_TEAM_GET_INVITE "%s邀请您组队!"
  120. #define MSG_TEAM_REFUSE_INVITE "%s拒绝了您的组队邀请!"
  121. #define MSG_TEAM_CREATE "您创建了一支队伍。"
  122. #define MSG_TEAM_CREATE_FAIL "队伍创建失败。"
  123. #define MSG_TEAM_CANNOT_CREATE "您现在不能组队!"
  124. #define MSG_TEAM_TARGET_CANNOT_ADD_TEAM "对方现在不能组队!"
  125. #define MSG_TEAM_OPEN "您的队伍现在允许接收新队员。"
  126. #define MSG_TEAM_CLOSE "您的队伍现在不允许接收新队员。"
  127. #define MSG_TEAM_ADD_MEMBER "%s成为您的队友了。"
  128. #define MSG_TEAM_SELF_ADD "您加入%s的队伍。"
  129. #define MSG_TEAM_DISMISS_CAPTAIN "您解散了自己的队伍!"
  130. #define MSG_TEAM_DISMISS_MEMBER "%s解散了队伍!"
  131. #define MSG_TEAM_KICK_ONE "%s被开除出队伍!"
  132. #define MSG_TEAM_BE_KICKEN "您被开除出队伍!"
  133. #define MSG_TEAM_APPLY_ADD "%s申请加入队伍!"
  134. #define MSG_TEAM_APPLY_ADD_SELF_MSG "您申请加入%s的队伍!"
  135. #define MSG_TEAM_LEAVE "%s离开队伍。"
  136. #define MSG_TEAM_LEAVE_SELF_MSG "您离开%s的队伍。"
  137. #define MSG_TEAM_CHANGE_CAPTAIN_FAIL1 "队长任命失败!"
  138. #define MSG_TEAM_CHANGE_CAPTAIN_FAIL2 "%s统帅力不够!"
  139. #define MSG_TEAM_CHANGE_CAPTAIN_FAIL3 "您的队伍不能移交给新手!"
  140. #define MSG_TEAM_CHANGE_CAPTAIN "%s被任命为队长!"
  141. #define MSG_TEAM_CHANGE_CAPTAIN_SELF "您被%s任命为队长!"
  142. #define MSG_CHAT_APPLY_ADD_FRIEND "您向%s申请好友。"
  143. #define MSG_CHAT_FRIEND_HAD_IN "%s已被加为好友。"
  144. #define MSG_CHAT_GET_FRIEND_APPLY "%s申请加为好友!"
  145. #define MSG_CHAT_REFUSE_FRIEND "%s拒绝好友申请!"
  146. #define MSG_CHAT_ADD_FRIEND_FAIL "添加%s为好友失败!"
  147. #define MSG_CHAT_ADD_FRIEND_SUCCESS "您与%s成为好友!"
  148. #define MSG_CHAT_CREATE_TEAM_FAIL1 "好友分组创建失败!"
  149. #define MSG_CHAT_CREATE_TEAM_FAIL2 "已存在同名组!"
  150. #define MSG_CHAT_CREATE_TEAM_FAIL3 "已达最大分组数!"
  151. #define MSG_CHAT_RENAME_TEAM_FAIL "组名修改失败!"
  152. #define MSG_CHAT_DELETE_TEAM_FAIL1 "组删除失败!"
  153. #define MSG_CHAT_DELETE_TEAM_FAIL2 "这个组不允许删除!"
  154. #define MSG_CHAT_FRIEND_ONLINE "%s上线了!"
  155. #define MSG_CHAT_FRIEND_OFFLINE "%s下线了!"
  156. #define MSG_CHAT_DELETE_FRIEND "您与%s解除了好友关系!"
  157. #define MSG_CHAT_DELETED_FRIEND "%s与您解除了好友关系!"
  158. #define MSG_CHAT_MSG_FROM_FRIEND "%s发来消息!"
  159. #define MSG_CHAT_FRIEND_NOT_NEAR "%s不在附近!"
  160. #define MSG_CHAT_FRIEND_NOT_ONLINE "%s不在线!"
  161. #define MSG_CHAT_TAR_REFUSE_SINGLE_TALK "%s没有订阅私聊频道!"
  162. #define MSG_SHOP_NO_ROOM "背包空间不足!"
  163. #define MSG_SHOP_NO_MONEY "金钱不足!"
  164. #define MSG_NPC_NO_MANA "内力不足!"
  165. #define MSG_NPC_NO_STAMINA "体力不足!"
  166. #define MSG_NPC_NO_LIFE "生命不足!"
  167. #define MSG_NPC_DEATH "%s气绝身亡!!"
  168. #define MSG_OBJ_CANNOT_PICKUP "您不能拾取别人的物品!"
  169. #define MSG_MONEY_CANNOT_PICKUP "您不能拾取别人的钱!"
  170. #define MSG_OBJ_TOO_FAR "物品太远,无法拾取!"
  171. #define MSG_DEC_MONEY "您损失了%d两银子!"
  172. #define MSG_EARN_MONEY "您获得了%d两银子!"
  173. #define MSG_DEATH_LOSE_ITEM "您丢失了物品%s!"
  174. #define MSG_ADD_ITEM "您获得了%s!"
  175. #define MSG_ITEM_SAME_DETAIL_IN_IMMEDIATE "快捷栏已经有同类型的物品了!"
  176. #define MSG_CAN_NOT_VIEW_ITEM "现在不能察看他人装备!"
  177. #define MSG_ITEM_DAMAGED "您装备的%s长期磨损,已经彻底损坏!"
  178. #define MSG_ITEM_NEARLY_DAMAGED "您装备的%s已经接近损坏,请及时修理!"
  179. #define MSG_TRADE_STATE_OPEN "您现在可以交易。"
  180. #define MSG_TRADE_STATE_CLOSE "您现在不能交易。"
  181. #define MSG_TRADE_SELF_LOCK "您交易物品已经锁定。"
  182. #define MSG_TRADE_SELF_UNLOCK "您交易物品解除锁定。"
  183. #define MSG_TRADE_DEST_LOCK "%s交易物品已经锁定。"
  184. #define MSG_TRADE_DEST_UNLOCK "%s交易物品解除锁定。"
  185. #define MSG_TRADE_SUCCESS "您与%s交易成功。"
  186. #define MSG_TRADE_FAIL "您与%s交易失败。"
  187. #define MSG_TRADE_SELF_ROOM_FULL "您的背包空间不足!"
  188. #define MSG_TRADE_DEST_ROOM_FULL "%s的背包空间不足!"
  189. #define MSG_TRADE_SEND_APPLY "您向%s申请交易!"
  190. #define MSG_TRADE_GET_APPLY "%s申请与您交易!"
  191. #define MSG_TRADE_REFUSE_APPLY "%s拒绝与您交易!"
  192. #define MSG_TRADE_TASK_ITEM "任务物品不能交易!"
  193. #define MSG_PK_NORMAL_FLAG_OPEN "PK开关打开!"
  194. #define MSG_PK_NORMAL_FLAG_CLOSE "PK开关关闭!"
  195. #define MSG_PK_VALUE "您目前的PK值是%d!"
  196. #define MSG_PK_ERROR_1 "您现在处于非战斗状态!"
  197. #define MSG_PK_ERROR_2 "新手不能仇杀!"
  198. #define MSG_PK_ERROR_3 "您正与他人切磋!"
  199. #define MSG_PK_ERROR_4 "您正与他人仇杀!"
  200. #define MSG_PK_ERROR_5 "您不能仇杀新手!"
  201. #define MSG_PK_ERROR_6 "对方正处于非战斗状态!"
  202. #define MSG_PK_ERROR_7 "对方正与他人切磋!"
  203. #define MSG_PK_ENMITY_SUCCESS_1 "您与%s建立仇杀关系!"
  204. #define MSG_PK_ENMITY_SUCCESS_2 "10秒钟后仇杀开始执行!"
  205. #define MSG_PK_ENMITY_CLOSE "您的仇杀关系结束!"
  206. #define MSG_PK_ENMITY_OPEN "仇杀现在开始执行!"
  207. #define MSG_TONG_CREATE_ERROR01 "帮会名过长!"
  208. #define MSG_TONG_CREATE_ERROR02 "帮会阵营错误!"
  209. #define MSG_TONG_CREATE_ERROR03 "帮会成员不能另外建立帮会!"
  210. #define MSG_TONG_CREATE_ERROR04 "杀手才能建立帮会!"
  211. #define MSG_TONG_CREATE_ERROR05 "建立帮会的等级不够!"
  212. #define MSG_TONG_CREATE_ERROR06 "建立帮会的统帅等级不够!"
  213. #define MSG_TONG_CREATE_ERROR07 "建立帮会需要 %d 金钱!"
  214. #define MSG_TONG_CREATE_ERROR08 "组队中,不能建立帮会!"
  215. #define MSG_TONG_CREATE_ERROR09 "帮会名错误!"
  216. #define MSG_TONG_CREATE_ERROR10 "建立帮会需要的金钱不够!"
  217. #define MSG_TONG_CREATE_ERROR11 "帮会名不合法或与别的帮会重名!"
  218. #define MSG_TONG_APPLY_CREATE "您申请创建帮会!"
  219. #define MSG_TONG_CREATE_SUCCESS "帮会创建成功!"
  220. #define MSG_TONG_APPLY_ADD "您申请加入帮会!"
  221. #define MSG_TONG_APPLY_ADD_ERROR1 "帮会成员不能另外加入帮会!"
  222. #define MSG_TONG_APPLY_ADD_ERROR2 "杀手才能加入帮会!"
  223. #define MSG_TONG_APPLY_ADD_ERROR3 "组队中,不能加入帮会!"
  224. #define MSG_TONG_REFUSE_ADD "%s拒绝您加入帮会!"
  225. #define MSG_TONG_ADD_SUCCESS "您加入帮会!"
  226. #define MSG_TONG_CANNOT_LEAVE1 "帮主不能离开帮会!"
  227. #define MSG_TONG_CANNOT_LEAVE2 "长老不能离开帮会!"
  228. #define MSG_TONG_BE_KICKED "您被踢出帮会!"
  229. #define MSG_TONG_LEAVE_SUCCESS "您主动离开帮会成功!"
  230. #define MSG_TONG_LEAVE_FAIL "您主动离开帮会失败!"
  231. #define MSG_TONG_CHANGE_AS_MASTER "您被任命为帮主!"
  232. #define MSG_TONG_CHANGE_AS_MEMBER "您现在成为普通帮众!"
  233. #define MESSAGE_SYSTEM_ANNOUCE_HEAD "公告"
  234. enum enumMSG_ID
  235. {
  236. enumMSG_ID_NONE = 0,
  237. enumMSG_ID_TEAM_KICK_One,
  238. enumMSG_ID_TEAM_DISMISS,
  239. enumMSG_ID_TEAM_LEAVE,
  240. enumMSG_ID_TEAM_REFUSE_INVITE,
  241. enumMSG_ID_TEAM_SELF_ADD,
  242. enumMSG_ID_TEAM_CHANGE_CAPTAIN_FAIL,
  243. enumMSG_ID_TEAM_CHANGE_CAPTAIN_FAIL2,
  244. enumMSG_ID_OBJ_CANNOT_PICKUP,
  245. enumMSG_ID_OBJ_TOO_FAR,
  246. enumMSG_ID_DEC_MONEY,
  247. enumMSG_ID_TRADE_SELF_ROOM_FULL,
  248. enumMSG_ID_TRADE_DEST_ROOM_FULL,
  249. enumMSG_ID_TRADE_REFUSE_APPLY,
  250. enumMSG_ID_TRADE_TASK_ITEM,
  251. enumMSG_ID_GET_ITEM,
  252. enumMSG_ID_ITEM_DAMAGED,
  253. enumMSG_ID_MONEY_CANNOT_PICKUP,
  254. enumMSG_ID_CANNOT_ADD_TEAM,
  255. enumMSG_ID_TARGET_CANNOT_ADD_TEAM,
  256. enumMSG_ID_PK_ERROR_1,
  257. enumMSG_ID_PK_ERROR_2,
  258. enumMSG_ID_PK_ERROR_3,
  259. enumMSG_ID_PK_ERROR_4,
  260. enumMSG_ID_PK_ERROR_5,
  261. enumMSG_ID_PK_ERROR_6,
  262. enumMSG_ID_PK_ERROR_7,
  263. enumMSG_ID_DEATH_LOSE_ITEM,
  264. enumMSG_ID_TONG_REFUSE_ADD,
  265. enumMSG_ID_TONG_BE_KICK,
  266. enumMSG_ID_TONG_LEAVE_SUCCESS,
  267. enumMSG_ID_TONG_LEAVE_FAIL,
  268. enumMSG_ID_TONG_CHANGE_AS_MASTER,
  269. enumMSG_ID_TONG_CHANGE_AS_MEMBER,
  270. enumMSG_ID_NUM,
  271. };
  272. //---------------------------- 鼠标指针相关 ------------------------------
  273. #define MOUSE_CURSOR_NORMAL 0
  274. #define MOUSE_CURSOR_FIGHT 1
  275. #define MOUSE_CURSOR_DIALOG 2
  276. #define MOUSE_CURSOR_PICK 3
  277. #define MOUSE_CURSOR_USE 8
  278. #endif