In a previous post I mentioned how I was back on Star Wars Galaxies. The game developers raised the maximum combat level from 80 to 90 while I was gone, so I needed to close the gap to be effective in my pvp bounty hunting. I started to level up through quests, however I was gaining xp at a snail’s pace. Then I switched to killing spiders on Dathomir; it was much faster, but boring as hell. So I finally turned to macroing! Yep, with a few macros and scripts — I’m an afk killin’ machine! Why work harder when you can work smarter, right?
BTW, my system is running Ubuntu (Edgy Eff) and I’m using Cedega for SWG.
The first thing you need to do for afk combat is make some in-game macros.
1st macro: ATTACK
/ui action toolbarSlot00;
/pause 1;
/ui action toolbarSlot01;
/pause 1;
/macro ATTACK;
2nd macro: TARGET
/loot;
/harvest;
/pause 1;
/ui action cycleTargetOutward;
/pause 25;
/macro TARGET;
3rd macro: HEAL
/ui action toolbarSlot02;
/pause 1;
/ui action toolbarSlot03;
/pause 1;
/macro HEAL;
Place your primary attack ability on the 1st slot (lower row).
Place your secondary attack ability on the 2nd slot (lower row).
Place your heal ability on the 3rd slot (lower row).
Place your buff ability on the 4th slot (lower row).
So for mine, I have Razor Net as my 1st slot, Ambush for my 2nd, Heal for my 3rd, and Favor of the Elders for my 4th.
Unfortunately, auto attack was disabled for in-game macros. To auto-attack, you need a 3rd party scripting program. When I played SWG on Windows, I used AC Tools. For Ubuntu I had to find an alternative. I downloaded xmacro in Synaptic. Once you download it, you’ll have to load the record module in your xorg.conf file.
In the terminal type:
sudo gedit /etc/X11/xorg.conf
Save a backup of xorg.conf
Scroll down to the modules section and insert:
Load “record”
Save the file and restart X (ctrl+alt+backspace)
Navigate to your home folder and create a new file with gedit called: autofire.macro
Add these lines to the file:
KeyStrPress Scroll_Lock
KeyStrRelease Scroll_Lock
Now save.
Create a new file in the home folder with gedit called: attack.sh
Add these lines to the file:
while :
do
cat autofire.macro | xmacroplay “:0.0″
done
Now save.
Almost done! Now go into SWG. Go to Options>Keymap>target
Rebind the Primary Attack command to the Scroll Lock button
Click ‘OK’
Find a location you want to grind out.
Bring up the terminal and run the script you made.
sh attack.sh
Go into SWG and start up the in-game macros. I’d suggest to sit back and watch it run through a few times — macros always need a tweak here or there.
To quit out of the in-game macros type: /dump
To quit out of the loop script, Alt+Tab over to the Terminal and type: Ctrl+C.