Thread Tools Display Modes
08-03-11, 04:45 PM   #1
PerfectH
A Flamescale Wyrmkin
 
PerfectH's Avatar
AddOn Compiler - Click to view compilations
Join Date: Jan 2008
Posts: 137
Spell on Item

Is it impossible to cast a spell on an item using a script, macro, or AddOn?

For instance, if I want to cast Milling on a stack of specified herbs.

Thanks in advance.
__________________
I might fail at AddOn creativity...but damn do I love Coca-Cola!
  Reply With Quote
08-03-11, 04:55 PM   #2
Nobgul
A Molten Giant
 
Nobgul's Avatar
AddOn Author - Click to view addons
Join Date: Aug 2009
Posts: 693
No it requires human interaction. You can /cast Milling but then you still need to click on the herb. there is a few addons that allow you to alt and click on the item in your bag to mill etc.
__________________
[SIGPIC][/SIGPIC]
  Reply With Quote
08-03-11, 04:56 PM   #3
Haleth
This Space For Rent
 
Haleth's Avatar
Featured
Join Date: Sep 2008
Posts: 1,173
Have a look at Molinari.

http://www.wowinterface.com/download...-Molinari.html
  Reply With Quote
08-03-11, 07:02 PM   #4
SDPhantom
A Pyroguard Emberseer
 
SDPhantom's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2006
Posts: 2,326
Macros are allowed to perform this, but you'll have to modify it to work on each herb.

The basic macro to do this would be this...
Notice: /cast and /use are aliases to the same command, they're just posted to show the difference between the spell and the item.
Code:
/cast Milling
/use Peacebloom
Here's what it does.
  1. Sets Milling to be cast on the item clicked.
  2. Attempts to use Peacebloom (when a spell is on the cursor, it casts on the item)

To enhance the macro to loot all previous items, add this to the beginning.
Code:
/run for i=1,GetNumLootItems() do LootSlot(i);ConfirmLootSlot(i); end HideUIPanel(LootFrame);
__________________
WoWInterface AddOns
"All I want is a pretty girl, a decent meal, and the right to shoot lightning at fools."
-Anders (Dragon Age: Origins - Awakening)

Last edited by SDPhantom : 08-03-11 at 07:05 PM.
  Reply With Quote
08-04-11, 01:05 AM   #5
Torhal
A Pyroguard Emberseer
 
Torhal's Avatar
AddOn Author - Click to view addons
Join Date: Aug 2008
Posts: 1,196
You can also use Revelation for this, and it's configurable so you're not locked into ALT or even a specific mouse button.
__________________
Whenever someone says "pls" because it's shorter than "please", I say "no" because it's shorter than "yes".

Author of NPCScan and many other AddOns.
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » Spell on Item


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off