StdAfx.cpp
上传用户:tianheyiqi
上传日期:2010-04-16
资源大小:282k
文件大小:4k
源码类别:

外挂编程

开发平台:

Visual C++

  1. // stdafx.cpp : source file that includes just the standard includes
  2. // ROA.pch will be the pre-compiled header
  3. // stdafx.obj will contain the pre-compiled type information
  4. #ifdef VIPMODE
  5. #pragma message("###### VIPMODE ON")
  6. #else
  7. #pragma message("###### VIPMODE OFF")
  8. #endif
  9. #include "stdafx.h"
  10. CSocket sockServer;
  11. CSocket sockInject;
  12. int nConnState;
  13. DWORD dwAccountId;
  14. DWORD dwCharId;
  15. DWORD dwSessionId;
  16. BOOL bWelcomeSent;
  17. CFile fLog;
  18. int nCharSelected;
  19. CWinThread *pWorkingThread;
  20. int nThreadTerm;
  21. BOOL bConnected;
  22. INVENTORYARRAY inventory;
  23. MONSTERARRAY monsters;
  24. YOU you;
  25. PLAYERARRAY players;
  26. PORTALARRAY portals;
  27. ITEMARRAY items;
  28. INVENTORYARRAY cart;
  29. SKILLARRAY skills;
  30. YOU youTemp[3];
  31. DAMAGEARRAY damages;
  32. BOSSINFOARRAY bossinfo;
  33. SPELLARRAY spells;
  34. PLAYERARRAY partners;
  35. LOG_LEVEL llFile;
  36. LOG_LEVEL llDlg;
  37. LOG_LEVEL llRo;
  38. CROAMap mapItem;
  39. CROAMap mapItemType;
  40. CROAMap mapEquipType;
  41. CROAMap mapMapName;
  42. CROAMap mapJob;
  43. CROAMap mapSex;
  44. CROAMap mapSkill;
  45. CROAMap mapStatus011f;
  46. CROAMap mapStatus0119;
  47. CROAField field;
  48. CROAMap mapMvpMonster;
  49. CROAMap mapMonster;
  50. CROAMap mapAvoidAid;
  51. CROAMap mapElements;
  52. CROAMap mapSkillsst;
  53. //CRITICAL_SECTION criticalSection;
  54. //MISCSETTING misc;
  55. OPTION option;
  56. SETTING_CMN settingcmn;
  57. SETTING_MVP settingmvp;
  58. BYTE mode;
  59. DWORD dwMvpId;
  60. BOOL bAutoSearch;
  61. DWORD dwAutoSearchTick;
  62. CString strAutoSearchMap;
  63. BOOL bAutoSa;
  64. DWORD dwAutoSaTick;
  65. BOOL bProfileLoaded;
  66. HHOOK hHook;
  67. HINSTANCE hInstDll;
  68. int nBossInfoNum;
  69. DWORD dwUseItemTick;
  70. DWORD dwAttackTick;
  71. BOOL bFlyUsed;
  72. BOOL bAiEnabled;
  73. CString UFDESC[]=
  74. {
  75. _T("不使用"),
  76. _T("打开/关闭自动攻击"),
  77. _T("开始/停止搜寻MVP模式"),
  78. _T("打开/关闭围攻时使用技能"),
  79. _T("对MVP使用辅助技能"),
  80. _T("回到保存地点"),
  81. _T("查看BOSS重生时间"),
  82. _T("打开/关闭使用队聊共享信息"),
  83. _T("打开/关闭自动捡物"),
  84. _T("瞬移"),
  85. _T("光猎"),
  86. _T("天使之障壁"),
  87. _T("圣母之颂歌"),
  88. _T("幸运之颂歌"),
  89. _T("霸体"),
  90. _T("大声呐喊"),
  91. _T("武器值最大化"),
  92. _T("凶砍"),
  93. _T("速度激发"),
  94. _T("无视体型攻击"),
  95. _T("火狩"),
  96. _T("心神凝聚"),
  97. _T("能量外套"),
  98. _T("伊登的苹果"),
  99. _T("刺客的黄昏"),
  100. _T("冷笑话"),
  101. _T("不谐和音"),
  102. _T("丑陋之舞"),
  103. _T("惊声尖叫"),
  104. _T("自动贤者"),
  105. };
  106. FUNCCALL UFENTRY[]=
  107. {
  108. ufDummy,
  109. ufAutoAttackMvp,
  110. ufAutoSearchMvp,
  111. ufUseSkillWhen,
  112. ufUseSkillOnMvp,
  113. ufHome,
  114. ufBossList,
  115. ufPartyChat,
  116. ufTakeItem,
  117. ufTeleport,
  118. ufRuwach,
  119. ufAngelus,
  120. ufMagnificat,
  121. ufGloria,
  122. ufEndure,
  123. ufLoud,
  124. ufMaximize,
  125. ufOverthrust,
  126. ufAdrenaline,
  127. ufWeaponperfect,
  128. ufSight,
  129. ufConcentration,
  130. ufEnergyCoat,
  131. ufAppleIdun,
  132. ufAssassinCross,
  133. ufFrostJoke,
  134. ufDissonance,
  135. ufUglyDance,
  136. ufScream,
  137. ufAutoSaClassChange
  138. };
  139. USERFUNCTION userfuncs[12]=
  140. {
  141. eAutoAttackMvp,
  142. eAutoSearchMvp,
  143. eUseSkillWhen,
  144. eDummy,
  145. eDummy,
  146. eDummy,
  147. eDummy,
  148. eDummy,
  149. eDummy,
  150. eHome,
  151. eDummy,
  152. eTeleport
  153. };
  154. FUNCCALL curFunc;
  155. DWORD curFuncPara;
  156. char cSendKey[MAX_PATH];
  157. CString emotions[10];
  158. CString EMOTIONDEF[] = 
  159. {
  160. _T("*惊叹号*"),
  161. _T("*问号*"),
  162. _T("*吹口哨*"),
  163. _T("*爱心*"),
  164. _T("*流汗*"),
  165. _T("*灯泡*"),
  166. _T("*生气*"),
  167. _T("*乌云*"),
  168. _T("*金钱*"),
  169. _T("*沉默*"),
  170. _T("*剪刀*"),
  171. _T("*石头*"),
  172. _T("*布*"),
  173. _T("*国旗*"),
  174. _T("*大心*"),
  175. _T("*感谢*"),
  176. _T("*糟糕*"),
  177. _T("*抱歉*"),
  178. _T("*愉快*"),
  179. _T("*冒汗*"),
  180. _T("*无奈*"),
  181. _T("*赞扬*"),
  182. _T("*脸红*"),
  183. _T("*不妙*"),
  184. _T("*答对了*"),
  185. _T("*答错了*"),
  186. _T("*求救*"),
  187. _T("*出发*"),
  188. _T("*流泪*"),
  189. _T("*奸笑*"),
  190. _T("*亲吻*"),
  191. _T("*索吻*"),
  192. _T("*神气*"),
  193. _T("*点头*"),
  194. _T("*禁言*"),
  195. _T("*摇旗呐喊*"),
  196. _T("*生气2*"),
  197. _T("*流口水*"),
  198. _T("*爱心2*"),
  199. _T("*吐舌头*"),
  200. _T("*害羞*"),
  201. _T("*摸头*"),
  202. _T("*回SP*"),
  203. _T("*流口水2*"),
  204. _T("*勾引*"),
  205. _T("*打哈欠*"),
  206. _T("*祝贺*"),
  207. _T("*回HP*")
  208. };
  209. CStringArray HPITEMS;
  210. CStringArray SPITEMS;
  211. BOOL bIsModal;
  212. CRITICAL_SECTION csShortcutFuncs;
  213. BYTE serverip[3][6];