- Joined
- Jan 4, 2005
- Messages
- 3,198
- Reaction score
- 7
- Points
- 0
I created this macro to automate creating Distillate of skinspikes I - VI
This macro is intended to be started in the alchemist guild in PoK and will make 20 of whatever potion you choose.
It requires you have the two includes below which were made by Armysoldier (i think)
Please let me know what you think about these or if you have any problems. Also any feedback is nice feedback. If you tried it and like it let me know so atleast i know someone enjoys what i'm doing.
This mac was written to be used with a Medicine bag
you can use something else if you like but would have to edit the part of the mac that calls for the bag.
This macro is intended to be started in the alchemist guild in PoK and will make 20 of whatever potion you choose.
It requires you have the two includes below which were made by Armysoldier (i think)
Please let me know what you think about these or if you have any problems. Also any feedback is nice feedback. If you tried it and like it let me know so atleast i know someone enjoys what i'm doing.
This mac was written to be used with a Medicine bag
you can use something else if you like but would have to edit the part of the mac that calls for the bag.
Code:
| This macro was created by Villageidiot
| This macro is intended to automate the creation of the damage shield
| potions "Distillate of Skinspikes I - VI" to use this macro type
| /mac spikes # the # indicates which potion you want. IE
| If you want Skinspikes I you would type /mac spikes 1
| If you want Skinspikes V you would type /mac spikes 5
| It will make a batch of 20 then end. I set this macro to not start unless
| You have atleast 500pp on you.
#include buy.inc
#include Common.inc
Sub Main
/if (!${Plugin[MQ2Moveutils].Name.Equal[mq2moveutils]}) /squelch /plugin MQ2moveutils nocheck
/if (!${Defined[Param0]}) {
/echo Proper usage: /macro spikes (1 thru 6)
/end
}
/declare Version string outer ${Param0}
/declare Combine_Count int outer 0
:Loop
/if (${Me.Platinum}<500) {
/echo You don't have enough Platinum.
/echo Please have more than 500 PP on you. Macro won't run if you
/echo have less than 1kPP.
/echo Head your ass to the bank and then restart this macro!
/endm
}
/if (${Param0}==1) /call Skinspikes_I
/if (${Param0}==2) /call Skinspikes_II
/if (${Param0}==3) /call Skinspikes_III
/if (${Param0}==4) /call Skinspikes_IV
/if (${Param0}==5) /call Skinspikes_V
/if (${Param0}==6) /call Skinspikes_VI
/call combine
/echo Restart me if you want to make another batch
/endm
/return
Sub Skinspikes_I
/target npc Ludvik
/moveto ID
/delay 4s
/nomodkey /click right target
/delay 3s
/call buy "Acaana Leaf" 20
/delay 3s
/call buy "Comfrey Leaf" 20
/delay 3s
/call buy "Flamewort Leaf" 40
/delay 5s
/call buy "Primitive Potion Vial" 20
/delay 3s
/nomodkey /notify MerchantWnd MW_Done_Button LeftMouseUp
/target npc Henrik
/moveto ID
/delay 4s
/nomodkey /click right target
/delay 2s
/call buy "Sticklewort" 20
/delay 2s
/nomodkey /notify MerchantWnd MW_Done_Button LeftMouseUp
/return
Sub Skinspikes_II
/target npc Ludvik
/moveto ID
/delay 4s
/nomodkey /click right target
/delay 3s
/call buy "Acaana Leaf" 20
/delay 3s
/call buy "Comfrey Leaf" 20
/delay 3s
/call buy "Flamewort Leaf" 40
/delay 3s
/call buy "Crude Potion Vial" 20
/delay 3s
/nomodkey /notify MerchantWnd MW_Done_Button LeftMouseUp
/delay 1s
/target npc Henrik
/moveto ID
/delay 4s
/nomodkey /click right target
/delay 3s
/call buy "Vox's Dust" 20
/delay 3s
/nomodkey /notify MerchantWnd MW_Done_Button LeftMouseUp
/return
Sub Skinspikes_III
/target npc Ludvik
/moveto ID
/delay 4s
/nomodkey /click right target
/delay 3s
/call buy "Acaana Leaf" 20
/delay 3s
/call buy "Comfrey Leaf" 20
/delay 3s
/call buy "Flamewort Leaf" 40
/delay 3s
/call buy "Rough Potion Vial" 20
/nomodkey /notify MerchantWnd MW_Done_Button LeftMouseUp
/delay 2s
/target npc Henrik
/moveto ID
/delay 4s
/nomodkey /click right target
/delay 3s
/call buy "Violet Tri-Tube Sap" 20
/delay 3s
/nomodkey /notify MerchantWnd MW_Done_Button LeftMouseUp
/return
Sub Skinspikes_IV
/target npc Henrik
/moveto ID
/delay 3s
/nomodkey /click right target
/delay 3s
/call buy "Blue Vervain Bulb" 20
/delay 2s
/call buy "Makeshift Potion Vial" 20
/delay 2s
/nomodkey /notify MerchantWnd MW_Done_Button LeftMouseUp
/delay 1s
/target npc Andreas
/moveto ID
/delay 3s
/nomodkey /click right target
/delay 3s
/call buy "Sprig of Flamewort" 40
/delay 2s
/call buy "Sprig of Comfrey" 20
/delay 2s
/call buy "Sprig of Acaana" 20
/delay 2s
/nomodkey /notify MerchantWnd MW_Done_Button LeftMouseUp
/return
Sub Skinspikes_V
/target npc Henrik
/moveto ID
/delay 3s
/nomodkey /click right target
/delay 3s
/call buy "Betherium Bark" 20
/delay 3s
/call buy "Simple Potion Vial" 20
/delay 3s
/nomodkey /notify MerchantWnd MW_Done_Button LeftMouseUp
/delay 1s
/target npc Andreas
/moveto ID
/delay 3s
/nomodkey /click right target
/delay 2s
/call buy "Sprig of Flamewort" 40
/delay 2s
/call buy "Sprig of Comfrey" 20
/delay 2s
/call buy "Sprig of Acaana" 20
/delay 2s
/nomodkey /notify MerchantWnd MW_Done_Button LeftMouseUp
/return
Sub Skinspikes_VI
/target npc Edvard
/moveto ID
/delay 3s
/nomodkey /click right target
/delay 3s
/call buy "Acaana" 20
/delay 3s
/call buy "Comfrey" 20
/delay 3s
/call buy "Flamewort" 40
/delay 3s
/nomodkey /notify MerchantWnd MW_Done_Button LeftMouseUp
/delay 1s
/target npc Henrik
/moveto ID
/delay 3s
/nomodkey /click right target
/delay 2s
/call buy "Plain Potion Vial" 20
/delay 3s
/call buy "Bugbane" 20
/delay 1s
/nomodkey /notify MerchantWnd MW_Done_Button LeftMouseUp
/return
/return
Sub Combine
/if (${Version}==1) /declare VRS I
/if (${Version}==2) /declare VRS II
/if (${Version}==3) /declare VRS III
/if (${Version}==4) /declare VRS IV
/if (${Version}==5) /declare VRS V
/if (${Version}==6) /declare VRS VI
/Varset Combine_Count 0
/itemnotify ${FindItem[=Medicine Bag].InvSlot} rightmouseup
/delay 1s
/nomodkey /notify TradeskillWnd COMBW_SearchTextEdit leftmouseup
/delay 5
/echo Searching for Recipe
/call Type "Skinspikes ${VRS}"
/delay 1m ${Window[TradeskillWnd].Child[COMBW_SearchButton].Enabled}
/nomodkey /notify TradeskillWnd COMBW_SearchButton leftmouseup
/delay 10
/notify TradeskillWnd RecipeList listselect 1
:Loop
/if (${Combine_Count}==21) {
/notify TradeskillWnd CloseButton Leftmouseup
/return
}
/notify TradeskillWnd CombineButton Leftmouseup
/delay 1s
/notify TradeskillWnd AutoInvButton Leftmouseup
/varcalc Combine_Count (${Combine_Count}+1)
/echo ${Combine_Count} Potions made!
/delay 1m ${Window[TradeskillWnd].Child[COMBW_CombineButton].Enabled}
/goto :loop
/return