Help with Attribute Points NPC

12/05/2008 16:42 culo01#1
f (CurrentNPC == 80)
{
if (Control == 1)
if (MyChar.InventoryContains(1088000, 1))
{
if (MyChar.RBCount > 1===>2)
{
MyChar.RemoveItem(MyChar.ItemNext(1088000));
}
InternalDatabase.GetStats(MyChar);

ushort x = 0;
x += Char.Vit;
x += Char.Str;
x += Char.Agi;
x += Char.Spi;
MyChar.Spi = 0;
MyChar.Str = 0;
MyChar.Agi = 0;
MyChar.Vit = 0;

SendPacket(General.MyPackets.Vital((long)MyChar.UI D, 0, MyChar.Str));
SendPacket(General.MyPackets.Vital((long)MyChar.UI D, 0, MyChar.Agi));
SendPacket(General.MyPackets.Vital((long)MyChar.UI D, 0, MyChar.Vit));
SendPacket(General.MyPackets.Vital((long)MyChar.UI D, 0, MyChar.Spi))


can you see what i am doing wrong and help me out ??