Source:TyranoMapHack123/D3Scene.cpp3

From Codemotion
Jump to: navigation, search

Source:TyranoMapHack123/D3Scene.cpp3

Description

Main Source - Part 3: Features

Code

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