Mirage Source http://web.miragesource.net/forums/ |
|
Spell Number http://web.miragesource.net/forums/viewtopic.php?f=201&t=1356 |
Page 1 of 11 |
Author: | Ramsey [ Wed Feb 14, 2007 10:47 pm ] |
Post subject: | Spell Number |
how do i get the spell number of a spell? |
Author: | Obsidian [ Wed Feb 14, 2007 11:44 pm ] |
Post subject: | |
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(#) |
Author: | Ramsey [ Thu Feb 15, 2007 12:00 am ] |
Post subject: | |
i need a line of code to do Code: If number_of_spell_casted = 1 then
|
Author: | William [ Thu Feb 15, 2007 12:02 am ] |
Post subject: | |
Not sure what you mean, but might be this? Code: Player(MyIndex).Spell(i)
|
Author: | Obsidian [ Thu Feb 15, 2007 12:21 am ] |
Post subject: | |
You'll have to do several checks leading up to it. For instance Code: for i = 1 to max_player_spells
If Player(Index).Spell(i) = *INSERT SPELL NUM HERE* Then If Player(Index).CastedSpell = True Then ' Not sure if CastedSpell is an assigned variable in the player UDT or not *DO WHATEVER* End If End If next i 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? |
Author: | Lea [ Thu Feb 15, 2007 4:10 am ] |
Post subject: | |
Add another item to the packet if it isnt there already (which I bet it is) |
Author: | Obsidian [ Thu Feb 15, 2007 5:13 am ] |
Post subject: | |
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. |
Author: | wanai [ Fri May 20, 2022 5:59 am ] |
Post subject: | Re: Spell Number |
XVII |
Author: | wanai [ Fri May 20, 2022 6:00 am ] |
Post subject: | Re: Spell Number |
138.1 |
Author: | wanai [ Fri May 20, 2022 6:01 am ] |
Post subject: | Re: Spell Number |
Repr |
Author: | wanai [ Fri May 20, 2022 6:02 am ] |
Post subject: | Re: Spell Number |
CHAP |
Author: | wanai [ Fri May 20, 2022 6:03 am ] |
Post subject: | Re: Spell Number |
Quee |
Author: | wanai [ Fri May 20, 2022 6:04 am ] |
Post subject: | Re: Spell Number |
Sony |
Author: | wanai [ Fri May 20, 2022 6:06 am ] |
Post subject: | Re: Spell Number |
Hans |
Author: | wanai [ Fri May 20, 2022 6:07 am ] |
Post subject: | Re: Spell Number |
Pete |
Author: | wanai [ Fri May 20, 2022 6:08 am ] |
Post subject: | Re: Spell Number |
Henr |
Author: | wanai [ Fri May 20, 2022 6:09 am ] |
Post subject: | Re: Spell Number |
Mart |
Author: | wanai [ Fri May 20, 2022 6:10 am ] |
Post subject: | Re: Spell Number |
XIII |
Author: | wanai [ Fri May 20, 2022 6:11 am ] |
Post subject: | Re: Spell Number |
Simp |
Author: | wanai [ Fri May 20, 2022 6:12 am ] |
Post subject: | Re: Spell Number |
Jail |
Author: | wanai [ Fri May 20, 2022 6:13 am ] |
Post subject: | Re: Spell Number |
REDA |
Author: | wanai [ Fri May 20, 2022 6:15 am ] |
Post subject: | Re: Spell Number |
Loui |
Page 1 of 11 | All times are UTC |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |