For those that might find this useful, here we go.
Ergg asked me if I could write this, so I threw this together real fast. (if you can get it to work in 1 macro please reply with the method so that I can do it also).
just open a /loot window ( corpse window ) and run whoneedsspell with /macro whoneedsspell
That macro will check all spells on the corpse for the classes, then ask the correct characters in your raid, that are in the zone if they need that spell or not.
The other characters will then automaticly run /macro gotdaspell and respond in /rsay if they dont have the spell in their spell book.
Hope this helps you.
Peace.
BogTank.
|-------- Begin: whoneedsspell.mac --------|
| =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=|
Whoneedsspell Sends a command to all characters connected to the current eqbc and has them run the macro
gotdaspell to see if they need a spell that is on this corpse.
By BogReaper ( Bogreaper@gmail.com ) July 21st 2017
Hope you enjoy, and may the Bog be with you.
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=|
Sub Main
/declare loottotal int outer
/declare lootslot int outer
/declare dateam int local
/declare classcount int local
/declare classy string local
| -----------------
| -- Count items --
| -----------------
/varset loottotal ${Math.Calc[${Corpse.Items}]}
| ---------------------
| -- Loot the corpse --
| ---------------------
/for lootslot 1 to 40
/if (${Corpse.Item[${lootslot}].Spell.Name.NotEqual[NULL]} && ${Corpse.Item[${lootslot}].Type.Equal[Scroll]}) {
/for dateam 1 to ${Raid.Members}
/varset classy ${Spawn[pc ${Raid.Member[${dateam}]}].Class}
/if (${classy.NotEqual[NULL]}) {
/for classcount 1 to 16
/if (${classy.Equal[${Corpse.Item[${lootslot}].Class[${classcount}]}]}) {
/bct ${Raid.Member[${dateam}]} //macro gotdaspell ${Spell[${Corpse.Item[${lootslot}].Spell.Name}].ID}
}
/next classcount
}
/next dateam
}
/next lootslot
/return
| --------------- End: whoneedsspell.mac ------------------|
| ------------- Begin: gotdaspell.mac ------------|
| =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Whoneedsspell Sends a command to all characters connected to the current eqbc and has them run the macro
gotdaspell to see if they need a spell that is on this corpse.
By BogReaper ( Bogreaper@gmail.com ) July 21st 2017
Hope you enjoy, and may the Bog be with you.
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Sub Main
/if (${Me.Book[${Spell[${Param0}].Name}]}<1) /rsay I dont have ${Spell[${Param0}].Name}
/return
| ------------ End: gotdaspell.mac ----------------------|