Mana Trouble

11/10/2008 22:28 Valkmax#16
Thanks for that I did not know there 2 id codes for them, I did catch the 0 instead of 2 tho but thanks =)

Update
Pots now work wo0o0t
Gourd now works wo0ot

Not working
Spells ><
11/10/2008 22:30 Incariuz#17
Np... One more thing though...

Code:
 SkillAttributes[1002] = new ushort[4][];
            SkillAttributes[1002][0] = new ushort[6] { 2, 0, 32, 505, 0, 0 };
            SkillAttributes[1002][1] = new ushort[6] { 2, 0, 36, 666, 0, 0 };
            SkillAttributes[1002][2] = new ushort[6] { 2, 0, 50, 882, 0, 0 };
            SkillAttributes[1002][3] = new ushort[6] { 2, 0, 62, 1166, 0, 0 };
            SkillsDone.Add(1002, 3);

If I recall, you're setting mana in the wrong portion of that, I believe it's the 5th number, not the third. However, if you do it now, without the mana working, it will use stamina. If I'm wrong about that though, let me know, lol. That's just how I have my notes written.
11/10/2008 22:42 tao4229#18
It doesn't matter WHAT number you set it to, you need to actually read the number in Character.UseSkill and remove the mana.(from the specified amount in the array.)
11/10/2008 22:52 Valkmax#19
It is stamina tell changed (which I am trying to change)
//SkillType, Range Sector, Damage/Heal, CostMana/Stamina, ActivationChance

@tao Mind explaining that just a little more ?
11/10/2008 22:52 _Emme_#20
Its like this:

Quote:
SkillType
Range
Sector
Damage/Heal
CostMana/Stamina
ActivationChance
11/10/2008 22:54 Incariuz#21
That's how mine is set up. That's why I assumed it to be that way.
11/10/2008 22:55 _Emme_#22
Quote:
Originally Posted by Valkmax View Post
It is stamina tell changed (which I am trying to change)
Then just do this at useskill

if (SkillID == 1002) // Tornado
{
if (CurMP >= AmountOfMPBeingSpended)
{
CurMP -= AmountOfMPBeingSpended;
SendPacket
}
else
{
SendMsgToClient(MyChar, "You do not have enough mana to cast this spell!", 2005);


Note : SendMsgToClient wouldnt work.
}
11/10/2008 23:05 Incariuz#23
So we'd change the part in the database.cs to be something similar to that? Please tell me that's not what's been holding me back on getting this working, lol.

Edit: I apologize if I sound like an idiot, lol. This whole thing has just confused me beyond belief.
11/10/2008 23:14 Valkmax#24
You don't change the database you have to put it, somewhere (still looking were).
11/10/2008 23:23 _Emme_#25
You would have to put it in the UseSkill section. Search for like, example:

if (SkillID == "

search for that and you should get to it,but remember them all has different attributes,be carefull about that


bed time- Emme
11/10/2008 23:25 Valkmax#26
I want to thank you all, with this info I will get it sooner or later.
11/10/2008 23:46 Incariuz#27
See... I'm lost on that whole topic guys. You're suggesting it should be added to...

#region SkillAttributes7

And I've read tons of things about how that's where we should add skills. But the only skills I have listed there are xp skills, and I can't find the coding for skills such as fb or ss anywhere, even though they're currently funtional on my source. it leaves me completely lost. I'm not giving up though, if this takes 2 weeks, a month, I don't care, lol.
11/10/2008 23:49 Valkmax#28
I am watching don't mess with the zohan, when I am done I will start missing with stuff tell I get it hopefully (like 60% done)
11/11/2008 00:57 nTL3fTy#29
Quote:
Originally Posted by Incariuz View Post
See... I'm lost on that whole topic guys. You're suggesting it should be added to...

#region SkillAttributes7

And I've read tons of things about how that's where we should add skills. But the only skills I have listed there are xp skills, and I can't find the coding for skills such as fb or ss anywhere, even though they're currently funtional on my source. it leaves me completely lost. I'm not giving up though, if this takes 2 weeks, a month, I don't care, lol.
That's because in LOTF, SkillAttribute 7 is a buff or whatever. Look at the other #region's of code for further skills.
11/11/2008 01:52 Incariuz#30
Ok, well I'm back at it now, so I'll look through and see what I can find.

Edit: I have noticed one thing though. A large variety of area's in the character.cs dealing with stamina involve SkillAttributes[4]. Would I perhaps need to make a #region SkillAttribute dealing with mana or something?