[Release]Simple stuff (stat commands)

05/14/2009 18:31 ih8you#1
Well the highest u can put the stats is 65535 (which is max value of ushort)

I coded this completly myself

Code:
                                        if (Splitter[0] == "/vit")
                                        {
                                            ushort NewVit = ushort.Parse(Splitter[1]);
                                            MyChar.Vit = NewVit;
                                            SendPacket(General.MyPackets.Vital((long)MyChar.UID, 15, MyChar.Vit));
                                        }
                                        if (Splitter[0] == "/agi")
                                        {
                                            ushort NewAgi = ushort.Parse(Splitter[1]);
                                            MyChar.Agi = NewAgi;
                                            SendPacket(General.MyPackets.Vital((long)MyChar.UID, 17, MyChar.Agi));
                                        }
                                        if (Splitter[0] == "/spi")
                                        {
                                            ushort NewSpi = ushort.Parse(Splitter[1]);
                                            MyChar.Spi = NewSpi;
                                            SendPacket(General.MyPackets.Vital((long)MyChar.UID, 14, MyChar.Spi));
                                        }
                                        if (Splitter[0] == "/str")
                                        {
                                            ushort NewStr = ushort.Parse(Splitter[1]);
                                            MyChar.Str = NewStr;
                                            SendPacket(General.MyPackets.Vital((long)MyChar.UID, 16, MyChar.Str));
                                        }

Press Thanks if this helped

i'm still learning how to code, this is my 3rd release.
If u have any suggestions to improve this post here
05/14/2009 20:28 malak2100#2
can you tell me whay me add any code for patch 5065 tq binary
05/14/2009 20:47 ih8you#3
Quote:
Originally Posted by malak2100 View Post
can you tell me whay me add any code for patch 5065 tq binary
no for 2 reasons
1. Dont know how, made it in patch 5017
2.Binary sucks!
05/15/2009 01:58 hunterman01#4
Quote:
Originally Posted by malak2100 View Post
can you tell me whay me add any code for patch 5065 tq binary
How many times do we have to tell people YOU CANNOT CODE BINARYS!