Help section from before the user variable changes that broke all macros
Moderator: MacroQuest Developers
-
Amadeus
- The Maestro

- Posts: 2036
- Joined: Sat Jun 29, 2002 3:51 pm
Post
by Amadeus » Mon Jul 08, 2002 1:50 am
EDIT: Question answered below by GD. Removed to avoid confusion with two sets of code.
Last edited by
Amadeus on Tue Jul 09, 2002 6:17 pm, edited 1 time in total.
-
L124RD
- Site Admin

- Posts: 1343
- Joined: Fri Jun 14, 2002 12:15 am
- Location: Cyberspace
-
Contact:
Post
by L124RD » Mon Jul 08, 2002 2:25 am
salutations,
could you post the WHOLE macro?
edit:
n/m i'm being stupid, could you post the spellsub.mac you're using?
-
Amadeus
- The Maestro

- Posts: 2036
- Joined: Sat Jun 29, 2002 3:51 pm
Post
by Amadeus » Mon Jul 08, 2002 2:34 am
EDIT: Question answered below by GD. Removed to avoid confusion with two sets of code.
Last edited by
Amadeus on Tue Jul 09, 2002 6:18 pm, edited 1 time in total.
-
L124RD
- Site Admin

- Posts: 1343
- Joined: Fri Jun 14, 2002 12:15 am
- Location: Cyberspace
-
Contact:
Post
by L124RD » Mon Jul 08, 2002 4:12 am
Salutations,
what version you using?
-
GD
- a snow griffon

- Posts: 353
- Joined: Sat Jun 29, 2002 11:57 pm
Post
by GD » Mon Jul 08, 2002 4:45 am
As far as I know, if { } statements can only use 1 line of code, so just send it to it's own area for when it's a Plains Pebble.
EDIT: Also, you had no reason to include the routines.mac, you weren't using any funtions of it.
EDIT 2: It just dawned on me that if you are using a release since 2002-07-04 that you will require the new SpellSub.mac I posted here to get yours or mine to work. This may very well be the reason it was failing for you.
Code: Select all
| - Forage.mac
|
#include SpellSub.mac
Sub Main
/cleanup
:Forage
/doability 1
/delay 100
| This routine assumes that you are a druid and have the
| "Imbue Plains Pebble" loaded as the 6th gem. If this is
| not the case, then simply comment it out or delete it.
/if "$cursor(name)"!="Plains Pebble" /goto :CheckForage
:Imbue
/click left auto
/if "$cursor(name)"=="Plains Pebble" /goto :Imbue
/call SpellSub 6 7
/click left auto
/goto :Forage
:CheckForage
| Anything in quotations below will be destroyed. Comment out
| or delete any lines containing items you wish to keep
/if "$cursor(name)"=="Roots" /click left destroy
/if "$cursor(name)"=="Pod of Water" /click left destroy
/if "$cursor(name)"=="Ripened Heart Fruit" /click left destroy
/if "$cursor(name)"=="Fishing Grubs" /click left destroy
/if "$cursor(name)"=="Rabbit Meat" /click left destroy
/if "$cursor(name)"=="Mushroom" /click left destroy
/if "$cursor(name)"=="Feather" /click left destroy
/if "$cursor(name)"=="Ancient Coin" /click left destroy
/if "$cursor(name)"=="Fruit" /click left destroy
/if "$cursor(name)"=="Berries" /click left destroy
/if "$cursor(name)"=="Cinnamon Sticks" /click left destroy
/if "$cursor(name)"=="Vegetables" /click left destroy
/if "$cursor(name)"=="Wild Radish" /click left destroy
/if "$cursor(name)"=="Lichen Roots" /click left destroy
/if "$cursor(name)"=="Arctic King Crab" /click left destroy
/if "$cursor(name)"=="Glob of Slush Water" /click left destroy
/if "$cursor(name)"=="Dragon Claw Sliver" /click left destroy
/if "$cursor(name)"=="Tuft of Dire Wolf Fur" /click left destroy
/if "$cursor(name)"=="Small Chunk of Velium" /click left destroy
/click left auto
/goto :Forage
/return
-
L124RD
- Site Admin

- Posts: 1343
- Joined: Fri Jun 14, 2002 12:15 am
- Location: Cyberspace
-
Contact:
Post
by L124RD » Mon Jul 08, 2002 2:54 pm
Salutations,
yea, if it was after... 04? you need to add the custom events... i think that was your problem...
-
Amadeus
- The Maestro

- Posts: 2036
- Joined: Sat Jun 29, 2002 3:51 pm
Post
by Amadeus » Mon Jul 08, 2002 8:01 pm
Yes, the solution given here works beautifully. Thanks!
-
L124RD
- Site Admin

- Posts: 1343
- Joined: Fri Jun 14, 2002 12:15 am
- Location: Cyberspace
-
Contact:
Post
by L124RD » Mon Jul 08, 2002 11:53 pm
Salutations,
You're Welcome
-
gingertips
- a hill giant

- Posts: 230
- Joined: Wed Jun 26, 2002 3:47 am
- Location: Tseu-Qorcam
Post
by gingertips » Tue Jul 09, 2002 8:17 am