OpenNos Hero Level Einstellen.

03/17/2017 00:49 xVxNakamixVx#1
Abend Ihr Freaks! :P
Wollte mal Fragen, ob jemand weiß wie ich es einstelle, das man ab Z.b Lvl 99 Automatisch Hero-Lvl 50 Hat? Weiß das Zufällig jemand? :)
Wäre sehr dankbar :)
Schönen tag wünsch ich noch.
03/17/2017 01:27 Prosecutor#2
Code:
if (Session.Character.Level = 99)
{
Session.Character.HeroLvl = 50;
}
Where to put? Find by yourself.

Regards,
Prosecutor
03/17/2017 18:01 @LRevolution#3
Quote:
Originally Posted by xVxNakamixVx View Post
Abend Ihr Freaks! :P
Wollte mal Fragen, ob jemand weiß wie ich es einstelle, das man ab Z.b Lvl 99 Automatisch Hero-Lvl 50 Hat? Weiß das Zufällig jemand? :)
Wäre sehr dankbar :)
Schönen tag wünsch ich noch.
Put the code Prosecutor wrote in OpenNos.GameObject, Character.cs, GenerateXp.
03/17/2017 18:15 Blowa#4
Just add the real algorithm... kinda easy...
03/27/2017 16:41 teddy45100#5
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 I svp
03/27/2017 16:53 0Lucifer0#6
if (Session.Character.Level = 99)
This is not a condition...
03/27/2017 17:31 teddy45100#7
Solved problem thank you to lucifer
03/27/2017 17:35 0Lucifer0#8
Conditional equality is done with ==
03/27/2017 17:42 teddy45100#9
Thank you lucifer <3