Cast and Drop macro?

Macro requests from before the user variable changes that broke all macros

Moderator: MacroQuest Developers

ThaTrill
decaying skeleton
decaying skeleton
Posts: 1
Joined: Fri Nov 01, 2002 12:20 pm

Cast and Drop macro?

Post by ThaTrill » Fri Nov 01, 2002 12:24 pm

Yo.

What I need is a macro to cast a spell for me and drop the result (spell is summon drink) into the auto-equip box, and then repeat this after recovery. Yes, I realize that this is probably relitavely simple to script, but I'm a newb at this stuff. I know how to do the cast part, it's just the dropping part that I have no idea how to go about.

Thanks in advance for those willing to help.
---------------------------------------
It's music I like,
It's music I love.
My favorite kinds,
The harmonies a'bove.

User avatar
Stargazer
a lesser mummy
a lesser mummy
Posts: 32
Joined: Mon Sep 30, 2002 3:30 pm

Post by Stargazer » Fri Nov 01, 2002 1:45 pm

Here is one that summons food and drink that I came up with a while back. It doesn't take advantage of all the latest features, but it still works if you want to use it as a starting point.

Code: Select all

  | makefood.mac

  #define CASTTIME 40
  #define FOOD 7
  #define WATER 8

  Sub Main 

     :loop
     |/echo Black Bread $count("Black Bread")
     |/echo Globe of Water $count("Globe of Water")
     /cast FOOD
     /delay CASTTIME
     /call Store
     /cast WATER
     /delay CASTTIME
     /call Store
     /goto :loop

  /return 

  Sub Store
     /delay 5
     /if "$cursor()"=="NULL" /goto :SKIP 
     /press ESC
     /press ESC
     /press i
     /click left auto
     /delay 5
     /press ESC
     /press ESC
     :SKIP
  /return