Register for your free account! | Forgot your password?

You last visited: Today at 21:32

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

Advertisement



AUto[matic]Pot

Discussion on AUto[matic]Pot within the PW Hacks, Bots, Cheats, Exploits forum part of the Perfect World category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: May 2012
Posts: 7
Received Thanks: 5
AUto[matic]Pot

The following application will recognize the highest apothecary pot in your inventory and use it when appropriate ( defined in config.ini, in % ); you can kill the application by pressing {End} and/or in the tray bar.

I wrote this for my upcoming API, but thought it might be useful to release.

Bug reports and suggestions are appreciated.


Source
Code:
#RequireAdmin
#include "globals.au3"

HotKeySet("{END}", "__Terminate")

Global Const $HP_PERCENT = IniRead("config.ini", "AutoPot", "HP", 0)
Global Const $MP_PERCENT = IniRead("config.ini", "AutoPot", "MP", 0)

Global $HP_TIMER = TimerInit()
Global $MP_TIMER = TimerInit()


While 1
	If _Char_HP_Percentage() <= $HP_PERCENT And TimerDiff($HP_TIMER) >= 15000 Then
		_Use_Potion(1)
		$HP_TIMER = TimerInit()
	EndIf

	If _Char_MP_Percentage() <= $MP_PERCENT And TimerDiff($MP_TIMER) >= 15000 Then
		_Use_Potion(2)
		$MP_TIMER = TimerInit()
	EndIf

	Sleep(25)
WEnd


Func _Use_Potion($POTION_TYPE)
	Local $POTION_LEVEL = -1
	Local $POTION_INDEX = -1
	Local $i

	For $i = 0 To _Inventory_Get_Count()
		If _Inventory_Get_Type($i) == 9 Then

			If _Inventory_Get_Level($i) <= _Char_Get_Level() And _Inventory_Get_Level($i) >= $POTION_LEVEL And _Get_Potion_Type(_Inventory_Get_Type_ID($i)) == $POTION_TYPE Then
				$POTION_LEVEL = _Inventory_Get_Level($i)
				$POTION_INDEX = $i
			EndIf

		EndIf
	Next

	If $POTION_INDEX <> -1 And $POTION_LEVEL <> -1 Then
		_Use_Item($POTION_INDEX, _Inventory_Get_Type_ID($POTION_INDEX))
	EndIf
EndFunc   ;==>_Use_Potion

Func _Get_Potion_Type($POTION_TYPE_ID)
	; ===============================================
	; Return values
	;
	; 0 - Special potion (not supported)
	; 1 - Health potion
	; 2 - Mana potion
	; ================================================
	Switch $POTION_TYPE_ID
		Case 8617 To 8621
			Return 1
		Case 8612 To 8614
			Return 1
		Case 8647 To 8651
			Return 2
		Case 8642 To 8644
			Return 2
		Case Else
			Return 0
	EndSwitch
EndFunc   ;==>_Get_Potion_Type

Func _Use_Item($INVENTORY_INDEX, $INVENTORY_TYPE_ID, $EQUIPMENT = 0)
	Local $PACKET

	$PACKET = "2800"
	$PACKET &= _Reverse_Bytes($EQUIPMENT, 2)
	$PACKET &= "01"
	$PACKET &= _Reverse_Bytes($INVENTORY_INDEX, 2)
	$PACKET &= "00"
	$PACKET &= _Reverse_Bytes($INVENTORY_TYPE_ID)

	_Send_Packet($PACKET)
EndFunc   ;==>_Use_Item
AV results ( )
Quote:
Originally Posted by Jotti
2012-05-19 Found nothing 2012-05-19 Found nothing
2012-05-19 Found nothing 2012-05-19 Found nothing
2012-05-19 Found nothing 2012-05-19 Found nothing
2012-05-18 Found nothing 2012-05-19 Found nothing
2012-05-19 Found nothing 2012-05-19 Found nothing
2012-05-19 Found nothing 2012-05-19 Found nothing
2012-05-19 Found nothing 2012-05-19 Found nothing
2012-05-19 Found nothing 2012-05-19 Found nothing
2012-05-19 Found nothing 2012-05-18 Found nothing
2012-05-19 Found nothing 2012-05-18 Found nothing
Attached Files
File Type: zip auto[matic]pot v1.0.zip (322.6 KB, 61 views)
File Type: zip AUto[matic]pot v1.1.zip (322.7 KB, 320 views)
APwI is offline  
Thanks
4 Users
Old 05/20/2012, 01:18   #2
 
elite*gold: 0
Join Date: May 2010
Posts: 220
Received Thanks: 203
by what i seen in the source code, its free of any virus.

i like this function: _MOVE_PLAYER
more clear then i wrote it

thanks for sharing this and good luck with the rest of the program
amineurin is offline  
Old 05/23/2012, 22:03   #3
 
elite*gold: 0
Join Date: May 2012
Posts: 7
Received Thanks: 5
Updated for Imperial Fury.
APwI is offline  
Old 06/05/2012, 21:36   #4
 
elite*gold: 0
Join Date: Jul 2009
Posts: 3
Received Thanks: 0
I dont know why is not working for me, just make it works once =(, any idea what im doing wrong? plz huge noob here >_< ill be really happy if u can give me a clue
benyair90 is offline  
Reply


Similar Threads Similar Threads
Cheat-o-matic for 9D?
04/08/2010 - 9Dragons - 4 Replies
Hey all, I was wondering how I could manipulate the game without hacking, or with minimal hacking. I found a program called "Cheat-o-Matic" using Google a whiles time back for random games I wanted to have 'more fun' with. :P What it does is it searches for decimal values that you input in the search tab, and after finding the value, you can change it to whatever you please. In order to search anything in the program or game, you have to pick it through a drop down menu, which displays all...
Cheat'O Matic
01/17/2009 - Lineage 2 - 3 Replies
Hello all... Does someone know Do Cheat'o Matic have free verison for download? If Answer is "Yes,It do have Free/Trial Version" > Can u post a link from where i can download it ? Thanks :) I Searched Forums but i didn't find something about it
Cheat O Matic (powerful ArtMoney)
10/07/2006 - CO2 Exploits, Hacks & Tools - 77 Replies
If you do not wish to search for wich Value is the value your trying to modify. Dont use ArtMoney but use Cheat O Matic. You can search a precisely value wich has to be easely changed. ------------------------------------------------- -------------------------------------- - 1.Open Cheat O Matic - ...
Egg O Matic Coords
08/01/2005 - WoW Guides & Templates - 24 Replies
I reseted the coords for BWH hack - enjoy Eggorn Egg 1, 1, 1554.863, -5891.820, 113.214 Egg 2, 1, 1745.170, -5678.911, 108.736 Egg 3, 1, 1714.906, -5811.911, 108.810 Egg 4, 1, 1411.587, -5904.604, 124.395 Egg 5, 1, 1391.709, -5924.977, 138.947 Egg 6, 1, 1375.791, -5894.512, 123.754 Egg 7, 1, 1365.196, -5867.673, 110.952
Egg-o-matic quest
07/19/2005 - World of Warcraft - 6 Replies
Also meine frage ist, ob man nicht nen Bot oder nen Makro machen könnte, das automatisch zu den eier spawnts teleportiert....Eigentlich müsste es doch gehen oder?? Der Bot teleportiert zu den verschiedenen Spawns, sobald ein EI da is nimmt er es aus und teleportiert zum ei o mat in gadgetzan. Er klickt den automat an und nimmt die kiste. er öffnet sie nimmt das ei herraus... jetzt denk ich mal das schwierigste, er muss gucken was für eine sorte ei das is, um das q auch richtig bei der frau...



All times are GMT +1. The time now is 21:34.


Powered by vBulletin®
Copyright ©2000 - 2026, 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 ©2026 elitepvpers All Rights Reserved.