Ok finally it's perfectionized, it has worked for me through lvls 30-39 strength.
It has come to my attention that the images i used for this Bot might not work for other users, so you can replace them if it's not working for you. The script uses BMP images not JPEG, go to google and search JPEG to BMP to make your images into BMP format.
Currently does:
-Feeds spirit weapon 5 times.
-Buys 5 more potion kits from manus.
I have provided the font that i used to create it, just extract "Font.rar" into your mabinogi folder.
Download Nogiparty v234 if you dont already have it, set it to "Read Data Folder = 1" and set "Use Bitmap Fonts = 0".
I am using gray thing glass in my mabinogi interface color so be sure to set yours to gray thing glass.
(Feel free to edit the script)
Here are some precautions:
To begin with you have to have 5 potion kits in your inventory to feed it otherwise the script would get stuck.
Manus has to be facing either one of these two ways, since I set imagesearch to search for a green square of his clothing.
This all may sound a bit complicated, but feel free to work with the stuff.
Thanks to iyagaru, and Theri for taking their time to explain these things.
Yes I am using autoIT, and i have no idea what relative coordinates, or static coordinates are, if you explain the difference maybe i could update my code. I'm trying to make a bot that works for everyone, which is why i used resolution 800x600 because that's the resolution most computers have.
Yes I am using autoIT, and i have no idea what relative coordinates, or static coordinates are, if you explain the difference maybe i could update my code. I'm trying to make a bot that works for everyone, which is why i used resolution 800x600 because that's the resolution most computers have.
In 1995 maybe. Most of today's computers use 1024x768 minimum. Even though if you look around there are ways to code your bot so that resolution doesn't matter. Like the fossil restoration bot did in its later stages.
In 1995 maybe. Most of today's computers use 1024x768 minimum. Even though if you look around there are ways to code your bot so that resolution doesn't matter. Like the fossil restoration bot did in its later stages.
I see, i'll take a look at the coding of the fossil restoration, but i believed that fossil restoration had some kind of imagesearch, i dont know.
Thanks for the idea!
Edit: Well i looked into it and it's a bit too difficult since it involves reading dll files. I only managed to get it to find the window size and the coordinates of it, but from there i have no idea how to get it to find the images and clicking them ect. -_-
potion concoction kits purchased from manus, meaning that the script in its current state is most useful if you have a male bow
Quote:
Originally Posted by ApocalypsePoly
Edit: Well i looked into it and it's a bit too difficult since it involves reading dll files. I only managed to get it to find the window size and the coordinates of it, but from there i have no idea how to get it to find the images and clicking them ect. -_-
its not too hard... put the line "#include <ImageSearch.au3>" at the top of your script and make sure the files ImageSearch.au3 and ImageSearchDLL.dll are in the same folder as the script
then you can start using the function _ImageSearch("image.bmp",1,$x,$y,30)
-image.bmp is the image you want to find
-1 tells the function to store the coordinates of the center of the image, replacing it with 0 will tell the function to store the top left coordinate of the image
-$x and $y are the variables the coordinates are stored in
-30 is the tolerance. you can change it but i find that 30 works well
then you can click using the MouseMove() and MouseClick() function
I changed your script a bit, haven't tested it (my ego's a male sword lawl). i actually don't expect it to work well (no error checking yet) but at least you can see how image searching works
screenshots you will probably need to retake unless you use the red gui:
-food.bmp
-giveConfirm.bmp
-ok.bmp
If Not WinActive("Mabinogi") Then
WinActivate("Mabinogi")
EndIf
You declare a ton of variables you don't need.
When using MouseClick its better to use "primary" instead of "left" in case someone who runs your script has their mouse buttons swapped, most people are right handed so its not a likely issue but you never know.
This should do the exact same thing your script does:
Code:
#include <ImageSearch.au3>
Global $x,$y ; Default Coordinates
MsgBox(0,"Spirit Weapon Feeder: By ApocalypsePoly and Iyagaru ","Your spirit weapon is hungry, what are you waiting for?!")
If Not WinActive("Mabinogi") Then
WinActivate("Mabinogi")
EndIf
TalkToEgo()
Feed()
BuyMoreFood()
Func TalkToEgo()
Send("{/}")
Sleep(5000)
EndFunc
Func Feed()
_ImageSearch("Give.bmp",1,$x,$y,30)
MouseClick("Left",$x,$y,1)
Sleep(3000)
_ImageSearch("Continue.bmp",1,$x,$y,30)
MouseClick("Left",$x,$y,1)
Sleep(3000)
_ImageSearch("Feed.bmp",1,$x,$y,30)
MouseClick("Left",$x,$y,1)
Sleep(2000)
_ImageSearch("Ok.bmp",1,$x,$y,30)
MouseClick("Left",$x,$y,1)
Sleep(2000)
_ImageSearch("Continue.bmp",1,$x,$y,30)
MouseClick("Left",$x,$y,1)
Sleep(2000)
_ImageSearch("Continue.bmp",1,$x,$y,30)
MouseClick("Left",$x,$y,1)
Sleep(2000)
_ImageSearch("Continue.bmp",1,$x,$y,30)
MouseClick("Left",$x,$y,1)
Sleep(2000)
_ImageSearch("End.bmp",1,$x,$y,30)
MouseClick("Left",$x,$y,1)
EndFunc
Func BuyMoreFood()
_ImageSearch("Manus.bmp",1,$x,$y,30)
MouseClick("Left",$x,$y,1)
Sleep(5000)
_ImageSearch("Shop.bmp",1,$x,$y,30)
MouseClick("Left",$x,$y,1)
SLeep(1000)
_ImageSearch("Potion.bmp",1,$x,$y,30)
MouseClick("Left",$x,$y,1)
SLeep(1000)
_ImageSearch("Buy.bmp",1,$x,$y,30)
MouseClick("Left",$x,$y,1)
Sleep(1000)
MouseClick("Right")
EndFunc
You should probably read up on Do ... Until loops. When you know exactly what you want to search for next you can keep looking for it till it happens, excute your code then move on.
Your tolerance settings are pretty low and you said it doesn't match your Manus.bmp. Try raising the tolerance setting higher, the value for tolerance is 0-255, so you have some room to play with settings.
Also, you may find that full screen searching is slow. I highly recommend using _ImageSearchArea and using defined areas. You can get the size of the users Mabinogi client window and from there calculate the size of your search areas and then just search set areas instead of the entire window.
#include <ImageSearch.au3>
Global $x,$y ; Default Coordinates
Global $result
MsgBox(0,"Spirit Weapon Feeder: By ApocalypsePoly and Iyagaru ","Your spirit weapon is hungry, what are you waiting for?!")
If Not WinActive("Mabinogi") Then
WinActivate("Mabinogi")
EndIf
TalkToEgo()
Feed()
BuyMoreFood()
Func TalkToEgo()
Send("{/}")
Sleep(5000)
EndFunc
Func Feed()
Local $tolerance = 30
Local $array[8]
$array[0] = "Give.bmp"
$array[1] = "Continue.bmp"
$array[2] = "Feed.bmp"
$array[3] = "Ok.bmp"
$array[4] = "Continue.bmp"
$array[5] = "Continue.bmp"
$array[6] = "Continue.bmp"
$array[7] = "End.bmp"
$result = 0
For $i = 0 To 7 Step 1
Do
$result = _ImageSearch($array[$i],$x,$y,$tolerance)
Until $result = 1
MouseClick("primary",$x,$y,1)
Next
EndFunc
Func BuyMoreFood()
Local $tolerance = 30
Local $array[4]
$array[0] = "Manus.bmp"
$array[1] = "Shop.bmp"
$array[2] = "Potion.bmp"
$array[3] = "Buy.bmp"
For $i=0 To 3 Step 1
Do
If $array[$i] = "Manus.bmp" Then
Send("{ALTDOWN}")
EndIf
$result = _ImageSearch($array[$i],$x,$y,$tolerance)
If $array[$i] = "Manus.bmp" Then
Send("{ALTUP}")
EndIf
Until $result = 1
If $array[$i] = "Buy.bmp" Then
MouseClick("secondary",$x,$y,1)
Else
MouseClick("primary",$x,$y,1)
EndIf
Next
EndFunc
im new to this mod thing and computers how do i intsall that for ****** terms
Basically all you have to do is, install AutoItv3 (You can get that by googling the name or follow this )
Afterwards, download the .rar file and extract it using WinRar(You can also find that by googling the name or clicking )
Then all you have to do is right click the autoitV3 file and select "Compile script", if you're running on vista or windows 7, right click the compiled script and go to properties>compatibilities>[Checkbox] Run as administrator.
[Re-Release] Spirit of Sharing cleaned 06/09/2009 - S4 League Hacks, Bots, Cheats & Exploits - 14 Replies ich hab die geposteten dateien nur desinfiziert, die im download enthaltenen sachen wurden nicht von mir sondern von xorheater erstellt
all credits are going to xorheater
[Release]Spirit of Sharing 06/06/2009 - S4 League Hacks, Bots, Cheats & Exploits - 5 Replies Sharing, Its something i never took as i'd need to keep secret, and not everyone i share with, only certain ppl, but if i can alteast get others to start sharing, well then giving out the sources of my work is worth it XD
This is my Spirit of sharing Package. It contains a full bypass for S4 League (it will get patched) but I will not update, and my custom sniffer for packets.
Share Knowledge freely, or I will never return to fully hacking xD.
Credits: xorheater
**Link removed by...
[Release] Spirit - Rose 11/11/2008 - Private Server - 0 Replies Hello Guys,
We are proud to Present you our 100 % IRose server, which is full of many features.
That means a lot of New Weapons, Pats, Carts, Equipment sets, Quests, Maps for all classes and much more you should discover by yourself.
Another new feature is that you can craft SPECIAL items you never seen befor in Rose Online.
We want to show you the REAL IRose Meaning to play in a Party ,Meeting Friends , to have fun and so on.
Thats why "SPIRIT ROSE - Back to the Roots -".