Jump to content

Recommended Posts

Posted

prota pame net.l2emuproject.gameserver.handler.admincommandhandlers kai ftiaxnoume ena arxio me onoma AdminGivePet.java

grafoume afto 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 3 of the License, 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, see <http://www.gnu.org/licenses/>.
*/
package net.l2emuproject.gameserver.handler.admincommandhandlers;

import net.l2emuproject.gameserver.handler.IAdminCommandHandler;
import net.l2emuproject.gameserver.model.actor.instance.L2PcInstance;

public class AdminGivePet implements IAdminCommandHandler
{
private static final String[]	ADMIN_COMMANDS	=
												{
		"admin_give_wyvern",
		"admin_give_strider",
		"admin_give_wolf",
		"admin_give_horse",
		"admin_remove_pet",						};
private int						_petRideId;

public boolean useAdminCommand(String command, L2PcInstance activeChar)
{

	if (command.startsWith("admin_give"))
	{
		if (((L2PcInstance)activeChar.getTarget()).isMounted() || ((L2PcInstance)activeChar.getTarget()).getPet() != null)
		{
			activeChar.sendMessage("Your target already have a pet or mounted.");
			return false;
		}
		if (command.startsWith("admin_give_wyvern"))
			_petRideId = 12621;
		else if (command.startsWith("admin_give_strider"))
			_petRideId = 12526;
		else if (command.startsWith("admin_give_wolf"))
			_petRideId = 16041;
		else if (command.startsWith("admin_give_horse"))
			_petRideId = 13130;
		else
		{
			activeChar.sendMessage("Command '" + command + "' not recognized");
			return false;
		}
		((L2PcInstance) activeChar.getTarget()).mount(_petRideId, 0, false);
	}
	else if (command.startsWith("admin_remove_pet"))
		((L2PcInstance) activeChar.getTarget()).dismount();
	return true;
}

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

 

meta pame kai anigoume to net.l2emuproject.gameserver.handler.AdminCommandHandler.java

kai brite afti tin grami:

		registerAdminCommandHandler(new AdminVitality());

meta apo afti tin grami balte aftin edo

		registerAdminCommandHandler(new AdminGivePet());

 

kante compile kai iste etimi!

 

Download

Java files : Click Me!

.patch file: Click me!

 

ta command ingame einai

//give_wolf = dini sto target wolf

//give_wyvern = dini sto target wyvern

//give_strider = dini sto target strinder

//give_horse = dini sto target horse

//remove_pet = kani dismount to pet tou target sou

 

ama exo ksexasi tpt i kati den doulebi sosta mporite na mou pite na to diorthoso

 

works on l2emu gracia part 2

 

Credits goes to me (iNos)

 

Posted

Euxaristw poli.Xreiazomoun kati tetio alla 8a itan kalitero na baleis gia chronicle einai afto(Fisika einai Gracia- alla ti Part ?).Kai einai gia L2 Emu .Right ?

  • 1 month later...

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

    • CLEAR BRIEF – ZERO SURPRISES The client requested an Illinois Driver License with custom data. Task – scannable front/back and photos suitable for upload. He provided data and portrait. Timeline agreed – 30+ minutes. Then everything followed engineering logic: – built the document for the specific state – checked structure and fields – prepared both sides – provided additional dark-background photos upon request No changing requirements. No “let’s redo it differently”. When the brief is clear – the case is controllable. When the process is disciplined – the result is predictable. Want the same smooth process without chaos and endless revisions? Message us – we’ll structure the task before it even starts. › TG: https://t.me/mustang_service ( https:// t.me/ mustang_service ) › Channel: https://t.me/+JPpJCETg-xM1NjNl ( https:// t.me/ +JPpJCETg-xM1NjNl ) #MustangService #verification #documents #case #antifraud #rendering
    • i know some things from java and eclipse about coding but for sure i take one programmer to make the hard work. thank you very much for your replying 🙂
    • Forum Post:   🛡️ L2Genesis Closed Beta — Test With Us, Launch With Exclusive Rewards Join the community: https://discord.gg/mcuHsQzNCm Website: https://l2genesis.com/ Join Beta: https://cbt.l2genesis.com/     Hey everyone, We're L2Genesis — an Interlude Classic server being built with one core belief: every player matters. Not just the top clans, not just the donators — everyone. We've spent months developing, refining, and listening to community feedback. Now we're opening up our Closed Beta and we need your help to make sure this server launches rock-solid. Registration is open for one week only — after that, the doors close. Every tester who puts in the work walks into launch day with exclusive rewards that won't be available again.     Why Genesis? We're not rushing to open doors and hope for the best. We're building a community-first server where player feedback directly shapes the final product. No pay-to-win, no shortcuts — just a clean Interlude experience with thoughtful quality-of-life improvements. If you've been burned by servers that promise the world and deliver a cash shop, this one's for you. What you can expect to see on our server: - x4 rate - Player buff trade shop - Crystallization shop - Arena mode for FUN PvP     Closed Beta Rewards Rewards are tied to real participation — no freebies for just showing up. 🥉 Tier 1 The test server runs at x100 rates with a gear shop, so you won't be grinding for days just to start testing. Requirements: Register, level to S-grade, complete 3rd profession, and join one of the organized beta clans.   Launch Rewards: - Exclusive "Genesis Start" Discord rank - Beta Box — unique hat (won't be available after launch) + big-head potions, fireworks & more   Optional: Participate in the Bug Hunt for additional rewards (details below). You will have one week from CBT server launch to complete Tier 1 🥇 Tier 2 Requirements: Complete Tier 1 + participate in at least 3 events like Clan Wars, Siege and others, they will be stated during CBT in Discord. Launch Rewards: - Everything from Tier 1 - 1 Month of VIP status — quality-of-life perks handed to you for free on day one     🐛 Bug Hunt — Bonus Rewards Throughout the beta we're running a Bug Hunt — find and report bugs to earn 1 Genesis Coin (donation currency) for every confirmed bug. We'll share full details and focus areas once you're in.     Get Involved This is your chance to shape a server before it launches, not complain about it after. The testers who show up now are the ones who'll feel the difference on day one — and they'll have the exclusive rewards to prove it. Sign Up for beta test and drop in to Discord, and let's build something worth logging into. Even if you're not ready to test but you're a veteran L2 player — join the community anyway. Your experience and perspective are worth a lot to us. See you in Aden.  
    • l2jlucera the source code is not public and is not for sale. If you're going to use L2jMobius or L2jAcis, you need to know how to program or have a basic understanding, and you can ask for help from a bot, which usually won't be 100% helpful. Or you can pay a programmer to do the work for you.  
    • You need for sure some knowledge to make a good start and dont get scammed.
  • 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..