Jump to content
Sign in to follow this  
istar

daoc script

Recommended Posts

Hello,

not being a coder, I seek a script for the play daoc (Dark Age Of Camelot).

I will like that script execute the following order:

1 - Selection of a monster with possibility to modify the name (ex: $monster "TITLEMONSTER" )

2 - This adhesive has the target (ordering of the play: /stick )

3 - Attack to repeat monster with choice of the various keys, until A the death of the monster ( keys : & ; "; '; ( ; - ; - ; etc... )

4 - Rest period AFTER the death of the monster (order: /sit or key "C")

5 - this stand up (order: /stand or keys "C")

Sorry I am not a coder and I do not know how to do it.

And sorry for my English

Thank you

:">

Share this post


Link to post
Share on other sites

This is not a general support forum.


[quote name='d2hacker88' date='Jan 6 2005, 05:10 PM']Can someone please help me out with autoit like gimme a link on how to use it cause i have no experience with computer languages and i'd like to make a program with autoit in order to empress my computer teacher.[right][snapback]52215[/snapback][/right][/quote]

Share this post


Link to post
Share on other sites

No, no, he means the whole forum in general. We like to encourage people to learn the language and make their own scripts. We don't like to encourage people to just show up and ask others to make scripts for them.

If you have no desire to learn and just want a program, try searching for it on Google.

Edited by Saunders

Share this post


Link to post
Share on other sites

Ok !

I launched out! and here what that gives:

__init()

while 1

a()

b()

Wend

func a() ; Mob and money

WinActivate("Dark Age of Camelot, Copyright © 2001-04 Mythic Entertainment, Inc.", "")

    Sleep ( 5000 )

    Send ( '{F8}' )

    Sleep ( 1000 )

    Send ( 'è' )

    Sleep ( 1000 )

    Send ( '&' )

    Sleep ( 8000 )

   

    for $__n1_ = 1 to 15 ;Repeat Attack

        Send ( "'" )

        Sleep ( 4500 )

    next

    Send ( '{F7}' )

    Sleep ( 4000 )

    Send ( 'G' )

    Sleep ( 2000 )

    Send ( '{ENTER}/sit{ENTER}' )

    Sleep ( 10000 )

    Send ( '{ENTER}/stand{ENTER}' )

        Sleep ( 10 )

EndFunc

   

   

Func b() ;Rebuff

Sleep ( '3000' )

Send ( 'ç' )

Sleep ( '4000' )

Send ( 'à' )

Sleep ( '4000' )

EndFunc

file

func __init () 

endfunc

that functions well but there is a problem which I do not arrive has to solve .

The part "Rebuff" I will like that it this repeat that every 10 minutes and not has each time.

how to make? o:)

thank you :lmao:

Share this post


Link to post
Share on other sites

See, you didn't need someone else to make it all for you. This is what we encourage, trying something yourself and then coming here when you're stuck.

Unfortunately, I'm not sure what it is you're looking for exactly.

You want it to repeat function b() every 10 minutes? Couldn't you just put some longer sleep in there? Like sleep(600000)?

Share this post


Link to post
Share on other sites

I wish in made that the a() excute is buckled some, and that the b() excute that every 10 minutes! without that blocking the execution of a()!

Sorry for my English, I espert that you arrive has to read me.

I repost my script to modify:

__init()

while 1

a()

b()

Wend

func a() ; Mob and money

WinActivate("Dark Age of Camelot, Copyright © 2001-04 Mythic Entertainment, Inc.", "")

    Sleep ( 2000 )

    Send ( '{F8}' )

    Sleep ( 1000 )

    Send ( 'è' )

    Sleep ( 1000 )

    Send ( 'é' )

Sleep (95)

Send ('&')

    Sleep (5000)

Send ('{_}')

    Sleep (4800)

    for $__n1_ = 1 to 6 ;Repeat Attack

        Send ( "'" )

        Sleep ( 4800 )

Send ( "'" )

Sleep (95)

Send ("(")

Sleep (4600)

    next

    Send ('{F7}')

    Sleep (2000)

    Send ('g')

    Sleep (1000)

    Send ('c')

    Sleep ( 6000 )

    Send ('c')

        Sleep ( 10 )

EndFunc

   

   

Func b() ;Rebuff

Sleep ( 1000 )

Send ('ç')

Sleep ( 95 )

Send ('à')

Sleep ( 500 )

EndFunc

func __init () 

endfunc

Share this post


Link to post
Share on other sites

Okay, try this. I cleaned up the code a little bit, just to make it easier on myself to read. a() should execute all the time, and b() should execute approximately every 10 minutes (it might not be exactly 10 minutes because of the sleep()'s in the a() function causing pauses, but it should be pretty close).

$timer = TimerInit()

While 1
    a()
    If TimerDiff($timer) >= (10 * 60 * 1000) Then
        b()
        $timer = TimerInit()
    EndIF
WEnd

Func a(); Mob and money
    WinActivate("Dark Age of Camelot, Copyright © 2001-04 Mythic Entertainment, Inc.", "")

    Sleep ( 2000 )

    Send ( '{F8}' )
    Sleep ( 1000 )

    Send ( 'è' )
    Sleep ( 1000 )

    Send ( 'é' )
    Sleep (95)

    Send ('&')
    Sleep (5000)

    Send ('{_}')
    Sleep (4800)

    for $n = 1 to 6;Repeat Attack
        Send ( "'" )
        Sleep ( 4800 )
        Send ( "'" )
        Sleep (95)
        Send ("(")
        Sleep (4600)
    next

    Send ('{F7}')
    Sleep (2000)

    Send ('g')
    Sleep (1000)

    Send ('c')
    Sleep ( 6000 )

    Send ('c')
    Sleep ( 10 )
EndFunc
    
    
Func b(); Rebuff
    Sleep ( 1000 )
    Send ('ç')
    Sleep ( 95 )
    Send ('à')
    Sleep ( 500 )
EndFunc

I don't know why you had the __init() function, it wasn't doing anything, so I removed it, hope that's not a problem.

Hope this works for you!

Share this post


Link to post
Share on other sites

Is Good !! thank you very much!

a last thing to make my script "perfect" is you it possible that script execute the order when the window of the program is reduced?

and thus launched several scripts for several program all that with the possibility of using its PC without stops the excution of script?

I know that I must in asked much, but as I do not know if it is possible I require :lmao:

Thank !

Share this post


Link to post
Share on other sites

I made a minimized window clicking UDF.

Search the scripts/scrapts forum for it.


"I thoroughly disapprove of duels. If a man should challenge me, I would take him kindly and forgivingly by the hand and lead him to a quiet place and kill him." - Mark TwainPatient: "It hurts when I do $var_"Doctor: "Don't do $var_" - Lar.

Share this post


Link to post
Share on other sites

ok I seek on the forum, this says thank you for all, with the creators of AutoIt, and all those which take part in it :lmao:

Thank ! :)

ps: once again sorry for my English o:) c

Share this post


Link to post
Share on other sites

I give up for the minimized windowc, I has reflected something.

Veiled the play uses messages when made an action

(message example of attack: you attack MONSTER) and thus I would like to know if it's possible to use its messages for executer an action.

I have a message of the type: The MONSTER dies.

will be you he possible when this message is posted, to make execute an action?

if "MONSTER DIES" posts.

execution of order: send (' command ')

(sorry if I am perturbing) :">

Edited by istar

Share this post


Link to post
Share on other sites

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
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...