Page 1 of 2

SWG Macros - AFK_SELL for smugglers w/ AUTO-DELETE on enzyme

Posted: June 3rd, 2008, 4:11 pm
by djsdark
hey there.

Here's the script I made to AFK sell and delete stuff from my inventory.
This can be use by smuggler ONLY with the Fence ability.

I might try to find a way to use it with a JunkDealer.

First of all, run SWG in windowed mode.

Before running the script, go to the Kkowir Forest /wp 155 51 and make an in-game macro to kill the Mouf.
I'm using:

/ui action toolbarSlot00; Fence Ability here
/pause 0.5
/ui action cycleTargetOutward; Cycle between the targets
/pause 1
/ui action toolbarSlot01; Brawler Swipe 3 or 4 (not 6)
/pause 1
/ui action toolbarSlot02; Pin Down 3 or 4 (not 6)
/pause 1
/ui ac tion toolbarSlot03; Dirty Trap
/macro farm


EDIT: For some reason all the corpses are not looted. I am now using 2 loot macro:

Macro loot
/loot corpse
/pause 0.5
/macro loot

Macro loot2
/loot
/pause 0.5
/macro loot2

Once you there, put the camera on the top of your head (important!). This way you'll only see the top of your helmet/head and only target the mouf in range. Open your inventory and make sure there's nothing that you can sell to a junk dealer inside. (You can drop stuff in droids) Then run the 2 in-game macro.

You'll Start killing and looting some mouf paw/pelt, enzyme and pistol that you're selling for a good amount of cash.

Right click on any item you have and do Examine. Now put the examine window away from the middle of your screen.

You are now ready to run this script:

EDIT: If you are using the following code and compiling it yourself, don't forget to add .au3 after <misc> and <GuiConstants> at the begining.

Code: Select all

#Region ;**** Directives created by AutoIt3Wrapper_GUI ****
#AutoIt3Wrapper_icon=favicon.ico
#AutoIt3Wrapper_outfile=SWGAutoSell_v1.1.exe
#AutoIt3Wrapper_UseUpx=n
#AutoIt3Wrapper_Res_Comment=Auto Sell
#AutoIt3Wrapper_Res_Description=Auto Sell
#AutoIt3Wrapper_Res_Fileversion=1.1
#AutoIt3Wrapper_Res_Icon_Add=favicon.ico
#EndRegion ;**** Directives created by AutoIt3Wrapper_GUI ****
#include <misc>
#include <GuiConstants>

Global $Paused
HotKeySet("{PAUSE}", "TogglePause")
HotKeySet("{ESC}", "Terminate")

SplashTextOn('SWGAutoSell',"Welcome to SWG Auto Sell!", 420, 60, -1, -1, 0, "Ariel", 24) 
Sleep (2500)
SplashOff()

While 1
   Sleep ( 100 )
If MsgBox(1,"User Agreement", "This program is built to sell items and empty your inventory in Star Wars Galaxies. This program assumes confirm object deletes is off.  The acceptance of this agreement removes the developer of this program from any and all liabilities.  The maker is not responsble for the ramifications of the use of this program. By selecting OK, you agree to these terms.") = 2 Then Exit
    ExitLoop
WEnd

SplashTextOn("SETUP", "Please Click once on the first item to Sell. ", 400, 100, -1, -1, 0, "Ariel", 18)
While 1
Sleep ( 100 )
If _IsPressed("01") Then
$pos = MouseGetPos()
ExitLoop
EndIf
WEnd
SplashOff()
$mainselx = $pos[0]
$mainsely = $pos[1]
Sleep ( 1000 )

SplashTextOn("SETUP", "Please Click once on the Sell button. ", 400, 100, -1, -1, 0, "Ariel", 18)
While 1
Sleep ( 100 )
If _IsPressed("01") Then
$pos = MouseGetPos()
ExitLoop
EndIf
WEnd
SplashOff()
$sellbuttonx = $pos[0]
$sellbuttony = $pos[1]
Sleep ( 1000 )

SplashTextOn("SETUP", "Please Click once on the first item in inventory. ", 400, 100, -1, -1, 0, "Ariel", 18)
While 1
Sleep ( 100 )
If _IsPressed("01") Then
$pos = MouseGetPos()
ExitLoop
EndIf
WEnd
SplashOff()
$deletex = $pos[0]
$deletey = $pos[1]
Sleep ( 1000 )

   SplashTextOn("SWGAutoSell", "This concludes the setup. The program will start in 5 seconds.Press Escape at any time to end the program.", 400, 100, -1, -1, 0, "Ariel", 16)
   Sleep ( 5000 )
   SplashOff()
   
$i = 0

Do
   $a = 0
   $b = 0
   Sleep(500)
   
   While $a < 2
   MouseClick ( "left" ,$mainselx ,$mainsely ) ;select the first item to sell.
   Sleep (1000)
   MouseClick ( "left" ,$sellbuttonx ,$sellbuttony ) ;sell the item.
   Sleep (1000)
   $a = $a + 1
   WEnd   
   
   While $b < 2
   Mouseclick ( "right" ,$deletex ,$deletey ) ;Open the radial menu on the inventory item.
   Sleep (700)
   Send("{2}") ;Delete your selected inventory if it's an enzyme.
   Sleep (1000)
   $b = $b + 1
   WEnd
   
Until $i = 1

Func TogglePause() ; "Pause" key to pause the script.
$Paused = NOT $Paused
While $Paused
sleep(100)
ToolTip('Script is "Paused"',0,0)
WEnd
ToolTip("")
EndFunc

Func Terminate()
Exit 0
EndFunc


There's an Auto-Setup included so you won't have to enter the X&Y yourself in the script.
Look at the Screen beelow for more detail.

Image
Image

I suggest you loot a small stack of mouf pelt and mouf paw before running the macros this way they'll stack in your inventory instead of getting half deleting half selling.

Good luck with all this! Im open to any suggestion for improvment :)

Posted: June 3rd, 2008, 4:31 pm
by Tault_admin
Can members say yay or nay to this so we may give tu bucks and/or premium.

Posted: June 9th, 2008, 10:40 am
by severesting
After I erased his intro (was causing macro to error on startup) and inserted .au3s after misc. and GuiConstants, aye, it worked beautifully.

Very nicely written.

Posted: June 9th, 2008, 6:52 pm
by Tault_admin
750 to you and moved to confirmed

Posted: June 10th, 2008, 1:22 pm
by djsdark
Edited first post

+fixed .au3 after misc
+fixed .au3 after GuiConstants
+added Archive with .exe, .au3, icon and screen files.

Posted: June 10th, 2008, 8:39 pm
by superuberfish
very nice program but it wont destroy my enzymes it just brings up the yes or no box to destroy it doesnt not destroy by itself

Posted: June 10th, 2008, 9:29 pm
by djsdark
Go to Option > Misc and desactivate "Confirm Objects Deletes"

Posted: June 11th, 2008, 7:49 am
by superuberfish
ah i see
yes this bot works like a charm

Posted: June 13th, 2008, 6:40 am
by yoda1234
I used the Auto- Setup and it didnt work and I used the manual script kept giving me a error ...what am i doing wrong???
and also my loot macro isnt working right its not looting all the corpses either
i worte it as written by the OP...

Posted: June 16th, 2008, 4:02 pm
by djsdark
Code and attached files UPDATED.

+Changed the loops in the code, now using "While" function.
+Cleared some useless parts
+updated attached archive with new version of the code (.au3) and compiled file (.exe)
+Added a second Loot macro to have better chance to loot all corpses.

-Can't fix .au3 extension after constant and misc on first post (Web site doesn't allow it)

Posted: June 17th, 2008, 6:15 am
by cuervogold
Attach the script as a txt file to your message. That way it wont strip out the .au3 from it.

Posted: June 17th, 2008, 12:52 pm
by ievecodunt
hey i'm new to this site and i have smug can someone explain where i put the script and what i put

Posted: June 17th, 2008, 1:19 pm
by ievecodunt
or if u have vent and could talk me through it, it would be much appreciated

Posted: June 17th, 2008, 6:45 pm
by djsdark
ievecodunt wrote:hey i'm new to this site and i have smug can someone explain where i put the script and what i put


First, download the archive attached with first post. You'll find a .exe file inside and a screenShot with How to Setup your interface.

Then launch the game in Windowed Mode (from launchpad options).

Run the .exe file and it will ask you to click on specific points (described on screenshot). Once you're done with the setup don't touch anything and let your computer run with the game opened. It will move your mouse and do the clicks and stuf for you.

@cuervogold: There's a .au3 file in the archive with the working version of the code :)

Posted: June 17th, 2008, 9:03 pm
by ievecodunt
two questions how do u stop bot, and is calling junk dealer same as fencing?