elitepvpers

elitepvpers (https://www.elitepvpers.com/forum/)
-   Nostale (https://www.elitepvpers.com/forum/nostale/)
-   -   [Release/OpenNos] Prestige System (https://www.elitepvpers.com/forum/nostale/4498176-release-opennos-prestige-system.html)

Saber none 08/16/2018 00:33

Quote:

Originally Posted by 0Lucifer0 (Post 37074869)
He is taking about the last 2 things. With google translate which didn’t translated truc and he didn’t read after google translation.... he basicly want to have the prestige in the name and do something with stats. But the name var shouldn’t be changed and there is no details of what he want to do on stats...

hm i might be blind but where can you see that he is trying to do something with the current sessions name?

0Lucifer0 08/16/2018 00:39

Not session name but charname “add the +1 on the name“

Saber none 08/16/2018 09:29

Quote:

Originally Posted by 0Lucifer0 (Post 37075107)
Not session name but charname “add the +1 on the name“

ah yeah i am actually blind sorry xD

redbull2905 09/02/2018 13:34

I still have a problem. I managed to put the P0 in front of the nicks

[IMG=expandable: 1]https://cdn.discordapp.com/attachments/485772240315482114/485773108377026583/Screenshot_10.png[/IMG]

the problem is when the prestige passes, the P0 becomes P1 but after a disconnect and reconnect or restart the server It becomes again in P0 and also the players sees their P0 but other players do not see it display

[IMG=expandable: 1]https://cdn.discordapp.com/attachments/485763488170639360/485764281598476300/unknown.png[/IMG]

[NH]Pyro 09/02/2018 16:05

Quote:

Originally Posted by redbull2905 (Post 37107088)
I still have a problem. I managed to put the P0 in front of the nicks

[IMG=expandable: 1]https://cdn.discordapp.com/attachments/485772240315482114/485773108377026583/Screenshot_10.png[/IMG]

the problem is when the prestige passes, the P0 becomes P1 but after a disconnect and reconnect or restart the server It becomes again in P0 and also the players sees their P0 but other players do not see it display

[IMG=expandable: 1]https://cdn.discordapp.com/attachments/485763488170639360/485764281598476300/unknown.png[/IMG]

Code ?

redbull2905 09/02/2018 16:31

Spoiler:
/// <summary>
/// $Prestige
/// </summary>
/// <param name="prestigePacket"></param>
public void Prestige(PrestigePacket prestigePacket)
{
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)
{
CommunicationServiceClient.Instance.SendMessageToC haracter(new SCSCharacterMessage
{
DestinationCharacterId = null,
SourceCharacterId = Session.Character.CharacterId,
SourceWorldId = ServerManager.Instance.WorldId,
Message = $"{Session.Character.Name} est passé prestige{Session.Character.PrestigeLevel}",
Type = MessageType.Shout
});
Session.Character.ChangeClass(ClassType.Adventurer );
Session.Character.Prestige += 1;
Session.Character.Level = 1;
Session.Character.HeroLevel = 0;
Session.Character.JobLevel = 1;
Session.Character.HPMax += 5000;
Session.Character.MPMax += 5000;
Session.Character.DistanceDefence += 500;
Session.Character.MagicalDefence += 500;
Session.Character.Defence += 500;
Session.Character.GiftAdd(1, 1, 8, 10);
Session.Character.GiftAdd(8, 1, 8, 10);
Session.Character.GiftAdd(12, 1, 8, 10);
Session.Character.GenerateLev();
Session.Character.GenerateLevelUp();
ServerManager.Instance.ChangeMap(Session.Character .CharacterId);
Session.SendPacket(StaticPacketHelper.Cancel(2));
}
else
{
Session.SendPacket("msg 4 Tu n'as pas le niveau requis !");
}
}

[IMG=expandable: 1]https://cdn.discordapp.com/attachments/485772240315482114/485819602161500191/unknown.png[/IMG]
[IMG=expandable: 1]https://cdn.discordapp.com/attachments/485772240315482114/485819945263955968/unknown.png[/IMG]
[IMG=expandable: 1]https://cdn.discordapp.com/attachments/485772240315482114/485820144816226304/unknown.png[/IMG]
[IMG=expandable: 1]https://cdn.discordapp.com/attachments/485772240315482114/485820324244619269/unknown.png[/IMG]

0Lucifer0 09/02/2018 21:55

Quote:

Originally Posted by redbull2905 (Post 37107088)
I still have a problem. I managed to put the P0 in front of the nicks

[IMG=expandable: 1]https://cdn.discordapp.com/attachments/485772240315482114/485773108377026583/Screenshot_10.png[/IMG]

the problem is when the prestige passes, the P0 becomes P1 but after a disconnect and reconnect or restart the server It becomes again in P0 and also the players sees their P0 but other players do not see it display

[IMG=expandable: 1]https://cdn.discordapp.com/attachments/485763488170639360/485764281598476300/unknown.png[/IMG]

There are two packets(in and cinfo) and you are not reloading the variable

redbull2905 09/02/2018 22:32

for the display problem it's good now there is the problem of P1 repeating P0 after disconnection or reboot

Petonio 09/11/2018 16:00

My eyes are burning

Quote:

Originally Posted by redbull2905 (Post 37108115)
for the display problem it's good now there is the problem of P1 repeating P0 after disconnection or reboot

This is a different problem... you are not saving the damn Prestige Level so after reboot the Prestige is back to 0 and that's why you have P0 after logging back in...

AnayC 02/05/2019 21:01


Hello good afternoon, I would like to know how to do the migration, I see the fact of making the migration and being able to keep the prestige but that the file I have to put or that the code I have to put in order to make the migration

0Lucifer0 02/05/2019 21:39

Doesn’t seems like you searched a lot before asking... [Only registered and activated users can see links. Click Here To Register...]

AfterLife- 02/05/2019 21:44

I don't actually get the question here.
Pretending that your Problem is, that you don't know how to use the code..
The answer ist literally the first Post..

Quote:

Originally Posted by ImTheReal (Post 36984691)
Hey folks,
Step 1: Add a CommandPacket!
- For this action, you need to visit /OpenNos.GameObjects/Packets/CommandPackets. You need to create a class, which is called "PrestigePacket.cs".

Step 2: Creating a Handler!
- Visit /OpenNos.Handler/CommandPacketHandler.cs
After you opened it up, you can create a new Code.

There is nothing to add to those two steps besides that you might not've reached the Requirements yet.

Quote:

Originally Posted by ImTheReal (Post 36984691)
Requirements
To add the Code: Knowledge 4/10
To edit it the way you want: 5/10
To add more benefits, or recode it: 7/10


AnayC 02/05/2019 23:51


That has not saved me the level of prestige, there must be a migration so that there is a level saved, no?

InnoTx 02/06/2019 01:26

Quote:

Originally Posted by AnayC (Post 37381169)

That has not saved me the level of prestige, there must be a migration so that there is a level saved, no?

Session.Character.Save();

Does that awnser ur Question?

AnayC 02/06/2019 02:08

Quote:

Originally Posted by InnoTx (Post 37381287)
Session.Character.Save();

Does that awnser ur Question?

I regret to say that my question does not answer, there must be a field or table where the level information is stored, not?:confuso:


All times are GMT +2. The time now is 08:20.

Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.