|
You last visited: Today at 12:31
Advertisement
[Release/OpenNos] Prestige System
Discussion on [Release/OpenNos] Prestige System within the Nostale forum part of the MMORPGs category.
02/06/2019, 02:18
|
#61
|
elite*gold: 100
Join Date: Dec 2016
Posts: 342
Received Thanks: 82
|
ou yeah i know what u mean now but idk how to add it on Database.
|
|
|
02/06/2019, 02:41
|
#62
|
elite*gold: 0
Join Date: Jan 2018
Posts: 13
Received Thanks: 1
|
Quote:
Originally Posted by InnoTx
Session.Character.Save();
Does that awnser ur Question?
|
Quote:
Originally Posted by InnoTx
ou yeah i know what u mean now but idk how to add it on Database.
|
Would you know how to do that to add it to the database?
|
|
|
02/06/2019, 02:43
|
#63
|
elite*gold: 100
Join Date: Dec 2016
Posts: 342
Received Thanks: 82
|
Quote:
Originally Posted by AnayC
Would you know how to do that to add it to the database?
|
Sorry how that works idk ...
|
|
|
02/06/2019, 04:05
|
#64
|
elite*gold: 48
Join Date: Jan 2010
Posts: 647
Received Thanks: 1,789
|
Quote:
Originally Posted by AnayC
Would you know how to do that to add it to the database?
|
OpenNos.DAL.EF, go in Entities, edit the Character class, add the things you need to save that are not already in the class, , generate a migration, ensure the mapping from Entity to DTO is done rightly (same naming or custom property value mapping), enjoy.
|
|
|
02/06/2019, 04:09
|
#65
|
elite*gold: 0
Join Date: Jan 2018
Posts: 13
Received Thanks: 1
|
Quote:
Originally Posted by val77
OpenNos.DAL.EF, go in Entities, edit the Character class, add the things you need to save that are not already in the class, , generate a migration, ensure the mapping from Entity to DTO is done rightly (same naming or custom property value mapping), enjoy.
|
Ty +1
:manos abajo:
|
|
|
02/07/2019, 16:31
|
#66
|
elite*gold: 0
Join Date: Jan 2018
Posts: 13
Received Thanks: 1
|
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));
}
}
}
|
|
|
02/08/2019, 00:55
|
#67
|
elite*gold: 0
Join Date: Jul 2017
Posts: 397
Received Thanks: 60
|
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.Level == 250 && Session.Character.HeroLevel == 100 && Session.Character.Prestige < 10)
{
Session.Character.Prestige++;
ServerManager.Shout(Name + " est passé prestige " + Prestige);
Session.SendPacket(Session.Character.GenerateLev());
Session.SendPacket(Session.Character.GenerateIn());
Session.SendPacket(Session.Character.GenerateCInfo());
Session.SendPacket(Session.Character.GenerateStat());
Session.Character.Save();
Session.Character.Inventory.RemoveItemFromInventory(inv.Id);
ServerManager.Instance.ChangeMapInstance(Session.Character.CharacterId,
Session.Character.MapInstanceId, Session.Character.PositionX, Session.Character.PositionY,
true);
}
else
{
Session.SendPacket("msg 4 Tu n'as pas le niveau requis !");
}
}
}
|
|
|
02/08/2019, 17:44
|
#68
|
elite*gold: 0
Join Date: Jan 2018
Posts: 13
Received Thanks: 1
|
Quote:
Originally Posted by redbull2905
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.Level == 250 && Session.Character.HeroLevel == 100 && Session.Character.Prestige < 10)
{
Session.Character.Prestige++;
ServerManager.Shout(Name + " est passé prestige " + Prestige);
Session.SendPacket(Session.Character.GenerateLev());
Session.SendPacket(Session.Character.GenerateIn());
Session.SendPacket(Session.Character.GenerateCInfo());
Session.SendPacket(Session.Character.GenerateStat());
Session.Character.Save();
Session.Character.Inventory.RemoveItemFromInventory(inv.Id);
ServerManager.Instance.ChangeMapInstance(Session.Character.CharacterId,
Session.Character.MapInstanceId, Session.Character.PositionX, Session.Character.PositionY,
true);
}
else
{
Session.SendPacket("msg 4 Tu n'as pas le niveau requis !");
}
}
}
|
I'm sorry to tell you that your answer does not solve my problem  @
|
|
|
02/08/2019, 19:39
|
#69
|
elite*gold: 0
Join Date: May 2016
Posts: 10
Received Thanks: 1
|
Change
Session.Character.Prestige++;
to
Session.Character.PrestigeLevel++;
Redbull just ctrl+c ctrl+v his source.
|
|
|
02/08/2019, 21:35
|
#70
|
elite*gold: 0
Join Date: Jul 2017
Posts: 397
Received Thanks: 60
|
my source = opennos-dev ciapa in addition to work
and depends you can prestige ++ or prestigeLevel ++ it depends on you being put
|
|
|
02/12/2019, 22:19
|
#71
|
elite*gold: 100
Join Date: Dec 2016
Posts: 342
Received Thanks: 82
|
@  Hey is ur Problem solved if yes could u say how u did it ?
the problem is i can't safe the Prestige...
for example :
if im Prestige 1 and go offline it should Safe it but if i Relog im Prestige 0 again.
|
|
|
02/13/2019, 12:18
|
#72
|
elite*gold: 0
Join Date: Jan 2017
Posts: 36
Received Thanks: 16
|
Prestige = input.Prestige.
output.Prestige = input.Prestige
Or something like that, I don't remember
|
|
|
02/13/2019, 12:42
|
#73
|
elite*gold: 100
Join Date: Dec 2016
Posts: 342
Received Thanks: 82
|
Quote:
Originally Posted by GGGGame
Prestige = input.Prestige.
output.Prestige = input.Prestige
Or something like that, I don't remember 
|
i have that allready but it still dont work ... ;(
|
|
|
02/13/2019, 19:27
|
#74
|
elite*gold: 0
Join Date: May 2016
Posts: 10
Received Thanks: 1
|
Do new migration with database. It was somewhere in forum.
ps. I dont remeber how to exactly do it.
|
|
|
02/13/2019, 23:32
|
#75
|
elite*gold: 100
Join Date: Dec 2016
Posts: 342
Received Thanks: 82
|
Quote:
Originally Posted by moj333
Do new migration with database. It was somewhere in forum.
ps. I dont remeber how to exactly do it.
|
i have allready a migration with Prestige..... for Database....
Edit: after i Set on Configuration.cs the AutomaticMigrationsEnabled = true; it work
|
|
|
 |
|
Similar Threads
|
OpenNos "The project 'OpenNos.Login' failed to build."
06/19/2019 - Nostale - 11 Replies
Hello! When I put in update-database in Visual Studio I get the 'The project 'OpenNos.Login' failed to build.' error. I already did what was on the troubleshoot before I put it in. I've been at this for hours and I can't figure it out. Can someone help me please?
|
[OpenNos] Prestige level not saving
02/13/2019 - Nostale - 0 Replies
Hey Community.
after a lot of try and do i dont get the prestigeLevel safe....
i looked a lot of Threads but it still dont safe .. could someone help me ?
btw. i use the Cracked Ciapa Source.
its done i just Set AutomaticMigrationsEnabled = true;
|
[OpenNos] ¿How to select the project OpenNos.DAL.EF?
05/04/2018 - Nostale - 4 Replies
Hello, I have a problem with my visual studio 2017, it turns out that to be able to give the update-database command I must have the project OpenNos.DAL.EF But the thing is that in my visual studio there is no option to select the project ... I need help!:D:D
|
Class Reborn Cap 110 - Dg 11- Pvp System- Uniques System -Job System- Coin System
04/09/2018 - SRO PServer Advertising - 17 Replies
http://i.epvpimg.com/HXIucab.jpg
http://i.epvpimg.com/Ht37fab.png
https://www.youtube.com/watch?v=1vJSSpEqTZw
http://i.epvpimg.com/Ht37fab.png
Site
ClassReborn Online
|
[opennos]The project 'OpenNos.Login' failed to build.
08/03/2017 - Nostale - 9 Replies
Hello I have a problem with the package manager console to run the update- database command to opennos soon as I executes the command, he said: The project ' opennos.login ' failed to build
What to do? I made the updates to Microsoft Visual Studio thank you ..
|
All times are GMT +1. The time now is 12:33.
|
|