|
You last visited: Today at 21:53
Advertisement
[Script] Craft Potions Bot
Discussion on [Script] Craft Potions Bot within the C9 - Continent of the Ninth forum part of the MMORPGs category.
03/13/2013, 14:05
|
#1
|
elite*gold: 0
Join Date: Nov 2011
Posts: 42
Received Thanks: 55
|
[Script] Craft Potions Bot
Hi,
Since im not playing this game anymore im releasing this simple bot i made to craft potions, since crafting is pretty boring and gives a lot of money, i guess you can use this to make any alchemy or food itens if you change some things.
I made About 3-5M per day (10h running at night and Selling pots in day time)
Its only viable on alchemy or food itens.
What the bot do:
Transforms Vacant Artisan Crystal (VAC) into Artisan Crystal (AC)
Buy Alchemy Chest
Use Alchemy Chest
Check if inventory is full
Transforms more VAC into AC until theres no more VAC
Makes Reagent
Makes Life Potion
This works because each chest (Alchemy and Food only) cost 30 materials and gives an average of 54 materials back, so the main cost will be VAC.
The Setup:
This is a script wrote in AutoIt Version: 3.3.8.1
I was using this bot on my PC targeting a Virtual Machine (VM-Ware) so i didnt need to bypass any anti-cheat and it wont ever get patched.
It is detectable if your not using a Virtual Machine.
My PC resolution is 1920x1080 and the VMware 1024x768 locked at right half of my screen.
This script is curently configured to make B grade Life Potions.
I recomend only doing D grade and B grade Life Potions as i found they are the most profitable.
You will probably have to put your own coordinates in the bot to work properly i used the AutoId Window Info software to do that.
The Script:
#cs ----------------------------------------------------------------------------
AutoIt Version: 3.3.8.1
Author: Gurudz
Script Function:
Auto Potions Macro
#ce ----------------------------------------------------------------------------
;VAC = Vacant Artisan Crystal
;AC = Artisan Crystal
HotKeySet("{F4}", "Terminate")
HotKeySet("{F2}", "Active")
Opt ( "MouseClickDownDelay" , 200 )
Opt ( "MouseClickDelay" , 400 )
Opt ( "SendKeyDownDelay" , 200 )
Opt ( "SendKeyDelay" , 200 )
; Sleep until HotKey
While 1
Sleep(100)
WEnd
;;;; Functions
Func Terminate()
Exit 0
EndFunc ;Terminate
Func Active()
If WinWaitActive( "Windows 7 x64 - VMware Player") Then ;you need to change to your window name
Sleep(5000)
Call ( "VACtoAC")
EndIf
EndFunc
Func VACtoAC() ;Transforms VAC in AC
Send("{LCTRL}")
Sleep(1000)
MouseMove(1484,434, 0)
Sleep(1000)
Send("{LCTRL}")
MouseClick("left", 1484,434, 1, 10) ;Opens alchemy tool
MouseClick("left", 1245, 400, 1, 10) ;Going to Universal Crafting
MouseClick("left", 1150, 485, 1, 10) ;Going to Universal Crafting
If PixelGetColor(1284, 348) = 0xE8E8FE Then ;See if you can make AC from the 2º on the list
MouseClick("left", 1400, 350, 1, 10)
Call("CreateAC")
Else
Call("SpendRecHerb")
EndIf
EndFunc
Func BuyChest() ;Buy chest set to Alchemy B
MouseClick("left", 1484,434, 1, 0)
MouseClick("left", 1200, 540, 1, 10)
If PixelGetColor(1240, 290) = 0xb08D97 Then
MouseClick("right", 1240, 290, 1, 10)
MouseClick("left", 1570, 370, 1, 10)
MouseClick("left", 1480, 420, 1, 10)
Sleep(500)
Local $checksum = PixelChecksum(1220, 270, 1255, 300)
While $checksum = PixelChecksum(1220, 270, 1255, 300)
Sleep(300)
WEnd
MouseMove(1484,434, 0)
Sleep(200)
Send("{LCTRL}")
Call ("D")
Else
MouseMove(1484,434, 0)
Sleep(200)
Send("{LCTRL}")
Call ("D2")
EndIf
EndFunc
;Movements
Func D()
Send("{d down}")
Sleep(250)
Send("{d up}")
Call ("OpenInv")
EndFunc
Func D2()
Send("{d down}")
Sleep(250)
Send("{d up}")
Call ("VACtoAC")
EndFunc
Func A()
Send("{a down}")
Sleep(250)
Send("{a up}")
Sleep(2000)
Call("BuyChest")
EndFunc
Func OpenInv()
Send("{i down}")
Sleep(250)
Send("{i up}")
Call("InvFullCheck")
EndFunc
Func OpenChest() ;Open Chest Is set to open Alchemy
Local $pixel = PixelSearch(1520, 460, 1900, 690, 0xF13472)
If Not @error Then
Sleep(200)
MouseClick("right",$pixel[0], $pixel[1],1 ,10)
MouseClick("left",1430, 415,1 ,10)
Sleep(1000)
Call("OpenChest")
Else
MouseMove(1484,434, 0)
Sleep(1000)
Send("{LCTRL}")
Sleep(500)
Call("VACtoAC")
EndIf
EndFunc
Func SpendRecHerb()
If PixelGetColor(1284, 296) = 0xE8E8FE Then
MouseClick("left", 1400, 290, 1, 10)
Call("CreateAC2")
Else
Call("MakeReag")
EndIf
EndFunc
Func CreateAC() ;Transform All useless herbs
MouseClick("left", 1770, 660, 1, 10)
MouseClick("left", 1570, 365, 1, 10)
MouseClick("left", 1480, 420, 1, 10)
Sleep(500)
Local $checksum = PixelChecksum(1740, 660, 1800, 670)
While $checksum = PixelChecksum(1740, 660, 1800, 670)
Sleep(300)
WEnd
MouseMove(1484,434, 0)
Sleep(200)
Send("{LCTRL}")
Sleep(500)
Send("{LCTRL}")
Sleep(1000)
Send("{LCTRL}")
Call ("A")
EndFunc
Func CreateAC2() ;Transform about 15 Recovery Herb
MouseClick("left", 1770, 660, 1, 10)
MouseClick("left", 1570, 365, 1, 10)
MouseClick("left", 1480, 420, 1, 10)
Sleep(15000)
MouseMove(1484,434, 0)
Sleep(200)
Send("{LCTRL}")
Sleep(500)
Send("{LCTRL}")
Sleep(1000)
Send("{LCTRL}")
Call ("A")
EndFunc
Func MakeReag() ;Makes all reagent
Send("{LCTRL}")
Sleep(1000)
Send("{LCTRL}")
Sleep(1000)
MouseMove(1484,434, 0)
Sleep(1000)
Send("{LCTRL}")
MouseClick("left", 1484,434, 1, 0)
If PixelGetColor(1284, 300) = 0xA8F772 Then
MouseClick("left", 1400, 290, 1, 10)
MouseClick("left", 1770, 660, 1, 10)
MouseClick("left", 1570, 365, 1, 10)
MouseClick("left", 1480, 420, 1, 10)
Sleep(500)
Local $checksum = PixelChecksum(1740, 660, 1800, 670)
While $checksum = PixelChecksum(1740, 660, 1800, 670)
Sleep(300)
WEnd
Call("MakePot")
Else
Call("MakePot")
EndIf
EndFunc
Func MakePot() ;Makes all pots
Sleep(500)
Local $pixel = PixelSearch(1275, 380, 1300, 470, 0xFF775E)
If Not @error Then
MouseClick("left",$pixel[0]+50, $pixel[1],1 ,10)
MouseClick("left", 1770, 660, 1, 10)
MouseClick("left", 1570, 365, 1, 10)
MouseClick("left", 1480, 420, 1, 10)
Sleep(500)
Local $checksum = PixelChecksum(1740, 660, 1800, 670)
While $checksum = PixelChecksum(1740, 660, 1800, 670)
Sleep(300)
WEnd
MouseMove(1484,434, 0)
Sleep(200)
Send("{LCTRL}")
Sleep(500)
Call("VACtoAC")
Else
Send("{LCTRL}")
Sleep(500)
Call("VACtoAC")
EndIf
EndFunc
Func InvFullCheck() ;check if inventory is not full
Local $pixel = PixelSearch(1600, 645, 1900, 690, 0xA3E651) ;last slots on inventory
If Not @error Then
Call("MakeReag")
Else
Call("OpenChest")
EndIf
EndFunc
Instructions:
Tutorial to find your own coord.
.
You need to have in your inventory lots of VAC and at least 30 Herbs or 15 AC
Press F2 to activate script.
Press F4 to terminate script.
|
|
|
03/16/2013, 11:41
|
#2
|
elite*gold: 0
Join Date: Jan 2008
Posts: 79
Received Thanks: 2
|
nice work
i have VM-Ware on my pc but c9 non work on that VM-Ware (work very *** on real pc )
haw i can run it
|
|
|
03/18/2013, 00:01
|
#3
|
elite*gold: 0
Join Date: Nov 2011
Posts: 42
Received Thanks: 55
|
@grayfox1 you are using windows 7 on the vm? whats the error when you try to run it? did you try to instal c9 on the vm-ware from the setup?
|
|
|
 |
Similar Threads
|
whats with the new agdev.. Can't generate a script to buy potions.. -_-
03/01/2009 - Silkroad Online - 1 Replies
How do you config Agdev to buy potions there is no option to generate scripts anymore.. Are you saying I have to hand code the "open store" and stuff?
Come on.. -_-
|
[Request] Script to add 10x exp potions and 500% balls
02/10/2009 - EO PServer Hosting - 1 Replies
I searched for it and couldn't find it. Can someone that has them on there server make a script for adding 10x exp potions and 500% exp balls to server. Acme EO is the only server I know of that has them. But then again I haven't played much servers. So maybe forcer could you share with us? Or anyone else that has them.
|
[2W script help] How to read a recipe in dwarven craft?
11/27/2008 - Lineage 2 - 4 Replies
Ok I'm Creating a script to create ss ---> deposit ---> create bss ---> deposit
I have a problem:
Set(L2WALKER,ENABLE)
USESKILL(Dwarven Craft,SELF) <--- OK
USEITEM(Recipe: Soulshot: D grade) <--- NOT OK :S
DLGSEL()
How can my dwarf read the recipe that has learn?
|
Soulshot craft & restock on soul ore SCRIPT
08/29/2008 - Lineage 2 - 0 Replies
Hello,
What i want to do: I have my dwarf crafting soulshots on autocraft/vendor on l2walker. I want to make a script so he will go and get Soul ore from WH when needed.
However, i dont know how to make him stand up from Sell shop, please if u have any idea or script for such thing, post it.
|
All times are GMT +1. The time now is 21:54.
|
|