Jump to content
AC Tool Forums

Ego

Moderators
  • Content Count

    526
  • Joined

  • Last visited

About Ego

  • Rank
    Forum Master
  • Birthday 03/12/1959

Contact Methods

  • Website URL
    http://ego_enb at hotmail dot com
  • Yahoo
    Macros, EnB, Ace Online, Electronics, F1 and MotoGP

Profile Information

  • Gender
    Not Telling
  • Location
    Australia
  • Interests
    EnB Emu or here

Recent Profile Visitors

38,212 profile views
  1. Thanks WABBIT, fixed that little annoyance. I used Call Random 1,3 as it goes as high as 3.999-. Perfect. Call Random 1,3 //XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX Procedure Random using LO, HI compute Number = ($HI-$LO+1)*rnd(1)+$LO Timestamp $Number End //XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
  2. I'm missing something here, and driving me nuts. Getting old and cannot remember things I'm trying to make the numbers between 1 and 4 including decimal points, eg 1.4 or 2.3 etc. My game has a anti bot pop up window, so I'm changing the way the cool-down timer works to stop the code from being the exact time every cool-down. Below is what I have, open to suggestions. It's got to be simple, I just can't see it yet. Procedure Random using LO, HI loop 100 // remove when fixed. Timestamp Get Number Compute Number = INT(($HI - $LO + 1) * rnd(1) + $LO) Timestamp $Number // CoolDown Timer End // remove when fixed. End
  3. My turn. Don't need the last Else in the code before the 5 end statements, the code is going to end after the last IsObject. Why objvar 50? thats high, 3 to 9 would do it. Why moving mouse before each Isobject? Why so big an object? you can use just the i as it is in a unique position, nothing else goes where the i is. You could make it 3 x 10. I would add a delay of .2 sec between each command, just to slow it down OR add MouseClickDelay 50 at beginning of script, just to slow it down a little. Where is the setactivewindow {game} ? Is this the full macro? Seems to be missing a loop or a while 1 = 1 statement as the 10 second delay at the end is pointless. Not trying to upset you, just need more info to help you code what you need, and hopefully give you ideas on how to look at the code in different ways. Oh, can you screenshot the game. that will help me code something to try, might give you some ideas when I have a crack at it. Need to see it so I can try some coding on the game screen. I enjoy something different now and then. sharpens the brain. Example code with what you posted and the screen shot from earlier. This would be my starting point after setting active window to the game. the smaller the object, the faster the code will find it. The object is close to the I in Ink, think I missed by 1 or 2 pixels. ObjVar 5 mousePos 3406, 713 delay .2 sec LeftClick Delay 2 sec IsObject INK at 3459, 274 delay .2 sec mousePos 3459, 274 delay .2 sec LeftClick Else IsObject INK at 3581, 274 delay .2 sec mousePos 3581, 274 delay .2 sec LeftClick Else IsObject INK at 3459, 301 delay .2 sec mousePos 3459, 301 delay .2 sec LeftClick Else IsObject INK at 3581, 301 delay .2 sec mousePos 3581, 301 delay .2 sec LeftClick Else IsObject INK at 3703, 301 delay .2 sec mousePos 3703, 301 delay .2 sec LeftClick End End End End End Object Ink // Size: 3, 10 width x height 144=0,0|131=0,2|128=0,4|122=0,6|124=0,8|134=0,10 141=2,0|230=2,2|230=2,4|230=2,6|230=2,8|230=2,10 End
  4. Is Ink in same position or positions (you have 5) on the screen all the time? and the object is way too big, just need to look for the I. If not, it will be very hard to find.
  5. Thanks WABBIT, will have a look over the next few days, got a lot on atm with foster child, taking up a lot of my old free time. Very rewarding. Oooo, read up on when event, now that could be what I am looking for, going to have a play with that.
  6. This is what I am interested in as well. Will be watching this thread for the code. I tried a few things and came across the problems The WABBIT typed under Option 2. My placement interfered with the code so I stopped and put it out of my head until now. Thanks a lot... lol
  7. Thanks for the info Wabbit. I'm looking at just opening a few windows via VM/sandbox and moving between them, a modified version of the 6 player log in macro I coded ages ago. E&B allows multi windows, ace online doesn't, so need to run sandboxs.
  8. What VM program are you using? I find it interesting to try a few ideas by opening a few windows of a game I play and do some testing. Opening each window and waiting for focus before the code continues is the way to do it as Wabbit suggested, that's how I use 2 windows in-game, but would like to try multiple windows in a VM.
  9. Why? Need some input as to what game you wish to use what you want to do.
  10. Threw this code together a few minutes ago. cursor runs across the screen and then down. I will use this myself as a starter for finding mobs etc on screen. Not sure if it is what you are looking for, but, better than nothing. Good luck with it. Would like to see your final macro when you are finished with it, to add to my collection. constants TempLeftPos = 0 TempTopPos = 0 TLeftPos = 0 TTopPos = 0 end set TempTopPos = {WindowTop} set TempLeftPos = {WindowLeft} compute TTopPos = $TempTopPos + 200 compute TLeftPos = $TempLeftPos + 100 loop 7 loop 15 compute TLeftPos = $TLeftPos + 100 mousepos $TLeftPos, $TTopPos // shows where cursor is. delay .05 sec End set TLeftPos = {WindowLeft} compute TTopPos = $TTopPos + 55 set TempTopPos = $TTopPos End
  11. http://www.ac-tool.com/forums/index.php?/forum/3-cdelphivb-development/
  12. Never used the list commands in my coding, one day I might look into it, but everything I need to do, I can.
  13. This is a basic macro in a game that looks at the screen for an object called 100. When the code finds the object 100, moves to the next part of the code, which checks if the object 100 has gone. When the object 100 has gone, the code stops. As you can see the object 100 is 5 pixels by 5 pixels. SetActiveWindow Earth & Beyond delay 4 sec ObjVar 3 call WaitForSector //XXXXXXXXXXXXXXXXXXXXXXX Wait For Sector XXXXXXXXXXXXXXXXXXXXXXX Procedure WaitForSector while 1 = 1 IsObject 100 at 608, 795 delay .2 sec Break Else Delay 1 sec End End while 1 = 1 Delay 1 sec IsObject 100 at 608, 795 Delay 1 sec Else Break End End End //XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX Object 100 // 608, 795 Size: 5, 5 width x height 66=0,0|241=2,0|93=4,0 47=0,2|120=2,2|84=4,2 24=0,4|109=2,4|71=4,4 End //XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
  14. I'm on my laptop as my tower stopped working, has all my scripts on it. When I get it fixed, I can find a basic macro using object searching to upload for you to look at.
  15. I'll see what I can come up with. Short code that does what I want. Did you look at making a macro on this forum?
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and to our Privacy Policy.