Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > 12Sky2
You last visited: Today at 20:29

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Need help with script please look

Discussion on Need help with script please look within the 12Sky2 forum part of the MMORPGs category.

Reply
 
Old   #1
 
AfterBurn 2.0's Avatar
 
elite*gold: 0
Join Date: Dec 2009
Posts: 541
Received Thanks: 271
Need help with script please look

ok I am using AutoIt v3 and I am working on a Bot and I have writen the script, everything works with no error's. The problem I have is I have two func one needs to loop continuesly while the other is running also. Is there any ay to do this. I would like the Func HP() to continue looping as the Func Buff() is loopng also, instead I have to wait for func Buff() to finish before Func HP() will loop again Please help if there is a way.

Here is my script
Code:
#RequireAdmin
#include <Nomadmemory.au3>
#include <Array.au3>
#include <memory.au3>

WinActive("TwelveSky2.exe") 

    
Global $Paused  
HotKeySet("{PAUSE}", "TogglePause")
HotKeySet("{ESC}", "Terminate")
MsgBox(4096, "AutoBuff, AOE, Loot By AfterBurn","Place Aoe skill slot 2, Buffs slots 4 & 5. Press Pause to toggle pause on & off press Esc to exit. Bot will self TERMINATE when your HP drops below 100. HP address is current as of 6/23/2010, needs updated after each patch is added. Bot will start 2 seconds after pressing OK", 30)
Sleep(2000)

$ID = _MemoryOpen(ProcessExists("TwelveSky2.exe"))
$HPAddy = 0x010D94F3 ; Current Hp address as of 6/23/2010 will need updates with new patches
$HP = _MemoryRead($HPaddy, $ID)

 Func HP() ; HP
    
    SetPrivilege("SeDebugPrivilege", 1)
    $ID = _MemoryOpen(ProcessExists("TwelveSky2.exe"))
    $Address = $HPAddy
    $HP = _MemoryRead($Address, $ID)
    if $HP < 100 Then
        MsgBox(4096, "Closing", "Bot Terminated You Died")
        sleep(500)
        Exit
        $HP = _MemoryRead($Address, $ID)
    endif
    _MemoryClose($ID)
EndFunc   ; HP When HP drops below 100 the bot will self terminate to avoid being caught

Func Buff()
    opt ( "SendKeyDelay" ,50)
opt ( "SendKeyDownDelay" ,1000)
    send("4")
    sleep(1000)
        opt ( "SendKeyDelay" ,50)
opt ( "SendKeyDownDelay" ,1000)
    Send("5")
    Sleep(1000)
opt ( "SendKeyDelay" ,100)
     Send("{2 down}")
     Sleep(160000)
     Send("{2 up}")
    sleep(1000)
EndFunc



While 1 ; continues to check HP 
  HP()
  Buff()
  WEnd
  
Func TogglePause()
    $Paused = Not $Paused
    While $Paused
        Sleep(100)
        ToolTip('AfterBurns Auto Bot  "Paused"', 512, 15)
    WEnd
    ToolTip("")
EndFunc   ;  Toggles Bot Pause & Unpause

Func Terminate()
    ToolTip('Afterburns Auto Bot "Exiting"', 512, 15)
    Sleep(1000)
    ToolTip("")
    Exit 0
EndFunc ; Exits Program
AfterBurn 2.0 is offline  
Old 06/24/2010, 08:10   #2

 
Mega Byte's Avatar
 
elite*gold: 0
Join Date: Dec 2009
Posts: 1,777
Received Thanks: 1,003
If you are really that interested in making a bot it would be a good idea to use C++
See if you can do multi threading in AutoIt but i doubt it lol auto it sucks
Mega Byte is offline  
Reply


Similar Threads Similar Threads
L2Walker script: Solo rebuff/restock/return script
08/08/2012 - Lin2 Exploits, Hacks, Bots, Tools & Macros - 63 Replies
Hello! I've been reading alot and not really contributing so i'll start off here with a very well working script im using to bot my SK outside ivory tower in oren. I've tried to structure the code so it easily can be modified for another level of character, town, and hunting spot. The script is made for CT2 Retail, mainly to get advantage of the newbie buffs (which now lasts all the way until level 62) Change log: Update 2008-09-01 Version 1.14 -Download
[suche] d2nt level rush script 1-25 / follow script
06/23/2010 - Diablo 2 Programming - 5 Replies
moin erstmal sry falls es da doch schon was passendes zu gab - hab schonmal gesucht aber nur alte sachen gefunden oder eben antworten in richtung "geht so schnell dafür braucht man keinen bot" ^^ mein problem besteht darin dass ich für lvl 1 bis 20 immer x stunden brauche - trist geht ja noch halberwegs aber mit tombruns such ich mich immer dusselig ^^ - bzw cows sind noch schlimmer (dafür geht das cow-script für d2nt ausm bluebird zumindest halberwegs) die frage ist jetz die - giebt...



All times are GMT +1. The time now is 20:35.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.