Random Ending of Macro
Posted: Sun May 02, 2004 2:04 pm
In this smihting macro, after one or two combines, it automatically ends the macro when it should still be running. It buys the items, opens the forge, select the first item, and then does one or two combines, and then ends.
Why is this code ending after only one or two combines?!
thanks in advance
python
Code: Select all
#Event nocomp1 "You are missing a Small Piece of Ore"
Sub Main
:MainLoop
/call BuyItems
/call OpenForge
/call Combine
/end
Sub BuyItems
| Wont put in this code b/c of AFK plat macros etc.
/return
Sub OpenForge
/itemtarget Forge
/click left item
/doevents
/delay 1s
/click left 500 377
|The /click is the location of the recipe in the New Forge UI
/return
Sub Combine
/delay 14
/notify TradeskillWnd CombineButton leftmouseup
/delay 4
/autoinv
/delay 3
/autoinv
/doevents
/return
Sub Sell
|Wont post this for same reason as buy sub
/return
Sub Event_nocomp1
/autoinv
/delay 5
/click left 500 364
|The /click is the location of the recipe in the New Forge UI
/call Combine
/return
thanks in advance
python