- Joined
- Apr 24, 2005
- RedCents
- 143¢
I am attempting to make a macro that automates the bait production using fresh fish and Anizok's Bait Dispenser. I want it to drop 1 fresh fish in the container, hit combine, then autoinventory it until I /end or until I run out of fresh fish. When I /mac bait I get the following:
Starting bait production...
No more Fresh Fish. Finished!
The current macro has ended.
I have 206 Fresh Fish in my inventory and the anizok's bait dispenser. I am not a skilled macro writer but I thought I had all the things covered. Can someone look over this and let me know what I'm getting wrong?
|===========================================================
| makebait.mac
|===========================================================
Sub Main
/echo Starting bait production...
/declare Dispenser string outer "=Anizok's Bait Dispenser"
/declare Fish string outer "=Fresh Fish"
/if (!${FindItem[${Dispenser}].ID}) {
/echo You do not have Anizok's Bait Dispenser!
/end
}
:loop
/if (!${FindItem[${Fresh Fish}].ID}) {
/echo No more Fresh Fish. Finished!
/end
}
|--- Open the dispenser ---
/itemnotify "${FindItem[${Dispenser}].Name}" rightmouseup
/delay 5 ${Window[TradeskillWnd].Open}
|--- Put 1 fish in slot 1 ---
/combineitem "${FindItem[${Fresh Fish}].Name}"
|--- Click Combine ---
/notify TradeskillWnd CombineButton leftmouseup
/delay 2s
|--- Close window ---
/notify TradeskillWnd DoneButton leftmouseup
/delay 5
/goto :loop
/return
Starting bait production...
No more Fresh Fish. Finished!
The current macro has ended.
I have 206 Fresh Fish in my inventory and the anizok's bait dispenser. I am not a skilled macro writer but I thought I had all the things covered. Can someone look over this and let me know what I'm getting wrong?
|===========================================================
| makebait.mac
|===========================================================
Sub Main
/echo Starting bait production...
/declare Dispenser string outer "=Anizok's Bait Dispenser"
/declare Fish string outer "=Fresh Fish"
/if (!${FindItem[${Dispenser}].ID}) {
/echo You do not have Anizok's Bait Dispenser!
/end
}
:loop
/if (!${FindItem[${Fresh Fish}].ID}) {
/echo No more Fresh Fish. Finished!
/end
}
|--- Open the dispenser ---
/itemnotify "${FindItem[${Dispenser}].Name}" rightmouseup
/delay 5 ${Window[TradeskillWnd].Open}
|--- Put 1 fish in slot 1 ---
/combineitem "${FindItem[${Fresh Fish}].Name}"
|--- Click Combine ---
/notify TradeskillWnd CombineButton leftmouseup
/delay 2s
|--- Close window ---
/notify TradeskillWnd DoneButton leftmouseup
/delay 5
/goto :loop
/return

