Jump to content
  • 0

Weird Bug About Killing Spree System On Emu Pack


Karasu

Question

So i implemented this simple system on emu ,works but not properly ,and there is nothing wrong with implementation nor values becuz i have no problem with other adaptions like custom cb,java buffer from L2J etc...

 

case 4

 

case 7

 

case 10

 

case 15

 

 

but guess how it goes 

 

it goes like omg... at 4 kills it goes to case 7 instead 4 ,at around 9 [yep 5 not 3] kills i think it goes to case 15 instead of 10 and from case 15 it goes to 25 instead of 20....

 

Anyone have idea of this cause?

This is the weirdest bug i ever found and i cant seem to fix it ,it doesnt giveme any info or warning ,error or whatever, its just goes like that ,retarded... ,there is nothing wrong with L2PcInstance or character ,all are implemented properly on pack 

Link to comment
Share on other sites

10 answers to this question

Recommended Posts

  • 0

Just post the patch added, jesus...

public void increasPvpKills(L2PcInstance targetPlayer)
	{
		quakeSystem++;
		
		switch (quakeSystem) {
		case 4:
			 ExShowScreenMessage case4 = new ExShowScreenMessage("You reached 4 kills in a row", 10000);
	   		 sendPacket(case4);
	   		final CreatureSay cs100 = new CreatureSay(0, SystemChatChannelId.Chat_Hero, getName(),  "is Geting Started [4]");
	      	 Broadcast.toAllOnlinePlayers(cs100);
	      		 MagicSkillUse MS4 = new MagicSkillUse (this, this, 721, 1, 5, 0);
	      		sendPacket(MS4);
			 break;
		case 7:
	   		 ExShowScreenMessage case7 = new ExShowScreenMessage("You reached 4 kills in a row", 10000);
	   		 sendPacket(case7);
	   		final CreatureSay cs101 = new CreatureSay(0, SystemChatChannelId.Chat_Hero, getName(),  "is Geting Started [4]");
	      	 Broadcast.toAllOnlinePlayers(cs101);
	      		 MagicSkillUse MS7 = new MagicSkillUse (this, this, 721, 1, 5, 0);
	      		sendPacket(MS7);
	      		 break;
   	case 10:
   		ExShowScreenMessage case10 = new ExShowScreenMessage("You reached 10 kills in a row", 10000);
   		sendPacket(case10);
   		final CreatureSay cs3 = new CreatureSay(0, SystemChatChannelId.Chat_Hero, getName(),  "is on a Rampage [10]");
   		Broadcast.toAllOnlinePlayers(cs3);
   		MagicSkillUse MS10 = new MagicSkillUse (this, this, 721, 1, 5, 0);
   		addItem("Loot", 5574, 10, this, true);
   		addItem("Loot", 5572, 20, this, true);
   		addItem("Loot", 5570, 15, this, true);
   		addItem("Loot", 6622, 1, this, true);
   		setCurrentCp(getMaxCp());
   	    setCurrentHp(getMaxHp());
   	    setCurrentMp(getMaxMp());
   	    sendPacket(MS10);
   		break;
   	case 15:
   		ExShowScreenMessage case15 = new ExShowScreenMessage("You reached 15 kills in a row", 10000);
   		sendPacket(case15);
   		final CreatureSay cs4 = new CreatureSay(0, SystemChatChannelId.Chat_Hero, getName(),  "is on a Killing Spree [15]");
   		Broadcast.toAllOnlinePlayers(cs4);
   		MagicSkillUse MS15 = new MagicSkillUse (this, this, 721, 1, 5, 0);
   		addItem("Loot", 5574, 20, this, true);
   		addItem("Loot", 5572, 40, this, true);
   		addItem("Loot", 5570, 30, this, true);
   		addItem("Loot", 6622, 2, this, true);
   		setCurrentCp(getMaxCp());
   	    setCurrentHp(getMaxHp());
   	    setCurrentMp(getMaxMp());
   	    sendPacket(MS15);
   		break;
   	case 20:
   		ExShowScreenMessage case20 = new ExShowScreenMessage("You reached 20 kills in a row", 10000);
   		sendPacket(case20);
   		Announcements.getInstance().announceToAll("" + this.getName()+ " is on a Monster Kill!");
   		MagicSkillUse MS20 = new MagicSkillUse (this, this, 721, 1, 5, 0);
   		addItem("Loot", 5574, 30, this, true);
   		addItem("Loot", 5572, 50, this, true);
   		addItem("Loot", 5570, 40, this, true);
   		addItem("Loot", 3488, 1, this, true);
   		addItem("Loot", 6622, 4, this, true);
   		setCurrentCp(getMaxCp());
   	    setCurrentHp(getMaxHp());
   	    setCurrentMp(getMaxMp());
   	    sendPacket(MS20);
   		break;
   	case 25:
   		ExShowScreenMessage case25 = new ExShowScreenMessage("You reached 25 kills in a row", 10000);
   		sendPacket(case25);
   		Announcements.getInstance().announceToAll("" + this.getName()+ " is Unstoppable!");
   		MagicSkillUse MS25 = new MagicSkillUse (this, this, 721, 1, 5, 0);
   		addItem("Loot", 5574, 50, this, true);
   		addItem("Loot", 5572, 80, this, true);
   		addItem("Loot", 5570, 65, this, true);
   		addItem("Loot", 3488, 2, this, true);
   		addItem("Loot", 6622, 6, this, true);
   		setCurrentCp(getMaxCp());
   	    setCurrentHp(getMaxHp());
   	    setCurrentMp(getMaxMp());
   	    sendPacket(MS25);
   		break;
// Add karma to attacker and increase its PK counter
		setPvpKills(getPvpKills() + 1);
		quakeSystem++;
private int								_questNpcObject						= 0;

	/** Bitmask used to keep track of one-time/newbie quest rewards */
	private int								_newbie;
	private int quakeSystem = 0;
setPvpFlag(0); // Clear the pvp flag
		quakeSystem = 0;

this is the implementation, better? :) i didnt told this because u were suppose to know how quake system works ;p

 

PS: even if i remove text/magicskill and only rewards are working ,its remain the same...it skips cases

Link to comment
Share on other sites

  • 0

its the same untill 100

 

it ends something like



case 100:
   		ExShowScreenMessage case100 = new ExShowScreenMessage("You reached 100 kills in a row, you're fucking awesome!", 10000);
   		sendPacket(case100);
   		final CreatureSay cs15 = new CreatureSay(0, SystemChatChannelId.Chat_Hero, getName(),  "is on a SYSTEM OVERLOAD, SYS SY SYY SS LO D OADD LOO ADD! bffvrffbfr!!!!!!!! [100]");
   		Broadcast.toAllOnlinePlayers(cs15);
   		MagicSkillUse MS100 = new MagicSkillUse (this, this, 721, 1, 5, 0);
   		addItem("Loot", 5574, 2400, this, true);
   		addItem("Loot", 5572, 3600, this, true);
   		addItem("Loot", 5570, 3000, this, true);
   		addItem("Loot", 3488, 120, this, true);
   		addItem("Loot", 4355, 60, this, true);
   		addItem("Loot", 6622, 360, this, true);
   		addItem("Loot", 9627, 60, this, true);
   		setCurrentCp(getMaxCp());
   	    setCurrentHp(getMaxHp());
   	    setCurrentMp(getMaxMp());
   	    sendPacket(MS100);
   	    break;
   		 default:
   			 ;
   }  
		if (isInFunEvent())
			return;

		if (!Config.ALT_PVP_POINTS_SAMEIP && getClient() != null && targetPlayer.getClient() != null && getClient().getHostAddress().equals(targetPlayer.getClient().getHostAddress()))
			return;
		
		if (!Config.ALT_PVP_POINTS_SAMEHWID && getClient() != null && targetPlayer.getClient() != null && getClient().getHWID() != null && getClient().getHWID().equals(targetPlayer.getClient().getHWID()))
			return;
		
		// Add karma to attacker and increase its PK counter
		setPvpKills(getPvpKills() + 1);
		quakeSystem++;
		// Send a Server->Client UserInfo packet to attacker with its Karma and PK Counter
		sendPacket(new UserInfo(this));
	}

Its implemented properly and pack works also just fine ,i tested my self most of bugs ,works much better than l2j yet this simple quake system wont work xD

Edited by Karasu
Link to comment
Share on other sites

  • 0

I see this quakeSystem++; 2 times.

 

its 2 times as it was suppose to be i guess, 1 at switch and 1 for increase pvp kills......

 

but il remove it from pvp and test it again

Edited by Karasu
Link to comment
Share on other sites

  • 0

i tested my self most of bugs ,works much better than l2j yet this simple quake system wont work xD

Who cares O.o

 

//ontopic

Do what devlin said and remove this, useless.

 

default:
   			 ;
Link to comment
Share on other sites

  • 0

yes works now LOL!

 

cant believe i only had to do this ,i never thinked about this becuz it was the same implementation on l2j yet it was working properly! PS: Credits or Beer ,take your pick xD

Link to comment
Share on other sites

  • 0

If you have in l2jserver the variable being increased 2 times, it won't work properly. It's not about the pack, lol.

Locked.

Edited by ^Wyatt
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.


  • Posts

    • New Season coming May 2024! First post updated      Website: L2Kain.net  Discord: https://discord.gg/l2kain  Wiki: https://info.kain.ws/   Important Dates   Server Start: TBD  Open Beta Test: 10th of May 2024!   Basic Information     Briefly about the concept of the server! We decided to move away from the standard Mid-Rate server concept and keep the mechanics of our beloved Lineage 2 that everyone loves! Massive battles for epic bosses, battles for profitable farming locations, resource spoilage and equipment crafting, daily instances, a balanced economy and much more. This server is build as a Craft-PvP concept. The goal is to gather players with a variety of preferences in the game and make a high-quality and interesting server with alternative character development options. We are well aware that "grinding" is an integral part of the game, but we diluted the boring and the same type of farming with interesting solutions and non-standard mechanics!   We have prepared a new High Five x25 on Modern Client for you. This server will be another step in the development of the platform and the project as a whole! Your appeals to those. support was not ignored, which means the new server will be even better than the previous one!      ⭐ Promotions and Bonuses for new players!     ⭐ Events and Giveaways daily!   ⭐ Rewards for Voting!   ℹ️ Server Rates Learn more about server rates! Server rates are configured in such a way that farming is best rewarded. Adena, drops, quests, various rewards and prices in the game store are well balanced among themselves!   Basic Server Rates:  ⭐ Experience & Skill Points - x25  ⭐ Adena Drop - x15 & Fixed Chance 66%  ⭐ Drop Rates - x10  ⭐ Spoil Rates - x10   Crafting keys, recipes drop & spoil with fixed amount from 2 to 3 and increased chances on all locations and quests  related to farm them.  ⭐ Quest Rates - x5  ⭐ Fortresses & Sieges - x5  ⭐ Raid Bosses & Epic Bosses - x1  ⭐ Weight Limit - x10      Connect with Us:  Discord: https://discord.gg/l2kain  Facebook: https://www.facebook.com/KainLineage2  TikTok: https://www.tiktok.com/@l2kain.net  YouTube: https://www.youtube.com/@Lineage2Kain
    • Relevant! I sell forum listings and also post and promote your topics on forums!
  • Topics

×
×
  • Create New...