Not to mention the fact that click doesn't work anywhere NEAR as well as it used to.
Once all is said and done, and things like this are possible again, it's very likely that it'll be done in a very different way.
Moderator: MacroQuest Developers

Code: Select all
| POWERARROWS.MAC
| Original by macrotoon
|
|
|
#turbo
Sub Main
/call FindCombiner Fletching
/if $return==99 /return
/varset v80 $return
| Make sure the merchant window is open before calling the macro.
| /target arrowsmith
| /face
|
| :WaitMerchant
| /press u
| /if $merchant()==FALSE /goto :WaitMerchant
:SkillCheck
/skill Fletch
/varset v1 $char(skill,"fletching")
/if n $v1<30 /call MedGroveNock
/if n $v1<65 /if n $v1>=30 /call BoneShaft
/if n $v1<100 /if n $v1>=65 /call HookedArrowHead
/if n $v1<130 /if n $v1>=100 /call CeramicShaft
/if n $v1<160 /if n $v1>=130 /call BoneVanes
/if n $v1<199 /if n $v1>=160 /call CeramicVanes
/if n $v1>=199 {
/echo Your skill cannot be increased more than 199 with this script If you wish to raise skill higher you can change the script to do so.
/cleanup
/endmacro
}
/goto :SkillCheck
Sub MedGroveNock
/for v2 1 to 20
/selectitem "Field Point Arrowheads"
/call BuyItemSingle
/selectitem "Bundled Wooden Arrow Shafts"
/call BuyItemSingle
/selectitem "Several Round Cut Fletchings"
/call BuyItemSingle
/selectitem "Medium Groove Nocks"
/call BuyItemSingle
/call MakeArrows
/call SellItem class
/next v2
/return
Sub BoneShaft
/for v2 1 to 20
/selectitem "Field Point Arrowheads"
/call BuyItemSingle
/selectitem "Bundled Bone Arrow Shafts"
/call BuyItemSingle
/selectitem "Several Round Cut Fletchings"
/call BuyItemSingle
/selectitem "Large Groove Nocks"
/call BuyItemSingle
/call MakeArrows
/call SellItem class
/next v2
/return
Sub HookedArrowHead
/for v2 1 to 20
/selectitem "Hooked Arrowheads"
/call BuyItemSingle
/selectitem "Bundled Wooden Arrow Shafts"
/call BuyItemSingle
/selectitem "Several Round Cut Fletchings"
/call BuyItemSingle
/selectitem "Large Groove Nocks"
/call BuyItemSingle
/call MakeArrows
/call SellItem class
/next v2
/return
Sub CeramicShaft
/for v2 1 to 20
/selectitem "Field Point Arrowheads"
/call BuyItemSingle
/selectitem "Bundled Ceramic Arrow Shafts"
/call BuyItemSingle
/selectitem "Several Round Cut Fletchings"
/call BuyItemSingle
/selectitem "Large Groove Nocks"
/call BuyItemSingle
/call MakeArrows
/call SellItem class
/next v2
/return
Sub BoneVanes
/for v2 1 to 20
/selectitem "Field Point Arrowheads"
/call BuyItemSingle
/selectitem "Bundled Wooden Arrow Shafts"
/call BuyItemSingle
/selectitem "Set of Bone Arrow Vanes"
/call BuyItemSingle
/selectitem "Large Groove Nocks"
/call BuyItemSingle
/call MakeArrows
/call SellItem class
/next v2
/return
Sub CeramicVanes
/for v2 1 to 20
/if n $v1>=199 /return
/selectitem "Field Point Arrowheads"
/call BuyItemSingle
/selectitem "Bundled Wooden Arrow Shafts"
/call BuyItemSingle
/selectitem "Set of Ceramic Arrow Vanes"
/call BuyItemSingle
/selectitem "Large Groove Nocks"
/call BuyItemSingle
/call MakeArrows
/call SellItem class
/next v2
/return
Sub MakeArrows
/if $pack($v80,closed)==TRUE /click right inv $v80
:MakeArrows
/click left auto
/delay 3
/click left pack $v80 combine
:WaitArrows
/delay 0
/if $pack($v80,empty)==FALSE /goto :WaitArrows
/delay 3
:waitdrop
/delay 0
/click left auto
/if $cursor()==TRUE /goto :waitdrop
/return
Sub BuyitemSingle
:BuyItem
/varset v99 $char(cash)
/delay 2
/buyitem 1
/delay 3
| If we have the same amount of money, we didn't buy it so try again.
/if n $v99==$char(cash) /goto :BuyItem
/return
Sub FindCombiner
/varset p2 99
/for v99 0 to 7
/if "$pack($v99,combine)"=="$p0" /varset p2 $v99
/next v99
/return $p2
Sub SellItem
/sendkey down shift
:SellItem
/varset v99 $char(cash)
/finditem similar "arrow"
/if $find()==FALSE /goto :DoneSellItem
/delay 5
/click left merchant buy
/delay 5
/goto :SellItem
:DoneSellItem
/sendkey up shift
/return

donations for this month's patches.