[Release] Lostmage's Botting Scripts

10/04/2009 17:20 lostmage333#1
Hello,

I am Lostmage333, as you all might have guessed (pretty tough, eh). I've been playing around with AutoHotKey, a Windows Macro program based on AutoITv3.

I have produced a few bots that some of you might or might not find useful.

With every link, I will include a brief "how-to" for how to properly use the bot.

Auto-prof V1
[Only registered and activated users can see links. Click Here To Register...]
F1 toggles On/Off

Auto-prof V2
[Only registered and activated users can see links. Click Here To Register...]
Changes: Manages to get around obstacles (eventually).
F1 toggles On/Off
Works best for 800x600 windows/full screen. Does not work for smaller resolutions (kinda will work in full screen). If you want bigger resolutions, tell me and I'll make a version of this for bigger resolutions.

Both of those are ideal for use in the emain macha spider field. Other good places include, but are not limited to, the area right outside qilla, the area right outside filia, and brown foxes, if your character is a total low CP noob, or you have some -CP gear.

It is recommended that you set finish to "anyone in party", so you smack the dead mob again =D

Auto-weaving V1
Its name is somewhat... tricky.
your F2 hotkey should be set to weaving.
This ONLY runs in the windows mode resolution you get when you have 800x600 set in game. Its actually... uh... 816x636 (includes windows bars and the other windows crap around the edges. This is EXTREMELY sensitive to resolution. If you have other resolution requests, please post them.
Use this program to resize your mabi. [Only registered and activated users can see links. Click Here To Register...]

Then, use this... [Only registered and activated users can see links. Click Here To Register...] [Only registered and activated users can see links. Click Here To Register...] Press F1 to take a stack of exactly 5 (whatever) from under your mouse cursor (The second version uses 1), and put it into the production form. For example, move your mouse over a stack of cobwebs. Press F1. It will press F2 (open production form), Put a stack of 5 cobs onto it, and press Start. Then, it moves your mouse back. Move it to the next stack. When it's done, press F1 again.
Also works wonders for wool (out of the bags).

Woo! here's the cool part. It does more!

Press F4 and it will spam click the mouse once per .1 seconds (and it holds alt). What's that good for, you ask? Well, go to a sheep. Orient your camera so that the wool drops under the sheep. Press F4. It will cut the wool and pick it up for you, while you... say... do hwk, read a book... You just hafta swap sheep ever 30 cuts (30 cuts at 5s/cut = 150s, so 2.5 mins). Nifty =D

Press F4 again to turn it off. F3 also turns it off (dunno why i made both buttons work >.>)

BUT WAIT! THERE'S MORE! (i heard that in some commercial some time ago...) Make hanidcraft your F11 hotkey. Move your mouse over a stack of paper, and press F5. It'll make paper cranes, by itself, til the stack runs out. Then it'll keep trying. Turn it off at that point (F3) (oh maybe thats why i added F3 to also turn it off).

Auto-wound-remedy-30-potmaking...
This was made by request for a friend who didnt want to make like 1308u98738964 wound remedy potions for potmaking master...

It uses resolution 1024x768 AS DEFINED BY THE SIZER. Not as defined by mabi.
DL: [Only registered and activated users can see links. Click Here To Register...]

Put the items in the TOP ROW of your inventory, and minimize equiptments. Dock it to the upper left corner of your mabi window. ONLY WORKS IN WINDOWS MODE.

Put full stacks (of 10 herbs). It will make 10 then stop

F1:: Start
F2:: Stop

I have a few that are custom tailored for making item ________ with the BS/tailor skill. Of course, those are all custom made and 100% useless to you guys. If you want a specific one, tell me. I'll make it to use a screen resolution as defined by the sizer program.

Autodeposit:
Autodeposit.exe

Press F1 with your mouse over the "deposit" button. There is a bug that totally confounds me. It will do whatever action (summon pet for me) you have associated with the 9 key. >.> Easy solution: Delete that hotkey.

Stuff I might or might not attempt later.
Autoexploration (if dark raccoon doesn't beat me to it and i decide to be unlazy)
Maybe more? Request shit =D

I am willing to release any and all source code for the aforementioned files. Tell me which one(s) you want, and I'll post them.

All are written in AHK. I'm rather sure there is a way to convert .ahk to autoit3 (a3i if i recall?)

That's it for now. Enjoy.
10/04/2009 17:52 Dark Raccoon#2
Nice, finally someone else than me releases some work. :P

Quote:
Originally Posted by lostmage333 View Post
All are written in AHK. I'm rather sure there is a way to convert .ahk to autoit3 (a3i if i recall?)
AutoITv3 = .au3
10/05/2009 05:14 salamidude#3
how do i use this? i cant find the how to please help me thanks =)
10/05/2009 17:01 lostmage333#4
Well you gotta tell me a bit more about which one you wanna use. The how to is the text following the downloads.
10/07/2009 22:19 Augur#5
Would you mind posting the source for the weaving macro? I'd like to be able to use it for refine, and for some reason it picks up only 1 fragment at a time. If it just picks up the whole stack it would be perfect.
10/07/2009 22:48 lostmage333#6
Fixed that bug -_- oopsies! This one does 5 (five) at a time. The old version does one (good for leather cutting).

[Only registered and activated users can see links. Click Here To Register...]

Source Code:

10/07/2009 22:50 Augur#7
Actually, it still seems to be buggy. It's activating without me pressing anything, every 4 seconds or so.
10/11/2009 15:21 Dark Raccoon#8
Can you PM me the SourceCode of the Weaver, pl0x?
10/11/2009 16:01 lostmage333#9
Its already hidden in the spoiler a couple posts up, I think.

As for the bugginess... its not doing that to me o.O Um... don't press F5. It makes it activate ever 6 seconds or so, for spamming paper cranes.

If you do press F5, press F3 to cancel. It should stay off.

This does hijack your F keys (so if F5 was smash, it wont work nemore. kill the program/change the hotkey first).
10/11/2009 16:05 lostmage333#10
In case there is demand for this, too, this is my current autoattack

Code:
CurrentX = 411
CurrentY = 321

$F1::
Loop 1100
{
Click
Sleep 50
Click
Sleep 50
Click
Sleep 50

Send {CTRL down}
Loop 20
{
Mousemove %CurrentX%,%CurrentY%
Click
sleep 100
}


If (CurrentX > 650)
CurrentX := 411

If (CurrentX < 150)
CurrentX := 411

If (CurrentY > 450)
CurrentY := 321

If (CurrentY > 150)
CurrentY := 321


Random, Delta, -100,100
CurrentX := CurrentX + Delta

Random, Delta, -100,100
CurrentY := CurrentY + Delta


Send {CTRL up}

}

Sleep 1000


Send {TAB}

Sleep 1000

Loop 1200
{
Click
Sleep 50
Click
Sleep 50
Click
Sleep 50

Send {CTRL down}
Loop 20
{
Mousemove %CurrentX%,%CurrentY%
Click
sleep 100
}


If (CurrentX > 650)
CurrentX := 411

If (CurrentX < 150)
CurrentX := 411

If (CurrentY > 450)
CurrentY := 321

If (CurrentY > 150)
CurrentY := 321


Random, Delta, -100,100
CurrentX := CurrentX + Delta

Random, Delta, -100,100
CurrentY := CurrentY + Delta


Send {CTRL up}




Sleep 20
}

$^F1::
Send {CTRL up}
reload

$F2::Pause Toggle 
$^F2::Pause Toggle 

$F3::Reload
And here's auto potion making. Please make sure you have 800x600 windows mode resolution with inventory docked to upper left corner with equipments hidden. Otherwise it wont work.
Code:
Pos1X = 31
Pos1Y = 72
Pos2X = 55
Pos2Y = 72
Pos3X = 70
Pos3Y = 72
Pos4X = 102
Pos4Y = 72
Pos5X = 123
Pos5Y = 72

Dest1X = 71
Dest1Y = 374
Dest2X = 137
Dest2Y = 374
Dest3X = 207
Dest3Y = 374
Dest4X = 268
Dest4Y = 374
Dest5X = 326
Dest5Y = 374

StartX = 156
StartY = 500


Loop 20000
{
$F1::



Loop 9
{

Send 1
Sleep 100

MouseMove %Pos1X%,%Pos1Y%
sleep 50
Send {Shift Down}
sleep 50
Click
sleep 50
send {Shift Up}
sleep 200
Send {Backspace}
Sleep 50
Send 1
Sleep 50
Send {Enter}
Sleep 50
MouseMove %Dest1X%,%Dest1Y%
Sleep 50
Click
Sleep 50

MouseMove %Pos2X%,%Pos2Y%
sleep 50
Send {Shift Down}
sleep 50
Click
sleep 50
send {Shift Up}
sleep 200
Send {Backspace}
Sleep 50
Send 1
Sleep 50
Send {Enter}
Sleep 50
MouseMove %Dest2X%,%Dest2Y%
Sleep 50
Click
Sleep 50

MouseMove %Pos3X%,%Pos3Y%
sleep 50
Send {Shift Down}
sleep 50
Click
sleep 50
send {Shift Up}
sleep 200
Send {Backspace}
Sleep 50
Send 1
Sleep 50
Send {Enter}
Sleep 50
MouseMove %Dest3X%,%Dest3Y%
Sleep 50
Click
Sleep 50

MouseMove %Pos4X%,%Pos4Y%
sleep 50
Send {Shift Down}
sleep 50
Click
sleep 50
send {Shift Up}
sleep 200
Send {Backspace}
Sleep 50
Send 1
Sleep 50
Send {Enter}
Sleep 50
MouseMove %Dest4X%,%Dest4Y%
Sleep 50
Click
Sleep 50

MouseMove %Pos5X%,%Pos5Y%
sleep 50
Send {Shift Down}
sleep 50
Click
sleep 50
send {Shift Up}
sleep 200
Send {Backspace}
Sleep 50
Send 1
Sleep 50
Send {Enter}
Sleep 50
MouseMove %Dest5X%,%Dest5Y%
Sleep 50
Click
Sleep 50

MouseMove %StartX%,%StartY%
Sleep 50
Click
Sleep 50

Sleep 5500
}

Send 1
Sleep 100

MouseMove %Pos1X%,%Pos1Y%
sleep 50
Click
sleep 100
Send {Backspace}
Sleep 60
MouseMove %Dest1X%,%Dest1Y%
Sleep 50
Click
Sleep 50

MouseMove %Pos2X%,%Pos2Y%
sleep 50
Click
sleep 100
Send {Backspace}
Sleep 60
MouseMove %Dest2X%,%Dest2Y%
Sleep 50
Click
Sleep 50

MouseMove %Pos3X%,%Pos3Y%
sleep 50
Click
sleep 100
Send {Backspace}
Sleep 60
MouseMove %Dest3X%,%Dest3Y%
Sleep 50
Click
Sleep 50

MouseMove %Pos3X%,%Pos3Y%
sleep 50
Click
sleep 100
Send {Backspace}
Sleep 60
MouseMove %Dest3X%,%Dest3Y%
Sleep 50
Click
Sleep 50

MouseMove %Pos4X%,%Pos4Y%
sleep 50
Click
sleep 100
Send {Backspace}
Sleep 60
MouseMove %Dest4X%,%Dest4Y%
Sleep 50
Click
Sleep 50

MouseMove %Pos5X%,%Pos5Y%
sleep 50
Click
sleep 100
Send {Backspace}
Sleep 60
MouseMove %Dest5X%,%Dest5Y%
Sleep 50
Click
Sleep 50

MouseMove %StartX%,%StartY%
Sleep 50
Click
Sleep 50

return
}

$F2::Reload
10/12/2009 19:11 lostmage333#11
I have written an *updated* version of autoattack.

Code:
CurrentX = 411
CurrentY = 321

Stage = 1

$F1::

MouseGetPos MouseX,MouseY

PixelGetColor StartColor, MouseX, MouseY, Slow

Loop
{

PixelGetColor CurrentColor, MouseX, MouseY, Slow

If (CurrentColor != StartColor && Stage == 1)
{
Stage := 2
MouseMove 600,450
Loop 15
{
Click
Sleep 100
}
Send h
Sleep 300
Send {TAB}
Sleep 1000
}


Click
Sleep 50
Click
Sleep 50
Click
Sleep 50

Send {CTRL down}
Loop 20
{
Mousemove %CurrentX%,%CurrentY%
Click
sleep 100
}


If (CurrentX > 650)
CurrentX := 411

If (CurrentX < 150)
CurrentX := 411

If (CurrentY > 450)
CurrentY := 321

If (CurrentY > 150)
CurrentY := 321


Random, Delta, -100,100
CurrentX := CurrentX + Delta

Random, Delta, -100,100
CurrentY := CurrentY + Delta


Send {CTRL up}

}


$^F1::
Send {CTRL up}
reload

$F2::Pause Toggle 
$^F2::Pause Toggle 

$F3::Reload
To use this properly, have HP pots in your inventory. Also, have 2 weapon slots, each filled with 1 (or more) usable weapons. Hover your mouse over some part of your HP bar. The way this this works is that when it detects that you have lost a certain amount of HP (where your mouse was hovering), It'll swap weapons and use 1 HP potion. Its primary use is for proffing. My elf (249 CP) does a fine job proffing vs white spider, until my sword dies. Then I die (since I wear ham hunter/tamer so i do all 1s). I used this to detect when I was "dying" (aka sword broke), to swap to 2nd slot, so that I can prof 2 swords a night. =D
10/16/2009 02:42 lostmage333#12
My latest masterpiece, autoprof V4

Code:
;Stage 1 = Wep 1
;Stage 2 = Pet Clearing + Wep 2
;Stage 3 = Pet Clearing + Wep 3
;Stage 4 = Pet Clearing + Wep 4
;Stage 5 = Pet Clearing + Wep 5


CurrentX = 411
CurrentY = 321

Stage = 1

Stagemax = 3
Coord = 155

$F1::

MouseGetPos MouseX,MouseY

PixelGetColor StartColor, MouseX, MouseY, Slow

Loop
{
WinWait, Mabinogi : Dragon, 
IfWinNotActive, Mabinogi : Dragon, , WinActivate, Mabinogi : Dragon, 
WinWaitActive, Mabinogi : Dragon, 

PixelGetColor CurrentColor, MouseX, MouseY, Slow

If (CurrentColor != StartColor)
{

If (Stage = Stagemax)
Reload

Sleep 200
Send 6
Sleep 2000
Send {CTRL down}
Sleep 100
Send {LSHIFT down}
Sleep 100
Click
Sleep 100
Send {LSHIFT up}
Sleep 15000
Send z
Sleep 1000
Send {CTRL up}
Sleep 1000
Send h
Sleep 300

Send w
Sleep 1000

If (Stage >= 2)
{
Send i
Sleep 500
Coord := Coord + 25
MouseMove %Coord%, 71
Sleep 500
Click
Sleep 1500
MouseMove 40, 159
Sleep 300
Click
Sleep 1500
MouseMove %Coord%, 96
Sleep 300
Click
Sleep 1500
Send i
}

Stage := Stage + 1
}


Click
Sleep 50
Click
Sleep 50
Click
Sleep 50

Send {CTRL down}
Loop 20
{
Mousemove %CurrentX%,%CurrentY%
Click
sleep 100
}


If (CurrentX > 650)
CurrentX := 411

If (CurrentX < 150)
CurrentX := 411

If (CurrentY > 450)
CurrentY := 321

If (CurrentY > 150)
CurrentY := 321


Random, Delta, -100,100
CurrentX := CurrentX + Delta

Random, Delta, -100,100
CurrentY := CurrentY + Delta


Send {CTRL up}

}


$^F1::
Send {CTRL up}
reload

$F2::Pause Toggle 
$^F2::Pause Toggle 

$F3::Reload
Edit accordingly. Find where I said "send 6", and change that to your hotkey for summoning a pet with an autoattack or aggressive AI.

Change "stagemax" to how many weapons you want proffed before it gives up. It starts by proffing the weapon in slot 1, then switches to slot 2, then moves the item in the UPPER LEFT HAND CORNER of your inventory, then the next one right, etc. Up to the whole row.

Also, dock your inventory with eqs expanded to the upper left hand corner. Close it (and all other windows) and press F1 with your mouse over your HP bar about 20-40% down.

I've tested it once in an overnight run, and it worked flawlessly. Woke up with 4 0/17 gladius =D I then cried when I realized that meant I was about to pay like 200k for upgrades/repairs >.< However, I cannot guarantee it'll work flawlessly. It has a small problem with lag. If you have high lag (latency, actually), it'll fail.

I didn't make a .exe of this one due to the fact that you hafta change settings. Next version will prob include a gui, in which you can set settings, so I can make it into an .exe.
07/07/2010 04:35 lannmann#13
Hi im new and wanna train my handicrafting, would you mind helping/make a specific auto handicrafting bot that makes cranes??? hack shield blocks ur one x.x
07/07/2010 06:24 josephpho#14
nice necro sir.... check dates before you post please?
07/07/2010 17:59 pawntobishop#15
Expect a few threads to be necrod since I linked back to them for reference.