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.
I have a system where Accounts are saved on login screen for fast login. I am playing a server where this feature is not on the logic screen. How I can try to add this feature to the system?
I don't know what files I would have to touch.
Thanks!!
Hello everyone,
Given that he has lots of different projects but no concrete opinions..
I pose my request here.
Which serious Lineage2 HighFive project is the best choice?
For a server that can be custom and which can be suitable for a classic x10 server and an x1000 server for example?
L2J
Or we ideally have the source, in order to be able to add the farming systems, weapons and armor, npc...
Free or paid, it doesn't matter.
THANKS
Hello everyone,
Given that he has lots of different projects
but no concrete opinions..
I pose my request here.
Which serious Lineage2 HighFive project/emulator
is the best choice?
For a server that can be custom and
which can be suitable for a classic x10 server
and an x1000 server for example?
L2Java ideally
Or we ideally have the source,
in order to be able to add the farming systems,
weapons and armor, npc...
Free or paid, it doesn't matter.
THANKS
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.