Code: Select all
See belowModerator: MacroQuest Developers
Code: Select all
See belowCode: Select all
/if "$cursor(name)"=="Tattered Cloth Sandal" /destroy
/if "$cursor(name)"=="Rusty Dagger" /destroy
/if "$cursor(name)"=="Fish Scales" /destroy
/if "$cursor(name)"=="Fresh Fish" /destroy
/if "$cursor(name)"=="Crawdad" /destroy
/if "$cursor(name)"=="Waterleaf Scale" /destroy
/if "$cursor(name)"~~"Saltwater" /autoinventory
Code: Select all
/if "$cursor(name)"!~"Saltwater" /destroy
/autoinv

Wassup wrote:You could make this simpler by changing
toCode: Select all
/if "$cursor(name)"=="Tattered Cloth Sandal" /destroy /if "$cursor(name)"=="Rusty Dagger" /destroy /if "$cursor(name)"=="Fish Scales" /destroy /if "$cursor(name)"=="Fresh Fish" /destroy /if "$cursor(name)"=="Crawdad" /destroy /if "$cursor(name)"=="Waterleaf Scale" /destroy /if "$cursor(name)"~~"Saltwater" /autoinventory
Code: Select all
/if "$cursor(name)"!~"Saltwater" /destroy /autoinv
Yes, that is a possibility, but you have to be careful.Virtuoso65 wrote:Wassup wrote:You could make this simpler by changing
toCode: Select all
/if "$cursor(name)"=="Tattered Cloth Sandal" /destroy /if "$cursor(name)"=="Rusty Dagger" /destroy /if "$cursor(name)"=="Fish Scales" /destroy /if "$cursor(name)"=="Fresh Fish" /destroy /if "$cursor(name)"=="Crawdad" /destroy /if "$cursor(name)"=="Waterleaf Scale" /destroy /if "$cursor(name)"~~"Saltwater" /autoinventory
Code: Select all
/if "$cursor(name)"!~"Saltwater" /destroy /autoinv
And then you accidently pick up your uberswordofslashing and poof....

Code: Select all
| - angler.mac -
sub main
| guarantee we are standing
/if "$char(state)"=="SIT" /stand
| guarantee the inv window is closed
/if $invpanel!=FALSE /press i
:Again
|
| if we are in trouble, gate out
|
/if n $char(hp,pct)<75 {
/cast Gate
/delay 3s
/cast Gate
/delay 3s
/sit
/camp desktop
/quit
/endm
}
|
| if gm around, quit
|
/if $gm==TRUE {
/sit
/camp desktop
/quit
/endm
}
|
| we don't have a pole in the primary
|
/if "$equip(primary,name)"!="Fishing Pole" {
| open inv
/press i
/delay 2
| can we find a pole?
|
| note: this may not work if pole is not in inv slot
| finditem is bugged in that it will not wait for the pack
| to open if the pole is in a pack. to fix this, open all
| the packs at the beginning of the macro
|
/finditem "Fishing Pole"
/delay 1s
/if $find()==FALSE {
/echo no pole found
/endm
}
| equip the pole
/click left primary
/delay 5
| autoinv whatever was in primary
/autoinv
/press i
}
|
| actually do some fishing
|
/doability Fishing
/delay 65
| if the item we caught does not have Saltwater in the
| name, destroy it else autoinventory it
|
| note: fast destroy should be turned on
|
/if "$cursor(name)"!~"Saltwater" /destroy
/autoinv
/goto :Again
/return