Mana Trouble

11/11/2008 05:25 Valkmax#46
Yea I don't know tbh I didn't see a hp one yet I searched threw them all ><
11/11/2008 05:38 Incariuz#47
Well I went over it 2 times to be sure I didn't miss anything, but I got nothing either. I'm going to cross reference some of the coding from case 74 with other stuff and see if I find anything which will give me an idea.

Edit: Case 74 seems to be the only case containing a LogonPacket, so I guess it is where we should be. I just have no clue what to put where as of yet.
11/11/2008 05:47 Valkmax#48
I am trying to figure that out and I also think it is what tao went by sub-case #74

I think we should be looking at stamina considering it is the only thing that is close (that I can tell) there.

Side-Note
I start with full mp and hp >< so I am still lost there (do you?)
11/11/2008 05:55 Incariuz#49
Ya, I start with both full. But after my first magic attack, my mana skyrockets to 65535 or something around that. I don't get why it's doing it at all.
11/11/2008 06:05 Valkmax#50
I get the same thing, so I am trying think to my self why would it do that? What would make it not know what it is doing. (tao) Said it going to max value cause its 0 and its doing lets say -36 making it go backwards.

So how do you make it not start at 0 ><
11/11/2008 06:09 Incariuz#51
Well... I decided to experiment a bit in case 74, haven't gotten what I wanted yet, somehow made it register hp instead of mana when I logged on, lol.


Code:
SendPacket(General.MyPackets.Vital(MyChar.UID, 2, MyChar.MaxMP));
MyChar.MaxMana();
It happened when I added that code under MyChar.StartXPCircle();

gonna try moving the code around in there, see if anything changes. If I manage to solve it at this point, it's merely luck. ><

Edit: I think I know what we should be paying attention to.

Code:
SendPacket(General.MyPackets.GeneralData((long)(MyChar.UID), 3, 0, 0, 96));
tao's giving us the answers, we're just not seeing them I guess. >< or atleast I'm not.

Edit 2: Anyhow, enough of this for tonight, starting to get tired, and everyhitng is gonna look like jibberish to me soon so... Just gonna head to bed.
11/11/2008 06:57 _Emme_#52
# I help ya both through teamviewer when im back from school.Wish me goodluck,about to have a test on biologicy right now. Peace
11/11/2008 07:20 Valkmax#53
Thank you so much =)
|Good Luck|
11/11/2008 17:07 Incariuz#54
Ya, the help would be fantastic... I'm gonna keep giving it a shot for now though.
11/11/2008 22:19 tao4229#55
Do this
Code:
MyChar.CurMP = MyChar.MaxMana();
That should do it :p

Edit:: I can TV if you add meh, but I'ma be busy in an hour or two, so get meh quik.
11/11/2008 23:00 _Emme_#56
Tao,Valt send me her source,and I tried adding mana ( ofc i know how to , got it working ) , but just wouldnt work. I set full mana when you leveled or changed job,also used pots. None of them will withdraw mana,then I tried this:

if (SkillID == 1002)
{
Console.WriteLine("Lol");
}

Didnt work at all. So im wondering,does it bypass it? I tried to code it in TimerElapsed,which worked.

Suggestions,this is rly wierd?
11/11/2008 23:15 tao4229#57
I got it working on TV just now.. Lol.
11/11/2008 23:19 Valkmax#58
Got it working all he had to do was add one line and fix a error with my mysql >< which had nothing to do with mana :P
11/12/2008 03:14 © Haydz#59
Quote:
Originally Posted by EmmeTheCoder View Post
# I help ya both through teamviewer when im back from school.Wish me goodluck,about to have a test on biologicy right now. Peace
you must fail at it if you can't even spell it lol.
11/12/2008 03:29 tao4229#60
Quote:
Originally Posted by © Haydz View Post
you must fail at it if you can't even spell it lol.
I has a 103.4 in biology right now
Time to LOL when it drops twenty points tomorrow when I didn't do half my project.