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
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
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 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...