Register for your free account! | Forgot your password?

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

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

Advertisement



Help Heroic Level OpenNos Error

Discussion on Help Heroic Level OpenNos Error within the Nostale forum part of the MMORPGs category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Nov 2013
Posts: 9
Received Thanks: 0
Help Heroic Level OpenNos Error

Hello,

I have a problem for the heroic level...

I put the code of prosecutor in:
OpenNos. GameObject, Character.cs, GenerateXp

That gives:

Quote:
private void GenerateXp(MapMonster monster, bool isMonsterOwner)
{
if (Session.Character.Level = 90)
{
Session.Character.HeroLevel = 1;
}

NpcMonster monsterinfo = monster.Monster;
if (!DAOFactory.PenaltyLogDAO.LoadByAccount(AccountId ).Any(s => s.Penalty == PenaltyType.BlockExp && s.DateEnd > DateTime.Now))
{

The problem for the line yew (Session.Character.Level = 90)
Impossible to convert implicitly ' byte ' en ' bool '

And when I create a character, I up level 2 and I have level 1 heroic...





Help me svp
Attached Images
File Type: jpg erreur.jpg (20.4 KB, 25 views)
teddy45100 is offline  
Old 03/28/2017, 10:42   #2


 
Liihes's Avatar
 
elite*gold: 0
Join Date: Dec 2012
Posts: 2,728
Received Thanks: 934
Quote:
if (Session.Character.Level = 90)
In c# the Operator '=' stores the value of its right-hand Operand to the storage Location of ist left-hand Operand. Try using '==' instead of '='.
'==' checks if the right-hand Operand has the same value like the left-hand Operand, and if, it returns true. This should fix this problem.

Take a look at (I've choosen French language for u):
(=)
(==)
Liihes is offline  
Thanks
1 User
Old 03/29/2017, 07:47   #3

 
Singleplayer™'s Avatar
 
elite*gold: 3
Join Date: Feb 2016
Posts: 1,291
Received Thanks: 321
private void GenerateXp(MapMonster monster, bool isMonsterOwner)
{
if (Session.Character.Level >= 90)
{
if (Session.Character.HeroLevel <=55)
{
Session.Character.HeroLevel++;
}
}
Singleplayer™ is offline  
Thanks
1 User
Old 03/31/2017, 18:04   #4
 
elite*gold: 0
Join Date: Nov 2013
Posts: 9
Received Thanks: 0
Thank you, problem solved
teddy45100 is offline  
Reply


Similar Threads Similar Threads
Error opennos :v
05/22/2017 - Nostale - 3 Replies
error opennos in vps .. It gives me error both in login, as in the world. Sorry for my english https://i.imgur.com/ISYvMYb.png http://i.imgur.com/fnR1LuC.png
OpenNos Error
03/07/2017 - Nostale - 6 Replies
Hello guys, first of all, sorry for my bad english Today i get my VPS and i installed it perfectly, without any error and following exactly the video of Shido https://www.youtube.com/watch?v=eS3QwuGl7Uc (I installed some servers of opennos so I know) And i openned the server to test when I saw so I can not connect (I did with the correct port and all was correct) Then, installing the registerpage i get another error, in the VPS i can access to the registerpage and register successfuly...
Error in OpenNos Register-Page
03/03/2017 - Nostale - 0 Replies
Good elitepvp community, I've been trying to solve a bug that I have when trying to enter the browser to the registration page and it is the following error: http://i65.tinypic.com/2n01pp1.jpg Thx u HELP me please.. i pay for help.. add me on Skype: gatohv7hd thx!!
Error OpenNos
02/19/2017 - Nostale - 0 Replies
Hello! I've a little problem, after the server was "on" as 2 hours later, this shutdown and i get this message .. Any help? An unhandled exception of type 'System.Runtime.Serialization.SerializationExcepti on' occurred in System.Reactive.Core.dll Additional information: Invalid JSON string
error opennos in my PC
02/18/2017 - Nostale - 0 Replies
error install sql 2016 in my pc... Imgur: The most awesome images on the Internet http://imgur.com/a/yf6ys



All times are GMT +1. The time now is 12:08.


Powered by vBulletin®
Copyright ©2000 - 2026, 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 ©2026 elitepvpers All Rights Reserved.