14-02-2007, 10:47 PM
how do i get the spell number of a spell?
Spell Number
|
14-02-2007, 10:47 PM
how do i get the spell number of a spell?
14-02-2007, 11:44 PM
Need to be more descriptive. Are you trying to find a number of a spell based on its name? Or what?
If you already know the number you can just do... Spell(#)
15-02-2007, 12:00 AM
i need a line of code to do
Code: If number_of_spell_casted = 1 then
15-02-2007, 12:02 AM
Not sure what you mean, but might be this?
Code: Player(MyIndex).Spell(i)
15-02-2007, 12:21 AM
You'll have to do several checks leading up to it. For instance
Code: for i = 1 to max_player_spells Something similar to that. But you're going to need to do a few other things as well. It's actually probably best, to check if the casted the spell, BEFORE running the For Loop and what-not. It might be a good idea, and shortcut the entire process... is just add a new Byte to the PlayerSpellRec, like, CurrentlyCast and then just Update/Remove that... then the code that i wrote would be much more simplified down to... making sure that they've casted a spell, and then making sure that the Cast Spell is the Spell Number that you're looking for. Make sense?
15-02-2007, 05:13 AM
Yeah i actually didn't even think about that. The spell number that they used... is more than likely sent through the "cast" packet... just leech off of that.
|
« Next Oldest | Next Newest »
|