wanna help me fix my FORAGEING.mac

Help section from before the user variable changes that broke all macros

Moderator: MacroQuest Developers

nikeman
a lesser mummy
a lesser mummy
Posts: 70
Joined: Tue Jun 18, 2002 10:37 am

wanna help me fix my FORAGEING.mac

Post by nikeman » Fri Oct 18, 2002 9:47 am

Code: Select all

| - FORAGEing.mac - 
| Change the Define below to the actual Foraging ability name; 
| I don't know it. 

#define FORAGESkill Forage
#include SpellSub.mac
#include Spellcast.mac 
#include Spellbook.mac 
#include routines.mac 
#event visible "you appear" 
sub Main       
   /cleanup
   /doevents 

   :Forage 
      /doability "FORAGESkill" 
      /doevents 
      /delay 2 

   /if "$cursor(name)"=="Morning Dew"  /click left auto 
   /if "$cursor(name)"=="vegetables"  /click left auto 
   /if "$cursor(name)"=="Pod of Water"  /click left auto 
   /click left destroy 
   /goto :Forage 
/return 

sub Event_visible
    /cast "Superior Camoflage"
/return

the main things i want it to do check the forage botton see if its up if so then click it keep all foods and drinks destroy all eals and eather keep a timer invs on me or watch for it to ware off

gder
decaying skeleton
decaying skeleton
Posts: 5
Joined: Tue Oct 15, 2002 11:36 pm

Post by gder » Fri Oct 18, 2002 4:56 pm

Take a look at the "Testing for character stance" thread...