Hello All,
I'm not very good at making macros and what I basically do is take pieces from other macros I find on here and try to piece things together. Sometimes I can get it to work, I have a very basic knowledge of what I'm doing.
Anyways, I'm trying to make a fishing macro that keeps only three items that I want and destroys everything else. I've tried it a few ways and nothing seems to work. Here's my latest attempt. Any help/guidance would be amazing, thanks! (Please be kind on the pathetic attempt!)
I'm not very good at making macros and what I basically do is take pieces from other macros I find on here and try to piece things together. Sometimes I can get it to work, I have a very basic knowledge of what I'm doing.
Anyways, I'm trying to make a fishing macro that keeps only three items that I want and destroys everything else. I've tried it a few ways and nothing seems to work. Here's my latest attempt. Any help/guidance would be amazing, thanks! (Please be kind on the pathetic attempt!)
Rich (BB code):
#turbo
#event BrokenPole "#*#You can't fish without a fishing pole, go buy one.#*#"
#event NoBait "#*#You can't fish without fishing bait, go buy some.#*#"
Sub Main
/declare RV_LootArray[3] string outer
/varset RV_LootArray[1] "Cave Catfish"
/varset RV_LootArray[2] "Mossmatt"
/varset RV_LootArray[3] "Fungus-covered Plecostomus"
/cleanup
:Fish
/call CheckPole
/doability Fishing
/delay 65
/doevents
/if (!${Cursor.ID}) /goto :Fish
} else {
/call KeepItem
}
}
/goto :Fish
/return
Sub KeepItem
/declare LootCheck int inner 0
/declare LootTotal int inner 0
/varset LootTotal 1
/delay 1s
|---------Keep Good Stuff---------------------
/for LootCheck 1 to ${RV_LootArray.Size}
/if (${Cursor.Name.Find[${RV_LootArray[${LootCheck}]}]}) {
/echo Keeping a ${Cursor.Name}... WOOT!
/autoinventory
/delay 1s
}
/next LootCheck
|---------Destroy Bad Stuff-------------------
/if (${Cursor.ID}) {
/echo Destroying a ${Cursor.Name}...
/destroy
/delay 1s
}
/return
Sub CheckPole
/if (${Me.Inventory[mainhand].Name.Find[Brell's Fishin' Pole]}) /return
/echo You need to put your fishing pole in your primary hand.
/endm
/return
Sub Event_BrokenPole
/endmacro
/return
Sub Event_NoBait
/endmacro
/return