[NOOB QUESTION] ehh...

09/19/2009 03:09 CompacticCo#1
Hey, old thread.
09/19/2009 03:20 .Matt#2
Add this under MyChar.CPs += 9000;

SendPacket(General.MyPackets.Vital(MyChar.UID, 4, MyChar.Silvers));
SendPacket(General.MyPackets.Vital(MyChar.UID, 30, MyChar.CPs));
09/19/2009 03:22 CurseOfExcalibur#3
You're too slow, :P j/k
Done already.
09/19/2009 03:23 CompacticCo#4
Thanks, another friend got to it though, thanks for posting back, hopefully that helps someone else.
09/19/2009 15:01 Basser#5
CompaticCo, the solution has been posted already but you also need to know why this happens, well you can kinda think about it like this, the SendPacket, tells the Client to open or refresh something. E.g. Money, CPs, Health, Mana etc etc.
09/19/2009 15:29 CompacticCo#6
What would be the one to refresh mana?
09/19/2009 16:02 Basser#7
Jesus Christ, just look at an example next time.
Here are some packets.
Mana:
Code:
SendPacket(General.MyPacket.Vital((long)MyChar.UID, 2, MyChar.CurMP)); // CurrentMP
SendPacket(General.MyPacket.Vital((long)MyChar.UID, 2, MyChar.MaxMP)); // MaxMana
HP:
Code:
SendPacket(General.MyPacket.VitalVital((long)MyChar.UID, 0, MyChar.CurHP)); // CurrentMP
SendPacket(General.MyPacket.VitalVital((long)MyChar.UID, 0, MyChar.MaxHP)); // MaxMana
Silvers / CPs:
Code:
SendPacket(General.MyPacket.VitalVital((long)MyChar.UID, 4, MyChar.Silvers));
SendPacket(General.MyPacket.VitalVital((long)MyChar.UID, 30, MyChar.CPs));
Please not I'm not sure about the MyPacket part, I use an editted packet sender.
This is also made for Client.cs in the LOTF Source, not in other files.
09/19/2009 16:04 Basser#8
Code:
                        
SendPackets(General.MyPackets.CharacterInfo(Me));
World.SpawnMeToOthers(Me, false);
MyChar.SendEquips(false);
Not sure if they all are necessary but that are the ones I used at some NPC.
Please thank me if you used any of these packets.
09/19/2009 17:39 Empty Project#9
Hmm...MaxHP sends as a packet? I don't recall..
09/19/2009 18:08 Basser#10
Oh sorry, I forgot that MaxMP isn't added to most sources =/
Maybe change it to MaxMana ?
09/19/2009 18:12 .Guru#11
curHP sends a packet, not maxHP
09/19/2009 18:15 Zion~#12
I need to introduce you to the high-grade ganja, just smoke it and it gives you all the answers.
09/19/2009 18:16 zbest#13
=)
09/19/2009 18:24 Basser#14
Zion that is pure spam >_>
And you're advising us to do something illegal, which makes what you said illegal.
09/19/2009 18:32 Empty Project#15
Quote:
Originally Posted by Smythe94 View Post
Oh sorry, I forgot that MaxMP isn't added to most sources =/
Maybe change it to MaxMana ?
lol, I had mana a long time ago just don't think its in the packets...MaxHP isn't in sending packets either..