Jump to content

Recommended Posts

Posted

i dont know how to do it, can you write all part of the code?

here it is

/*
* 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 com.l2jhellas.gameserver.handler.admincommandhandlers;

import com.l2jhellas.gameserver.handler.IAdminCommandHandler;
import com.l2jhellas.gameserver.model.actor.instance.L2PcInstance;
import com.l2jhellas.gameserver.model.entity.engines.CastleWars;

/**
* This class handles following admin commands: - delete = deletes target
* 
* @version $Revision: 1.2.2.1.2.4 $ $Date: 2005/04/11 10:05:56 $
*/
public class AdminDelete implements IAdminCommandHandler
{

private static final String[] ADMIN_COMMANDS =
{
	"castlewars"
};

@Override
public boolean useAdminCommand(String command, L2PcInstance activeChar)
{
	if (command.equals("admin_castlewars"))
		CastleWars.openRegi();
}

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


}

Posted

/*
* 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 com.l2jfrozen.gameserver.handler.admincommandhandlers;

import com.l2jfrozen.gameserver.handler.IAdminCommandHandler;
import com.l2jfrozen.gameserver.model.actor.instance.L2PcInstance;
import com.l2jfrozen.gameserver.model.entity.event.CastleWars;

/**
* This class handles following admin commands: - delete = deletes target
* 
* @version $Revision: 1.2.2.1.2.4 $ $Date: 2005/04/11 10:05:56 $
*/
public class AdminReg implements IAdminCommandHandler
{

private static final String[] ADMIN_COMMANDS =
{
	"castlewars"
};

@Override
public boolean useAdminCommand(String command, L2PcInstance activeChar)
{
	if (command.equals("admin_castlewars"))
		CastleWars.openRegi();
	return false;
}

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


}

 

i made this and added this " INSERT INTO `admin_command_access_rights` VALUES ('admin_castlewars','3');" to database but in game where is problem... when i wrote //castlewars ir wrotes that " where is no such command"  ://

Posted

/*
* 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 com.l2jfrozen.gameserver.handler.admincommandhandlers;

import com.l2jfrozen.gameserver.handler.IAdminCommandHandler;
import com.l2jfrozen.gameserver.model.actor.instance.L2PcInstance;
import com.l2jfrozen.gameserver.model.entity.event.CastleWars;

/**
* This class handles following admin commands: - delete = deletes target
* 
* @version $Revision: 1.2.2.1.2.4 $ $Date: 2005/04/11 10:05:56 $
*/
public class AdminReg implements IAdminCommandHandler
{

private static final String[] ADMIN_COMMANDS =
{
	"castlewars"
};

@Override
public boolean useAdminCommand(String command, L2PcInstance activeChar)
{
	if (command.equals("admin_castlewars"))
		CastleWars.openRegi();
	return false;
}

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


}

 

i made this and added this " INSERT INTO `admin_command_access_rights` VALUES ('admin_castlewars','3');" to database but in game where is problem... when i wrote //castlewars ir wrotes that " where is no such command"  ://

don't forget to register the command in admincommanhandler registerAdminCommandHandler(new AdminReg());

Posted

and one more question :

1. how i will change script if I from "if (CastleWars.isRunning && (isinCastleWars && pk.isinCastleWars))" will delete "  && pk.isinCastleWars" ?

Posted

and one more question :

1. how i will change script if I from "if (CastleWars.isRunning && (isinCastleWars && pk.isinCastleWars))" will delete "  && pk.isinCastleWars" ?

it depends on your project i can tell for sure but if you delete the pk.isinCastleWars the event will still run fine

Posted

it depends on your project i can tell for sure but if you delete the pk.isinCastleWars the event will still run fine

 

And ofcourse thanks you, if i will find some mistake i will report you :))

Posted

it depends on your project i can tell for sure but if you delete the pk.isinCastleWars the event will still run fine

 

And ofcourse thanks you, if i will find some mistake i will report you :))

Posted

I have some reports: in event there is no count down...(thats bad) and when i start event my gm char stuck(but i dont know why) :/

I didn't get the second part as far for the countdown it's easy...

cool share rewarded.

Thanks one more time

Gj mate

Thank you dude!!!

Guest
This topic is now closed to further replies.



  • Posts

    • I had friends who played on Elegant and I can confirm it wasn't a bad server. I don't know about the AI bots running around, but in my opinion the price is simply too high. I don't think many people will spend that much money on Lineage 2 files when alternatives like L2Scripts already exist.   Of course it's all about personal preference, but for such an old chronicle the price seems ridiculously expensive. Modern chronicles usually offer more value.   Anyway, I wish you the best of luck with the sale. This is just my personal opinion. Whoever likes it, good for them, and whoever doesn't, that's fine too. Everyone has different preferences.
    • https://l2avokado.com/ Hello everyone,   After some time of development, we've decided to open L2Avokado to the public in its current development stage. We're looking for players who enjoy Interlude and would like to help shape the project before its official release.   This isn't a "launch" announcement. Instead, we're inviting the community to log in, explore the server, test the systems we've built, and provide honest feedback. Whether it's bug reports, balance suggestions, progression ideas, or quality-of-life improvements, we'd love to hear them.   Our goal has always been to create an Interlude server that feels familiar while offering a fresh progression experience. We've intentionally avoided custom weapons, armor, and client modifications. Instead, we've focused on redesigning progression through reworked hunting grounds, quests, crafting, and gameplay systems while remaining compatible with a clean Interlude client.   At this stage, the core progression path has been implemented, including the main hunting grounds, quests, custom systems, and events. However, as the project is still under active development, there will inevitably be bugs, balance issues, and areas that require further polishing.   This is exactly why we'd like your help.   We're looking for players who are willing to: Test gameplay and progression. Report bugs and exploits. Suggest balance improvements. Share ideas for new features or quality-of-life changes. Help us build a server that the community genuinely enjoys playing.   The Client and System downloads are already available on our website, so you can jump straight into the game. We're also working on a dedicated launcher that will simplify installation and future updates.   If you're interested in helping develop a unique Interlude project and want your feedback to genuinely influence the direction of the server, we'd love to have you with us.   We look forward to seeing you in-game and hearing your thoughts on Discord. https://l2avokado.com/
    • Mate your server used to play with full of bots, from where you find that revenue? 
  • 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..