Food and Drink summoning macro

Post your completed (working) macros here. Only for macros using MQ2Data syntax!

Moderator: MacroQuest Developers

User avatar
Pax
a lesser mummy
a lesser mummy
Posts: 52
Joined: Fri Dec 19, 2003 11:04 am
Location: Denmark

Food and Drink summoning macro

Post by Pax » Fri Jun 14, 2013 7:24 am

This is the only macro i feel is complete enough and also i would claim i wrote and didnt just hack together from other macros ;-)
its very simple, summons stacks of Black bread and globes of water.

Code: Select all

| fw.mac
| Summon food and drink macro
| Usage: /mac fw, followed by the amount of stacks should be summoned

#include spell_routines.inc

Sub main

/declare amount int outer ${Param0}
/declare TotalAmount int outer
/declare x int outer 1
/declare c int outer 1

/if (!${Defined[Param0]}) /call noparm
/echo summoning food and drink for ${Param0} person(s)

/varcalc TotalAmount ${Param0} * 20

/for x 1 to ${TotalAmount}
   /call cast "Summon Food" gem8
   /delay 5
   /autoinventory
   /popup ${FindItemCount[Summoned: Black Bread]} total food in inventory
/next x

/for c 1 to ${TotalAmount}
   /call cast "Summon Drink" gem8
   /delay 5
   /autoinventory
   /popup ${FindItemCount[Summoned: Globe of water]} total water in inventory
/next c

/return

Sub noparm
   /echo how many persons should i summon for ?
   /endmacro
/return
Enjoy :)
//Fuck waiting for us to cleanly exit... we're being unloaded!