Prestige system in item

11/22/2019 02:49 redbull2905#1
1: Opennos.GameObject.Item.SpecialItem
Code:
case 5000:
                    session.Character.PrestigeFunction(inv);
                    break;
2: Opennos.GameObject.Character

Code:
        public void PrestigeFunction(ItemInstance inv)
        {
            if (Session.Character.MapInstance != null)
            {
                if (Session.Character.Inventory.Any(s => s.Type == InventoryType.Wear))
                {
                    Session.SendPacket(UserInterfaceHelper.GenerateMsg(Language.Instance.GetMessageFromKey("EQ_NOT_EMPTY"), 0));
                    return;
                }

                if (Session.Character.Prestige < 30 && Session.Character.Level == 99 && Session.Character.HeroLevel == 50)
                {
                    Session.Character.Prestige++;
                    ServerManager.Shout(Name + " est passé prestige " + Prestige);
                    Session.Character.Level = 1;
                    Session.Character.HeroLevel = 0;
                    Session.Character.JobLevel = 1;
                    Session.Character.JobLevelXp = 0;
                    Session.Character.HeroXp = 0;
                    Session.Character.LevelXp = 0;
                    Session.SendPacket(Session.Character.GenerateLev());
                    Session.SendPacket(Session.Character.GenerateLevelUp());
                    Session.SendPacket(Session.Character.GenerateStat());
                    Session.Character.Inventory.RemoveItemFromInventory(inv.Id);
                    ServerManager.Instance.ChangeMap(Session.Character.CharacterId, 1, 80, 116);            
                    Session.SendPacket(Session.Character.GenerateSay(
                    Language.Instance.GetMessageFromKey("PRESTIGE_UP"), 0));
                }
                else
                {
                    Session.SendPacket("msg 4 Tu n'as pas le niveau requis !");
                }
            }
        }
3: Opennos.GameObject.Character(CharacterLife)

Code:
#region buff prestige
            if (PrestigeBuff.AddSeconds(30) <= DateTime.Now)
            {

                    if (Session.Character.Prestige >= 1)
                    {
                        AddBuff(new Buff(242, Level), BattleEntity);
                       
                    }
                    else
                    {
                        RemoveBuff(242);
                    }

                    if (Session.Character.Prestige >= 5)
                    {
                        AddBuff(new Buff(118, Level), BattleEntity);
                     
                    }
                    else
                    {
                        RemoveBuff(118);
                    }

                    if (Session.Character.Prestige >= 10)
                    {
                        AddBuff(new Buff(332, Level), BattleEntity);
                        
                    }
                    else
                    {
                        RemoveBuff(332);
                    }

                    if (Session.Character.Prestige >= 15)
                    {
                        AddBuff(new Buff(246, Level), BattleEntity);
                        
                    }
                    else
                    {
                        RemoveBuff(246);
                    }

                    if (Session.Character.Prestige >= 25)
                    {
                        AddBuff(new Buff(245, Level), BattleEntity);
                    }
                    else
                    {
                        RemoveBuff(245);
                    }

                    if (Session.Character.Prestige >= 29)
                    {

                        AddBuff(new Buff(411, Level), BattleEntity);
                       
                    }
                    else
                    {
                       RemoveBuff(411);
                    }
                    PrestigeBuff = DateTime.Now;
                
               
            }
            #endregion
4: Opennos.GameObject.Character GenerateLevelUp()

Code:
Prestige : {PrestigeLevel}
/!\ Ne pas oublier de rajouter vos public object { get; set; } "I forgot the name" '-'.
11/22/2019 04:56 InnoTx#2
yeah it doesnt allready exist that you copy paste one more time

btw. use switch instead of so much if´s lol
11/22/2019 10:30 Blowa#3
Best copy paste 2019, release more copy paste that you don't understand please
Amazing
11/22/2019 14:02 redbull2905#4
Quote:
Originally Posted by InnoTx View Post
yeah it doesnt allready exist that you copy paste one more time

btw. use switch instead of so much if´s lol
and you who takes the codes of the other sources to add them to yours shut up a little you start to worry about making your connoisseur when I see all your help threads This prestige does not exist on any other source it's batti who created it

Quote:
Originally Posted by val77 View Post
Best copy paste 2019, release more copy paste that you don't understand please
Amazing
When you know nothing, do not say anything you're still worse than innotx
11/22/2019 14:05 InnoTx#5
Quote:
Originally Posted by redbull2905 View Post
and you who takes the codes of the other sources to add them to yours shut up a little you start to worry about making your connoisseur when I see all your help threads This prestige does not exist on any other source it's batti who created it
its batti who created it and you release it ? xDDDD


I would rather stay quiet in your place before you even more embarrass yourself.
:kappa:
11/22/2019 14:07 redbull2905#6
This code is create for a very long time and it does not bother him.
Go back do your little waiter or everything is bug please
01/18/2020 14:37 IceTrailer#7
#closed