hello I have a doubt I'm creating a configuration to limit casting speed for each class but if the value of a class is different from the other I have the value of the last configuration.
I created a loop to map all configuration:
int val = (int) calcStat(Stats.MAGIC_ATTACK_SPEED, base, null, null);
for (String className : Config.LIMIT_CASTING_SPEED.keySet())
{
if (Config.LIMIT_CASTING_SPEED.containsKey(_actor.getClassId().toString()) && val > Config.LIMIT_CASTING_SPEED.get(className))
val = Config.LIMIT_CASTING_SPEED.get(className);
}
Cardinal-1000;Arcana Lord-1300
let's say if the value is like this I get 1300 for all.
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've been trying to set-up an Interlude server for the past few days and did get one up and running, but it's a mess.
Even the "gold" standard files shared here didn't give better results.
I am wondering which are the current best projects to invest in?
- AdvExt64 looks like crap - no offense to the developers.
- And I've seen a few more related projects - Athena Project? also not good looking in general.
Is it true L2Reborn is Java based?
Really curious to know if there are good server packs or services to buy there - protocol 110? I really dig the look and feel of l2reborn.
Let me know what you guys think
DISCORD :
utchiha_market
telegram :
https://t.me/utchiha_market
SELLIX STORE :
https://utchiha.sellpass.io/
Join our server for more products :
https://discord.gg/uthciha-services
https://campsite.bio/utchihaamkt
DISCORD :
utchiha_market
telegram :
https://t.me/utchiha_market
SELLIX STORE :
https://utchiha.sellpass.io/
Join our server for more products :
https://discord.gg/uthciha-services
https://campsite.bio/utchihaamkt
DISCORD :
utchiha_market
telegram :
https://t.me/utchiha_market
SELLIX STORE :
https://utchiha.sellpass.io/
Join our server for more products :
https://discord.gg/uthciha-services
https://campsite.bio/utchihaamkt
Question
DzStunk
hello I have a doubt I'm creating a configuration to limit casting speed for each class but if the value of a class is different from the other I have the value of the last configuration.
I created a loop to map all configuration:
int val = (int) calcStat(Stats.MAGIC_ATTACK_SPEED, base, null, null); for (String className : Config.LIMIT_CASTING_SPEED.keySet()) { if (Config.LIMIT_CASTING_SPEED.containsKey(_actor.getClassId().toString()) && val > Config.LIMIT_CASTING_SPEED.get(className)) val = Config.LIMIT_CASTING_SPEED.get(className); }
Cardinal-1000;Arcana Lord-1300
let's say if the value is like this I get 1300 for all.
Fixed I used the java 17 documentation to understand a little about Maps Map (Java SE 17 & JDK 17) (oracle.com)
3 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.