Source:TyranOMapHack124b/D3Scene.cpp3

From Codemotion
Jump to: navigation, search

Source:TyranOMapHack124b/D3Scene.cpp3

Description

Main Source - Part 3: Features

Code

Parent Directory: Source:TyranOMapHack124b
Plain Code: edit

  1. 		case IDB_BOUT2:
  2. 			rad = SendMessage(boutc2,BM_GETCHECK,0,0);
  3. 			if(rad == 1)
  4. 			{
  5. 				SetWindowText(hwnd, titlesafe);   
  6. 				WRITE (0x3A201B,"\x90\x90",2);
  7.                 WRITE (0x3A1F70,"\x90\x90",2);
  8.                 //ud blight
  9.                 WRITE (0x4076C9,"\x01",1);
  10.                 WRITE (0x4076CF,"\x01",1);
  11.                 //build unexplored
  12.                 WRITE (0x39EAFC,"\x75",1);
  13. 			} 
  14.  
  15. 			else
  16. 			{
  17. 				SetWindowText(hwnd, titlesafe);
  18. 				WRITE (0x3A201B,"\x23\xCA",2);
  19.                 WRITE (0x3A1F70,"\xEB\x09",2);
  20.                 //ud blight
  21.                 WRITE (0x407709,"\x00",1);
  22.                 WRITE (0x40770F,"\x00",1);
  23.                 //build unexplored
  24.                 WRITE (0x39EAFC,"\x74",1); 
  25. 			}
  26.  
  27. 			break;
  28.  
  29. 		case IDB_BOUT3:
  30. 			rad = SendMessage(boutc3,BM_GETCHECK,0,0);
  31. 			if(rad == 1)
  32. 			{
  33. 				SetWindowText(hwnd, titlesafe);
  34.  
  35. 				WRITE (0x361EBC,"\x00",1);
  36. 			} 
  37. 			else
  38. 			{
  39. 				SetWindowText(hwnd, titlesafe);
  40. 				WRITE (0x361EBC,"\x01",1);
  41.  
  42. 			}
  43.  
  44. 			break;
  45.  
  46. 		case IDB_BOUT4:
  47. 			rad = SendMessage(boutc4,BM_GETCHECK,0,0);
  48. 			if(rad == 1)
  49. 			{
  50. 				SetWindowText(hwnd, titlesafe);
  51.                 WRITE (0x74D0F9,"\xB2\x00\x90\x90\x90\x90",6);
  52. 			} 
  53. 			else
  54. 			{
  55. 				SetWindowText(hwnd, titlesafe);
  56. 				WRITE (0x74D0F9,"\x8A\x90\x6C\x7E\xAB\x6F",6);
  57. 			}
  58.  
  59. 			break;
  60. // bugged
  61. 		case IDB_BOUT5:
  62. 			rad = SendMessage(boutc5,BM_GETCHECK,0,0);
  63. 			if(rad == 1)
  64. 			{
  65. 				SetWindowText(hwnd, titlesafe);
  66. 				WRITE (0x356FA5,"\x90\x90",2);
  67. 			} 
  68. 			else
  69. 			{
  70. 				SetWindowText(hwnd, titlesafe);
  71. 				WRITE (0x356FA5,"\x88\x01",2);  
  72. 			}
  73.  
  74. 			break;
  75.  
  76. 		case IDB_BOUT6:
  77. 			rad = SendMessage(boutc6,BM_GETCHECK,0,0);
  78. 			if(rad == 1)
  79. 			{
  80. 				SetWindowText(hwnd, titlesafe);
  81. 				WRITE (0x285C4C,"\x90\x90",2);
  82. 				WRITE (0x285C62,"\xEB\x29",2);  
  83. 			} 
  84. 			else
  85. 			{
  86. 				SetWindowText(hwnd, titlesafe);
  87. 				WRITE (0x285C4C,"\x74\x2A",2);
  88. 				WRITE (0x285C62,"\x75\x29",2);      
  89. 			}
  90.  
  91. 			break;
  92.  
  93. 		case IDB_BOUT8:
  94. 			rad = SendMessage(boutc8,BM_GETCHECK,0,0);
  95. 			if(rad == 1)
  96. 			{
  97. 				//WRITE(0x398E01,"\x90\x90\x90\x90\x90\x33\xc0\x40",8);
  98. 				//WRITE(0x360C91,"\x3B\xC0\x0F\x85\x30\x04\x00\x00",8);
  99. 				//WRITE(0x3558FE,"\x90\x90\x90",3);
  100. 				SetWindowText(hwnd, titlesafe);
  101. 				WRITE (0x28351C,"\x40\xc3",2);
  102. 				//WRITE(0x42F836,"\x3B\xC0\x0F\x85\xC0\x00\x00\x00\x8D\x8B\xF0\x00\x00\x00\xE8\x97\x3C\x03\x00\x3B\xC0\x0F\x85\xAD\x00\x00\x00",27);
  103. 			} 
  104. 			else
  105. 			{
  106. 				//WRITE(0x398E01,"\x55\x50\x56\xE8\xF7\x76\x00\x00",8);
  107. 				//WRITE(0x360C91,"\x85\xC0\x0F\x84\x30\x04\x00\x00",8);
  108. 				//WRITE(0x3558FE,"\x66\x85\xC0",3);
  109. 				SetWindowText(hwnd, titlesafe);
  110. 				WRITE (0x28351C,"\xC3\xCC",2);
  111. 				//WRITE(0x42F836,"\x85\xC0\x0F\x84\xC0\x00\x00\x00\x8D\x8B\xF0\x00\x00\x00\xE8\x97\x3C\x03\x00\x85\xC0\x0F\x84\xAD\x00\x00\x00",27);  
  112. 			}
  113.  
  114. 			break;
  115.  
  116. 		case IDB_BOUT9:
  117. 			rad = SendMessage(boutc9,BM_GETCHECK,0,0);
  118. 			if(rad == 1)
  119. 			{
  120. 				SetWindowText(hwnd, titlesafe);
  121. 				WRITE(0x3604CA,"\x90\x90",2);
  122. 			} 
  123. 			else
  124. 			{
  125. 				SetWindowText(hwnd, titlesafe);
  126. 				WRITE(0x3604CA,"\xEB\x08",2);
  127. 			}
  128. 			break;
  129.  
  130. 		case IDB_BOUT10:
  131. 			rad = SendMessage(boutc10,BM_GETCHECK,0,0);
  132. 			if(rad == 1)
  133. 			{
  134. 				SetWindowText(hwnd, titlesafe);   
  135. 				WRITE(0x39A45B,"\x90\x90\x90\x90\x90\x90",6);
  136. 				WRITE(0x39A46E,"\x90\x90\x90",3);
  137. 				WRITE(0x39A471,"\x90\x90\x90\x90\x90\x33\xc0\x40",8); 
  138. 				WRITE(0x3622D1,"\x3B\xC0\x0F\x85\x30\x04\x00\x00",8);
  139. 				WRITE(0x356F3E,"\x90\x90\x90",3); 
  140. 			} 
  141. 			else
  142. 			{
  143. 				SetWindowText(hwnd, titlesafe);
  144. 				WRITE(0x39A45B,"\x8B\x97\x98\x01\x00\x00",6);
  145. 				WRITE(0x39A46E,"\x0F\xB7\x00",3);
  146. 				WRITE(0x39A471,"\x55\x50\x56\xE8\xF7\x7B\x00\x00",8); 
  147. 				WRITE(0x3622D1,"\x85\xC0\x0F\x84\x30\x04\x00\x00",8);
  148. 				WRITE(0x356F3E,"\x66\x85\xC0",3); 
  149. 			}
  150. 			break;
  151.  
  152. 		case IDB_BOUT11:
  153. 			rad = SendMessage(boutc11,BM_GETCHECK,0,0);
  154. 			if(rad == 1)
  155. 			{
  156. 				SetWindowText(hwnd, titlesafe);   
  157. 				//WRITE(0x3C3F02,"\xEB",1);
  158. 				//WRITE(0x3BF63C,"\xB8\xFF\x00\x00\x00\xEB",6);
  159. 				WRITE(0x4076CA,"\x90\x90",2);
  160. 				WRITE(0x3A1F5B,"\xEB",1);
  161. 			}
  162. 			else
  163. 			{
  164. 				SetWindowText(hwnd, titlesafe);
  165. 				//WRITE(0x3C3F02,"\x74",1);
  166. 				//WRITE(0x3BF63C,"\x3D\xFF\x00\x00\x00\x76",6);
  167. 				WRITE(0x40770A,"\x75\x0A",2);
  168. 				WRITE(0x3A1F5B,"\x75",1);   
  169. 			}
  170. 			break;
  171.  
  172. 		case IDB_BOUT12:
  173. 			rad = SendMessage(boutc12,BM_GETCHECK,0,0);
  174. 			if(rad == 1)
  175. 			{
  176. 				SetWindowText(hwnd, titlesafe);
  177. 				//SendMessage(boutc13, BM_SETCHECK,0,0);
  178. 				//SendMessage(boutc14, BM_SETCHECK,0,0);    
  179. 				WRITE(0x39BE1D,"\x90\x90",2);
  180. 				WRITE(0x39BE3A,"\x90\x90",2);
  181. 			} 
  182. 			else
  183. 			{
  184. 				SetWindowText(hwnd, titlesafe);
  185. 				WRITE(0x39BE1D,"\x74\x05",2);
  186. 				WRITE(0x39BE3A,"\x74\x05",2);
  187. 			}
  188. 			break;
  189.  
  190. 		case IDB_BOUT13:
  191. 			rad = SendMessage(boutc13,BM_GETCHECK,0,0);
  192. 			if(rad == 1)
  193. 			{
  194. 				SetWindowText(hwnd, titlesafe);
  195. 				//SendMessage(boutc12, BM_SETCHECK,0,0);
  196. 				//SendMessage(boutc14, BM_SETCHECK,0,0);   
  197. 				WRITE(0x39BE3A,"\x90\x90",2);
  198. 			} 
  199. 			else
  200. 			{
  201. 				SetWindowText(hwnd, titlesafe);
  202. 				WRITE(0x39BE3A,"\x74\x05",2);
  203. 			}
  204. 			break;
  205.  
  206. 		case IDB_BOUT14:
  207. 			rad = SendMessage(boutc14,BM_GETCHECK,0,0);
  208. 			if(rad == 1)
  209. 			{
  210. 				SetWindowText(hwnd, titlesafe);
  211. 				//SendMessage(boutc12, BM_SETCHECK,0,0);
  212. 				//SendMessage(boutc13, BM_SETCHECK,0,0);    
  213. 				WRITE(0x39BE1D,"\x90\x90",2);
  214. 			} 
  215. 			else
  216. 			{
  217. 				SetWindowText(hwnd, titlesafe);
  218. 				WRITE(0x39BE1D,"\x74\x05",2);
  219. 			}
  220. 			break;
  221.  
  222. 			/*
  223. 			case IDB_BOUT15:
  224. 			rad = SendMessage(boutc15,BM_GETCHECK,0,0);
  225. 			if(rad == 1)
  226. 			{
  227. 			WRITE(0x5F9C1D,"\x83\xC7\x00",3);
  228. 			} 
  229. 			else
  230. 			{
  231. 			WRITE(0x5F9C1D,"\x83\xC7\x01",3);
  232. 			}
  233. 			break;
  234. 			*/
  235. /*
  236. 		case IDB_BOUT16:
  237. 			rad = SendMessage(boutc16,BM_GETCHECK,0,0);
  238. 			if(rad == 1)
  239. 			{
  240. 				SetWindowText(hwnd, titlesafe);   
  241. 				WRITE(0x360AD3,"\x90\x90",2);
  242. 			} 
  243. 			else
  244. 			{
  245. 				SetWindowText(hwnd, titlesafe);
  246. 				WRITE(0x360AD3,"\x72\xEB",2);
  247. 			}
  248. 			break;
  249.  
  250. 		case IDB_BOUT17:
  251. 			rad = SendMessage(boutc17,BM_GETCHECK,0,0);
  252. 			if(rad == 1)
  253. 			{
  254. 				SetWindowText(hwnd, titlesafe);   
  255. 				WRITE(0x5FDFF3,"\x83\x43\x04\x00",4);
  256. 			} 
  257. 			else
  258. 			{
  259. 				SetWindowText(hwnd, titlesafe);
  260. 				WRITE(0x5FDFF3,"\x83\x43\x04\x01",4);
  261. 			}
  262. 			break;
  263. */
  264.  
  265.         case IDB_BOUT16:
  266. 			rad = SendMessage(boutc16,BM_GETCHECK,0,0);
  267. 			if(rad == 1)
  268. 			{
  269. 				SetWindowText(hwnd, titlesafe);   
  270. 				WRITE(0x43F956,"\x3B\xC0\x0F\x85\xC0\x00\x00\x00\x8D\x8B\xF0\x00\x00\x00\xE8\x97\x42\x03\x00\x3B\xC0\x0F\x85\xAD\x00\x00\x00",27);
  271. 			} 
  272. 			else
  273. 			{
  274. 				SetWindowText(hwnd, titlesafe);
  275. 				WRITE(0x43F956,"\x85\xC0\x0F\x84\xC0\x00\x00\x00\x8D\x8B\xF0\x00\x00\x00\xE8\x97\x42\x03\x00\x85\xC0\x0F\x84\xAD\x00\x00\x00",27); 
  276. 			}
  277. 			break;
  278.  
  279.         case IDB_BOUT17:
  280. 			rad = SendMessage(boutc17,BM_GETCHECK,0,0);
  281. 			if(rad == 1)
  282. 			{
  283. 				SetWindowText(hwnd, titlesafe);
  284.                 WRITE(0x3CC2F2,"\xEB",1);
  285.                 WRITE(0x3C6E1C,"\xB8\xFF\x00\x00\x00\xEB",6);
  286.  
  287.  
  288. 			} 
  289. 			else
  290. 			{
  291. 				SetWindowText(hwnd, titlesafe);
  292. 			    WRITE(0x3CC2F2,"\x74",1);
  293. 				WRITE(0x3C6E1C,"\x3D\xFF\x00\x00\x00\x76",6);
  294. 			}
  295.  
  296. 		case IDB_BOUT18:
  297. 			rad = SendMessage(boutc18,BM_GETCHECK,0,0);
  298. 			if(rad == 1)
  299. 			{
  300. 				SetWindowText(hwnd, titlesafe);   
  301. 				WRITE(0x285C62,"\xEB",1);
  302. 			} 
  303. 			else
  304. 			{
  305. 				SetWindowText(hwnd, titlesafe);
  306. 				WRITE(0x285C62,"\x75",1);
  307. 			}
  308. 			break;
  309.  
  310. 		case IDB_BOUT19:
  311. 			rad = SendMessage(boutc19,BM_GETCHECK,0,0);
  312. 			if(rad == 1)
  313. 			{
  314. 				SetWindowText(hwnd, titlesafe);   
  315. 				NWRITE(0x4559EC,"\x60\x0B\xC0\x75\x2F\x8A\x8E\xD0\x02\x00\x00\x80\xF9\x01\x74\x51\xC6\x86\xD0\x02\x00\x00\x01\xC6\x86\xD1\x02\x00\x00\x01\xC6\x86\xD2\x02\x00\x00\xFF\x8B\xCE\xB8\xFF\x01\x01\xFF\xFF\x15\x60\x5A\x45\x00\xEB\x2D\x8A\x8E\xD0\x02\x00\x00\x80\xF9\xFF\x74\x22\xC6\x86\xD0\x02\x00\x00\xFF\xC6\x86\xD1\x02\x00\x00\xFF\xC6\x86\xD2\x02\x00\x00\xFF\x8B\xCE\xB8\xFF\xFF\xFF\xFF\xFF\x15\x60\x5A\x45\x00\x61\xB8\x01\x00\x00\x00\x23\xD8\x89\x44\x24\xE4\xFF\x35\x65\x5A\x45\x00\xC3",116);
  316. 				DWORD addr[3];
  317. 	            addr[0] = GameDLL + 0x29E330; //References to the Game.dll
  318.                 addr[1] = GameDLL + 0x39A47F; //
  319.                 addr[2] = 0x4559EC;            //Detour
  320. 				NWRITE(0x455A60,&addr[0],sizeof(DWORD));
  321. 				NWRITE(0x455A65,&addr[1],sizeof(DWORD));
  322. 				NWRITE(0x455A6A,&addr[2],sizeof(DWORD));
  323. 				WRITE(0x39A479,"\xFF\x25\x6A\x5A\x45\x00",6); //Plant detour
  324. 			} 
  325. 			else
  326. 			{
  327. 				SetWindowText(hwnd, titlesafe);
  328. 				NWRITE(0x4559EC,"\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00",116);
  329. 				DWORD addr[3];
  330. 				addr[0] = GameDLL + 0x29E330; //References to the Game.dll
  331. 				addr[1] = GameDLL + 0x39A47F; //
  332. 				addr[2] = 0x4559EC;            //Detour
  333. 				NWRITE(0x455A60,&addr[0],sizeof(DWORD));
  334. 				NWRITE(0x455A65,&addr[1],sizeof(DWORD));
  335. 				NWRITE(0x455A6A,&addr[2],sizeof(DWORD));
  336. 				WRITE(0x39A479,"\x23\xD8\x89\x44\x24\x1C",6); //DePlant detour
  337. 			}
  338. 			break;
  339.  
  340. 		case IDB_BOUT20:
  341. 			rad = SendMessage(boutc20,BM_GETCHECK,0,0);
  342. 			if(rad == 1)
  343. 			{
  344. 				SetWindowText(hwnd, titlesafe);   
  345.                 WRITE(0x20318C,"\x90\x90\x90\x90\x90\x90",6);
  346.                 WRITE(0x34FD28,"\x90\x90",2);
  347. 			} 
  348. 			else
  349. 			{
  350. 				SetWindowText(hwnd, titlesafe);
  351. 				WRITE(0x20318C,"\x0F\x84\x5F\x01\x00\x00",6);
  352. 				WRITE(0x34FD28,"\x74\x08",2);
  353. 			}
  354. 			break;
  355.  
  356. 		case IDB_BOUT21:
  357. 			rad = SendMessage(boutc21,BM_GETCHECK,0,0);
  358. 			if(rad == 1)
  359. 			{
  360. 				SetWindowText(hwnd, titlesafe);   
  361.                 WRITE(0x28EC8E,"\xEB",1);
  362.                 WRITE(0x34FD66,"\x90\x90\x90\x90",4);
  363.  
  364.  
  365. 			} 
  366. 			else
  367. 			{
  368. 				SetWindowText(hwnd, titlesafe);
  369. 				WRITE(0x28EC8E,"\x75",1);
  370. 				WRITE(0x34FD66,"\x85\xC0\x74\x08",4);
  371.  
  372. 			}
  373. 			break;
  374.  
  375. 		case IDB_BOUT22:
  376. 			rad = SendMessage(boutc22,BM_GETCHECK,0,0);
  377. 			if(rad == 1)
  378. 			{
  379. 				SetWindowText(hwnd, titlesafe);
  380. 				//SendMessage(boutc24, BM_SETCHECK,0,0);
  381. 				//SendMessage(boutc25, BM_SETCHECK,0,0);   
  382. 		        //WRITE(0x371581, "\x5B\x26",2);
  383.                 //WRITE(0x371587, "\x90\x90\x90\x90\x90\x90",6);
  384.                 WRITE(0x371640, "\xE8\xFB\x29\x03\x00\xEB\x06\x0F\x85\x8F\x02\x00\x00\xEB\xC9\x90\x90\x90\x90",19);
  385. 			} 
  386. 			else
  387. 			{
  388. 				SetWindowText(hwnd, titlesafe);
  389. 				//WRITE(0x371581, "\x1B\x28",2);
  390. 				//WRITE(0x371587, "\x0F\x84\x8F\x02\x00\x00",6);
  391. 				WRITE(0x371640, "\xE8\xFB\x29\x03\x00\x85\xC0\x0F\x84\x8F\x02\x00\x00\x8B\x85\x80\x01\x00\x00",19);
  392. 			}
  393. 			break;
  394.  
  395. 		case IDB_BOUT23:
  396. 			rad = SendMessage(boutc23,BM_GETCHECK,0,0);
  397. 			if(rad == 1)
  398. 			{
  399. 				SetWindowText(hwnd, titlesafe);   
  400. 				WRITE(0x34E822,"\xB8\x00\x00\x00\x00\x90",6);
  401. 				DWORD highTradeAmount = 200;
  402. 				WRITE(0x34E823,&highTradeAmount,sizeof(DWORD));
  403. 				WRITE(0x34E82A,"\xB8\x00\x00\x00\x00\x90",6);
  404. 				DWORD lowTradeAmount = 100;
  405. 				WRITE(0x34E82B,&lowTradeAmount,sizeof(DWORD));
  406.  
  407. 			} 
  408. 			else
  409. 			{
  410. 				SetWindowText(hwnd, titlesafe);   
  411. 				WRITE(0x34E822,"\x8B\x87\x6C\x01\x00\x00",6);
  412. 				DWORD highTradeAmount = 200;
  413. 				WRITE(0x34E823,&highTradeAmount,sizeof(DWORD));
  414. 				WRITE(0x34E82A,"\x8B\x87\x68\x01\x00\x00",6);
  415. 				DWORD lowTradeAmount = 100;
  416. 				WRITE(0x34E82B,&lowTradeAmount,sizeof(DWORD));
  417. 			}
  418. 			break;
  419.  
  420. 		case IDB_BOUT24:
  421. 			rad = SendMessage(boutc24,BM_GETCHECK,0,0);
  422. 			if(rad == 1)
  423. 			{
  424. 				SetWindowText(hwnd, titlesafe);
  425. 				//SendMessage(boutc22, BM_SETCHECK,0,0);
  426. 				//SendMessage(boutc25, BM_SETCHECK,0,0);   
  427. 	            //WRITE(0x371581, "\x5B\x26",2);
  428.                 //WRITE(0x371587, "\x0F\x85\x8F\x02\x00\x00",6);
  429.                 WRITE(0x371640, "\xE8\xFB\x29\x03\x00\x85\xC0\x0F\x85\x8F\x02\x00\x00\xEB\xC9\x90\x90\x90\x90",19);
  430.  
  431.  
  432. 			} 
  433. 			else
  434. 			{
  435. 				SetWindowText(hwnd, titlesafe);
  436. 				//WRITE(0x371581, "\xDB\x23",2);
  437. 				//WRITE(0x371587, "\x0F\x84\x8F\x02\x00\x00",6);
  438.                 WRITE(0x371640, "\xE8\xFB\x29\x03\x00\x85\xC0\x0F\x84\x8F\x02\x00\x00\x8B\x85\x80\x01\x00\x00",19);
  439.  
  440. 			}
  441. 			break;
  442.  
  443. 		case IDB_BOUT25:
  444. 			rad = SendMessage(boutc25,BM_GETCHECK,0,0);
  445. 			if(rad == 1)
  446. 			{
  447. 				SetWindowText(hwnd, titlesafe);
  448. 				//SendMessage(boutc22, BM_SETCHECK,0,0);
  449. 				//SendMessage(boutc24, BM_SETCHECK,0,0);     
  450.                 //WRITE(0x371581, "\x5B\x26",2);
  451.                 //WRITE(0x371587, "\x0F\x84\x8F\x02\x00\x00",6);
  452.                 WRITE(0x371640, "\xE8\xFB\x29\x03\x00\x85\xC0\x0F\x84\x8F\x02\x00\x00\xEB\xC9\x90\x90\x90\x90",19);
  453.  
  454.  
  455.  
  456. 			} 
  457. 			else
  458. 			{
  459. 				SetWindowText(hwnd, titlesafe);
  460. 				//WRITE(0x371581, "\xDB\x23",2);
  461. 				//WRITE(0x371587, "\x0F\x84\x8F\x02\x00\x00",6);
  462. 				WRITE(0x371640, "\xE8\xFB\x29\x03\x00\x85\xC0\x0F\x84\x8F\x02\x00\x00\x8B\x85\x80\x01\x00\x00",19);
  463.  
  464.  
  465. 			}
  466. 			break;
  467.  
  468.  
  469. 		case IDB_BOUT53:
  470. 			rad = SendMessage(boutc53,BM_GETCHECK,0,0);
  471. 			if(rad == 1)
  472. 			{
  473. 				SetWindowText(hwnd, titlesafe);
  474.                 WRITE(0x302341, "\x60", 1);
  475.                 WRITE(0x30234B, "\x60", 1);
  476.                 WRITE(0x302355, "\x60", 1);
  477.                 WRITE(0x30235F, "\x60", 1);
  478.                 WRITE(0x302369, "\x60", 1);
  479. 			} 
  480. 			else
  481. 			{
  482.                 SetWindowText(hwnd, titlesafe);
  483.                 WRITE(0x302341, "\x94", 1);
  484.                 WRITE(0x30234B, "\x90", 1);
  485.                 WRITE(0x302355, "\x8C", 1);
  486.                 WRITE(0x30235F, "\x88", 1);
  487.                 WRITE(0x302369, "\x84", 1);
  488. 			}
  489. 			break;
  490.  
  491. 		case IDB_BOUT54:
  492. 			rad = SendMessage(boutc54,BM_GETCHECK,0,0);
  493. 			if(rad == 1)
  494. 			{   
  495.                 SetWindowText(hwnd, titlesafe);
  496.                 DWORD Offset = 0x94859A;
  497.                 VirtualProtectEx((void*)hProc,(void*)(GameDLL + Offset),sizeof( Offset ),PAGE_READWRITE, &Protection);
  498.                 WRITE(Offset, "\x87", 1);
  499.                 VirtualProtectEx((void*)hProc,(void*)(GameDLL + Offset),sizeof( Offset ),Protection, 0);
  500.                 PostMessage(hWar3, WM_SYSKEYDOWN, VK_DELETE, 0);
  501. 			} 
  502. 			else
  503. 			{
  504.                 SetWindowText(hwnd, titlesafe);
  505.                 DWORD Offset = 0x94859A;
  506.                 VirtualProtectEx((void*)hProc,(void*)(GameDLL + Offset),sizeof( Offset ),PAGE_READWRITE, &Protection);
  507.                 WRITE(Offset, "\x98", 1);
  508.                 VirtualProtectEx((void*)hProc,(void*)(GameDLL + Offset),sizeof( Offset ),Protection, 0);
  509.                 PostMessage(hWar3, WM_SYSKEYDOWN, VK_DELETE, 0);
  510. 			}
  511. 			break;
  512.  
  513. 		case IDB_BOUT57:
  514. 			rad = SendMessage(boutc57,BM_GETCHECK,0,0);
  515. 			if(rad == 1)
  516. 			{   
  517.                 SetWindowText(hwnd, titlesafe);
  518.                 DWORD Offset = 0x9485A7;
  519.                 VirtualProtectEx((void*)hProc,(void*)(GameDLL + Offset),sizeof( Offset ),PAGE_READWRITE, &Protection);
  520.                 WRITE(Offset, "\x10", 1);
  521.                 VirtualProtectEx((void*)hProc,(void*)(GameDLL + Offset),sizeof( Offset ),Protection, 0);
  522.                 PostMessage(hWar3, WM_SYSKEYDOWN, VK_DELETE, 0);
  523. 			} 
  524. 			else
  525. 			{
  526.                 SetWindowText(hwnd, titlesafe);
  527.                 DWORD Offset = 0x9485A7;
  528.                 VirtualProtectEx((void*)hProc,(void*)(GameDLL + Offset),sizeof( Offset ),PAGE_READWRITE, &Protection);
  529.                 WRITE(Offset, "\x42", 1);
  530.                 VirtualProtectEx((void*)hProc,(void*)(GameDLL + Offset),sizeof( Offset ),Protection, 0);
  531.                 PostMessage(hWar3, WM_SYSKEYDOWN, VK_DELETE, 0);
  532. 			}
  533. 			break;
  534.  
  535. 		case IDB_BOUT26:
  536. 			SetWindowText(hwnd, titlesafe);
  537. 			SendMessage(hwndEdit, WM_SETTEXT, 16, (LPARAM)"|CFF0000FF");
  538. 			SetFocus(hwndEdit);
  539. 			keybd_event(VK_END,0x1c,0,0);
  540. 			break;
  541.  
  542. 		case IDB_BOUT27:
  543. 			SetWindowText(hwnd, titlesafe);
  544. 			SendMessage(hwndEdit, WM_SETTEXT, 16, (LPARAM)"|CFFFF0000");
  545. 			SetFocus(hwndEdit);
  546. 			keybd_event(VK_END,0x1c,0,0);
  547. 			break;
  548.  
  549. 		case IDB_BOUT28:
  550. 			SetWindowText(hwnd, titlesafe);
  551. 			SendMessage(hwndEdit, WM_SETTEXT, 16, (LPARAM)"|CFF00FF00");
  552. 			SetFocus(hwndEdit);
  553. 			keybd_event(VK_END,0x1c,0,0);
  554. 			break;
  555.  
  556. 		case IDB_BOUT29:
  557. 			SetWindowText(hwnd, titlesafe);
  558. 			SendMessage(hwndEdit, WM_SETTEXT, 16, (LPARAM)"|CFFFFFF00");
  559. 			SetFocus(hwndEdit);
  560. 			keybd_event(VK_END,0x1c,0,0);
  561. 			break;
  562.  
  563. 		case IDB_BOUT30:
  564. 			SetWindowText(hwnd, titlesafe);
  565. 			SendMessage(hwndEdit, WM_SETTEXT, 16, (LPARAM)"|CFF800080");
  566. 			SetFocus(hwndEdit);
  567. 			keybd_event(VK_END,0x1c,0,0);
  568. 			break;
  569.  
  570. 		case IDB_BOUT31:
  571. 			SetWindowText(hwnd, titlesafe);
  572. 			SendMessage(hwndEdit, WM_SETTEXT, 16, (LPARAM)"|CFFFF0000");
  573. 			SetFocus(hwndEdit);
  574. 			keybd_event(VK_END,0x1c,0,0);
  575. 			break;
  576.  
  577. 		case IDB_BOUT32:
  578. 			SetWindowText(hwnd, titlesafe);
  579. 			SendMessage(hwndEdit, WM_SETTEXT, 16, (LPARAM)"|CFF808080");
  580. 			SetFocus(hwndEdit);
  581. 			keybd_event(VK_END,0x1c,0,0);
  582. 			break;
  583.  
  584. 		case IDB_BOUT33:
  585. 			SetWindowText(hwnd, titlesafe);
  586. 			SendMessage(hwndEdit, WM_SETTEXT, 16, (LPARAM)"|CFF000000");
  587. 			SetFocus(hwndEdit);
  588. 			keybd_event(VK_END,0x1c,0,0);
  589. 			break;
  590.  
  591. 		case IDB_BOUT34:
  592. 			SetWindowText(hwnd, titlesafe);
  593. 			SendMessage(hwndEdit, WM_SETTEXT, 16, (LPARAM)"");
  594. 			SetFocus(hwndEdit);
  595. 			keybd_event(VK_END,0x1c,0,0);
  596. 			break;
  597.  
  598. 		case IDB_BOUT35:
  599. 			SetWindowText(hwnd, titlesafe);
  600. 			SendMessage(hwndEdit, WM_SETTEXT, 16, (LPARAM)"|CFF000080");
  601. 			SetFocus(hwndEdit);
  602. 			keybd_event(VK_END,0x1c,0,0);
  603. 			break;
  604.  
  605. 		case IDB_BOUT36:
  606. 			SetWindowText(hwnd, titlesafe);
  607. 			SendMessage(hwndEdit, WM_SETTEXT, 16, (LPARAM)"|CFF00FFFF");
  608. 			SetFocus(hwndEdit);
  609. 			keybd_event(VK_END,0x1c,0,0);
  610. 			break;
  611.  
  612. 		case IDB_BOUT37:
  613. 			SetWindowText(hwnd, titlesafe);
  614. 			SendMessage(hwndEdit, WM_SETTEXT, 16, (LPARAM)"|CFF662B00");
  615. 			SetFocus(hwndEdit);
  616. 			keybd_event(VK_END,0x1c,0,0);
  617. 			break;
  618.  
  619. 		case IDB_BOUT38:
  620. 			SetWindowText(hwnd, titlesafe);
  621. 			SendMessage(hwndEdit, WM_SETTEXT, 16, (LPARAM)"|CFF800000");
  622. 			SetFocus(hwndEdit);
  623. 			keybd_event(VK_END,0x1c,0,0);
  624. 			break;
  625.  
  626. 		case IDB_BOUT39:
  627. 			SetWindowText(hwnd, titlesafe);
  628. 			SendMessage(hwndEdit, WM_SETTEXT, 16, (LPARAM)"|CFF008000");
  629. 			SetFocus(hwndEdit);
  630. 			keybd_event(VK_END,0x1c,0,0);
  631. 			break;
  632.  
  633. 		case IDB_BOUT40:
  634. 			SetWindowText(hwnd, titlesafe);
  635. 			SendMessage(hwndEdit, WM_SETTEXT, 16, (LPARAM)"|CFF808000");
  636. 			SetFocus(hwndEdit);
  637. 			keybd_event(VK_END,0x1c,0,0);
  638. 			break;
  639.  
  640. 		case IDB_BOUT41:
  641. 			rad = SendMessage(boutc41,BM_GETCHECK,0,0);
  642. 			if(rad == 1)
  643. 			{
  644. 				hotkeysEnabled = false;
  645. 				SetWindowText(hwnd, titlesafe);
  646. 			} 
  647. 			else
  648. 			{
  649. 				hotkeysEnabled = true;
  650. 				SetWindowText(hwnd, titlesafe);
  651. 			}
  652. 			break;
  653.  
  654. 		case IDB_BOUT42:
  655. 			{
  656. 				SetWindowText(hwnd, titlesafe);
  657. 				GetWindowText(hwndEdit2, szText2, 16);              
  658. 				float realdistance;
  659. 				realdistance = atof (szText2);
  660. 				DWORD ecxaddr = 0x00ACBDD8;
  661. 				ecxaddr += GameDLL;
  662. 				WRITE(0x285C28, "\xE9\x43\x93\x5F\x00",5);
  663. 				WRITE(0x87EF70, "\xE8\xCB\x0B\xCC\xFF\x6A\x01\x6A\x00\x68",10);
  664. 				WRITE(0x87EF7A, &realdistance, sizeof(float));
  665. 				WRITE(0x87EF7E, "\x6A\x00\x8B\x0D\xD8\xBD\xAC\x6F\x8B\x89\x54\x02\x00\x00\xE8\x4F\x75\xA8\xFF\xE9\x97\x6C\xA0\xFF",24);
  666. 				WRITE(0x87EF82, &ecxaddr, sizeof(DWORD));
  667. 			}
  668. 			break;
  669.  
  670. 			case IDB_BOUT55:
  671. 			{
  672. 				SetWindowText(hwnd, titlesafe);
  673. 				GetWindowText(hwndEdit7, szText5, 16);              
  674. 				float realdistance;
  675. 				realdistance = atof (szText5);
  676. 				DWORD Distance = 0x9485BC;
  677. 				VirtualProtectEx((void*)hProc,(void*)(GameDLL + Distance),sizeof( Distance ),PAGE_READWRITE, &Protection);
  678. 				WRITE(Distance, &realdistance, sizeof(float));
  679.                 VirtualProtectEx((void*)hProc,(void*)(GameDLL + Distance),sizeof( Distance ),Protection, 0);
  680.                 PostMessage(hWar3, WM_SYSKEYDOWN, VK_PRIOR,0);
  681.                 PostMessage(hWar3, WM_SYSKEYDOWN, VK_NEXT, 0);
  682. 			}
  683. 			break;
  684.  
  685. 		case IDB_BOUT47:
  686. 			{
  687. 				SetWindowText(hwnd, titlesafe);
  688. 				GetWindowText(hwndEdit3, szText3, 16);              
  689. 				DWORD minamount;
  690. 				minamount = atoi (szText3);
  691. 				GetWindowText(hwndEdit4, szText4, 16);              
  692. 				DWORD maxamount;
  693. 				maxamount = atoi (szText4);   
  694. 				WRITE(0x34E822,"\xB8\x00\x00\x00\x00\x90",6);
  695. 				DWORD highTradeAmount = maxamount;
  696. 				WRITE(0x34E823,&highTradeAmount,sizeof(DWORD));
  697. 				WRITE(0x34E82A,"\xB8\x00\x00\x00\x00\x90",6);
  698. 				DWORD lowTradeAmount = minamount;
  699. 				WRITE(0x34E82B,&lowTradeAmount,sizeof(DWORD));
  700. 			}
  701. 			break;
  702.  
  703. 		case IDB_BOUT48:
  704. 			{
  705. 				SetWindowText(hwnd, titlesafe);
  706. 				GetWindowText(hwndEdit3, szText3, 16);              
  707. 				DWORD minamount;
  708. 				minamount = atoi (szText3);
  709. 				GetWindowText(hwndEdit4, szText4, 16);              
  710. 				DWORD maxamount;
  711. 				maxamount = atoi (szText4);
  712. 				WRITE(0x34E822,"\xB8\x00\x00\x00\x00\x90",6);
  713. 				DWORD highTradeAmount = maxamount;
  714. 				WRITE(0x34E823,&highTradeAmount,sizeof(DWORD));
  715. 				WRITE(0x34E82A,"\xB8\x00\x00\x00\x00\x90",6);
  716. 				DWORD lowTradeAmount = minamount;
  717. 				WRITE(0x34E82B,&lowTradeAmount,sizeof(DWORD));
  718. 			}
  719. 			break;
Personal tools