sheeva Posted December 7, 2009 Share Posted December 7, 2009 Hi, your script doesn't work here. i think its because of $oGame = ObjCreate("ShockwaveFlash.ShockwaveFlash.1")so what i have ti install to make that work. i have already the flash/shockwave plugins installed but still not working. Please Help.Do you thing that we can use .swf in autoit like a GUI ?Thank's Link to comment Share on other sites More sharing options...
AlmarM Posted December 7, 2009 Author Share Posted December 7, 2009 (edited) @darkjohn20Did you try it without the _global ?Hi, your script doesn't work here. i think its because of $oGame = ObjCreate("ShockwaveFlash.ShockwaveFlash.1")so what i have ti install to make that work. i have already the flash/shockwave plugins installed but still not working. Please Help.Do you thing that we can use .swf in autoit like a GUI ?Thank'sIt does work, but the game im using updates its link. Lemme find the new one. Current link: http://www.maxgames.com/play/age-of-war.htmlBut it doesnt seem to work anymore. :/ Edited December 7, 2009 by 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 December 7, 2009 Share Posted December 7, 2009 @darkjohn20Did you try it without the _global ?I tried "_global.variable", "variable", and "global.variable".I was looking online and I think I might have read somewhere that global variables can only be edited by another flash object?Not quite sure, so don't assume this is right xD. Link to comment Share on other sites More sharing options...
AlmarM Posted December 8, 2009 Author Share Posted December 8, 2009 Hmm, that could be true. I also have no idea how flash works. Never done it. 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...
playlet Posted December 8, 2009 Share Posted December 8, 2009 (edited) --- Edited August 18, 2016 by playlet Link to comment Share on other sites More sharing options...
Authenticity Posted December 8, 2009 Share Posted December 8, 2009 You cannot set AS3 variables that way. SetVariable is for AS2. Link to comment Share on other sites More sharing options...
AlmarM Posted December 8, 2009 Author Share Posted December 8, 2009 You cannot set AS3 variables that way. SetVariable is for AS2.Realy? Thanks for telling 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...
playlet Posted December 8, 2009 Share Posted December 8, 2009 (edited) --- Edited August 18, 2016 by playlet Link to comment Share on other sites More sharing options...
darkjohn20 Posted December 9, 2009 Share Posted December 9, 2009 You cannot set AS3 variables that way. SetVariable is for AS2.So...is there a method to do this in AS3, or can anything else be done?Thanks! Link to comment Share on other sites More sharing options...
zhangfei Posted December 9, 2009 Share Posted December 9, 2009 I tried that, but it didn't work. Link to comment Share on other sites More sharing options...
boomingranny Posted December 9, 2009 Share Posted December 9, 2009 this looks very interesting and exciting. Thanks for sharing. I am having trouble linking to flash objects already embedded in an IE window, are you able to do this? Link to comment Share on other sites More sharing options...
AlmarM Posted December 9, 2009 Author Share Posted December 9, 2009 expandcollapse popup$GUI = GUICreate("Age of War [AutoIt Var Editing]", 870, 760, -1, -1) $oGame = ObjCreate("ShockwaveFlash.ShockwaveFlash.1") $oGameGUI = GUICtrlCreateObj($oGame, 10, 10, 850, 650) With $oGame .bgcolor = "#000000" .Movie = @ScriptDir & "\Age of war.swf" .Loop = True .ScaleMode = 2 .wmode = "Opaque" EndWith $Money = GUICtrlCreateInput("999999999999", 10, 670, 100, 20) $SetMoney = GUICtrlCreateButton("Set Money", 120, 668, 100) $TechLevel = GUICtrlCreateInput("5", 10, 700, 100, 20) $SetTechLevel = GUICtrlCreateButton("Set Tech Level", 120, 698, 100) $XP = GUICtrlCreateInput("999999999999", 10, 730, 100, 20) $SetXP = GUICtrlCreateButton("Set XP", 120, 728, 100) $turretbutt = GUICtrlCreateButton ("Get turret places", 230, 728, 120, 25) $healthinput = GUICtrlCreateInput("999999999999", 230, 670, 100, 20) $healthbut = GUICtrlCreateButton ("Health", 340, 668, 120, 25) 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) Case $nMsg = $healthbut $Read_health = GUICtrlRead($healthinput) $oGame.SetVariable("game.ennemies.ennemybase1.health", $Read_health) Case $nMsg = $turretbutt $oGame.SetVariable("addons", 3) EndSelect WEnd Just a small contribution. Great! Does the enemy base health work? Because I found some enemy variables but they never seemed to be good. :/ 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...
Authenticity Posted December 9, 2009 Share Posted December 9, 2009 (edited) So...is there a method to do this in AS3, or can anything else be done?Thanks!Start by learning AS3. In some cases you'll need to know AVM2 which is something like Microsoft's IL which AS3 is using. You can start by reading some of this forum tutorials. Edited December 9, 2009 by Authenticity Link to comment Share on other sites More sharing options...
playlet Posted December 9, 2009 Share Posted December 9, 2009 (edited) --- Edited August 18, 2016 by playlet Link to comment Share on other sites More sharing options...
darkjohn20 Posted December 9, 2009 Share Posted December 9, 2009 Start by learning AS3. In some cases you'll need to know AVM2 which is something like Microsoft's IL which AS3 is using. You can start by reading some of this forum tutorials.Haha, I've been on that forum for years. Will still look more closely. Link to comment Share on other sites More sharing options...
cageman Posted December 11, 2009 Share Posted December 11, 2009 (edited) i made a bot for ladderslasher once. its not bugfree yet, but maybe someone wants to play around a little. i found out a lot about itemstats reading etc.. config.ini file: [Standaard] Minimumlifepercentage="100" Minimummanapercentage="85" Plek="2" Hit="0" Spell="1" Stoplvlup="66" MaxLifeDiff="10" LeaveAtLife="15" DropSleep="1000" Account="d2jspacc" Password="pass" GoldPassword="goldpass" edit: i see there is a new patch, but i think the old variables will still work.. just try and see.LS4.0.au3 Edited December 11, 2009 by cageman Link to comment Share on other sites More sharing options...
Kalin Posted October 16, 2010 Share Posted October 16, 2010 (edited) Updated and Fixed your original post. @AlmarM $GUI = GUICreate("Age of War [AutoIt Var Editing]", 670, 560, -1, -1) $oGame = ObjCreate("ShockwaveFlash.ShockwaveFlash") ; Removed the .1 in the ShockwaveFlash. (so Flash doesn't focus on the .1 and focuses on the main component. $oGameGUI = GUICtrlCreateObj($oGame, 10, 10, 650, 450) With $oGame $oGame.bgcolor = "#000000" $oGame.Movie = "http://farm.maxgames.com/ageofwarupdate1MzYx.swf" ; Updated SWF link. $oGame.Loop = True $oGame.ScaleMode = 2 $oGame.wmode = "Opaque" EndWith $Money = GUICtrlCreateInput("Money here...", 10, 470, 100, 20) $SetMoney = GUICtrlCreateButton("Set Money", 120, 468, 100) $TechLevel = GUICtrlCreateInput("Tech Level (1 - 5) here...", 10, 500, 100, 20) $SetTechLevel = GUICtrlCreateButton("Set Tech Level", 120, 498, 100) $XP = GUICtrlCreateInput("EXP here...", 10, 530, 100, 20) $SetXP = GUICtrlCreateButton("Set EXP", 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 Edited October 16, 2010 by Kalin 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