Jump to content

Recommended Posts

Posted

Hello Max Cheaters!!!! This is my first [share] topic :)

I think its usefull :) Olympiad without s/s80/s84 grade armors/weapons and jewels

 

com.l2jserver.gameserver.network.clientpackets.useitem.java

import java.util.logging.Logger;

import com.l2jserver.Config;
import com.l2jserver.gameserver.GameTimeController;
+import com.l2jserver.gameserver.model.olympiad.Olympiad;
import com.l2jserver.gameserver.ThreadPoolManager;
import com.l2jserver.gameserver.handler.IItemHandler;

 

com.l2jserver.gameserver.network.clientpackets.useitem.java

// NOTE: disabled due to deadlocks
	// synchronized (activeChar.getInventory())
	// 	{
		L2ItemInstance item = activeChar.getInventory().getItemByObjectId(_objectId);
		if (item == null)
               return;

		                    +  int lolz0r = item.getItem().getCrystalType();
		                     + if (activeChar.isInOlympiadMode() || Olympiad.getInstance().isRegisteredInComp(activeChar) || activeChar.getOlympiadGameId() > 0)
		                     + {
		                        +   if (lolz0r == L2Item.CRYSTAL_S || lolz0r == L2Item.CRYSTAL_S80 || lolz0r == L2Item.CRYSTAL_S84)
		                          + {
		        	           +  activeChar.sendMessage("You cant use items up to Grade A in the Grand Olympiad Games.");
		                                +  return;
		                           + }
		                     + }
		if (item.isWear())

 

com.l2jserver.gameserver.model.olympiad.olympiad.java

import com.l2jserver.gameserver.network.serverpackets.SystemMessage;
import com.l2jserver.gameserver.templates.StatsSet;
+import com.l2jserver.gameserver.templates.item.L2Item;
import com.l2jserver.util.L2FastList;

import javolution.util.FastMap;

 

 

com.l2jserver.gameserver.model.olympiad.olympiad.java

/*
	 * if (_compStarted) {
	 * noble.sendMessage("Cant Register whilst competition is under way");
	 * return false; }
	 */
		+	int weaponGrade = noble.getActiveWeaponItem().getCrystalType();
		+	int armorGrade = noble.getActiveChestArmorItem().getCrystalType();
		+	if (weaponGrade == L2Item.CRYSTAL_S || armorGrade == L2Item.CRYSTAL_S || weaponGrade == L2Item.CRYSTAL_S80 || armorGrade == L2Item.CRYSTAL_S80 || weaponGrade == L2Item.CRYSTAL_S84 || armorGrade == L2Item.CRYSTAL_S84)			    	
		+	{
		+		noble.sendMessage("You cannot join the grand olympiad games using S/s80/s84 grade equipment.");
		+		return false;
		+	}
		+	   	
	if (!_inCompPeriod)

 

com/l2jserver/gameserver/model/L2ItemInstance.java

public boolean isOlyRestrictedItem()
    {
+    	if (getItem().getItemGrade() > 4)
+    		return true;
        return (Config.LIST_OLY_RESTRICTED_ITEMS.contains(_itemId));
    }

 

For this code i was searching weeks but nothing i found.... (i found one code but not working in epilogue)...

 

Credits go to: Me and Parizakis :D

  • 1 year later...
Posted

Nice share and very helpfull but i have a question, if i wanted that code to add it on baium's lair or a town like Giran for example what i have to change? I cant use this code?

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 account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Posts

    • Greetings, MaxCheaters community! We are the development team behind projects like AdenLand, Classic GvE, TinyEssence, PvPEssence, and several others. Over the years of managing high-traffic servers, we’ve built our own ecosystem of tools for datapack and client editing, simply because standard software often failed to meet our production needs or was too slow. Today, we are opening access to these professional solutions for our colleagues in the dev scene. You can explore our suite of editors and utilities here: 👉 https://la2.tools/ Why choose our tools? Battle-Tested: This software is used daily to maintain and update our own live projects. Efficiency: Designed to automate routine tasks that usually take hours or even days. Stability: Built to handle complex client/server structures where generic tools often crash. We are ready to provide consultations on integrating these tools into your development workflow to make your process faster and more secure.  
    • There is such a topics based on java html services!
    • L2Elixir – Patch 9 Is Live! Since November 28, when L2Elixir officially opened, we’ve been here consistently and with dedication. We sincerely thank everyone who continues to support this major effort to bring back the true legacy of L2Elixir, even after 18+ years. It truly makes us happy to see many old players reunite, just like in the old days, and enjoy the game the way it was meant to be played: without RMT, without bug abusers, and without “paid” clans/CPs that disappear after a month. We continue with vision, stability, and respect for the community. Wishing everyone to Have fun! Changelogs: 🏆 Olympiad Olympiad every Monday & Friday (last day: Friday). Fixed an issue with wrong Class ID caused by the Class Change service. ⚔️ Territory Wars Territory Wars will now be held every Tuesday to increase PvP activity. 🛡️ Antibot General updates and additional security improvements implemented. 🔧 Items Augmentation & Attribute are now allowed on PvP weapons. Implemented Premium Coupon (15 Days) (currently not available). 🎉 Events An Auto Event will begin early morning (05:00) for NA players. 💻 Client Added EXP zones to the Map → Hunting Zones section. Renamed them to “XP Bonus” so they appear at the top of the list.   Website: https://l2elixir.org/ Discord: https://discord.gg/5ydPHvhbxs
    • I haven't work in Essence but I have transformed mobius projects into fully stable projects, reach out to me in Discord @cerus0130
  • 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..