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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...