Jump to content
  • 0

Weird Bug About Killing Spree System On Emu Pack


Question

Posted

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 

10 answers to this question

Recommended Posts

  • 0
Posted

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

  • 0
Posted

Ofc we know how this code works but if u don't show what u did we can't guess what's wrong, lol.

Yep I don't see the problem there, is this the full switch?

  • 0
Posted (edited)

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
  • 0
Posted (edited)

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
  • 0
Posted

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:
   			 ;
  • 0
Posted

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

  • 0
Posted (edited)

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
Guest
This topic is now closed to further replies.


  • Posts

    • NEW SEASON 2025     GRAND OPENING 31.01.2025 Dear players, we would like present you the new season of the L2Exoplanet server. The new server will be rate x10 with alot new updates & fixes. We promise you the best High Five server with big community and balanced economy. Our project consists team of enthusiasts who love Lineage 2 and we would like invite to this iconic game.     GRAND OPENING:  31.01.2025 at 20:00 GMT+1 BETA TEST:   24.01.2025    Client: High Five Rates: x10   Website: https://l2exoplanet.net Facebook: https://www.facebook.com/L2-Exoplanet-106811564103836 Discord: https://discord.gg/4fzhW7ZSPc      
    • NEW SEASON START 31.1.2025       GRAND OPENING:  31.01.2025 at 20:00 GMT+1 BETA TEST:   24.01.2025    Client: High Five Rates: x10   Website: https://l2exoplanet.net Facebook: https://www.facebook.com/L2-Exoplanet-106811564103836 Discord: https://discord.gg/4fzhW7ZSPc       Game Rates    Experience: x10  Skill Points: x10  Adena: x8  Drop: x8  Spoil: x8  Quest: x5  Raid Boss Drop: x5  Fame: x2  Epaulette: x8  Manor: x8  MW Craft Chance: 6%  Key-Matherial-Recepie: x16    Safe Enchant: +3  Maximum Enchant: +16  Normal Scroll Chance: 60%  Blessed Scroll Chance: 63%  Attribute Stone Chance: 50%  Attribute Crystal Chance: 30%      Game Settings    Multibox - 3 game clients per HWID  Autoloot  Autolearn Skills  NPC Buffer  Buff Slots (24+4/12)  Buff Duration (2h)  Olympiad Period 7days (new heroes appear every monday)  Seven Signs Period  Class Transfer for Adena  Max Sub-Class 3  Sub-Class Max Level 85  Essence Interface  Champions System  Vote Reward System  Dayli Reward System  PC Points Reward (500PC = 1 Donate Coin)      Epic Bosses Respawn Times     Queen Ant:  24 Hours +/- 4 Hours   Beleth: 2 Days +/- 8 Hours   Baium: 2 Days +/- 8 Hours   Antharas: 3 Days +/- 8 Hours   Valakas:  3 Days +/- 8 Hours     Instance Info     Normal Freya = 6 Players   Hard Freya = 12 Players   Frintezza = 6 Players   Zaken 83 Day = 6 Players   Zaken 60 Day = 6 Players   Zaken Nightly = 6 Players   Tiat = 6 Players   Beleth = 12 Players
    • i think u need edit server files side too... bcs for interlude missing cmd for this set
    • Hi. I'm trying to rewrite the Lineage 2 interlude interface so that the screen displays information that, for example, the “Curse Gloom” debuff has entered and that it displays what skill has been resisted (there is only general information). Is it possible to do this?
    • OPENING ON MARCH 21 AT 18:00 GMT+1 Airin Server — a journey from the classic Chronicle 1 to the epic Chronicle 5, followed by a world merge with the Teon server. We are creating a unique gaming experience where each era unfolds gradually. From your first steps to battles with epic bosses, from the importance of every equipment grade to the significance of every location. Progressive Chronicles — your journey through history. Limits: 1 client per person Rates: Epic drop chance: x1 Quest drop chance: x1 Raid drop chance: x2 Adena (dynamic): x3~ (x1 for high-level) EXP\SP: x2-x3 Drop chance: x2-x3 Spoil chance: x2-x3 Quests A-grade: x1-x3 Quests S-grade: x1-x2 Welcome to Elmorelab.com!
  • Topics

×
×
  • Create New...