You last visited: Today at 08:50
Advertisement
[Release/OpenNos] Prestige System
Discussion on [Release/OpenNos] Prestige System within the Nostale forum part of the MMORPGs category.
07/18/2018, 23:07
#16
elite*gold: 0
Join Date: Jul 2017
Posts: 397
Received Thanks: 60
I may have failed on two things, it's true that I see it now
07/19/2018, 02:13
#17
elite*gold: 0
Join Date: Jul 2013
Posts: 408
Received Thanks: 1,067
Quote:
Originally Posted by
redbull2905
I may have failed on two things, it's true that I see it now
I don't think so. You still have no clue what you're doing.
07/19/2018, 06:02
#18
elite*gold: 0
Join Date: Jul 2017
Posts: 397
Received Thanks: 60
so the first one is not useless having to test it is functional
So tell me how I can add more defenses
07/19/2018, 07:33
#19
elite*gold: 0
Join Date: May 2009
Posts: 1,006
Received Thanks: 1,023
Quote:
Originally Posted by
redbull2905
so the first one is not useless having to test it is functional
So tell me how I can add more defenses
+= instead of =+ maybe... and yes it is useless you can merge them
07/19/2018, 15:57
#20
elite*gold: 0
Join Date: Jul 2017
Posts: 397
Received Thanks: 60
I tried to make this code as complete as possible. I would like to ensure that the worn equipment is removed automatically
07/21/2018, 16:25
#21
elite*gold: 0
Join Date: Jul 2018
Posts: 6
Received Thanks: 0
Quote:
Originally Posted by
redbull2905
I tried to make this code as complete as possible. I would like to ensure that the worn equipment is removed automatically
Hello redbull,
Although u could use options as a checker
Code:
if (option == 0)
{
//
}
else
{
Session.Character.GenerateSay(Session.Character.SendPacket("Your Equipment is not empty!")), 11;
}
07/21/2018, 17:03
#22
elite*gold: 50
Join Date: Feb 2018
Posts: 151
Received Thanks: 131
Do you Read All message in this Thread ?
Code:
public void Prestige(Prestige PrestigePacket)
{
if (Session.CurrentMapInstance.MapInstanceType != MapInstanceType.BaseMapInstance)
{
return;
}
if (Sesssion.Character.Level != ServerManager.Instance.Configuration.MaxLevel ||
Session.Character.JobLevel != ServerManager.Instance.Configuration.MaxJobLevel ||
Session.Character.HeroLevel != ServerManager.Instance.Configuration.MaxHeroLevel)
{
Session.SendPacket(UserInterfaceHelper.GenerateMsg(Language.Instance.GetMessageFromKey("NOT_LEVEL_PRESTIGE"), 0));
return;
}
if (Session.Character.Inventory.Any(s => s.Type == InventoryType.Wear))
{
Session.SendPacket(UserInterfaceHelper.GenerateMsg(Language.Instance.GetMessageFromKey("EQ_NOT_EMPTY"), 0));
return;
}
Session.Character.ChangeClassPrestige(ClassType.Adventurer);
Session.Character.Prestige += 1;
ServerManager.Instance.ChangeMap(Session.Character.CharacterId);
// RewardsHelper.Instance.GetLevelUpRewards(Session);
LogHelper.Instance.InsertCommandLog(Session.Character.Name, Session.Character.CharacterId, PrestigePacket, Session.IpAddress);
}
07/21/2018, 18:41
#23
elite*gold: 0
Join Date: Jul 2017
Posts: 397
Received Thanks: 60
when I make the command it makes the server crash
07/21/2018, 19:19
#24
elite*gold: 0
Join Date: Jun 2018
Posts: 61
Received Thanks: 4
public short RespawnMapTypeId @
07/21/2018, 19:51
#25
elite*gold: 0
Join Date: Jul 2017
Posts: 397
Received Thanks: 60
Quote:
Originally Posted by
Zanouu
Do you Read All message in this Thread ?
Code:
public void Prestige(Prestige PrestigePacket)
{
if (Session.CurrentMapInstance.MapInstanceType != MapInstanceType.BaseMapInstance)
{
return;
}
if (Sesssion.Character.Level != ServerManager.Instance.Configuration.MaxLevel ||
Session.Character.JobLevel != ServerManager.Instance.Configuration.MaxJobLevel ||
Session.Character.HeroLevel != ServerManager.Instance.Configuration.MaxHeroLevel)
{
Session.SendPacket(UserInterfaceHelper.GenerateMsg(Language.Instance.GetMessageFromKey("NOT_LEVEL_PRESTIGE"), 0));
return;
}
if (Session.Character.Inventory.Any(s => s.Type == InventoryType.Wear))
{
Session.SendPacket(UserInterfaceHelper.GenerateMsg(Language.Instance.GetMessageFromKey("EQ_NOT_EMPTY"), 0));
return;
}
Session.Character.ChangeClassPrestige(ClassType.Adventurer);
Session.Character.Prestige += 1;
ServerManager.Instance.ChangeMap(Session.Character.CharacterId);
// RewardsHelper.Instance.GetLevelUpRewards(Session);
LogHelper.Instance.InsertCommandLog(Session.Character.Name, Session.Character.CharacterId, PrestigePacket, Session.IpAddress);
}
again I use different codes of your zanou your codes give me an error
07/21/2018, 20:15
#26
elite*gold: 50
Join Date: Feb 2018
Posts: 151
Received Thanks: 131
Code:
if (session.Character.Inventory.All(i => i.Value.Type == InventoryType.Wear))
{
session.SendPacket(
UserInterfaceHelper.Instance.GenerateMsg(
Language.Instance.GetMessageFromKey("EQ_NOT_EMPTY"), 0));
return;
}
For ON.NosWings Source
07/22/2018, 21:54
#27
elite*gold: 0
Join Date: May 2009
Posts: 1,006
Received Thanks: 1,023
Quote:
Originally Posted by
redbull2905
again I use different codes of your zanou your codes give me an error
Come on it’s just missing a .Value at least try to understand and not only copy pasta...
07/23/2018, 17:03
#28
elite*gold: 0
Join Date: Jul 2017
Posts: 397
Received Thanks: 60
your code does not work I become an adventurer even having the stuff worn
07/23/2018, 17:07
#29
elite*gold: 6
Join Date: Dec 2010
Posts: 297
Received Thanks: 87
Quote:
Originally Posted by
redbull2905
your code does not work I become an adventurer even having the stuff worn
Pls unistall windows at you PC, read the code
07/23/2018, 22:16
#30
elite*gold: 30
Join Date: Sep 2014
Posts: 594
Received Thanks: 316
Quote:
Originally Posted by
Ortator
Pls unistall windows at you PC, read the code
actually i also dont understand why he become an adventure even though he is wearing eq, to be honest i dont understand the whole second if codition, doesnt it say if your characters is wearing something then you jump out of the methode due to that return?
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 +2. The time now is 08:51 .