Moderator: MacroQuest Developers


Code: Select all
[Abysmal Sea]
Loot1=1 lb. Saltwater Crab
Loot2=1 lb. Saltwater Tuna
Loot3=10 lb. Saltwater Crab
Loot4=10 lb. Saltwater Tuna
Loot5=11 lb. Saltwater Crab
Loot6=11 lb. Saltwater Tuna
Loot7=12 lb. Saltwater Crab
Loot8=12 lb. Saltwater Tuna
Loot9=13 lb. Saltwater Crab
Loot10=13 lb. Saltwater Tuna
Loot11=14 lb. Saltwater Crab
Loot12=14 lb. Saltwater Tuna
Loot13=15 lb. Saltwater Crab
Loot14=15 lb. Saltwater Tuna
Loot15=2 lb. Saltwater Crab
Loot16=2 lb. Saltwater Tuna
Loot17=3 lb. Saltwater Crab
Loot18=3 lb. Saltwater Tuna
Loot19=4 lb. Saltwater Crab
Loot20=4 lb. Saltwater Tuna
Loot21=5 lb. Saltwater Crab
Loot22=5 lb. Saltwater Tuna
Loot23=6 lb. Saltwater Crab
Loot24=6 lb. Saltwater Tuna
Loot25=7 lb. Saltwater Crab
Loot26=7 lb. Saltwater Tuna
Loot27=8 lb. Saltwater Crab
Loot28=8 lb. Saltwater Tuna
Loot29=9 lb. Saltwater Crab
Loot30=9 lb. Saltwater Tuna
[Ak'Anon]
Loot1=clockwork koi
[Blackburrow]
Loot1=hound pike
[Butcherblock Mountains]
Loot1=stonefish
[Chardok]
Loot1=chokai bass
[City of Mist]
Loot1=fogwater trout
Loot2=ikfish
[Crushbone]
Loot1=boar carp
[Crystal Caverns]
Loot1=crystalline cave fish
[Cobaltscar]
Loot1=Cobalt Cod
Loot2=dragon bay snapper
[Dagnor's Cauldron]
Loot1=cauldron trout
[Deepest Guk]
Loot1=cave guppy
Loot2=eyeless whitefish
Loot3=muckskipper
Loot4=fish slime
Loot5=covered planarian
[Dulak]
Loot1=abalone
Loot2=frilled anemone
Loot3=sea cucumber
[East Cabilis]
Loot1=10lb fetid bass
Loot2=11lb fetid bass
Loot3=12lb fetid bass
Loot4=13lb fetid bass
Loot5=14lb fetid bass
Loot6=15lb fetid bass
Loot7=16lb fetid bass
Loot8=17lb fetid bass
Loot9=2lb fetid bass
Loot10=3lb fetid bass
Loot11=4lb fetid bass
Loot12=5lb fetid bass
Loot13=6lb fetid bass
Loot14=7lb fetid bass
Loot15=8lb fetid bass
Loot16=9lb fetid bass
Loot17=giant fetid bass
Loot18=gigantic fetid bass
Loot19=humongous fetid bass
Loot20=large fetid bass
Loot21=large fetid bass
Loot22=large fetid bass
Loot23=large fetid bass
Loot24=salt minnow sewer
Loot25=catfish tiny
Loot26=fetid bass
[East Karana]
Loot1=thunder salmon
[Eastern Wastes]
Loot1=rygorrian toothfish
[Erud's Crossing]
Loot1=barren flounder
[Feerrott]
Loot1=thullian mudskipper
[Firiona Vie]
Loot1=10lb fetid bass
Loot2=11lb fetid bass
Loot3=12lb fetid bass
Loot4=13lb fetid bass
Loot5=14lb fetid bass
Loot6=15lb fetid bass
Loot7=16lb fetid bass
Loot8=17lb fetid bass
Loot9=2lb fetid bass
Loot10=3lb fetid bass
Loot11=4lb fetid bass
Loot12=5lb fetid bass
Loot13=6lb fetid bass
Loot14=7lb fetid bass
Loot15=8lb fetid bass
Loot16=9lb fetid bass
Loot17=giant fetid bass
Loot18=gigantic fetid bass
Loot19=humongous fetid bass
Loot20=large fetid bass large
Loot21=fetid bass
Loot22=large fetid bass
Loot23=salt minnow sewer
Loot24=catfish
Loot25=tiny fetid bass
[Gulf of Gunthak]
Loot1=deep sea urchin
Loot2=gunthak gourami
Loot3=moray eel
Loot4=ovate jellyfish
[Highpass Hold]
Loot1=highland pike
[Hollowshade Moor]
Loot1=fish scales
Loot2=fresh fish
Loot3=rusty dagger
[Iceclad Ocean]
Loot1=iceclad cutlassfish
Loot2=salty whitefish
[Innothule Swamp]
Loot1=rujarkian chub
Loot2=thullian mudskipper
[Jaggedpine Forest]
Loot1=thunder salmon
[Kael Drakkel]
Loot1=frosty cave trout
[Karnor's Castle]
Loot1=wulf fish
[Kedge Keep]
Loot1=kedge carp
[Kerra Ridge]
Loot1=kerra catfish
[Lake Rathetear]
Loot1=rathe muskie
[Mines of Nurga]
Loot1=cave guppy
Loot2=sponge mushroom
[Natimbi]
Loot1=1 lb. Saltwater Crab
Loot2=1 lb. Saltwater Tuna
Loot3=2 lb. Saltwater Crab
Loot4=2 lb. Saltwater Tuna
Loot5=3 lb. Saltwater Crab
Loot6=3 lb. Saltwater Tuna
Loot7=4 lb. Saltwater Crab
Loot8=4 lb. Saltwater Tuna
Loot9=5 lb. Saltwater Crab
Loot10=5 lb. Saltwater Tuna
Loot11=Ginseng
[Nedaria`s Landing]
Loot1=thunder salmon
[Neriak - Commons]
Loot1=Fresh Fish
Loot2=Fish Scales
[North Felwithe]
Loot1=koada cichlid
[North Karana]
Loot1=thunder salmon
[Ocean of Tears]
Loot1=gunthak mackerel
Loot2=saltwater
Loot3=seaweed
[The Plane of Disease]
Loot1=diseased fish
[The Plane of Nightmares]
Loot1=Fresh Fish
Loot2=Fish Scales
Loot3=Crawdad
Loot4=Waterleaf Scale
Loot5=Nightmare Cichlid
[The Plane of Storms]
Loot1=storm salmon
[The Plane of Tranquility]
Loot1=quellian koi
Loot2=waterleaf scale
Loot3=worn turban
[The Plane of Valor]
Loot1=Fresh Fish
Loot2=Fish Scales
Loot3=Crawdad
Loot4=Vallorian Discus
[The Plane of Water]
Loot1=giant halibut
Loot2=giant snapper
[Rujarkian Hills]
Loot1=cave guppy
[Siren's Grotto]
Loot1=grotto bluegill
[Sleeper's Tomb]
Loot1=weary wrass
[South Felwithe]
Loot1=koada cichlid
[South Karana]
Loot1=thunder salmon
[Surefall Glade]
Loot1=pine cichlid
[Swamp of No Hope]
Loot1=despair chub
Loot2=krup guppy
[The Overthere]
Loot1=danak grouper
[The Ruins of Old Paineel]
Loot1=hatch dace
[The Ruins of Sebilis]
Loot1=kunzar koi
[Timorous Deep]
Loot1=saltwater seaweed
Loot2=timorous tuna
[Togiran Mines]
Loot1=bay seaweed
Loot2=blowfish barb
Loot3=gunthak gourami
[Toxxulia Forest]
Loot1=greengill salmon
[Txevu]
Loot1=10 lb. Saltwater Crab
Loot2=11 lb. Saltwater Crab
Loot3=11 lb. Saltwater Tuna
Loot4=12 lb. Saltwater Tuna
Loot5=7 lb. Saltwater Crab
Loot6=7 lb. Saltwater Tuna
Loot7=8 lb. Saltwater Crab
Loot8=8 lb. Saltwater Tuna
Loot9=9 lb. Saltwater
Loot10=Tuna
Loot11=fish scales
Loot12=rusty dagger
[Warslik's Woods]
Loot1=evergreen salmon
[West Cabilis]
Loot1=10lb fetid bass
Loot2=11lb fetid bass
Loot3=12lb fetid bass
Loot4=13lb fetid bass
Loot5=14lb fetid bass
Loot6=15lb fetid bass
Loot7=16lb fetid bass
Loot8=17lb fetid bass
Loot9=2lb fetid bass
Loot10=3lb fetid bass
Loot11=4lb fetid bass
Loot12=5lb fetid bass
Loot13=6lb fetid bass
Loot14=7lb fetid bass
Loot15=8lb fetid bass
Loot16=9lb fetid bass
Loot17=giant fetid bass
Loot18=gigantic fetid bass
Loot19=humongous fetid bass
Loot20=large fetid bass
Loot21=sewer catfish
Loot22=tiny fetid bass
[West Karana]
Loot1=thunder salmon
[Western Wastes]
Loot1=red roughy





Code: Select all
|---------------------------------------------------------------------------------
| Advanced Fishing Macro
| adv_fishing.mac
| Author : panther
| Version : v1.0beta 2004-07-01 18:58pm GMT
| Useage : /macro adv_fishing
| Description :
| This macro will fish for you and keep all items in FishingLoot.ini. You need a
| fisherman's companion in an inventory slot for this macro to work properly.
|---------------------------------------------------------------------------------
#turbo 10
#event BrokenPole "Your fishing pole broke!"
#event LostBait "You lost your bait!"
#event NeedPole "You can't fish without a fishing pole, go buy one."
#event NothingCaught "You didn't catch anything."
#event OutOfBait "You can't fish without fishing bait, go buy some."
#event PrimaryHand "You need to put your fishing pole in your primary hand."
#event SkillUp "You have become better at #1#! (#2#)"
#event SpillBeer "You spill your beer while bringing in your line."
Sub Main
|------------------------------------------------------------
|Should I display fishing stats? (1 for yes, 0 for no)
|------------------------------------------------------------
/declare RV_DisplayStats int outer 1
/echo Starting up ${Macro}
/declare int_BrokenPole int outer 0
/declare int_ItemsDropped int outer 0
/declare int_LostBait int outer 0
/declare int_NothingCaught int outer 0
/declare int_SpillBeer int outer 0
/declare int_TotalCasts int outer 0
|------------------------------------------------------------
|Load in Loot Table.
|------------------------------------------------------------
/call ReadINI FishingLoot.ini "${Zone.Name}" Loot
/if (!${Defined[RV_LootArray]}) {
/echo No Loot Table Created... Please create one.
/endmacro
}
/autoinventory
:Start
/call GMCheck
/delay 2s
/if (${Cursor.ID}) /call Looting
/if (${Me.AbilityReady[Fishing]}) {
/delay 1s
/varcalc int_TotalCasts ${int_TotalCasts}+1
/doability Fishing
}
/doevents
/goto :Start
/return
|--------------------------------------------------------------------------------
|SUB: Display fishing stats.
|--------------------------------------------------------------------------------
Sub DisplayStats
/declare nArray int local
/echo Total number of casts = ${int_TotalCasts}
/echo Items fished so far
/echo -------------------
/if (${Defined[RV_LootArray]}) {
/for nArray 1 to ${RV_LootArray.Size}
/echo ${Int[${RV_LootStats[${nArray}]}]} - ${RV_LootArray[${nArray}]}'s
/next nArray
}
/echo
/echo Bad fishing so far
/echo ------------------
/echo ${int_BrokenPole} - Broken poles
/echo ${int_ItemsDropped} - Items dropped
/echo ${int_LostBait} - Lost bait
/echo ${int_NothingCaught} - Nothing caught
/echo ${int_SpillBeer} - Spilt your beer
/return
|--------------------------------------------------------------------------------
|SUB: Check for GM's in zone.
|--------------------------------------------------------------------------------
Sub GMCheck
/if (${Spawn[gm].ID}) {
/beep
/beep
/beep
/echo GM entered the zone!
/echo For safty reasons ending the macro...
/endmacro
}
/return
|--------------------------------------------------------------------------------
|SUB: Looting based on FishingLoot.ini.
|--------------------------------------------------------------------------------
Sub Looting
/declare LootCheck int inner 0
/for LootCheck 1 to ${RV_LootArray.Size}
/if (${Cursor.Name.Find[${RV_LootArray[${LootCheck}]}]}) {
/echo Keeping a ${Cursor.Name}... WOOT!
/varcalc RV_LootStats[${LootCheck}] ${RV_LootStats[${LootCheck}]}+1
/autoinventory
}
/next LootCheck
/if (${Cursor.ID}) {
/echo Dropping a ${Cursor.Name}...
/drop
/varcalc int_ItemsDropped ${int_ItemsDropped}+1
}
/if (${RV_DisplayStats}) /call DisplayStats
/return
|--------------------------------------------------------------------------------
|SUB: Read loot table from the INI file.
|--------------------------------------------------------------------------------
Sub ReadINI(FileName,SectionName,ArrayType)
/echo Attempting to Read Section "${SectionName}" Zone Information from ${FileName}...
/delay 1s
/if (${Ini[${FileName},${SectionName},-1,NO].Equal[NO]}) {
/echo "${SectionName}" is not a Valid Section for FILE:${FileName}, ending macro...
/delay 1s
/return
}
/declare nValues int local 1
/declare nArray int local 0
/declare KeySet string local ${Ini[${FileName},${SectionName}]}
:CounterLoop
/if (${Ini[${FileName},${SectionName},${ArrayType}${nValues},NULL].Equal[NULL]}) {
/varcalc nValues ${nValues}-1
/goto :MakeArray
}
/varcalc nValues ${nValues}+1
/goto :CounterLoop
:MakeArray
/if (!${nValues}) /return
/if (${FileName.Equal["FishingLoot.ini"]}&&${nValues}>0) {
/echo Declaring Loot Array...
/declare RV_LootArray[${nValues}] string outer
/declare RV_LootStats[${nValues}] string outer
}
/for nArray 1 to ${nValues}
/if (${FileName.Equal["FishingLoot.ini"]}) {
/varset RV_LootArray[${nArray}] ${Ini[${FileName},${SectionName},${ArrayType}${nArray}]}
/varset RV_LootStats[${nArray}] 0
}
/next nArray
/echo "${SectionName}" Zone Information Read Successfully from ${FileName}...
/delay 1s
/return
|--------------------------------------------------------------------------------
|SUB: Event subroutines.
|--------------------------------------------------------------------------------
Sub Event_BrokenPole
/varcalc int_BrokenPole ${int_BrokenPole}+1
/varcalc int_NothingCaught ${int_NothingCaught}-1
/return
Sub Event_LostBait
/varcalc int_LostBait ${int_LostBait}+1
/varcalc int_NothingCaught ${int_NothingCaught}-1
/return
Sub Event_NeedPole
/cast item "Fisherman's Companion"
/delay 11s
/autoinventory
/return
Sub Event_NothingCaught
/varcalc int_NothingCaught ${int_NothingCaught}+1
/return
Sub Event_OutOfBait
/Echo Ran out of Bait.
/sit off
/sit on
/camp
/endmacro
/return
Sub Event_PrimaryHand
/cast item "Fisherman's Companion"
/delay 11s
/autoinventory
/return
Sub Event_SkillUp(SkillUpText,Skill,int Amount)
/popup Fishing increased to - ${Amount}
/echo Fishing increased to - ${Amount}
/return
Sub Event_SpillBeer
/varcalc int_SpillBeer ${int_SpillBeer}+1
/varcalc int_NothingCaught ${int_NothingCaught}-1
/return