Und da die aktuellen Bots momentan ziemlich unsicher sind, hab ich mir gedacht ich stell das mal rein.
Quote:
A Complete Macro Guide By YDONG
This guide will provide a complete tutorial on macro, its tools, usage in World of Warcraft, and working scripts that can be used to create a bot, So lets get started?
Macro and Bot Overview
Forget World of Warcraft for just a moment, and let?s just talk about Macro.In its simplest form, a Macro is a custom program that will record and playback keystrokes and mouse movements on your computer so certain tasks can be automated. For example, you can record actions such as open a word document, type in some words, then save and close the word document. Now when you hit playback on your macro program you will see your mouse move magically by itself to open the same word document, type in the same words, then save and close.
Of course the above example is pointless, but you probably realized by now macro can be used to automate ANY game that require a lot of repetition, such as killing monsters over and over for the next 60 levels. By the end of this guide you will not only learn how to macro in World of Warcraft, but also in other games that require a lot of tedious tasks. Another good example is trade skills; ofter you are required to hunt low-level monsters just to get the materials needed to become a high-level trader class in mmrpgs including WoW. Once again this can be macroed and automated. Now lets look at the macro tools or programs available with respect to World of Warcraft.
Tools
Build-in Macro:
One of the most unique aspect of WoW is it comes packaged with a full-fledged programming language / macro tool BUILD IN the game client itself. The macro language Blizzard uses is called Lua(). Of course in a perfect world, this is all you need, but also we don?t live there. To prevent their own creation from becoming the next Frankenstein, Blizzard placed many artificial checks and balances within their macros ? such as can only cast 1 spell per macro, no loops, and each macro must be activated from a mouse button etc? rendering the built-in program useless for bot automation. However there are still many uses for the built-in macro to improve your game experience. It is one of those good to know things about the game so lets go over it briefly:
To bring up the in game macro window type /macro, as you can see this is a pretty straightforward UI. Click on new to create a new macro, type in your macro code in the textbox under Enter Macro Commands. Once you are done, you can move the macro you just created into your hotkey bar for easy access ( by dragging the macro icon on the top part of the macro window into your hotkey bar ). You can also execute quick macro commands by typing it directly in your text bar command line by starting with the keyword /script Now lets look at some useful and fun macros.
1. Remove the delay of the quest text. So they show up instantly. Type those in your command line ( one line at a time ).
/script QUEST_DESCRIPTION_GRADIENT_CPS=600000
/script RegisterForSave(?QUEST_DESCRIPTION_GRADIENT_CPS?)
2. Any type of combat benefical spell such as healing/buffing etc. Those should be done using the macro window and placed in the hotkey bar.
/target ?player?
/cast name of spell(Rank #) #for example /cast Purify(rank 2)
/script TargetLastEnemy();
Basically this lets you quickly heal/buff an ally without losing your current target or waste time targeting your ally, very useful in combat when you need to heal someone quickly.
3. The opposite of this is casting on enemy targets or sic in your pet.
/cast name of spell(rand #) #for example /cast Shadowbolt(rank 4)
/script PetAttack();
/say ?Pikachu! I choose you!? #be warned, this tend to piss off your group after a while for some unknown reason.
/script Attack();
A complete list of in game macro commands can be found at the end of this tutorial.
Custom Macro Tool:
There are hundreds of similar macro programs out there ? ranging from free to commercial products. Most are complete junks, others ( such as Macro Express ) are professionally created but simply does not work well with WoW. I have taken the time to go through almost all of the popular ones and have selected ACTools as the macro tool of choice for WoW simply because it works flawlessly with WoW ? no freezeups or major bugs, contains the most comprehensive list of features and also very easy to setup and use. Lets try this program out, follow the steps below exactly to run ACTools.
1. Download and Double click on actoolinstall_462.exe then follow the on screen instruction to install ACTools.
2. Run ACTools by going to the directory you installed ACTool from in step 1) and double click on ACTool.exe Note: You can also create a shortcut on the desktop to make this faster for future use.
3. You should now see the main program. On the right sub window is a list of all the commands you can insert into your macro window ranging from moving mouse to xyz coordinates to return the RGB value of your screen pixel the mouse is pointed on. The left sub window is where your macro codes reside(or will be) ? the intelligence behind your bot.
4. Lets try a simple macro to give you an idea how the whole thing works together. Download the dancedance.mac then go to ACTool -> File -> Open -> Go to the directory where you downloaded dancedance.mac ( I recommend you create a new directory to organize all the macro files ) -> Select the file then click Open.
5. This is a very simple script that makes your character dance continuously, but it illustrates some key concept of this entire process and how the program works. So lets go through the macro:
File: dancedance.mac
// You can place your comments after ?//?
// It will not be run as a part of the macro
SETActiveWindow World of Warcraft
// delay x000 tells ACTool to wait x sec
// initial delay, always a good practice to
// give the bot a few sec before starting up its routine
Delay 4000
// the main routine / loop of your bot, the bot will
// perform all the action inside While loop. Since
// 1=1 is always true, the bot will run continuously
// until the users tells it to stop. This is the primary
// building block of any bot in WoW.
While 1=1
// the actions the bot will perform continuously nonstop
// is to dance! It is the same as you type /dance in your
// textbar command line in the game
// wait 5 sec, buffer delay ? it?s good practice to pause a
// little after each command to mimic human behavior and also
// not to overflood your char in game
Delay 5000
// press the enter key {like you do in game}
// this puts your char in text bar command line mode.
Keys {Return}
// wait 0.2 sec, buffer delay to make sure
// the previous command ? enter is finished
Delay 200
Keys /dance //type /dance in the text bar command line
//wait 0.2 sec to make sure the previous command
// type /dance is finished
Delay 200
// press enter again. Which makes your char
// perform the dance action
Keys {Return}
// end of the while loop. The macro program will
// now start again from the top right below While 1=1
End
6. Now time to run the macro! Start WoW normally, then switch to windowed mode via the Option Video screen. It is also generally a good idea to test your macros while your char is not in a crowed area. Resize the windows so you can with AC Tools window and WoW window next to each other.
7. Now start the macro! By going to the AC Tools window ->Macro ->Start Macro. Do not touch the keyboard or mouse after you click on Start Macro. Wait 4 sec ( remember the initial delay 4000 in the script. ). Then you will see your char start dancing nonstop. Or if you replaced /dance with /train etc it will perform whatever action that was coded.
May I suggest creating a naked gnome and place him on top of a bar in the most crowed inn then start the dance dance routine! He will be an instant hit with the ladies.
Congratulations! You just created your first Macro script. Review this process as needed, All macros will be run the same way.
Botting And Wold of Warcraft
By now you have a good understanding how this simple program works.
Before we go into the implementation of the real bots. There are a few things you need to be aware of:
1. You need to know how to setup hotkeys in WoW. For example when I refer to hotkey2 it means the second slot of your hot key bar (which you activate by press 2 in the game normally). If you don?t know how to do that, RTFM J
2. WoW does not generate any logs like Everquest, therefore it is much more difficult to create intelligent bots in WoW since you cannot just feed the log to your bot. Nots: WoW does have logs ( for example /combatlog will log all your combat texts), however it does not WRITE the text data from the memory buffer into a file on your PC until you stop the log by typing /combatlog again. And if you try to start the log once more, it will erase all previous entries. This makes it impossible for the bot to read the log ( how do you read something that is not there ).
3. Your bot is solely dependent on the power and level of your character, he is not a god. Running your level 5 gnome straight across the Burning Steppes is a one way ticket back to the graveyard.
4. You should ALWAYS start by botting against static camp/spawns to become familiar with the process. By static spawns, I mean monsters that respawn at the exact same location every time.
5. You should always fight monsters you can solo easily, usually a few levels below you. Remember that key concept of botting is not to kill the toughest monster you can, but to gain CONSISTENT exp while ou are AFK or asleep.
6. Try to kill the monster manually by simulating as a bot. Meaning hit your special attacks over and over like a bot and see if you can kill it and adjust the difficulty of the monster accordingly
Single static spawn camp
This is the most reliable and easiest implementation. Here is what you are doing:
1. Find a place that a single monster spawns/respawns.
2. If you are a melee attack, stand right in front of the respawn point, place your mouse pointer over where the monster will spawn, and run the script below.
3. If you are a ranged attack, stand as far back as you can from the spawn point ( but still in range to cast your spells or shoot your projectiles), place your mouse pointer over where the monster will spawn and run the script below.
4. What you are essentially doing is targeting the monster as soon as it spawns using your mouse, then attack/fire using your specials. You will have the monster locked in this infinite loop, as soon as it spawns it will be attacked by you and then die.
File: bot1.mac
SETActiveWindow World of Warcraft // always put this as the first line
Delay 2000 // initial delay
While 1=1 // main while loop
// you may also use tab to target instead of mouse
// whichever works best for the situation
//keys {tab}
LeftClick // left click the mouse , used to target static spawns
Delay 500
// uses hotkey2 which should be linked to a
// skill or spell your char uses in combat.
Keys 2
// the game delay of whatever action you perform +1 sec
// for example if your heroric strike takes 2 sec to cast,
// it should be delays 3000(2sec+1sec)
Dealy 1500
Keys 3 // another skill /spell action.
Dealy 1500
// insert as many actions as you want here.
// if the respawn is faster then you can regen
// might want to add the keys /sit and keys /stand
// command to rest between fights
End // whatever action is above will be repeated over and over
Group static spawns camp
This implementation allows you to camp a group of monsters which will yield faster exp gain. As with any risk vs. reward situation, it is also more risky and complicated than the previous method. This method is suited more for ranged attack type. For melee you need to create a hotkey macro button using the in game macro window that will switch you to a ranged weapon ( rifle) to pull the monster to you, then switch back to melee and kill it.
Always factor in spell interrupts if you are a caster! Meaning if it takes you 4-5 shots to kill a monster, place at least 10-15 such spells in you bot loop. Because you WILL be interrupted from time to time which equals to a shot that didn?t do any damage.
The idea here is to target nearest using the TAB key, kill it with your special attacks in ONE while loop, then rest /delay the appropriate time needed, and move on to your second target.
File: bot2.mac
SETActiveWindow World of Warcraft // always put this as the first line
Delay 2000 // initial delay
While 1=1 // main while loop
keys {tab} // target the nearest enemy
Delay 250 // buffer delay(make sure the last command is finished)
Loop 30 // inner loop. Loop X means loop x times
// Insert script commands here
// hotkey2 slot 30 times PER ONE MONSTER! Hopefully
// your target is dead after that! If your target
// dies before the loop is finished, it?s OK as your
// char will not have a target hence will not waste
// mana casting spells. He will just wait until the
// loop finishes, regen up in the meantime and acquire
// a new target.
Keys 2
Dealy 1500 // delay of your action or spell
End // end of inner loop
End // end of main while loop
Movement
You can also make your character move automatically. This can be used in many situations and in combination with the hunting script above. For example, kill at spawn point 1, move to spawn point 2, kill at spawn point 2, and move back to spawn point 1.
The script below shows you how to do movements, it makes your char run in a square indefinitely.
File: movementbot.mac
SETActiveWindow World of Warcraft // always put this as the first line
Delay 2000 // initial delay
While 1=1 // main while loop
// hold the w key for 3 sec = run north for 3 sec
KeyDown w 300
// insert your action codes here that you
// want the char to perform before turning
// stop then turn left 90 degrees by holding
// the a key for 0.49sec. Note: holding the
// a key for /delay 490 equals turning 90 degrees
// precisely. So it?s about 5.4 delay per extra
// degree. So to turn 120 degrees, you will do
// 490+(5.4*30)=652. ie: keydown a 652
KeyDown a 490
KeyDown w 3000
KeyDown a 490
KeyDown w 3000
KeyDown a 490
KeyDown w 3000
KeyDown a 490
End // end of the main while loop
2 Boxing Bots
Another fun use for those hardcore players doing 2 or 3 boxing, is to run a script on your second box. So when you are fighting, your bot on the second computer will automatically heal you, debuff and burn your enemy etc; or just a simple buffing bot that will time and buff you or your friends every 10 minutes or heal you ever x sec/min. So you don?t need to worry about switching keyboards and looking at the second monitor in the heat of combat.
All you need to modify from the previous scripts are instead of targeting your enemies, target you or your party members and cast beneficial instead of detrimental spells.
Custom Scripts
For special situations, you can create unlimited amout of customization from the template provided with this guide to suit your special needs. For example, if your character is not strong enough yet to hold on to a static spawn, you can modify the script so he rests in a safe spot, then run the the static spawn, target, attack, kill, run back, rest for x seconds then run there again. For a complete list of functions and their definition you can use within your script for customization for those advanced users check out the AC Tool help under AC Tool Commands.
Important Tips
Ø ALWAYS fight monster you can kill easily without much downtime(2-3 levels below you). This applies to both when you are botting and at the keyboard. So many players do not understand this simple concept. Lets say you kill a low level mob and it gives you 140 exp, and a higher con gives you 220 exp. But with a low level, you can kill almost twice as fast and with almost no risk of death ( no wasting time running back). The most important advantage is NO DOWNTIME. You can continuously kill low levels over and over where as you are forced to rest and regen hp/mana after killing a few higher cons.This downtime combined with the extra time required to actually kill a higher con makes it much less efficient. Remember this well. Of course WoW is also unique in that you should always kill quest mobs. Never kill mobs just for the sake of getting exp, unless of course you finished all of your quests for the level.
Ø Remember not to move your mouse or touch the keyboard while the script is running! It can have hmm?rather interesting results.
Ø For the more savvy users,you can easily modify the bot script. For example instead of running back and forth in a square radius you might want it to run in a triangle or whatever ( by use the ?w? and ?a? key), or use combo special attacks.
Ø NEVER put any type of emotes or communications in your bot! There is nothing stupider than a bot spamming ?I kill thee evildoer!? every 20 sec and attacking a large crowd of curious onlookers and troublemakers while you are asleep dreaming about naked gnomes.
Ø There is no way for WoW or any game to detect if you are running a bot or not on their server side using ACTools The ONLY way you can be found is if someone reports you(see above), or being stupid ( like bragging about how you gained 5 levels last night while watching The Simpsons).
Ø Try to bot in secluded places/dungeons with a lot static spawns ( plenty of those is WoW). It doesn?t necessarily have to be empty of other players. Almost 100% of the time no one will notice or bother you. It only becomes a problem if you bot a VERY contested area where people are fighting over every monster ? such as the low level quest dungeons right after release when half a millon newbies all jammed in those 5 rooms trying to do their level 3 quest.
Ø Testing testing testing. Try the script out while you set back and watch, see if any improvements are needed. For example if you set the delay for combat to 10 sec, and see your character not able to kill the monster yet, then it?s time to modify the delay timer.
Ø Make sure you setup the hotkeys! Press 2 ( or any other number) on your keyboard means nothing if there is no hotkey action linked to them!





). Of course in a perfect world, this is all you need, but also we don?t live there. To prevent their own creation from becoming the next Frankenstein, Blizzard placed many artificial checks and balances within their macros ? such as can only cast 1 spell per macro, no loops, and each macro must be activated from a mouse button etc? rendering the built-in program useless for bot automation. However there are still many uses for the built-in macro to improve your game experience. It is one of those good to know things about the game so lets go over it briefly:
