Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Mabinogi > Mabinogi Hacks, Bots, Cheats & Exploits
You last visited: Today at 17:27

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

Advertisement



[Release] Spirit Weapon Feeder

Discussion on [Release] Spirit Weapon Feeder within the Mabinogi Hacks, Bots, Cheats & Exploits forum part of the Mabinogi category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Dec 2009
Posts: 27
Received Thanks: 7
[Release] Spirit Weapon Feeder

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.
Attached Files
File Type: rar Spirit Feeder ApocalypseP.rar (1.58 MB, 436 views)
ApocalypsePoly is offline  
Thanks
6 Users
Old 07/07/2010, 01:32   #2
 
elite*gold: 0
Join Date: Dec 2009
Posts: 395
Received Thanks: 94
Coding this in autoit?

You could probably put in more effort and use relative coords instead of static coords but it would take you some time to work those out.
Theri is offline  
Old 07/07/2010, 02:17   #3
 
elite*gold: 0
Join Date: Dec 2009
Posts: 27
Received Thanks: 7
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.
ApocalypsePoly is offline  
Old 07/07/2010, 03:22   #4
 
redjoker5's Avatar
 
elite*gold: 0
Join Date: Jul 2009
Posts: 387
Received Thanks: 37
Quote:
Originally Posted by ApocalypsePoly View Post
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.
redjoker5 is offline  
Old 07/07/2010, 03:32   #5
 
elite*gold: 0
Join Date: Dec 2009
Posts: 27
Received Thanks: 7
Quote:
Originally Posted by redjoker5 View Post
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. -_-
ApocalypsePoly is offline  
Old 07/07/2010, 06:30   #6
 
elite*gold: 0
Join Date: Nov 2009
Posts: 42
Received Thanks: 26
What exactly does the bot feed to the ego?
nandattebay0 is offline  
Old 07/07/2010, 17:07   #7
 
elite*gold: 0
Join Date: Dec 2009
Posts: 14
Received Thanks: 3
Quote:
Originally Posted by nandattebay0 View Post
What exactly does the bot feed to the ego?
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 View Post
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
Attached Files
File Type: rar Ego Feeder.rar (41.1 KB, 92 views)
iyagaru is offline  
Thanks
1 User
Old 07/07/2010, 19:02   #8
 
pawntobishop's Avatar
 
elite*gold: 0
Join Date: Sep 2009
Posts: 1,317
Received Thanks: 472
#Moved
This is a bot release and I don't want anyone to get in trouble XD.
pawntobishop is offline  
Old 07/09/2010, 14:20   #9
 
elite*gold: 0
Join Date: Dec 2009
Posts: 27
Received Thanks: 7
Very helpful information, i say give me a week and i'll probably have a full bot running.
Just dont hold your breaths on it.
ApocalypsePoly is offline  
Old 07/10/2010, 05:47   #10
 
elite*gold: 0
Join Date: Dec 2009
Posts: 395
Received Thanks: 94
Redundant:

Code:
WinActivate("Mabinogi")
WinActive("Mabinogi")
If you insist:
Code:
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.
Theri is offline  
Old 07/10/2010, 05:50   #11
 
elite*gold: 0
Join Date: Mar 2010
Posts: 912
Received Thanks: 112
Set ALT to be held down when searching for manus.
kotarou3 is offline  
Old 07/10/2010, 06:07   #12
 
elite*gold: 0
Join Date: Dec 2009
Posts: 395
Received Thanks: 94
I cant test this, should work exactly the same.
Code:
#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
Theri is offline  
Old 07/11/2010, 12:04   #13
 
elite*gold: 0
Join Date: Jul 2010
Posts: 3
Received Thanks: 0
im new to this mod thing and computers how do i intsall that for ****** terms
devilboy0722 is offline  
Old 07/11/2010, 13:50   #14
 
elite*gold: 0
Join Date: Mar 2010
Posts: 912
Received Thanks: 112
You don't "install" it. You let AutoIt "interpret" it
kotarou3 is offline  
Old 07/11/2010, 17:46   #15
 
elite*gold: 0
Join Date: Dec 2009
Posts: 27
Received Thanks: 7
Quote:
Originally Posted by devilboy0722 View Post
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.

If that doesnt work then... tough luck.
ApocalypsePoly is offline  
Reply


Similar Threads Similar Threads
[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 -".
[Release]Working Auto Pet Feeder
09/20/2008 - Flyff Hacks, Bots, Cheats, Exploits & Macros - 2 Replies
*removed by Vulcanraven*



All times are GMT +2. The time now is 17:27.


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