Jump to content

Recommended Posts

Posted (edited)

Dat epic moment when the Lol Announcer says Quadra Kill, or PENTA KILL, now on your L2 server :)
Dat fealing when you make the penta or the rage when someone steals it,  for first time on lineage2

 

A Preview:

 

 

How it works ? Excactly the same with the League of Legend's multikill system, if you make multiple kills in a short amount of time its considered as Multi kill, but it has a timer between every kill, if you exceed it your multikill resets (default 5000 ms)

MilisBetweenMultiKills = 5000;


The sound files: Download paste it into Lineage2/music

Coded from scratch by me, 2 hours ago, NOT tested but Im 99% sure that it's bugless :P

Edited by xdem
  • Upvote 3
Posted

Good afternoon to everyone in the forum.

 

I really enjoyed this mod but where I put the Audio files?

On the client folder C :/ Linegae Interlude c6 \ music?

 

That has created some folder in Rev?

Posted

You could work on the L2PcInstances instead of using L2Characters and iterating over such a big list then type casting to L2PcInstance.

 

Overall good share, without the typical else if else if else if else if we see every day.

Posted

You could work on the L2PcInstances instead of using L2Characters and iterating over such a big list then type casting to L2PcInstance.

 

Overall good share, without the typical else if else if else if else if we see every day.

 

About the L2Character, its not big since its KnowList not L2World, and on the project where it got coded Gracia Epilogue L2J, the knowlist had only ArrayList<L2Character> not <L2PcInstance>, so I had to rework the KnowList itself, but I wanted to limit the code on just 2 files.

 

The second way to get rid of L2Character would be isInsideRadius but it uses the whole L2World, so I choosed that Iteration, besibes that how it comes that L2Character knowlist is heavy ? :/ There is a chance all of it's containings to be  instanceof L2PcInstance

Posted

Well when you are in farming zone ( where pvp actually happens most of the time) , the knownlist contains monsters too. Anyhow, I thought there was a way to getKnownPlayers() only or something. What's heavy is not the size of the iteration, but mainly the type casting from character to pcinstance. Type casting is a resource heavy action.

Posted

Well when you are in farming zone ( where pvp actually happens most of the time) , the knownlist contains monsters too. Anyhow, I thought there was a way to getKnownPlayers() only or something.

 

No, getPlayerKnowList was Map not arrayList, but I will see if I can work with it's keySet

Posted

What's heavy is not the size of the iteration, but mainly the type casting from character to pcinstance. Type casting is a resource heavy action.

 

L2Character never got casted, because L2Character has sendPacket method too :P

Posted

Good afternoon to everyone in the forum.

 

I really enjoyed this mod but where I put the Audio files?

On the client folder C :/ Linegae Interlude c6 \ music?

 

That has created some folder in Rev?

 

Yea, music folder, main topic updated

Guest
This topic is now closed to further replies.



×
×
  • Create New...