Jump to content

Recommended Posts

Posted (edited)

IL is the worst chronicle in terms of performance and optimization, try to spawn 10k kariks with PHX and make them cast a skill, you won't like what you're going to see

 

Once again it got nothing to do with client, and IL compared to GC is way more cleaner. I got ridiculous amount of lags on both GC / Classic clients on empty server zone. They even nerfed knownlist range on Classic.

 

And actually you simply CAN'T spawn 10k kariks with L2J on a same area with current L2J knownlist system (at least if each karik see each other, as they are supposed to do). Did you test it ?

Edited by Tryskell
Posted

Works on unity :D that's how I came to see 10k is client hard limit, it won't even show further NPC or player spawning in the area

Posted (edited)

Once again it got nothing to do with client, and IL compared to GC is way more cleaner. I got ridiculous amount of lags on both GC / Classic clients on empty server zone. They even nerfed knownlist range on Classic.

 

And actually you simply CAN'T spawn 10k kariks with L2J on a same area with current L2J knownlist system (at least if each karik see each other, as they are supposed to do). Did you test it ?

 

I said PHX, spawn them with PHX via script and NpcInfo packet, this will bring the client to its limits without server bottlenecks

Edited by xxdem
Posted
PvpAmount1 = 500

ColorForAmount1 = 293546

PvpAmount2 = 1000

ColorForAmount2 = 00ff00

PvpAmount3 = 1500

ColorForAmount3 = 0000ff

PvpAmount4 = 2500

ColorForAmount4 = ffff00

PvpAmount5 = 5000

ColorForAmount5 = ff0000

 

lol

Posted

 

PvpAmount1 = 500
ColorForAmount1 = 293546
PvpAmount2 = 1000
ColorForAmount2 = 00ff00
PvpAmount3 = 1500
ColorForAmount3 = 0000ff
PvpAmount4 = 2500
ColorForAmount4 = ffff00
PvpAmount5 = 5000
ColorForAmount5 = ff0000
 
lol

 

 

Maybe it doesn't look nice, but it is good enough  for my 15 minutes I spend

Posted

Maybe it doesn't look nice, but it is good enough  for my 15 minutes I spend

...copy pasting it

Posted (edited)
 

Maybe it doesn't look nice, but it is good enough  for my 15 minutes I spend

you can make it better 

 

example :

PvpAmount = 500,293546;1000,00ff00;1500,0000ff;2500,ffff00;5000,ff0000

load config 

public static Map<Integer, Integer> Color_name;

String spliter1= yourfolder.getProperty("PvpAmount", "");
String[] splitted = spliter1.split(";");
		
Color_name = new HashMap<>();
for (String s : splitted)
{
String[] a = s.split(",");
Color_name.put(Integer.parseInt(a[0]), Integer.decode("0x" + Integer.parseInt(a[1])));
}

used code

int state = 0;
		for (Entry<Integer, Integer> color : Config.Color_name.entrySet())
		{
			if (player.getPvpKills() >= color.getKey()&&player.getPvpKills() >= state)
				state = color.getKey();
		}
		
		if (state > 0)
			player.getAppearance().setNameColor(Config.Color_name.get(state));

 

it's one simple example who you can use it without many config  
( better is to use it with holder )
has better performance on many color names ( if you want the perfect performance )
Edited by pirama
Posted (edited)

...

 

 

You use a entrySet but don't even use getValue()... And do a .get( for nothing.

int state = 0;
for (Entry<Integer, Integer> color : Config.Color_name.entrySet())
{
	if (player.getPvpKills() >= color.getKey())
		state = color.getValue();
}
		
if (state > 0)
	player.getAppearance().setNameColor(state);

Latest aCis will introduce getIntIntHolderList() for StatsSet - getIntIntHolder(), and getDoubleArray() aswell.

Edited by Tryskell
Posted

You use a entrySet but don't even use getValue()... And do a .get( for nothing.

int state = 0;
for (Entry<Integer, Integer> color : Config.Color_name.entrySet())
{
	if (player.getPvpKills() >= color.getKey())
		state = color.getValue();
}
		
if (state > 0)
	player.getAppearance().setNameColor(state);

Latest aCis will introduce getIntIntHolderList() for StatsSet - getIntIntHolder(), and getDoubleArray() aswell.

 

i find you 

you are the bitch who spam bugs on rename :)

who you can get fail c/p ? just lol 

http://imgur.com/a/Yo9cE

Posted (edited)

i find you 

you are the bitch who spam bugs on rename :)

who you can get fail c/p ? just lol 

http://imgur.com/a/Yo9cE

 

Mate, what's your problem, you're ridiculous. I fixed your code. Check how entrySet is used, and thank me to teach you something new.

 

https://docs.oracle.com/javase/8/docs/api/java/util/Map.Entry.html

 

It looks like more the time passes, more you become ignorant, stupid and reckless. Normally it's the versus which happen for a normal human being : you become wiser and learn from mistakes.

Edited by Tryskell
Posted (edited)

Mate, what's your problem, you're ridiculous. I fixed your code. Check how entrySet is used, and thank me to teach you something new.

lol idiot you can't 1 c/p correct and talk ?

and you can't read ( is a simple example ) 

 

 

it's one simple example who you can use it without many config  
( better is to use it with holder )
has better performance on many color names ( if you want the perfect performance )

if you can , fix it better and stop the spam 

they maybe to need and value for change hue ( accordingly pvp ) the code is correct on this step ( It's just not the whole code )

Edited by pirama
Posted (edited)

lol idiot you can't 1 c/p correct and talk ?

and you can't read ( is a simple example ) 

 

if you can , fix it better and stop the spam 

they maybe to need and value for change hue ( accordingly pvp ) the code is correct on this step

 

When you provide public code (when you decide to do...), AT LEAST do it right. It's pointless to share code if it's not even the correct writting/use. Spreading invalid patterns is worst than not answering to a topic.

 

You use entrySet on a wrong manner, and your code could be more optimized, live with it.

 

Read my post again, and stop the childish anger, you will maybe figure what you did wrong.

Edited by Tryskell
Posted (edited)
 

When you provide public code (when you decide to do...), AT LEAST do it right. It's pointless to share code if it's not even the correct writting/use. Spreading invalid patterns is worst than not answering to a topic.

 

You use entrySet on a wrong manner, and your code could be more optimized, live with it.

 

Read my post again, and stop the childish anger, you will maybe figure what you did wrong.

 

 

int changecolor = 0;

 

changecolor = (color.getvalue()+(  player.getpvpkills() - color.getkey()));

 

player.getAppearance().setNameColor(changecolor);

 

ofc and you don't understand what i mean , so get it because you need it

Edited by pirama
Posted (edited)

 

 
 

 

int changecolor = 0;

 

changecolor = (color.getvalue()+(  player.getpvpkills() - color.getkey()));

 

player.getAppearance().setNameColor(changecolor);

 

ofc and you don't understand what i mean , so get it because you need it

 

 

Your entrySet exemple is still wrong. You're funny. :D

Edited by Tryskell
Guest
This topic is now closed to further replies.



×
×
  • Create New...