Food/Water Mage Macro

Post Reply
Ballabulk
Posts: 3

Food/Water Mage Macro

Post by Ballabulk » Wed Jun 21, 2023 3:33 pm

Hi, i was testing out this macros Turns out the Macros for water and food doesnt work

this is the error:
ERROR: [string "a="Conjure Water" b={1,5,15,25,35,45,55} c=..."]:1: attempt to compare table with number
if i have no target the makros will conjure the water and food for level 55

any ideas?

User avatar
Bigsmerf
Posts: 1018
Location: Canada Eh
Likes: 2 times

Re: Food/Water Mage Macro

Post by Bigsmerf » Wed Jun 21, 2023 3:38 pm

Okay now, hear me out...


Click the spell. It SHOULD conjure food, or water, depending on which one you click.
Elmhoof - 60 Feral, between tanking/dps (Main)
Anbone 34 Shadow Priest (Planned secondary main)
Manypunchman - 10 Naked Troll Boxer (Hardcore)

I'm back! More or less...

Ballabulk
Posts: 3

Re: Food/Water Mage Macro

Post by Ballabulk » Wed Jun 21, 2023 3:47 pm

Image
it does not :(

Baess
Posts: 28

Re: Food/Water Mage Macro

Post by Baess » Wed Jun 21, 2023 4:53 pm

The variable b is a table, you are just comparing the targets level to a table but not telling it which part, where it says >=b it should be >=b i but the i needs to be in square brackets i think. The no target conjure works because that but just cast the spell
Caestielle (Hagreth/Litestep HC)

Ballabulk
Posts: 3

Re: Food/Water Mage Macro

Post by Ballabulk » Tue Jun 27, 2023 5:18 pm

this macro works in case someone is interested

Code: Select all

/script r=7;l={1,5,15,25,35,45,55};if not UnitIsFriend("player","target")then TargetUnit("player");end;t=UnitLevel("target");for i=r,1,-1 do if (t>=l[ i]-10) then CastSpellByName("Conjure Water(Rank "..i..")");break;end;end
i found out, that if you leave it like this and your target for example is level 23, it will make 25 level water wich the target cannot drink. so here the better version (i removed the -10 behind the "(t>=l-10) then...."

Code: Select all

/script r=7;l={1,5,15,25,35,45,55};if not UnitIsFriend("player","target")then TargetUnit("player");end;t=UnitLevel("target");for i=r,1,-1 do if (t>=l[ i]) then CastSpellByName("Conjure Water(Rank "..i..")");break;end;end

User avatar
Alienns
Posts: 6

Re: Food/Water Mage Macro

Post by Alienns » Mon Oct 16, 2023 3:23 pm

There was a addon for this and buffs also, maybe someone can remember and post it here, so we have that also...
Addon was work that way if you target someone it will make best water/food for his lvl and also give him best buff as mage.

User avatar
Ashstache
Posts: 125

Re: Food/Water Mage Macro

Post by Ashstache » Mon Oct 16, 2023 4:16 pm

Alienns wrote:
Mon Oct 16, 2023 3:23 pm
There was a addon for this and buffs also, maybe someone can remember and post it here, so we have that also...
Addon was work that way if you target someone it will make best water/food for his lvl and also give him best buff as mage.

Arcanum, I highly recommend it, but it does not include the new custom items (oranges, the ritual to conjure them, nor the Theramore teleport/portal). A member of staff communicated to me in the #addons channel in the official discord that he was taking a whack at it, but the coding for the addon is, honestly, insane.

This is Arcanum, a very old mage addon (2006), but for me the very mage addon ever made. Someone asked for it and it looks hard to find, so here is the version I used without issues for >15 years on many pserv 1.12

* Several buttons with shortcuts to your mage spells useful: Conjure water / food / mana gems, gathering portals and teleporting, and Arcane Intellect, armor, Amplify and Dampen Magic, and mount your / your business.
* The amount of water / food / mana and reactive powders such as arcane, runes of portals and rune of teleportation are on their fate related buttons. For mana gems, you'll have time to recharge it when it will consume.
* Click right button on the Water / Food / Gem mana to invoke and left click to use. It creates drink or food for the level of your target
* Click on the middle button is configurable. You can choose a function for each click 3 buttons (left, center and right)
* Remove all items cited in the configuration panels.
* Buy all your reagents automatically when you go to the merchant.
* Speech in party or raid a random message on invocation of Portal
Image

Here's the download

Post Reply