What I have so far took me about 3 hours.
I started getting tangled up when it came to getting the ingredients and putting them in the spit.
Anyway, if anyone would be willing to spend 5 minutes looking it over and makeing comments/suggestion, I sure would appreciate it. :)
NO LAUGHING!
And here is the masterpiece:
Code: Select all
|This is just a simple practicemacro that "hopefully" will take batwings and frosting
|and put them in a spit in inv7 of your inventory, then click combine, and continue
|until you run out of eaither ingredient. It will then end.
|Bag 7 in inventory is spit
#define InvPacks v1
#define Ingredient1 v2 "Batwing"
#define Ingredient2 v3 "Frosting"
Sub MAIN
/call ClearKeys
/call OpenPacks
/call CheckInventory
/Call GetIngredient
|===============================================
|Makes sure that these keys aren't still down from a previous macro
Sub ClearKeys
/press CTRL
/press shift
/press alt
/return
|===============================================
|Cleans up screen by closing everything, then opening inventory and all bags.
Sub OpenPacks
/press esc
/press esc
/press esc
/press i
/for $v1 0 to 7
/if $pack ($v1,open) !=TRUE /click right inv $v1
/next $v1
/return
|===============================================
|Checks Inventory to make sure needed components are there. Ends macro if they are not.
Sub CheckInventory
/if n $count ($v2)==0
/if n $count ($v3)==0
/endmacro
|===============================================
|Picks up each ingredient and places it in your spit in inv7
Sub GetIngredient
/sendkey down ctrl
/finditem "$v2"
{Bah, this is as far as I could get in one night. I have a bunch of macro's in front
of me that have ways to get an item and put it in a set bag, but they use $p0 and $p1 and
I don't understand what those are, or how you define them or anything. Learning how to place
items in a specified pack and then click combine will be my project for tommorow.}
edit: Valerian likes code brackets

