Help on Relot Attribute Points NPC

09/20/2008 04:52 stephanyd#1
her is my code i started but i'm stuck .. can someone check an eye on it and help me plz?
Quote:
if (CurrentNPC == 130)
{
if (Control == 1)
if (MyChar.InventoryContains(1088000, 1))
{
if (MyChar.RBCount > 1)
{
MyChar.RemoveItem(MyChar.ItemNext(1088000));
}
}
}
09/20/2008 05:07 Rechocto#2
next you need to set points to char.level-15 * 8

(i think you get 8 points per level? whatever the amount is)

and reset the attributes (char.str char.agi char.vit char.sprit) to what they are set to in Reborn()

then SaveChar()
09/20/2008 05:11 tao4229#3
Quote:
Originally Posted by Rechocto View Post
next you need to set points to char.level-15 * 8

(i think you get 8 points per level? whatever the amount is)

and reset the attributes (char.str char.agi char.vit char.sprit) to what they are set to in Reborn()

then SaveChar()
Eh.. 3 points per level
but better idea

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

Send all the "vital" packets for the statpoints

Char.StatP += x;

Send the vital packet for Statpoints...

that's about it.
09/20/2008 08:37 Rechocto#4
that would definitely work :p
09/20/2008 09:19 lordknight#5
someone help me...k...where i must put thats??
09/20/2008 10:39 $HaDoW#6
in client.cs -_-