Jump to content



SWGCraftingScript,WIP, need some help


  • Please log in to reply
2 replies to this topic

#1 Guest_zatup_*

Guest_zatup_*
  • Guests

Posted 13 January 2004 - 04:46 AM

This is a work-in-progress as I just started learning Autoit.

This script is tailored for Chef grind on Wastil Bread (~75 exp per bread in practice mode).

SWG in-game macro is broken down into two parts.

{F1} in SWG will have this following
/ui action toolbarSlot13; this selects the foodcrafting tool on Slot13
/selectDraftSchematic 26; selects Wastil Bread, which is schematic 26

{F2} in SWG will have this following
/nextCraftingStage;
/nextCraftingStage;
/nextCraftingStage;
/createPrototype Practice noitem;
/createPrototype;
/nextCraftingStage; this ends the crafting process for the first tool

For AutoIt, this is what I have so far,

Send("{F1}")
;Now SWG-F1 macro selects schematic and proceeds to the resource screen
Sleep(2500)
MouseClick("left", 374, 370, 2)
Sleep(250)
MouseClick("left", 374, 370, 2)
;Two double clicks on Wheat in Schematic 26
Sleep(350)
MouseClick("left", 418, 370, 2)
;double click on Fruit in Schematic 26, total time elapsed is
Sleep(250)
Send("{F2}")  ;Finishes 1st toolcrafting
;SWG-F2 macro finishes the rest of the crafting process
Sleep(1250)
Send("{F3}")
Sleep(2500)
MouseClick("left", 374, 370, 2)
Sleep(250)
MouseClick("left", 374, 370, 2)
Sleep(350)
MouseClick("left", 418, 370, 2)
Sleep(250)
Send("{F4}")  ;Finishes 2nd toolcrafting
Sleep(1250)
Sleep(1250)
Send("{F5}")
Sleep(2500)
MouseClick("left", 374, 370, 2)
Sleep(250)
MouseClick("left", 374, 370, 2)
Sleep(350)
MouseClick("left", 418, 370, 2)
Sleep(250)
Send("{F6}")  ;Finishes 3rd toolcrafting
Sleep(1250)
Send("{F7}")
Sleep(2500)
MouseClick("left", 374, 370, 2)
Sleep(250)
MouseClick("left", 374, 370, 2)
Sleep(350)
MouseClick("left", 418, 370, 2)
Sleep(250)
Send("{F8}")  ;Finishes 4th toolcrafting
Sleep(1250)
Send("{F9}")
Sleep(2500)
MouseClick("left", 374, 370, 2)
Sleep(250)
MouseClick("left", 374, 370, 2)
Sleep(350)
MouseClick("left", 418, 370, 2)
Sleep(250)
Send("{F10}")  ;Finishes 5th toolcrafting


Can someone show me how to loop this script from end to beginning and also how to add in a hotkey to pause the script or break the loop at anytime.

Thanks,
-Zatup





#2 Insolence

Insolence

    Not distastefully arrogant

  • Active Members
  • PipPipPipPipPipPip
  • 1,304 posts

Posted 13 January 2004 - 06:19 AM

While 1 WEnd


Produces an infinite loop :whistle:

Pausing, bah, i forget how / where that is located
"I thoroughly disapprove of duels. If a man should challenge me, I would take him kindly and forgivingly by the hand and lead him to a quiet place and kill him." - Mark TwainPatient: "It hurts when I do $var_"Doctor: "Don't do $var_" - Lar.

#3 Lemures

Lemures

    Prodigy

  • Active Members
  • PipPipPip
  • 153 posts

Posted 13 January 2004 - 07:11 PM

insolence has got it. btw, i made my own crafting script for SWG.. not gonna share it, i dont know where it is, lol, but i had it set to mine and stuff at the same time.... it was awesome. it would delete the items and everything. built into the same script was something to get around those message boxes while gathering too. i got a LOT of exp when i just set it up and went to bed :whistle:




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users