Stuck with attribute points [ working on upgraded source ]

07/10/2017 05:16 m.yaser#1
i'm new with Staff iam trying to do right now , any tips or help would be highly appreciated

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
thanks in advance
07/10/2017 06:58 Spirited#2
Quote:
Originally Posted by m.yaser View Post
hep would be highly appreciated
I don't think you want hep, man.
You're welcome, in advance.
07/10/2017 22:32 m.yaser#3
Quote:
Originally Posted by Spirited View Post
I don't think you want hep, man.
You're welcome, in advance.
Know what i really didn't need help haha <3 thanks for your motivation i have figured it out

[Only registered and activated users can see links. Click Here To Register...]
07/10/2017 23:39 Spirited#4
Quote:
Originally Posted by m.yaser View Post
Know what i really didn't need help haha <3 thanks for your motivation i have figured it out

[Only registered and activated users can see links. Click Here To Register...]
Glad to hear. Sometimes it just takes some time away from the code to figure things out.