AlmarM Posted October 17, 2008 Share Posted October 17, 2008 Hi! I dont know if this is ever dont. Else I found a way to edit the variables in a Flash Game. $GUI = GUICreate("Age of War [AutoIt Var Editing]", 670, 560, -1, -1) $oGame = ObjCreate("ShockwaveFlash.ShockwaveFlash.1") $oGameGUI = GUICtrlCreateObj($oGame, 10, 10, 650, 450) With $oGame .bgcolor = "#000000" .Movie = "http://207.218.234.34/ageofwarupdate1MzYx.swf" .Loop = True .ScaleMode = 2 .wmode = "Opaque" EndWith $Money = GUICtrlCreateInput("Money", 10, 470, 100, 20) $SetMoney = GUICtrlCreateButton("Set Money", 120, 468, 100) $TechLevel = GUICtrlCreateInput("Tech Level (1 - 5)", 10, 500, 100, 20) $SetTechLevel = GUICtrlCreateButton("Set Tech Level", 120, 498, 100) $XP = GUICtrlCreateInput("XP", 10, 530, 100, 20) $SetXP = GUICtrlCreateButton("Set XP", 120, 528, 100) GUISetState() While 1 $nMsg = GUIGetMsg() Select Case $nMsg = -3 Exit Case $nMsg = $SetMoney $Read_Money = GUICtrlRead($Money) $oGame.SetVariable("cash", $Read_Money) Case $nMsg = $SetTechLevel $Read_TechLevel = GUICtrlRead($TechLevel) $oGame.SetVariable("tech_level", $Read_TechLevel) Case $nMsg = $SetXP $Read_XP = GUICtrlRead($XP) $oGame.SetVariable("xp", $Read_XP) EndSelect WEnd Lemme know what you think ^^, AlmarM Minesweeper A minesweeper game created in autoit, source available. _Mouse_UDF An UDF for registering functions to mouse events, made in pure autoit. 2D Hitbox Editor A 2D hitbox editor for quick creation of 2D sphere and rectangle hitboxes. Link to comment Share on other sites More sharing options...
jokke Posted October 17, 2008 Share Posted October 17, 2008 Thats awesome UDF:Crypter a file encrypt / decrypt tool with no need to remember a password again. Based on Caesar cipher using entire ASCII Table.Script's: PixelSearch Helper, quick and simple way to create a PixelSeach.Chatserver - simplified, not so complicated multi-socket server.AutoIT - Firewall, simple example on howto create a firewall with AutoIt. Link to comment Share on other sites More sharing options...
torels Posted October 17, 2008 Share Posted October 17, 2008 yes, I agreee I'm wondering why I won the game immediately XD Some Projects:[list][*]ZIP UDF using no external files[*]iPod Music Transfer [*]iTunes UDF - fully integrate iTunes with au3[*]iTunes info (taskbar player hover)[*]Instant Run - run scripts without saving them before :)[*]Get Tube - YouTube Downloader[*]Lyric Finder 2 - Find Lyrics to any of your song[*]DeskBox - A Desktop Extension Tool[/list]indifference will ruin the world, but in the end... WHO CARES :P---------------http://torels.altervista.org Link to comment Share on other sites More sharing options...
AlmarM Posted October 17, 2008 Author Share Posted October 17, 2008 yes, I agreee I'm wondering why I won the game immediately XDWhahah, hmm lemme guess, you used my script ?AlmarM Minesweeper A minesweeper game created in autoit, source available. _Mouse_UDF An UDF for registering functions to mouse events, made in pure autoit. 2D Hitbox Editor A 2D hitbox editor for quick creation of 2D sphere and rectangle hitboxes. Link to comment Share on other sites More sharing options...
Pain Posted October 17, 2008 Share Posted October 17, 2008 Nice to see it can be done without NomadMemory. Link to comment Share on other sites More sharing options...
jokke Posted October 17, 2008 Share Posted October 17, 2008 Nice to see it can be done without NomadMemory.Well some time you still have to use memory reading / writing to do this, but inn this example its actual object interference, witch is damn cool! UDF:Crypter a file encrypt / decrypt tool with no need to remember a password again. Based on Caesar cipher using entire ASCII Table.Script's: PixelSearch Helper, quick and simple way to create a PixelSeach.Chatserver - simplified, not so complicated multi-socket server.AutoIT - Firewall, simple example on howto create a firewall with AutoIt. Link to comment Share on other sites More sharing options...
jokke Posted October 17, 2008 Share Posted October 17, 2008 Another thing, AlmarM how did you go forth to find the variables ? (Never seen on flash scripts.) UDF:Crypter a file encrypt / decrypt tool with no need to remember a password again. Based on Caesar cipher using entire ASCII Table.Script's: PixelSearch Helper, quick and simple way to create a PixelSeach.Chatserver - simplified, not so complicated multi-socket server.AutoIT - Firewall, simple example on howto create a firewall with AutoIt. Link to comment Share on other sites More sharing options...
AlmarM Posted October 17, 2008 Author Share Posted October 17, 2008 Ah, good question! Ive got this program 'So think SWF Decompiler'. If you know how to use it you can find the variables. Not in every flash game are the variables foundable. AlmarM Minesweeper A minesweeper game created in autoit, source available. _Mouse_UDF An UDF for registering functions to mouse events, made in pure autoit. 2D Hitbox Editor A 2D hitbox editor for quick creation of 2D sphere and rectangle hitboxes. Link to comment Share on other sites More sharing options...
TehWhale Posted October 17, 2008 Share Posted October 17, 2008 Thats like...Really awesome... :Stunned: Link to comment Share on other sites More sharing options...
MerkurAlex Posted October 17, 2008 Share Posted October 17, 2008 Yea i used to make trainers like this though i never posted here good example! Also if anyone wants a program that can find variables from a flash file PM me. [quote name='PsaltyDS' post='635433' date='Jan 27 2009, 07:04 AM']Larry is a mass murderer?! It's always the quiet, clean cut, bald guys... [/quote] Link to comment Share on other sites More sharing options...
AlmarM Posted October 17, 2008 Author Share Posted October 17, 2008 Yea i used to make trainers like this though i never posted here good example!Also if anyone wants a program that can find variables from a flash file PM me.As I already said, you could use 'Sothink SWF Decompiler' or 'flasm'.AlmarM Minesweeper A minesweeper game created in autoit, source available. _Mouse_UDF An UDF for registering functions to mouse events, made in pure autoit. 2D Hitbox Editor A 2D hitbox editor for quick creation of 2D sphere and rectangle hitboxes. Link to comment Share on other sites More sharing options...
MerkurAlex Posted October 17, 2008 Share Posted October 17, 2008 As I already said, you could use 'Sothink SWF Decompiler' or 'flasm'.AlmarMOh sorry i missed that but i know a program that will list the variables with a treeview from ._root and everything without decompile. [quote name='PsaltyDS' post='635433' date='Jan 27 2009, 07:04 AM']Larry is a mass murderer?! It's always the quiet, clean cut, bald guys... [/quote] Link to comment Share on other sites More sharing options...
AlmarM Posted October 17, 2008 Author Share Posted October 17, 2008 Oeh, can you PM the name? AlmarM Minesweeper A minesweeper game created in autoit, source available. _Mouse_UDF An UDF for registering functions to mouse events, made in pure autoit. 2D Hitbox Editor A 2D hitbox editor for quick creation of 2D sphere and rectangle hitboxes. Link to comment Share on other sites More sharing options...
darkjohn20 Posted November 10, 2009 Share Posted November 10, 2009 In the back of my mind I knew how to do this, but I never did. Thanks AlmarM, already reproduced your example with more features. Link to comment Share on other sites More sharing options...
darkjohn20 Posted December 5, 2009 Share Posted December 5, 2009 (edited) Hey, I have been using your example on many different games now, but I wanted to go further. Is there a list of commands somewhere that I can use?I already know SetVariable and GetVariable. Why does GetVariable not work?I was thinking more along the lines of pushing or editing values in an array.var msgs = new Array();msgs.push("Hello")would be the AS code.Would there be a way to change Hello, or even add new messages?If you could point me to a list that would be great. If not, thanks anyway, and hopefully I can at least change this example? Edited December 6, 2009 by darkjohn20 Link to comment Share on other sites More sharing options...
jaenster Posted December 6, 2009 Share Posted December 6, 2009 Neat! Nice jobs, Can i ask.. how you came on the idea? -jaenster Link to comment Share on other sites More sharing options...
darkjohn20 Posted December 6, 2009 Share Posted December 6, 2009 MerkurAlex, would this be the idea used behind that program to list variables? http://livedocs.adobe.com/flash/9.0/UsingFlash/help.html?content=WSADD4C013-B535-48ff-B902-52FE29FFC672.html Link to comment Share on other sites More sharing options...
darkjohn20 Posted December 6, 2009 Share Posted December 6, 2009 AlmarM, I have run across a game which I cannot edit variables in. It's Storm the House 2 off of AddictingGames.com. I know the global variables, but I cannot set them. Is there anything special you must do for globals? A few examples would be _global.maxammo, _global.craftsmen... Thanks, John Link to comment Share on other sites More sharing options...
AlmarM Posted December 6, 2009 Author Share Posted December 6, 2009 @ All Wow, cool, bringing up the topic again ^^, @darkjohn20 Yeah, I think it should be something like .SetVariable("_global.maxammo", 999) Im not sure, I just figured out the .SetVariable. @jaenster Eeehmmm... Good question >.<' Minesweeper A minesweeper game created in autoit, source available. _Mouse_UDF An UDF for registering functions to mouse events, made in pure autoit. 2D Hitbox Editor A 2D hitbox editor for quick creation of 2D sphere and rectangle hitboxes. Link to comment Share on other sites More sharing options...
darkjohn20 Posted December 6, 2009 Share Posted December 6, 2009 I tried that, but it didn't work. 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