Jump to content

Question

4 answers to this question

Recommended Posts

  • 0
Posted
On 8/30/2018 at 8:50 PM, Jeptiska said:

Hello,
I have a problem running IL server which is OK. The Highfive team and the server are running without errors. But when I want to connect through a client, it is me that throws servers from IL. I will not get past the server list. Please help. 
 

 

I have the problem I have not found resolved yet.

 

  • 0
Posted
    @Override
    public int getMaxHp()
    {
        return (int) (super.getMaxHp() + (getActingPlayer().getMaxHp() * (getActingPlayer().getServitorShareBonus(Stats.MAX_HP) - 1.0)));
    }
 
  • 0
Posted (edited)

You have to log following content :

 

getActingPlayer()

 

first, then if everything is fine (returns the object reference and not "null"), the acquired level :

 

getActingPlayer().getServitorShareBonus(Stats.MAX_HP) 

It's only a guess since it's not my chronicle, but since you are under the process of creating the summon, I guess it's not yet created and you ask info about it, which is simply impossible. It could work if, let's say, you use template data from NPC template instead of SummonStat data (since SummonStat data isn't yet created when you ask about it...).

 

Or at least move the content using getMaxHp() AFTER the summon creation (at least, AFTER SummonStat creation).

 

A simple test / not retail fix is to remove the whole method (the whole thing you quoted), which will use automatically the "mother" method instead (the "super.getMaxHp()" part).

Edited by Tryskell

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..