Jump to content

Recommended Posts

Posted

Hi ppl , i use this pach for my server Hi5 

Index: dist/game/data/scripts/handlers/bypasshandlers/OlympiadObservation.java
===================================================================
--- dist/game/data/scripts/handlers/bypasshandlers/OlympiadObservation.java	(revision 8869)
+++ dist/game/data/scripts/handlers/bypasshandlers/OlympiadObservation.java	(working copy)
@@ -16,6 +16,7 @@
 
 import java.util.logging.Level;
 
+import com.l2jserver.Config;
 import com.l2jserver.gameserver.handler.IBypassHandler;
 import com.l2jserver.gameserver.model.actor.L2Character;
 import com.l2jserver.gameserver.model.actor.instance.L2OlympiadManagerInstance;
@@ -121,7 +122,33 @@
 									StringUtil.append(list, "&$1718;"); // Standby
 								}
 								
-								StringUtil.append(list, "   ", task.getGame().getPlayerNames()[0], "  :  ", task.getGame().getPlayerNames()[1]);
+								if (Config.ALT_OLY_ANTI_FEED)
+								{
+									if (activeChar.isGM() && Config.ALT_OLY_ANTI_FEED_GM_SEE)
+									{
+										StringUtil.append(list,
+											"   ",
+											task.getGame().getPlayerNames()[0],
+											"  :  ",
+											task.getGame().getPlayerNames()[1]);
+									}
+									else
+									{
+										StringUtil.append(list,
+											"   ",
+											Config.ALT_OLY_ANTI_FEED_NAME,
+											"  :  ",
+											Config.ALT_OLY_ANTI_FEED_NAME);
+									}
+								}
+								else
+								{
+									StringUtil.append(list,
+										"   ",
+										task.getGame().getPlayerNames()[0],
+										"  :  ",
+										task.getGame().getPlayerNames()[1]);
+								}
 							}
 							else
 							{
@@ -156,7 +183,33 @@
 									StringUtil.append(list, "&$1718;"); // Standby
 								}
 								
-								StringUtil.append(list, "</td><td>", task.getGame().getPlayerNames()[0], " ", task.getGame().getPlayerNames()[1]);
+								if (Config.ALT_OLY_ANTI_FEED)
+								{
+									if (activeChar.isGM() && Config.ALT_OLY_ANTI_FEED_GM_SEE)
+									{
+										StringUtil.append(list,
+											"</td><td>",
+											task.getGame().getPlayerNames()[0],
+											" ",
+											task.getGame().getPlayerNames()[1]);
+									}
+									else
+									{
+										StringUtil.append(list,
+											"</td><td>",
+											Config.ALT_OLY_ANTI_FEED_NAME,
+											" ",
+											Config.ALT_OLY_ANTI_FEED_NAME);
+									}
+								}
+								else
+								{
+									StringUtil.append(list,
+										"</td><td>",
+										task.getGame().getPlayerNames()[0],
+										" ",
+										task.getGame().getPlayerNames()[1]);
+								}
 							}
 							else
 							{
@@ -187,7 +240,33 @@
 								StringUtil.append(list, "&$1718;"); // Standby
 							}
 							
-							StringUtil.append(list, "</td><td>", task.getGame().getPlayerNames()[0], " ", task.getGame().getPlayerNames()[1]);
+							if (Config.ALT_OLY_ANTI_FEED)
+							{
+								if (activeChar.isGM() && Config.ALT_OLY_ANTI_FEED_GM_SEE)
+								{
+									StringUtil.append(list,
+										"</td><td>",
+										task.getGame().getPlayerNames()[0],
+										" ",
+										task.getGame().getPlayerNames()[1]);
+								}
+								else
+								{
+									StringUtil.append(list,
+										"</td><td>",
+										Config.ALT_OLY_ANTI_FEED_NAME,
+										" ",
+										Config.ALT_OLY_ANTI_FEED_NAME);
+								}
+							}
+							else
+							{
+								StringUtil.append(list,
+									"</td><td>",
+									task.getGame().getPlayerNames()[0],
+									" ",
+									task.getGame().getPlayerNames()[1]);
+							}
 						}
 						else
 						{

But i cant find this line : StringUtil.append(list, "   ", task.getGame().getPlayerNames()[0], "  :  ", task.getGame().getPlayerNames()[1]); 

 

My OlympiadObservation:

* Copyright (C) 2004-2013 L2J DataPack
 * 
 * This file is part of L2J DataPack.
 * 
 * L2J DataPack is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 * 
 * L2J DataPack is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
 * General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with this program. If not, see <http://www.gnu.org/licenses/>.
 */
package handlers.bypasshandlers;

import java.util.logging.Level;

import com.l2jserver.gameserver.handler.IBypassHandler;
import com.l2jserver.gameserver.model.actor.L2Character;
import com.l2jserver.gameserver.model.actor.L2Npc;
import com.l2jserver.gameserver.model.actor.instance.L2OlympiadManagerInstance;
import com.l2jserver.gameserver.model.actor.instance.L2PcInstance;
import com.l2jserver.gameserver.model.olympiad.Olympiad;
import com.l2jserver.gameserver.model.olympiad.OlympiadGameManager;
import com.l2jserver.gameserver.model.olympiad.OlympiadGameTask;
import com.l2jserver.gameserver.model.olympiad.OlympiadManager;
import com.l2jserver.gameserver.network.SystemMessageId;
import com.l2jserver.gameserver.network.serverpackets.ExOlympiadMatchList;

/**
 * @author DS
 */
public class OlympiadObservation implements IBypassHandler
{
	private static final String[] COMMANDS =
	{
		"watchmatch",
		"arenachange"
	};
	
	@Override
	public final boolean useBypass(String command, L2PcInstance activeChar, L2Character target)
	{
		try
		{
			final L2Npc olymanager = activeChar.getLastFolkNPC();
			
			if (command.startsWith(COMMANDS[0])) // list
			{
				activeChar.sendPacket(new ExOlympiadMatchList());
			}
			else
			{
				if ((olymanager == null) || !(olymanager instanceof L2OlympiadManagerInstance))
				{
					return false;
				}
				
				if (!activeChar.inObserverMode() && !activeChar.isInsideRadius(olymanager, 300, false, false))
				{
					return false;
				}
				
				if (OlympiadManager.getInstance().isRegisteredInComp(activeChar))
				{
					activeChar.sendPacket(SystemMessageId.WHILE_YOU_ARE_ON_THE_WAITING_LIST_YOU_ARE_NOT_ALLOWED_TO_WATCH_THE_GAME);
					return false;
				}
				
				if (!Olympiad.getInstance().inCompPeriod())
				{
					activeChar.sendPacket(SystemMessageId.THE_OLYMPIAD_GAME_IS_NOT_CURRENTLY_IN_PROGRESS);
					return false;
				}
				
				if (activeChar.isOnEvent())
				{
					activeChar.sendMessage("You can not observe games while registered on an event");
					return false;
				}
				
				final int arenaId = Integer.parseInt(command.substring(12).trim());
				final OlympiadGameTask nextArena = OlympiadGameManager.getInstance().getOlympiadTask(arenaId);
				if (nextArena != null)
				{
					activeChar.enterOlympiadObserverMode(nextArena.getZone().getSpawns().get(0), arenaId);
					activeChar.setInstanceId(OlympiadGameManager.getInstance().getOlympiadTask(arenaId).getZone().getInstanceId());
				}
			}
			return true;
			
		}
		catch (Exception e)
		{
			_log.log(Level.WARNING, "Exception in " + getClass().getSimpleName(), e);
		}
		return false;
	}
	
	@Override
	public final String[] getBypassList()
	{
		return COMMANDS;
	}
}

Ty ppl for all.!!!

 

Happy 2014

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



  • Posts

    • --->  L2Temptation - x15 HighFive
    • ✌️ Same situation here, could you please re-share the link? it’s private. Irespect your choice if you won't. Thanks anyway. Peace to you!
    • L2Vitality Winter Season start December 1st! @followers, @everyone, @highlight, @όλοι 📌 Interlude Custom PvP Server Zariche Style 📌 🚨 219 Custom Additional Skills 🚨 🚨 Custom Weapons, Armor, Jewels, Wings, Tattoos and Agathions ⚔️ 9999x Exp/Sp | Player Start 99 Level ⚔️  ⬆️ Safe +15 | Max +30 | Blessed 85% ⬆️ 🏆 VIP Packages System (Lv 1-5) 🏆 ⚡ Free VIP 1+2 Start with 192 Skills and 89 Items +15 Enchanted (Click and Go) ⚡ 💥 Unique Content 💥 🔰 Easy Farm 💰 PLAY TO EARN SYSTEM WIN 50€ cash 💶 for 10k PvPs and 1k gameplay hours. 🔁 Grand Opening 1st December 2024 @ 20:00 GMT +2 🌐 Website: https://l2vitality.gr/  
    • Massive Black Friday Sale This Month!      View all offers     View our Services MASSIVE BLACK FRIDAY SALE THIS MONTH! FIND OUT MORE IN OUR WEBSITE 80% OFF NEW UPDATED PACKS FIND OUT MORE IN OUR WEBSITE HERE Complete Interlude PvP Server Complete HighFive Low/Mid/PvP Server   Complete Custom Interlude PvP Server Complete Classic Antharas 2.7 Low-Mid Rate Server   Complete Interlude Low-Mid Rate Server Complete Essence Low-Mid-PvP Rate Server Complete HighFive PvP Server for starters   Complete Interlude PvP Server Custom/No Custom for Starters   Complete Interlude PvP Server 2nd Build Project Vitality - Interlude Custom PvP Server with Custom Skills / items Project Opium - Interlude Low Rate No Custom Server   Project Duria - Interlude Custom PvP with Custom Learn Skills Project Flexara - HighFive no Custom PvP   Project Nasty - Interlude Custom PvP with Custom Items, Pride style Project Figma - HighFive no Custom Low Rate 50% OFF FOR NEW SERVER BUILDS FROM ZERO (L2BUILDER) USE PROMO #BLACKFRIDAY in NOTES L2Builder Build your Lineage2 Server from Zero with your selected options using our L2Builder! Web Design Are you looking to update your existing l2 website or get a new website? Server Marketing Promote your server with us and we guarantee that your advertisement will be shown everywhere across the l2 community!   Client Mods Get any client modification that you want for your Lineage 2 Server (any chronicle) Server Host The best web or dedicated server host out there with the best DDoS Protection Server Sources We have the best lineage 2 sources out there since 2006 built carefully without bugs!   Buy Votes Increase your server's visibility in all famous l2vote sites! Our Vote tool is a website where we help you to gain more traction to your private server by bringing more votes to your listing! We do all the heavy lifting like proxies, captcha’s, headless browsers and more so you don’t have to! Try free 20 votes today!   View all supported websites   Buy Guard Athena Guard – Layer 7 DDoS Protection Protect your server against DDos Attacks (Layer 7) IP bans and store in iptable. View more   Donate Panel Automatic Donate Panel v4 for L2JServer Automatic Paypal / Stripe Donate Panel for any L2J Server View more   L2Top Co for SALE L2TOP.CO Is a ranking website released in 2010 with 10,000+ Registered L2 Server owners accounts!   The website is for sale at a special price! Contact Us OTHER LINKS FREE SHARES VIP SHARES APPLY FOR JOB ATHENA PROJECT LIMITED     
    • Hey there, topic type is wrong since there's no LF on this section, but I need client side help so I felt like posting here. I'm looking for some help on client side to change the WASD movement. I'll share a video, part 1 is what I have right now and part 2 what I'd like to add on my project. (Moving with WASD I want the camera to be static even if the character moves around, like on Essence client, I have classic Zaken project). https://streamable.com/3c135q
  • Topics

×
×
  • Create New...