Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > AutoIt
You last visited: Today at 17:23

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

Advertisement



can anyone help to make this auto potion?

Discussion on can anyone help to make this auto potion? within the AutoIt forum part of the Coders Den category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: May 2011
Posts: 3
Received Thanks: 0
can anyone help to make this auto potion?



I tired to make this AutoIT. But unfortunately I was failed to make this.

Can any one help me to make this?

Function

1. If HP, MP, or SP are downed under specific percentage, Insert Specific Key.

2. Key : F1(HP), F2(MP), F3(SP)

Please help me. Hope to get wonderful thing.

please leave your comments or AutoIT code.
shfdkqhwk is offline  
Old 07/09/2011, 13:30   #2
 
Ludder231's Avatar
 
elite*gold: 0
Join Date: Aug 2010
Posts: 880
Received Thanks: 113
Simple functions would be:

PHP Code:
send("{F1}"
or
PHP Code:
ControlSend("Windowname""""""{F1}"
Ludder231 is offline  
Old 07/09/2011, 15:33   #3
 
elite*gold: 0
Join Date: May 2011
Posts: 3
Received Thanks: 0
Thank you for replying.

But I really wonder if that needs some color code, how do I do that?

For example, specific percentage means the color is different by specific point.

The message you left doesn't exist any color code for regconizing difference.

Could you let me know that, too?
shfdkqhwk is offline  
Old 07/09/2011, 17:19   #4
 
Reeek's Avatar
 
elite*gold: 0
Join Date: Dec 2008
Posts: 1,304
Received Thanks: 485
If I were you, I'd work with memory values... If you don't know how to, use PixelGetColor
Reeek is offline  
Old 07/09/2011, 17:19   #5
 
Ludder231's Avatar
 
elite*gold: 0
Join Date: Aug 2010
Posts: 880
Received Thanks: 113
Sorry but im from Germany so my english isn't very well

You mean, how i post my code in this color?
Do that: write ["php"](without the "") in front of your code you want to color then write ["/php"](without the "") behind your code.

Example for your Bot:
PHP Code:
msgbox(0"Start""Click OK and Bot will drink Potions")

while 
1
winwaitactive
("Windowname")
send("{F1}")
sleep(2000)
send("{F2}")
sleep(2000)
send("{F3}")
wend 
Ludder231 is offline  
Old 07/09/2011, 17:22   #6
 
Ludder231's Avatar
 
elite*gold: 0
Join Date: Aug 2010
Posts: 880
Received Thanks: 113
Quote:
Originally Posted by Reeek View Post
If I were you, I'd work with memory values... If you don't know how to, use PixelGetColor
Ich glaube nicht das er weiß wie man mit beiden genannten Sachen umgeht
Ludder231 is offline  
Old 07/09/2011, 18:48   #7
 
elite*gold: 0
Join Date: May 2011
Posts: 3
Received Thanks: 0
Thank you, Ludder231.

Unfortunately, I already knew code for pushing button.

What I want to know is code for using potion by the color and each position.



(1) If HP downed like this, Key"F1" is pushed automatically.

or

(2) If HP doesn't, Key"F1" isn't activated.
shfdkqhwk is offline  
Old 07/09/2011, 19:02   #8
 
Ludder231's Avatar
 
elite*gold: 0
Join Date: Aug 2010
Posts: 880
Received Thanks: 113
Ludder231 is offline  
Old 07/10/2011, 04:03   #9
 
elite*gold: 0
Join Date: May 2008
Posts: 509
Received Thanks: 1,246
You should look more into memory hacking.

PHP Code:
Func _AutoHP() 
    ;~ 
Get HP Key From Ini File
    $HPP_KEY 
IniRead('AutoBot.ini''KEYS''HPP_KEY'0)
    ;~ 
Get Title Of Game Client
    $TITLE 
WinGetTitle('[CLASS:Nksp]')
    ;~ 
Read Current HP And Max HP Memory
    $PROCESS 
ProcessExists('Nksp.exe')
    ;~ 
Get Handle
    $HANDLE 
_MemoryOpen($PROCESS)
    ;~ 
Begin Function While Loop
    
While 1
        
;~ Pull Max HP And Current HP From Memory
        $POINTER 
_MemoryRead(0x106B0D80$HANDLE)
        
$MAX_HP _MemoryRead($POINTER 0x109464$HANDLE)
        
$CURRENT_HP _MemoryRead($POINTER 0x109460$HANDLE)
        ;~ 
Check If HP Is Below 50Then Autopot
        
If $CURRENT_HP $MAX_HP/2 Then
            ControlSend
($TITLE'''ViewPort Window1''{' $HPP_KEY '}')
            ;~ 
Let Pot Heal 15 Seconds
            Sleep
(15000)
        EndIf
    ;~ 
Check If Bot Closed Then Exit
    If 
ProcessExists($gi_CoProcParent) = 0 Then Exit
    ;~ Function 
Idle
    Sleep
(100)
    
WEnd
EndFunc 
You should take a look at NomadMemory.au3
=Warmonger= is offline  
Thanks
1 User
Reply


Similar Threads Similar Threads
Auto Mp Potion
07/05/2008 - Lin2 Exploits, Hacks, Bots, Tools & Macros - 1 Replies
Hi. I need Auto Potion. Potion is; elixir of menthal strenght :P L2Walker dont have option use the potion and i need program.. plz help -.-.. kamael ver.
auto potion
04/29/2008 - Dekaron - 1 Replies
auto potion how i make one?



All times are GMT +1. The time now is 17:23.


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.