Locked Home » Forums » Legacy & Archived » Archived Content » Star Wars Galaxies » SWG Premium Discussions

Anyone still in need for destroy macros? : SWG Premium Discussions

Posted: June 26th, 2010
User avatar
Total Posts:387 Joined:2009
I have a great idea, but I would like to know if these are still used/needed... Especially for junk farming. If there's interest I will release this (Right click->1 = destroy for every item).

P.s. It replaces several other actions like Equip, Examine, and Use. So this mod should only be enabled when you're farming... This would not recognize items or anything, just rely on stacking.

Scroll down for the download of the mod

Example AutoIt script to use with this:

Code: Register to unlock hidden link

Global $Paused
HotKeySet("{PAUSE}", "TogglePause")
HotKeySet("{ESC}", "Terminate")
Opt("MouseClickDragDelay", 100)
#include <Misc> ; Don't forget to change this Misc.au3

Sleep("1000") ; Pause to switch to SWG - Windowed Mode

SplashTextOn("Setup", "Leftclick on the Main Spot (where non-junk item will be)", 400, 100, -1, -1, 1, "Ariel", 14) ; Turn on splash dialog
While 1 ; Infinite loop for mouseclick
	Sleep(100)
	If _IsPressed("01") Then ; If Mouse1 (Left Mouse) is clicked
		$pos = MouseGetPos() ; Store mouse position
		ExitLoop ; Exit the loop, got mouse click & position
	EndIf
WEnd ; End infinite loop
SplashOff() ; Turn off splash dialog

$varX = $pos[0] ; MouseX -> varX
$varY = $pos[1] ; MouseY -> varY
Sleep(1000)

Do
	MouseClick("right", $varX, $varY, 1) ; Right click item
	Sleep("300") ; Pause for context menu to load
	Send("{1}") ; Choose stack on junk items
	MouseClick("right", $varX, $varY, 1) ; Right click item, for non-junk items
	Sleep("500") ; Pause before loop restarts
Until true = false

;Pause Script
Func TogglePause()
	$Paused = Not $Paused
	While $Paused
		Sleep(100)
		ToolTip('Script Paused', 0, 0)
	WEnd
	ToolTip("")
EndFunc   ;==>TogglePause

;Terminate Script
Func Terminate()
	Exit 0
EndFunc   ;==>Terminate


Last edited by r04r on June 27th, 2010, 4:25 am, edited 1 time in total.
Posted: June 26th, 2010
User avatar
Total Posts:1087 Joined:2007
Not sure why I didn't think of doing a hack to set to destroy everything. Nice idea.
Posted: June 26th, 2010
User avatar
Total Posts:387 Joined:2009
Not sure if that's sarcasm...
This is for loot macros, so that radial->1 will just destroy everything that's looted except for items that stack.
Would prevent the previous destroy macros from bugging out by, for example, equipping a backpack (Which unequips the equipped backpack, and fills up your inventory.)
Posted: June 27th, 2010
User avatar
Total Posts:1087 Joined:2007
r04r wrote:Not sure if that's sarcasm...
This is for loot macros, so that radial->1 will just destroy everything that's looted except for items that stack.
Would prevent the previous destroy macros from bugging out by, for example, equipping a backpack (Which unequips the equipped backpack, and fills up your inventory.)
No, no sarcasm. It's just something so simple, yet makes so much sense that I should have thought of this before. You wouldn't need a complicated delete macro if you just hack the code that default radial 1 would just destroy.

Like I said, great idea and I'd yeah that little bit of code in a minute!
Posted: June 27th, 2010
User avatar
Total Posts:387 Joined:2009
cuervogold wrote:
r04r wrote:Not sure if that's sarcasm...
This is for loot macros, so that radial->1 will just destroy everything that's looted except for items that stack.
Would prevent the previous destroy macros from bugging out by, for example, equipping a backpack (Which unequips the equipped backpack, and fills up your inventory.)
No, no sarcasm. It's just something so simple, yet makes so much sense that I should have thought of this before. You wouldn't need a complicated delete macro if you just hack the code that default radial 1 would just destroy.

Like I said, great idea and I'd yeah that little bit of code in a minute!
Ah, okay!
... >.> <.< I'm not actually hacking the code or anything. Just changing the \datatables\player\radial_menu.iff file. And the accompanying strings/en/ui_radial.stf.

I've attached the two modified game files to this post, just extract them to your SWG folder to enable this, and rename then and relog to disable again.

-----------
Cuervo, if you did mean memory hacking the game, I would be interested in how you would go on about changing the radial menu? Any chance you can send me a PM if that's the case?


Attachments:
DestroyMod.zip Register to unlock hidden link
(6.21 KiB) Downloaded 24 times
Posted: June 27th, 2010
User avatar
Total Posts:1087 Joined:2007
I was refering to code hacking. I do not have anything as of yet, but I'll look at what I can find.
Posted: August 31st, 2010
Total Posts:18 Joined:2009
This is great. Thanks! Is there anyway to make something that would recognize items like BLs and PLCs and not delete them?

Thanks

jon
Posted: August 31st, 2010
User avatar
Total Posts:387 Joined:2009
jon12296 wrote:This is great. Thanks! Is there anyway to make something that would recognize items like BLs and PLCs and not delete them?

Thanks

jon
Only if you have a pair of each already in your inventory, otherwise it would get really complex. This is made to allow items to stack.
Posted: August 31st, 2010
User avatar
Total Posts:1087 Joined:2007
r04r wrote:
jon12296 wrote:This is great. Thanks! Is there anyway to make something that would recognize items like BLs and PLCs and not delete them?

Thanks

jon
Only if you have a pair of each already in your inventory, otherwise it would get really complex. This is made to allow items to stack.
I don't think BLs and PLCs stack.

_________________
Cuervo, the drink.
Posted: September 1st, 2010
User avatar
Total Posts:387 Joined:2009
cuervogold wrote:
r04r wrote:
jon12296 wrote:This is great. Thanks! Is there anyway to make something that would recognize items like BLs and PLCs and not delete them?

Thanks

jon
Only if you have a pair of each already in your inventory, otherwise it would get really complex. This is made to allow items to stack.
I don't think BLs and PLCs stack.
You could still use it for name recognition by comparing the pixels of the name like I do with my Reverse Engineering bot, but I dunno if they stack either.
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 7 guests
Locked