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

    • I’m coming to you with a small update — internal testing is currently underway. We’re working on catching minor issues and resolving them before the server launch 😉 In the near future, we’re planning public tests, which you’ll all be invited to. At the same time, I’ll be sharing a few Quality of Life changes coming to L2 Genesis.   Even if you’re not interested in playing right now, but you are a long-time Lineage 2 player, feel free to join our community. We would greatly appreciate your experience and feedback to help us improve and develop our project. Join the growing L2Genesis community: https://discord.gg/mcuHsQzNCm Also check our website: https://l2genesis.com/   Offline Shop System — run your shop without being online.   Buff Shop System — playing as a buffer? When you’re not in the game, sell buffs! Reworked classic interface, adapted to Interlude — shown here with the inventory menu as an example. New custom mob drop and spoil preview. DualBox Verification System — each player can only use one active account at a time. Genesis Wiki — a collection of all essential information about items, NPCs, drops, spoils, and quests.
    • https://gitlab.com/Tryskell/acis_public nai swsta, exeis kati pio updated na mas protineis? 
    • 🔥 L2Gold Enma – High Rate PvP Interlude 🔥 Interlude Chronicle • C6 Skills • Pure PvP Experience Welcome to L2Gold Enma, a high-rate PvP server designed for players who want instant action, balanced gameplay and nonstop PvP, without pointless grinding. ⚔️ Server Rates XP / SP: x1000 Adena / Drops: x10 Chronicle: Interlude Skills: C6 balanced skills Buff duration: 2 hours No weight limit 🎮 Gameplay Philosophy Fast leveling, instant PvP Clean Interlude experience No pay-to-win mechanics Focus on skill-based PvP 🛡️ Core Features Global Gatekeeper Offline shops Auto events (TvT, DM, CTF, etc.) Retail-like Olympiad with custom balance Active Raid Bosses Easy access to PvP gear 🏰 PvP & Competition Mass PvP & clan wars Meaningful castle sieges Olympiad focused on player skill Balanced classes for both solo & group PvP ⚡ Why L2Gold Enma? Interlude nostalgia with C6 skills High rates, low grind Stable server & active development Community-focused updates 💥 Join L2Gold Enma and dominate the battlefield! This is not a farm server. This is PvP   https://l2gold-enma.com/ https://discord.com/invite/Ba9cHj3HUJ
    • Hi I'm still online for this but making backup of everything in that time I didn't organize well so let me create a pack and upload to archive.org maybe. Thanks ! we can enrich togethers this if everyone add more and more old files.
  • Topics

×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..