Hello, i got the source code for the custom killing spree system from Cobra which was for l2j free and i converted it for l2j server. The only problem is the following: I configured it so that when someone had 30 pvp kills in a row, a "You are on a killing spree" message would show up on his screen and an announcement would be published on the global chat. Here is the thing. I inserted a code so that when you have 30 pvp kills in a row not only would a message appear but you'd also get hero status and on death this hero status would disappear but i failed. I compiled and i went ingame to test it ,everything worked fine except that when i was getting 30 pvp kills i could see the hero glow but others could not, they could only see it after a restart of their client. And also, when i was on death my hero glow would not disappear if i didnt restart my client. Here is the code in the file L2PcInstance:
+private int impro = 0;
public void increasePvpKills()
{
+ impro++;
+switch(impro){
+case 30:
+ ExShowScreenMessage case30 = new ExShowScreenMessage("You reached 30 killing spree!", 10000);
+sendPacket(case30);
+Announcements.getInstance().announceToAll("Player " + getName() + " Is On a Killing Spree Someone Stop Him");
+setHero(true);
+ break;
+ default:
+ ;
+ }
// Check if the player is dead
if (isDead())
{
+impro = 0;
+setHero(false);
abortCast();
hey guyz...i try to use guytis v201 source code...but when i had compiled the NpcExt.dll,it will crash L2server.exe.didnot knew why...use v158 source code ,its ok...anybody know how to fix it?
v201 only add CNpcSpawnDefine system...i had comment it out,but still crash L2server.exe.
Question
rayven18
Hello, i got the source code for the custom killing spree system from Cobra which was for l2j free and i converted it for l2j server. The only problem is the following: I configured it so that when someone had 30 pvp kills in a row, a "You are on a killing spree" message would show up on his screen and an announcement would be published on the global chat. Here is the thing. I inserted a code so that when you have 30 pvp kills in a row not only would a message appear but you'd also get hero status and on death this hero status would disappear but i failed. I compiled and i went ingame to test it ,everything worked fine except that when i was getting 30 pvp kills i could see the hero glow but others could not, they could only see it after a restart of their client. And also, when i was on death my hero glow would not disappear if i didnt restart my client. Here is the code in the file L2PcInstance:
Anyone got an idead of how to fix this? Thanks!
4 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now