Jump to content
  • 0

Question

Recommended Posts

  • 0
Posted

Afto einai ena apo ta problimata tis l2jarchid .Katebase to revision 1050 einai poli kalo... kapou enas eixa kanei post ta mkapia compiled packs tis l2jarchid.Kane ena search kai 8a ta breis ;)

  • 0
Posted

Afto einai ena apo ta problimata tis l2jarchid .Katebase to revision 1050 einai poli kalo... kapou enas eixa kanei post ta mkapia compiled packs tis l2jarchid.Kane ena search kai 8a ta breis ;)

exeis la8os lpn perimene na sto ftiaxw kai na sto doso

Edit!

phgene edw

com.l2jarchid.gameserver.handler.admincommandhandlers

ftiaxe ena new arxeio me name AdminHero.java

kai bale auto mesa

/*
* This program 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 2, or (at your option)
* any later version.
*
* This program 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, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
* 02111-1307, USA.
*
* http://www.gnu.org/copyleft/gpl.html
*/
package com.l2jarchid.gameserver.handler.admincommandhandlers;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

import com.l2jarchid.gameserver.GmListTable;
import com.l2jarchid.gameserver.handler.IAdminCommandHandler;
import com.l2jarchid.gameserver.model.L2Object;
import com.l2jarchid.gameserver.model.actor.instance.L2PcInstance;
import com.l2jarchid.gameserver.network.serverpackets.SocialAction;

/**
*L2J-Archid
**/
public class AdminHero implements IAdminCommandHandler
{
private static String[]		ADMIN_COMMANDS	=
											{ "admin_sethero" };
private final static Log	_log			= LogFactory.getLog(AdminHero.class.getName());

public boolean useAdminCommand(String command, L2PcInstance activeChar)
{
	if (activeChar == null)
		return false;

	if (command.startsWith("admin_sethero"))
	{
		L2Object target = activeChar.getTarget();

		if (target instanceof L2PcInstance)
		{
			L2PcInstance targetPlayer = (L2PcInstance) target;
			boolean newHero = !targetPlayer.isHero();

			if (newHero)
			{
				targetPlayer.setHero(true);
				targetPlayer.sendMessage("You are now a hero.");
				sendMessages(true, targetPlayer, activeChar, true, true);
				targetPlayer.broadcastPacket(new SocialAction(targetPlayer.getObjectId(), 16)); 
				targetPlayer.broadcastUserInfo();
			}
			else
			{
				targetPlayer.setHero(false);
				targetPlayer.sendMessage("You are no longer a hero.");
				sendMessages(false, targetPlayer, activeChar, true, true);
				targetPlayer.broadcastUserInfo();
			}
		}
		else
		{
			activeChar.sendMessage("Impossible to set a non Player Target as hero.");
			_log.info("GM: " + activeChar.getName() + " is trying to set a non Player Target as hero.");
			return false;
		}
	}
	return true;
}

private void sendMessages(boolean fornewHero, L2PcInstance player, L2PcInstance gm, boolean announce, boolean notifyGmList)
{
	if (fornewHero)
	{
		player.sendMessage(gm.getName() + " has granted Hero Status for you!");
		gm.sendMessage("You've granted Hero Status for " + player.getName());

		if (notifyGmList)
			GmListTable.broadcastMessageToGMs("Warn: " + gm.getName() + " has set " + player.getName() + " as Hero !");
	}
	else
	{
		player.sendMessage(gm.getName() + " has revoked Hero Status from you!");
		gm.sendMessage("You've revoked Hero Status from " + player.getName());

		if (notifyGmList)
			GmListTable.broadcastMessageToGMs("Warn: " + gm.getName() + " has removed Hero Status of player" + player.getName());
	}
}

/**
 * @return
 */
public String[] getAdminCommandList()
{
	return ADMIN_COMMANDS;
}
}

meta phgene edw

com.l2jarchid.gameserver.handler

meta sto  AdminCommandHandler.java

bres auto

import com.l2jarchid.gameserver.handler.admincommandhandlers.AdminHelpPage;

kai bale auto apo kato

import com.l2jarchid.gameserver.handler.admincommandhandlers.AdminHero;
meta bres auto [code]registerAdminCommandHandler(new AdminHelpPage());

kai apo kato bale auto

registerAdminCommandHandler(new AdminHero());

elpizo na doulepsei[/code]

  • 0
Posted

dn einai set_hero einai //sethero

dn 3erw an einai prob =/

 

Molis ekana compile to teleuteo revision, patisa //set_hero kai tpt.Patisa //sethero tpt.Den katalabenw ti exei ginei.... kai sto gameserver console lei pws den eiparxi afti i entoli... omfg

  • 0
Posted

Molis ekana compile to teleuteo revision, patisa //set_hero kai tpt.Patisa //sethero tpt.Den katalabenw ti exei ginei.... kai sto gameserver console lei pws den eiparxi afti i entoli... omfg

 

OMG AFOY soy lei einai //sethero.. an den doylevi exi kapio prob to pack.. an den iparxi to commant kanto esi !!!disolo men :D

  • 0
Posted

Molis ekana compile to teleuteo revision, patisa //set_hero kai tpt.Patisa //sethero tpt.Den katalabenw ti exei ginei.... kai sto gameserver console lei pws den eiparxi afti i entoli... omfg

 

OMG AFOY soy lei einai //sethero.. an den doylevi exi kapio prob to pack.. an den iparxi to commant kanto esi !!!disolo men :D

fae -1 karma gt to xeis kanei to 8ema spam sunexeia

timoskoure des pio panw to ftiaxa..

  • 0
Posted

kai kati akoma sto revision 1027 pou exw oi hero bgenoun kanonika exei kana problem 3eretai tpt???

 

Mia xara einai... mono na ri8miseis ta configs kai tin wra tou sistimatos sou, kai 8a eisai ok.. ;)

  • 0
Posted

kai kati akoma sto revision 1027 pou exw oi hero bgenoun kanonika exei kana problem 3eretai tpt???

lol sto 1027 einai prin ginei stable opote

to //sethero douleuei..

  • 0
Posted

kai kati akoma sto revision 1027 pou exw oi hero bgenoun kanonika exei kana problem 3eretai tpt???

Mia xara einai... mono na ri8miseis ta configs kai tin wra tou sistimatos sou, kai 8a eisai ok.. ;)

 

 

paidia  eleos i versios pou exei to paidi einai poly pali para poly... file kane compile tin new versio tin archid giati tora poia to pack tis l2jarchid den exei custom kai tin version pou exeis esu  to //sethero ama to kaneis se  ena aplos char meta apo to  restart den bgenei..

  • 0
Posted

einai kai 1 ali entoli p einai se polous server //hero ..... isos na doulebi kai afto

 

afto den pezei me tpt ! den exw dei se kanena pack to //hero  omfg... esi 8a enoeis ///hero  opou einai ena fake-hero pou to blepeis mono esi..

Guest
This topic is now closed to further replies.


  • Posts

    • Website: https://l2aurum.com/ Discord: https://discord.gg/ngaD9DJRjE   Dear Players, We are excited to announce that the x300 Summer Season Beta server will open on 19‑06‑2026 at 20:00 GMT+2. As previously mentioned, there will be no wipe and no account deletion. All accounts, characters, items, and progress from Season 1 will remain completely safe. To ensure a fair and competitive start for new players, all Season 1 accounts will be temporarily locked. The official Summer Season launch will take place on 26‑06‑2026 at 20:00 GMT+2. A few weeks after the official launch, Season 1 accounts will be unlocked so previous players can access their characters and continue their journey. This approach allows new players to enjoy a fresh start while preserving the progress and achievements of our long-term community. Thank you for your continued support, and we look forward to welcoming everyone to the new Summer Season. L2Aurum Team   Explore L2 Aurum Features Discover the Enhancements that set us apart!   Information Server Version: Interlude - PvP Server Client Interface: Unique Interface   Rates     Additional Features and changes When you create a new character, you will start in Giran Harbor at Level 1, equipped with full No-Grade items. Auto Farm is available for free for 2 hour daily without VIP. VIP players receive 4 hours of Auto Farm per day. The Auto Farm time resets with the server restart at 5:30 AM. Status Noblesse: Last hit Barakiel. Player Spawn Protection: 7 seconds. Geodata + Pathnodes: Enabled. All commands are available in the Community Board. Maximum 3 Bishops Per Party: Enabled. Boss Protect - Anti-Zerg: Enabled. Shift + click on monsters to see the droplist. Offline shop. Mana Potion Restores 1000 MP with a cooldown of 8 seconds. Inventory Slots: 250.   Weapon Information Lv1 Black Chaotic Weapons. Lv2 Aurum Weapons.   Armor Information Lv1 Blue Apella Armor. Lv2 Aurum Apella Armor. Misc additions Accessories +50 and +150 pdef|mdef. Tattoos: Resolve | Soul | Avadon. Agathions: Cosmetic only (no stats).   Buffs / Dances / Songs / Prophecies Duration: 2 hours. Total Buff Slots: 32 + 4 (Divine Inspiration). Vote Buff: You must vote on 3 of 6 vote sites to get the vote buff blessing. Castle Reward Every clan that captures a castle receives the castle owner clan blessing buff. To receive it, the clan leader must be online.   Events   Raid Bosses Epic Bosses Final Bosses     For full server information please visit website PvP: Server Features   Website: https://l2aurum.com/ Discord: https://discord.gg/ngaD9DJRjE      
  • 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..