mourad Posted July 4, 2009 Share Posted July 4, 2009 hi everyone in this forum , i want ask you how to create a cheath code with the memory like writing the code (hesoyam) for the health .pleaz can someone tell me how to get the memory and put it in the cleo like the code (hesoyam) and thank you for reading my topic. Link to comment Share on other sites More sharing options...
Wesser Posted July 5, 2009 Share Posted July 5, 2009 Make a look at the following "simple" cleo script. {$CLEO .cs}:SPAWNCH03A4: name_thread 'SPAWNCH' :SPAWNCH_5wait 0 if 0AA9: is_game_version_original then 0006: [email protected] = 0x969110 // local of virtualkeycodes v1.0else 0006: [email protected] = 0x96B790 // local of virtualkeycodes v1.1end:SPAWNCH_110A8D: [email protected] = read_memory [email protected] size 4 virtual_protect 0 0085: [email protected] = [email protected] // (int) 000A: [email protected] += 0x4 0A8D: [email protected] = read_memory [email protected] size 3 virtual_protect 0 if and [email protected] == 0x45544148 // ETAH [email protected] == 0x434845 // CHEthen 03E5: text_box 'CHEAT1' // Cheat activated 0A8C: write_memory [email protected] size 4 value 0 virtual_protect 0 0A8C: write_memory [email protected] size 3 value 0 virtual_protect 0 #CHEETAH.Load() repeat wait 0 until #CHEETAH.Available() 04C4: store_coords_to [email protected] [email protected] [email protected] from_actor $PLAYER_ACTOR with_offset 0.0 5.0 0.0 00A5: [email protected] = create_car #CHEETAH at [email protected] [email protected] [email protected] 0172: [email protected] = actor $PLAYER_ACTOR Z_angle 000B: [email protected] += 90.0 0175: set_car [email protected] Z_angle_to [email protected] 01C3: remove_references_to_car [email protected] endjump @SPAWNCH_5 012 345 678 9A BCD EFG HIJK LMN OPQR STUV WX YZ Link to comment Share on other sites More sharing options...
mourad Posted July 5, 2009 Author Share Posted July 5, 2009 but how to get the adress like (0x45544148 = ETAH) that what i want khnow plz.is there any tool to khnow it. Link to comment Share on other sites More sharing options...
PatrickW Posted July 5, 2009 Share Posted July 5, 2009 That's not an address, that is an ascii representation of the cheatcode text that must be typed to trigger the "cheat". Link to comment Share on other sites More sharing options...
Wesser Posted July 6, 2009 Share Posted July 6, 2009 The virtual keycodes buffer is located at 0x969110 (0x96B790 in v1.1) so you have to read its value with the opcode 0A8D, of course. If your typed chars are more than 4 (which means 4 bytes like 00 00 00 00), you should add 4 bytes to read the other value\s. Note, bytes are read like this. 48 41 54 45 45 48 43 // HATEEHC This will explain why the buffer reads first the last typed words and then the first ones. You can find all ascii values here. If you don't know the cheat activation word, it's CHEETAH. 012 345 678 9A BCD EFG HIJK LMN OPQR STUV WX YZ Link to comment Share on other sites More sharing options...
mourad Posted July 9, 2009 Author Share Posted July 9, 2009 thanks for your help. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now