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.



  • Posts

    • L2jBayev Chronicle 3: Rise of Darkness – AiEngine Edition In short: this is a C3 build with a full-fledged AI engine, live mercenaries, a built-in quiz, a “personal account” in the Community Board, and server logic neatly distributed across thread pools. The project is about a living world without lags : bots farm, communicate, gather parties, teleport along routes, and the server remains cold and stable.   What's inside (the most delicious) 1) Full-fledged AI engine for characters Behavior types: farming ( FarmAI ), combat ( CombatAI ), party logic ( PartyAI ), trading/walking ( TraderAI / WalkerAI ), support roles (healer, etc.). Class profiles: for mages/archers/daggers, etc., “smart” skill rotations, distance control, sleep/save skills, healing, loot pickup, etc. are implemented (see examples of classes like SpellSingerAI , NecromancerAI , etc.). Self-healing and teleports: when dying, the bot goes through a sequence of steps without sleep()- via AITaskSequence + AITeleportToLocTask , searches for the nearest gatekeeper and teleports via TeleportationManager with routes depending on the level. Auto-support: auto-nipples, arrows/bones, smart auto-proceduring of buffs and auto-banks CP/HP/MP with thresholds - all sewn into the auxiliary EtcPlayersAi . Chat context: ChatManagerAi processes mentions, makes responses with delays (anti-flood), supports party chat and “human” reaction. Understanding: ChatManagerAi system  processes the dialogue, bots remember your aggression and insults, they start to respond less often to modern users, stop accepting or inviting to a group (party) and when it goes beyond the peak they will simply merge you, and every time they see you on the PC, there is an opportunity to measure more often, communicate respectfully and beautifully, in general, a “human” reaction. Why a player/admin needs this: bots actually “live”, farm and interact, and don’t just stand on macros. This is a great background for online and PvE action.   2) Mercenaries (Mercenary system) Full-fledged companion character : L2MercenaryInstance with its own MercenaryAI (movement, attack, support, consumables, shots). Behavior modes: DEFENDER / SUPPORT / PASSIVE - switchable to suit your playing style. Progress and trust: the mercenary's trust/exp/level grows , skills are learned according to the MercenarySkillTree (conditions are based on the trust or level of the owner). Templates and equipment: via MercenaryTemplateTable and spawner - model/weapon/type are selected. Social: MercenarySpeechManager - a set of speeches; the mercenary "comes to life" in the chat. Premium Link: Premium account owners give the mercenary additional trust (faster progress). Why: This is not a dummy pet, but a playful companion with modes, training and “character”.   3) Quiz (event viktorina ) Rounds according to schedule: pre-launch with announcements (minutes/seconds before start), registration .reg, auto-opening of the window. Multiple choice questions: question + set of answer buttons; fair processing, timings, question change. Tops and history: results table, statistics, neat UI via HTML assembly. Flexible control: you can start immediately or set a delayed start (notification package 5/2/1 min, etc.). Why: regular activity for players, “social entertainment” module right in the build.   4) Personal account in Community Board KB managers: buff cabinet, teleports, clans/forums/mail/friends, tops (PK/PvP/wealth/players), character repair, viewing skill trees , etc. Premium logic: some services/mail are limited by premium; premium also affects the visual (nickname color) and bonuses (see effect on mercenary). Single sign-on: all in one place, no team chaos. Why: conveniently manage your character and services without going into the console or installing third-party mods.   Why is the system technically valuable? Minimum load and stability Separated thread pools: AI logic, hunting, teleports, chat - on separate onesScheduledExecutorService ( AI_THREAD_POOL , MONSTER_HUNT_POOL , TELEPORT_POOL , CHAT_POOL ). No "freezing": task sequencers (teleport/recovery) work through the scheduler, not Thread.sleep(). Bot limitation: protection against overload via thresholds/counters - “extra” bots do not start. One bot - one sequence: AITaskManager ensures that the character does not have parallel conflicting tasks. Smoothing out peaks: starting tasks with offsets so that there are no simultaneous “ticks” of hundreds of bots. Monitoring/logs: own loggers (separate files for info/errors/processes/chats), CPU load monitoring. Bottom line: the build is designed for “thick online” and mass activities without TPS failures .   Additional Features Auto-alliances for farming: party logic invites suitable players (checking level/equipment/clan flags), there are “human” responses to requests. Sub/class management: out of the box helpers for changing class/subclass, auto-learning of necessary skills and selection of equipment by level. Security/protection: secondary PIN/picture password support (used in KB/voiced commands; optional). Premium accounts: privileges in KB/mail/visual and synergy with mercenary progress. Ready-made services: tops, auctions/mail, teleports from KB, buff rooms, repairs, viewing skill trees, etc.   Who is this build for? Freeshare/project admins who want a living world “from the pack”: bots and mercenaries provide a constant background of activity. Players who value convenience: personal account, premium services, events and a mercenary companion. Developers who want a clean, predictable backend with thread pools and a neat task model without “magic”.   How it differs from standard assemblies Not macros - AI profiles with “brains”: rotations, positioning, healing, decision making. Not a decoration pet - a mercenary with his own modes, progress, skill tree and lines. Not a faceless gamemod - an event quiz with UI, schedule, tops. No chaos in flows - strict pools, planning and task managers designed for online and growth. No separate scripts - a single personal account in KB for most activities.   TL;DR (one paragraph for the project card) AiEngine C3 is a build with live AI, smart bots, mercenaries (modes/progress/skills), built-in quiz, premium logic and a convenient personal account in KB. Under the hood are distributed thread pools and task managers without sleep(), so even with a dense online the server remains stable and responsive.   Additionally add - there is still a lot of interesting things command .assassin or shift+target (order murder), shift+target for admins on AI characters for control, admin panel is completely rewritten, many additional functions, mercenaries change their appearance depending on trust, deepseek and chatGPT system is connected for communication of characters like real players, GPT - for newer java, there is still a very large list of fixes after the last versions, a lot has been fixed, including height coordinates (Z) geo-Squares, pathfinding, visibility through obstacles, fix pet summons, trade packages, shop packages, many effects, quests (including the original ones like nipples, etc.), Ai behavior of NPC and RB monsters, absolutely all epics have been transferred to AiLoader no longer in python scripts. Attention! The server is suitable for both classic mode and PvP format, as well as with various mods. Absolutely everything is configured in the configurations to suit your taste and purposes of use. It is recommended to launch the server through L2ServerControl (simplifies management and control of processes). Download Servers: Chronicle 3 Server Chronicle 4 Test Upgraded Server Full Desc & screens: Post & Screens c3 Post & Desc c4    
    • 🎃 HALLOWEEN EVENT 🎃   ‼️ Information and details: https://forum.l2harbor.com/threads/halloween-event-fall-harvest-30-10-07-11.8265/post-168620
  • Topics

×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock