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.
You indeed have to save player position over Enterworld to properly clean it up later (if you don't, even trying to delete packet content would eventually keep it up), that's what we do with debug packet (which is a reusable Map of ExServerPrimitive packets) on aCis.
It doesn't solve the FPS stuttering - more you draw/delete lines, more your client becomes laggy. It's like if client wasn't deleting drawn points/lines properly, but instead simply hide them and redrawn content above.
If you got a solution, I would happy to integrate it.
You should check aCis#Player _debug packet integration, it allows very big amount of lines/points to be drawn, it is also reusable.
https://gitlab.com/Tryskell/acis_public/-/blob/master/aCis_gameserver/java/net/sf/l2j/gameserver/model/actor/Player.java?ref_type=heads
https://gitlab.com/Tryskell/acis_public/-/blob/master/aCis_gameserver/java/net/sf/l2j/gameserver/network/clientpackets/EnterWorld.java?ref_type=heads
we sell website templates, make websites to order. Great selection at very good prices.
My contacts
discord : advert1231
telegram : https://t.me/ggwpins
DISCORD :
utchiha_market
telegram :
https://t.me/utchiha_market
SELLIX STORE :
https://utchihamkt.mysellix.io/
Join our server for more products :
https://discord.gg/hoodservices
https://campsite.bio/utchihaamkt
DISCORD :
utchiha_market
telegram :
https://t.me/utchiha_market
SELLIX STORE :
https://utchihamkt.mysellix.io/
Join our server for more products :
https://discord.gg/hoodservices
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:
Link to comment
Share on other sites
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.