Sinn69
Member
- Joined
- Dec 17, 2011
- RedCents
- 430¢
For this Macro to work you must have a Anizok's Bait Dispenser in Inventory slot 10 to make Homemade Bait that stacks to 250.
Thank you Redguides.com for the help and know-how.
Thank you Redguides.com for the help and know-how.
Rich (BB code):
| Bait Making with Anizok's Bait Dispenser v1.1 1/3/2014
| Credit: Anon_Friend and Sinn69
|
|
| Credit: Maskoi for Ninjadvloot.inc
| Credit Redguides.com community for being there to help
|
| ***Must have your Anizok's Bait Dispenser in Bag Slot 10
| **Must have ninjadvloot.inc 4.4
| *Must have Redguides.com latest compile release
|
| **Both Fresh Fish (stacks to 20) and Homemade bait (stacks to 250!)
| can be placed into Trade Skill Bags like: Extraplanar Trade Satchel
#include ninjadvloot.inc
Sub Main
| BaitTotal=How much Homemade bait to make.
| FishTotal=How many Fresh Fish to buy from the vendor
/declare BaitTotal int outer 1000
/declare FishTotal int outer 100
/declare ZeroFish int outer 0
| Check for Anizok's Bait Dispenser
/if (!${FindItem[=Anizok's Bait Dispenser].InvSlot}) {
/echo you need a Anizok's Bait Dispenser to make Homemade Bait!
/goto :End
}
/Cleanup
/delay 10
/if (!${Window[Pack10].Open}) /nomodkey /itemnotify pack10 rightmouseup
/delay 5
/if ((${FindItemCount[Fresh Fish]} < ${FishTotal}) || !${FindItemCount[Fresh Fish]}) {
/echo _____________________________________
/goto :BuyFish
}
| ** THE MAIN LOOP **
:MakeBait
/if (${Cursor.ID}) /autoinv
/delay 1s
/if ((${FindItemCount[Homemade bait]} < ${BaitTotal}) && ${FindItemCount[Fresh Fish]}) {
/ctrlkey /itemnotify ${FindItem[=Fresh Fish].InvSlot} leftmouseup
/delay 1s
/nomodkey /itemnotify in pack10 1 leftmouseup
/delay 1s
/combine pack10
/delay 1s
/autoinv
}
/if (${FindItemCount[Homemade bait]} >= ${BaitTotal}) {
/echo You now have ${FindItemCount[Homemade bait]}, your ready to start fishing.
/Cleanup
/goto :End
}
/if ((${FindItemCount[Fresh Fish]} <= ${ZeroFish}) && !${FindItemCount[Fresh Fish]}) {
/echo Got Fish?!
/goto :BuyFish
}
/goto :MakeBait
:BuyFish
| **** Angler Winifred is in PoKnowledge outside the Small Bank ***
| This Part is taken from Maskoi Ninjadvloot.inc Buy mac
|
| A Check if you have Fresh Fish already
/delay 5
/if (${FindItemCount[Fresh Fish]} >= ${FishTotal}) {
/echo I have ${FindItemCount[Fresh Fish]} Fresh Fish to make Homemade Bait.
/goto :MakeBait
}
/delay 5
/echo Buying Fresh Fish
/tar Angler Winifred
| /declare StuffToBuy string outer
| /declare AmountToBuy int outer
/if (${Defined[Param0]}) {
/varset StuffToBuy ${Param0}
}
/if (${Defined[Param1]}) {
/varset AmountToBuy ${Param1}
}
/call SetupAdvLootVars
/call npc "${Taget.CleanName}"
/call Buy "Fresh Fish" ${FishTotal}
/goto :MakeBait
/return
:End
/return


