Someone could help me with saving the
+1 in the prestige system, since the PrestigeLevel field is in the
Character table, it is imported with
migration but the status is not updated to +1 so if someone could give me a query to be able to make the
PrestigeLevel field of the table below a picture of the code
code that I use
Code:
///<summary>
/// $Prestige
/// </summary>
/// <param name="PrestigePacket"></param>
public void Prestige(PrestigePacket PrestigePacket)
{
if (PrestigePacket != null)
{
if (Session.Character.Level == 250
&& Session.Character.HeroLevel == 50
&& Session.Character.Inventory.CountItemInAnInventory(InventoryType.Wear) == 0)
{
CommunicationServiceClient.Instance.SendMessageToCharacter(new SCSCharacterMessage
{
DestinationCharacterId = null,
SourceCharacterId = Session.Character.CharacterId,
SourceWorldId = ServerManager.Instance.WorldId,
Message = $"Player {Session.Character.Name} prestige to + {Session.Character.PrestigeLevel}",
Type = MessageType.Shout
});
Session.Character.PrestigeLevel +=1;
Session.Character.ChangeClass(ClassType.Adventurer);
Session.Character.Save();
Session.Character.GiftAdd(5422, 5);
Session.Character.Level = 1;
Session.Character.JobLevel = 1;
Session.Character.HeroLevel = 1;
Session.Character.GenerateLev();
Session.Character.Inventory.ClearInventory();
ServerManager.Instance.ChangeMapInstance(Session.Character.CharacterId,
Session.Character.MapInstanceId, Session.Character.PositionX, Session.Character.PositionY,
true);
Session.SendPacket(StaticPacketHelper.Cancel(2));
}
else
{
Session.SendPacket(Session.Character.GenerateSay("Debes desequipar todos tus item y ser level 250 H50", 15));
Session.SendPacket(Session.Character.GenerateSay("You must dequip all your items and be level 250 H50 ", 15));
}
}
}
[Only registered and activated users can see links. Click Here To Register...]
[Only registered and activated users can see links. Click Here To Register...]