SirrSquirtlle Posted September 27, 2018 Posted September 27, 2018 Anytime I Try To Summon Something Through A Player Skill (Item Summons Work For Some Reason) I Get This Buttload Of Messages In My Console :( Pls Help?
0 Jeptiska Posted October 26, 2018 Posted October 26, 2018 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 Tryskell Posted October 26, 2018 Posted October 26, 2018 What's your L2ServitorInstance#getMaxHp() (the whole method), and point also the line 377.
0 Jeptiska Posted October 27, 2018 Posted October 27, 2018 @Override public int getMaxHp() { return (int) (super.getMaxHp() + (getActingPlayer().getMaxHp() * (getActingPlayer().getServitorShareBonus(Stats.MAX_HP) - 1.0))); }
0 Tryskell Posted October 29, 2018 Posted October 29, 2018 (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 October 29, 2018 by Tryskell
Question
SirrSquirtlle
Anytime I Try To Summon Something Through A Player Skill (Item Summons Work For Some Reason) I Get This Buttload Of Messages In My Console :( Pls Help?
4 answers to this question
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now