Post Reply Home » Forums » Star Wars Galaxies » Star Wars Galaxies Bots | Hacks

SWG Macros - Auto Forager V6 (Pattern) with Auto Delete : Star Wars Galaxies Bots | Hacks

Posted: March 19th, 2008
User avatar
Total Posts:184 Joined:2006
nice script :D

I made a little modification where you dont have to enter the X and Y coordinates before running the script. the script will simply ask you to left click the main spot there the enzyme/map will pop up after foraging and then asks you to click the backpack.

here it is: (can also add a function to ask you to enter amount of forages to left or right you want to do, if anyone needs that)

Code: Select all



Global $Paused
HotKeySet("{PAUSE}", "TogglePause")
HotKeySet("{ESC}", "Terminate")
Opt("MouseClickDragDelay", 100)
#Include <Misc>


;StarWarsGalaxies Forager Version 2 with Auto Delete
;Sleep("5000")
Sleep("5000")
;Created a /forage macro and mapped it to N
$i = 0
$var1 = "5"; How many times you want to forage Left/Right before going forward
SplashTextOn ( "Setup", "Leftclick on the Main Spot (where foraged item will be)", 400, 100, -1, -1, 1, "Ariel", 14 )
While 1
	Sleep ( 100 )
	If _IsPressed ( "01" ) Then
		$pos = MouseGetPos()
		ExitLoop
	EndIf
WEnd
SplashOff()
$var3 = $pos[0]
$var4 = $pos[1]
Sleep (1000)
SplashTextOn ( "Setup", "Leftclick on the Backpack", 400, 100, -1, -1, 1, "Ariel", 14 )
While 1
	Sleep ( 100 )
	If _IsPressed ( "01" ) Then
		$pos = MouseGetPos()
		ExitLoop
	EndIf
WEnd
SplashOff()
$var5 = $pos[0]
$var6 = $pos[1]
Sleep (1000)


Do
If WinActive( "Star Wars Galaxies", "" ) Then
   For $x = 1 to $var1
   Send("{a down}")
   Sleep ("1300")
   Send("{a up}") ;
   Sleep("500")
   Send("{n down}")
   Send("{n up}")
   Sleep("100")
   MouseClick ( "right" , $var3, $var4, 1 )
   Sleep("200")
   send("{2}")
   Sleep("200")
   MouseClickDrag ( "left" , $var3, $var4, $var5, $var6, 1)
   Sleep ("1200")
   Next
   send("{d down}")
   Send("{w down}")   
   Sleep ("1200")
   Send("{w up}")
   Send("{d up}")
   Sleep ("50")
   For $x = 1 to $var1
   Send("{d down}")
   Sleep ("1300")
   Send("{d up}")
   Sleep("500")
   Send("{n down}")
   Send("{n up}")
   Sleep("100")
   MouseClick ( "right" , $var3, $var4, 1 )
   Sleep("200")
   send("{2}")
   Sleep("200")
   MouseClickDrag ( "left" , $var3, $var4, $var5, $var6, 1)
   Sleep ("1200")
   Next
   Send("{a down}")
   Send("{w down}")   
   Sleep ("1200")
   Send("{w up}")
   Send("{a up}")
   Sleep ("50")
   
   EndIf
   
Until $i = 1

Func TogglePause()
    $Paused = NOT $Paused
    While $Paused
        sleep(100)
        ToolTip('Script is "Paused"',0,0)
    WEnd
    ToolTip("")
EndFunc

Func Terminate()
    Exit 0
EndFunc
Posted: May 8th, 2008
Total Posts:8 Joined:2008
have any of you guys found a way around the cursor, so you can do other things with the cursor, while it use the script ?

and where the F do you find the option to remove the confirmation for destroy Items ? i had to add another line with left click on "yes" button :S
Posted: May 25th, 2008
Total Posts:102 Joined:2006
I'm not sure what I am doing wrong here but I get a error when I try and run the .au3 file

says

If^ERROR
Error: unknown Function Name
Posted: July 31st, 2008
Total Posts:10 Joined:2008
Can you give instructions on how to use
I have autoit but when i copied and pasted your script and tried to run it I got an error saying something about line 5 which I assume is the line with misc in it any help would be appreciated
Posted: December 30th, 2009
unkoryu
Can I get a step-by-step? I haven't used whatever previous versions so I have no damn clue what you are talking about when you describe the differences. No instructions.
Posted: December 30th, 2009
User avatar
Total Posts:387 Joined:2009
khurag wrote:have any of you guys found a way around the cursor, so you can do other things with the cursor, while it use the script ?

and where the F do you find the option to remove the confirmation for destroy Items ? i had to add another line with left click on "yes" button :S
Misc -> Confirm object deletes

And in the script change where it says
#Include <Misc>
the Misc to Misc.au3
Posted: April 9th, 2011
User avatar
Total Posts:375 Joined:2006
I don't see any PixelChecksum's in this script. So I assume it wont recognize Lyase 11's or 9's+stat you forage. One that would move all 11's and 9's+stat to a separate and delete the rest would be sweet.
Posted: April 9th, 2011
User avatar
Total Posts:261 Joined:2008
r04r wrote:
khurag wrote:have any of you guys found a way around the cursor, so you can do other things with the cursor, while it use the script ?

and where the F do you find the option to remove the confirmation for destroy Items ? i had to add another line with left click on "yes" button :S
Misc -> Confirm object deletes

And in the script change where it says
#Include <Misc>
the Misc to Misc.au3
You could attempt to enable it automaticly via your bot, if anyones interested..
.text:006499C0 SetConfirmObjectDeletes proc near ; DATA XREF: sub_EEC5E0+F7o
.text:006499C0
.text:006499C0 arg_0 = byte ptr 4
.text:006499C0
.text:006499C0 mov al, [esp+arg_0] ; Move byte from the stack (first parameter) to the 'al' register
.text:006499C4 mov byte_1BB0DBF, al ; Move the value in 'al' to the byte in memory
.text:006499C9 retn
.text:006499C9 SetConfirmObjectDeletes endp


Heres the xref for this func...


.text:00EEC6B3 push offset aCheckconfirmob ; "checkConfirmObjDelete"
.text:00EEC6B8 lea eax, [esp+2Ch+arg_0]
.text:00EEC6BC push eax
.text:00EEC6BD push 0Fh
.text:00EEC6BF push ecx
.text:00EEC6C0 push edx
.text:00EEC6C1 mov ecx, esi
.text:00EEC6C3 call sub_64FE00
.text:00EEC6C8 mov eax, [esp+24h+arg_0]
.text:00EEC6CC push edi
.text:00EEC6CD push offset sub_648750
.text:00EEC6D2 push offset sub_649FE0
.text:00EEC6D7 push offset SetConfirmObjectDeletes
Posted: April 9th, 2011
User avatar
Total Posts:387 Joined:2009
I'll include that in the next release.

How do you get the "push offset SetConfirmObjectDeletes" texts? Do you put that there yourself, or is that a debugger trick I haven't discovered yet?
Posted: April 9th, 2011
User avatar
Total Posts:261 Joined:2008
r04r wrote:I'll include that in the next release.

How do you get the "push offset SetConfirmObjectDeletes" texts? Do you put that there yourself, or is that a debugger trick I haven't discovered yet?
I just renamed the standard IDA assigned function name
Posted: April 28th, 2011
Total Posts:4 Joined:2011
Returning back to SWG. Looking for help with this. Just joined TU. I have my own basic follow droid as he patrols worked out. And all I want is to auto-delete any enzymes so I only have the maps. PM or whatever if possible. TY! :)
Posted: April 28th, 2011
User avatar
Total Posts:387 Joined:2009
Take a look at my inventory sorter for that. It should do just fine for that. I suggest leaving the default config seeing as that leaves the +11 lyases (Most of them, at least. Still working out bugs) which are also valuable.
Ready to join the community? Click here and see all of the benefits!
blue large dotWho is online
Users browsing this forum: No registered users and 20 guests
Post Reply