Jump to content

Recommended Posts

Posted

i posted this as a reply for what i think autoit needs, but i feel it got drowned out a bit by the other stuff going on. anyone have any ideas on this?

how about custom classes/methods/whatever...? (havent done much other programming lately, forgot what you call em) Example... for a daoc bot i made (which i will NOT share, so dont even bother asking) i have to have seperate arrays for $Spell_Button, $Spell_Delay, $Spell_Timer, $Spell_Mana, etc. instead, id rather do something like Spell[k].Delay, Spell[k].Button, etc. Have a class.thingy return whatever... example pseudocode:

(note, i lapsed into java type programming, lol. i guess you could either do { and }'s, or method, and endmethod or something..

Class Spell

$delay = 900000 ;900 second buff in daoc

$castdelay = 4000 ;4 second cast delay

$button = "2" ;press button 2 to cast it

method Delay() {return $delay}

method CastDelay() {return $castdelay}

method Button() {return $button }

method LastCast() {return TimerStop($timer) }

method CastSpell()

Send($button)

Sleep($castdelay)

$timer = TimerStart()

endMethod

EndClass

Posted

AutoIt is a type-less language. It would surprise me greatly if Jon would do something like this as it introduces types into AutoIt.

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...