The code from L2Jserver Freya, in Interlude. No errors in Eclipse and stuff. Using L2JFrozen (yes, I know, q_q). I have posted in their forum, but with no luck.
public class ConditionPlayerCp extends Condition
{
private final int _cp;
public ConditionPlayerCp(int cp)
{
_cp = cp;
}
@Override
public boolean testImpl(Env env)
{
return env.player.getCurrentCp() * 100/ env.player.getMaxCp() >= _cp;
}
}
Added to DocumentBase, again no errors.
else if ("cp".equalsIgnoreCase(a.getNodeName()))
{
int cp = Integer.decode(getValue(a.getNodeValue(), null));
cond = joinAnd(cond, new ConditionPlayerCp(cp));
}
Skill condition (XML), no error in console.
<cond msg="Can be only used when CP is 80% or higher.">
<player cp="80"/>
</cond>
The main problem is that in game, the condition does not take place. I used the skill with the CP condition and did a search on 'ConditionPlayerHp' to see where else I might need to add identical code to and imports. The only other place that had it was DocumentBase, and I added the imports and stuff. When I use the skill, there are no errors in console. It is supposed to be the 'over the body' skill (Titan) for Interlude. It's kind of like Frenzy, except your CP is supposed to be HIGHER then 80%, and then it takes all your other CP. I'm also unsure on how to add consume CP.
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.
DISCORD :
https://discord.com/users/325653525793210378
utchiha_market
telegram :
https://t.me/utchiha_market
SELLIX STORE :
https://utchihamkt.mysellix.io/
Join our server for more products :
https://discord.gg/uthciha-services
https://campsite.bio/utchihaamkt
Question
DONALD TRUMP 2016
The code from L2Jserver Freya, in Interlude. No errors in Eclipse and stuff. Using L2JFrozen (yes, I know, q_q). I have posted in their forum, but with no luck.
Added to DocumentBase, again no errors.
Skill condition (XML), no error in console.
The main problem is that in game, the condition does not take place. I used the skill with the CP condition and did a search on 'ConditionPlayerHp' to see where else I might need to add identical code to and imports. The only other place that had it was DocumentBase, and I added the imports and stuff. When I use the skill, there are no errors in console. It is supposed to be the 'over the body' skill (Titan) for Interlude. It's kind of like Frenzy, except your CP is supposed to be HIGHER then 80%, and then it takes all your other CP. I'm also unsure on how to add consume CP.
Thanks? D:
4 answers to this question
Recommended Posts
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.