Code: Select all
/if (${FindItemCount[${Chain jointingl}]}<=10) /goto :Doneheres part of my macro that im makeing and i just want it to do a check and then make a certain number of items. Forsome reason it just does one and then stops.
Code: Select all
#include move.inc
#include Travel.inc
#Event busy "Someone else is using that#*#"
#Event nomore "#*#you don't have everything you need for this recipe#*#"
#Event DoneLoading "#*#You have entered#*#"
Sub Main
/deletevar finish
/deletevar failure
/deletevar busy
/deletevar LoadingBit
/deletevar NumberToMakeAtATime
/declare finish int global
/declare failure int global
/declare busy int global
/declare LoadingBit int global
/declare NumberToMakeAtATime int global
/varset failure 0
/varset finish 0
/varset busy 0
/varset LoadingBit 0
|--- Set the number of Chain Jointing to make at a time ---|
/varset NumberToMakeAtATime 10
|------------------------------------------------
/echo Making ${NumberToMakeAtATime} Chain Jointing at a time
/call OpenForge
/return
|------------------------------------------------
Sub OpenForge
/echo Combineing Items to Make Forged Pick
:Forge
/itemtarget forge
/face fast nolook
/click left item
/delay 2s
/if (!${Window[TradeskillWnd].Open}) {
/echo Someone is using the Forge waiting 10seconds then trying again
/delay 10s
/goto :Forge
}
/notify COMBW_RecipeListArea COMBW_RecipeList listselect ${Window[COMBW_RecipeListArea].Child[COMBW_RecipeList].List[=Chain Jointing]}
:CombineLoop
/notify COMBW_CombineArea COMBW_CombineButton leftmouseup
/delay 5
/autoinventory
/doevents
/if (${finish}==1) {
/varset finish 0
/return
}
/goto :CombineLoop
/delay 15
/keypress esc
/delay 5
/keypress esc
/return
|=============================================
Sub Event_busy
/varset busy 1
/return
|=============================================
Sub Event_nomore
/varset finish 1
/return
|============================================= 