Well, i have added mystery banquet quest , worked perfectly but i got some problems , i need some tips :
-when i realot the points from rebirthmaster (after getting full 900 Attr ) they reset as 537 Points only
i can leave the case code if anyone want to have a look
Code:
#region attribute 8
case 4:
{
dialog.Text("Hello there brave conqueror, if you have reborn, and you misplaced your atribute points or you want to set them another way, I'll reset your atribute points for one DragonBall. Do you accept?");
dialog.Option("Here is the DragonBall.", 8);
dialog.Option("I'll just leave", 255);
dialog.Send();
break;
}
case 8:
{
if (client.Entity.Reborn > 0)
{
if (client.Inventory.Contains(1088000, 1))
{
client.Inventory.Remove(1088000, 1);
if (client.Entity.Reborn != 0)
{
client.Entity.Agility = 0;
client.Entity.Strength = 0;
client.Entity.Vitality = 1;
client.Entity.Spirit = 0;
if (client.Entity.Reborn == 1)
{
client.Entity.Atributes = (ushort)(client.ExtraAtributePoints(client.Entity.FirstRebornLevel, client.Entity.FirstRebornLevel)
+ 52 + 3 * (client.Entity.Level - 15));
}
else
{
client.Entity.Atributes = (ushort)(client.ExtraAtributePoints(client.Entity.FirstRebornLevel, client.Entity.FirstRebornClass) +
client.ExtraAtributePoints(client.Entity.SecondRebornLevel, client.Entity.SecondRebornClass) + 52 + 3 * (client.Entity.Level - 15));
}
}
}
else
{
dialog.Text("You need a DragonBall.");
dialog.Option("I'll just leave", 255);
dialog.Send();
}
}
else
{
dialog.Text("You need to have atleast one rebirth .");
dialog.Option("I'll just leave", 255);
dialog.Send();
}
break;
}
#endregion






