Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Nostale
You last visited: Today at 12:31

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[Release/OpenNos] Prestige System

Discussion on [Release/OpenNos] Prestige System within the Nostale forum part of the MMORPGs category.

Reply
 
Old 02/06/2019, 02:18   #61
 
InnoTx's Avatar
 
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.
InnoTx is offline  
Old 02/06/2019, 02:41   #62
 
AnayC's Avatar
 
elite*gold: 0
Join Date: Jan 2018
Posts: 13
Received Thanks: 1
Quote:
Originally Posted by InnoTx View Post
Session.Character.Save();

Does that awnser ur Question?
Quote:
Originally Posted by InnoTx View Post
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?
AnayC is offline  
Old 02/06/2019, 02:43   #63
 
InnoTx's Avatar
 
elite*gold: 100
Join Date: Dec 2016
Posts: 342
Received Thanks: 82
Quote:
Originally Posted by AnayC View Post
Would you know how to do that to add it to the database?
Sorry how that works idk ...
InnoTx is offline  
Old 02/06/2019, 04:05   #64

 
Blowa's Avatar
 
elite*gold: 48
Join Date: Jan 2010
Posts: 647
Received Thanks: 1,789
Quote:
Originally Posted by AnayC View Post
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.
Blowa is offline  
Old 02/06/2019, 04:09   #65
 
AnayC's Avatar
 
elite*gold: 0
Join Date: Jan 2018
Posts: 13
Received Thanks: 1
Quote:
Originally Posted by val77 View Post
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:
AnayC is offline  
Old 02/07/2019, 16:31   #66
 
AnayC's Avatar
 
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






AnayC is offline  
Old 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 !");
                }
            }
        }
redbull2905 is offline  
Old 02/08/2019, 17:44   #68
 
AnayC's Avatar
 
elite*gold: 0
Join Date: Jan 2018
Posts: 13
Received Thanks: 1
Quote:
Originally Posted by redbull2905 View Post
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 @
AnayC is offline  
Old 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.
moj333 is offline  
Old 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
redbull2905 is offline  
Old 02/12/2019, 22:19   #71
 
InnoTx's Avatar
 
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.
InnoTx is offline  
Old 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
GGGGame is offline  
Old 02/13/2019, 12:42   #73
 
InnoTx's Avatar
 
elite*gold: 100
Join Date: Dec 2016
Posts: 342
Received Thanks: 82
Quote:
Originally Posted by GGGGame View Post
Prestige = input.Prestige.

output.Prestige = input.Prestige

Or something like that, I don't remember
i have that allready but it still dont work ... ;(
InnoTx is offline  
Old 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.
moj333 is offline  
Old 02/13/2019, 23:32   #75
 
InnoTx's Avatar
 
elite*gold: 100
Join Date: Dec 2016
Posts: 342
Received Thanks: 82
Quote:
Originally Posted by moj333 View Post
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
InnoTx is offline  
Reply

Tags
nostale, opennos, prestige, pserver, system


Similar Threads 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.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.