Jump to content

Script so slow


Recommended Posts

Hmm, im not sure but i think my script is so slow since i got everything in while statement (so it loop it) but when i start my script it take about min before my script starts again since theres alot sleeps in my script i think it might be problem?

but not sure how to fix :)

i tried do more whiles but then it wont use all functions of my script so im not sure what to do :/

Link to comment
Share on other sites

And how do you expect somebody to help you without being clairvoyant ? :)

no idea what u talking about xD

anyway heres my script

While 1
    WinActivate("GameClient")
    While 1
        if $balloon == 1 Then
        $Balloon = TrayTip($level & " " & $name,"Health left: " & $hp & " / " & $maxhp & @CRLF & "Mana Left: " & $mana & " / " & $maxmana, "", 1)
        EndIf
        if $skill == 1 Then
            Send($skill_key)
            sleep(900)
            MouseDown("right")
            sleep(100)
            MouseUp("right")
            sleep($time1)
            EndIf
        if $skill2 == 1 Then
            Send($skill_key2)
            sleep(900)
            MouseDown("right")
            sleep(100)
            MouseUp("right")
            sleep($time2)
            Endif
        if $eat == 1 Then
        If $hp < $UseHeal AND $hp > 0 Then 
            Send($hpkey); heal use pot
            sleep(10)
        EndIf
        If $mana < $UseMana AND $mana > 0 Then 
            Send($mpkey); mana use pot
            sleep(10)
        EndIf
            ExitLoop
        EndIf
    WEnd            
WEnd

But it takes about 40sec before it patch traytip again and eats potions whit delay since its slow :I

Link to comment
Share on other sites

  • Developers

no idea what u talking about xD

anyway heres my script

You obviously did understand what I meant. :)

Now how about posting something that contains all needed info to understand what you are doing ?

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

It loads most infos from ini that contains everything

heres the ini:

[settings]
Eat_Potions=1
When_Health=0
When_Mana=0
Show_tip=1
Autodc=0
Hp_hotkey=3
Mp_hotkey=2
Skill_use=1
Skill_key=5
Skill_time=2500
Skill_use2=1
Skill_key2=1
Skill_time2=9100

trying do skillmacro :I

Link to comment
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
 Share

  • Recently Browsing   0 members

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