I read through the code for how a spell is cast when you click a button on the spellbank GUI. Most of the code can safely be ignored, the castspell source function can be called directly if we have the following:
-a spellbook with the desired spell in it
-the slot of the spell in the spellbook
-the gameconnection for the client / caster who has the spellbook
-the id of the target object
I haven't looked at giving the AiPlayer a spellbook yet and I can't remember if we are using AiClient for AiPlayers; both of which will be required for bots to cast spells.
I think by using components of the Smokin' & Arcane in the Membrane spells we should be able to give the Scythe Demon a nice constant effect below him that sheds some light on the model so it doesn't look so dark.
Smokin' Arcane in the Membrane
Friday, June 5, 2009
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment