Jump to content

Recommended Posts

  • 4 weeks later...
Posted

Very good,but i want something like that..

Example..

You have items to become hero (2 items)

and when you use the item to become here you have 1 item left..

when you use again you have 0..

 

if someone can help me thanks a lot

sry for my english..

 

  • 1 month later...
Posted

Hey, I want to know if this works on L2j Gracia Final. I`ve already made a new HeroItem.java document in gameserver/data/scripts/handlers/itemhandlers folder, but i cant find GameServer.java file appearently it doesn`t exsist.

 

Found the file but appearently it doesnt work with L2j Gracia Final. I get an error while starting the GameServer and all scripts gets disabled.

 

Same prob here. I couldn't find the GameServer.java , i have l2j Gracia Final l2jserver with no compiled server.

Posted

Same prob here. I couldn't find the GameServer.java , i have l2j Gracia Final l2jserver with no compiled server.

 

>_>

Probably because at gracia you register them at MasterHandler?

Posted

Thanks! I will try it. Umm where should i add these lines at the first post in the masterhandler?

 

MasterHadler:

 

/*
* 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 handlers;

import handlers.admincommandhandlers.*;
import handlers.chathandlers.*;
import handlers.itemhandlers.*;
import handlers.skillhandlers.*;
import handlers.usercommandhandlers.*;
import handlers.voicedcommandhandlers.*;

import java.util.logging.Logger;

import net.sf.l2j.Config;
import net.sf.l2j.gameserver.handler.AdminCommandHandler;
import net.sf.l2j.gameserver.handler.ChatHandler;
import net.sf.l2j.gameserver.handler.ItemHandler;
import net.sf.l2j.gameserver.handler.SkillHandler;
import net.sf.l2j.gameserver.handler.UserCommandHandler;
import net.sf.l2j.gameserver.handler.VoicedCommandHandler;

/**
*
* @author  nBd
*/
public class MasterHandler
{
private static Logger _log = Logger.getLogger(MasterHandler.class.getName());

private static void loadAdminHandlers()
{
	AdminCommandHandler.getInstance().registerAdminCommandHandler(new AdminAdmin());
	AdminCommandHandler.getInstance().registerAdminCommandHandler(new AdminAnnouncements());
	AdminCommandHandler.getInstance().registerAdminCommandHandler(new AdminBan());
	AdminCommandHandler.getInstance().registerAdminCommandHandler(new AdminBBS());
	AdminCommandHandler.getInstance().registerAdminCommandHandler(new AdminBuffs());
	AdminCommandHandler.getInstance().registerAdminCommandHandler(new AdminCache());
	AdminCommandHandler.getInstance().registerAdminCommandHandler(new AdminChangeAccessLevel());
	AdminCommandHandler.getInstance().registerAdminCommandHandler(new AdminCreateItem());
	AdminCommandHandler.getInstance().registerAdminCommandHandler(new AdminCursedWeapons());
	AdminCommandHandler.getInstance().registerAdminCommandHandler(new AdminDelete());
	AdminCommandHandler.getInstance().registerAdminCommandHandler(new AdminDisconnect());
	AdminCommandHandler.getInstance().registerAdminCommandHandler(new AdminDoorControl());
	AdminCommandHandler.getInstance().registerAdminCommandHandler(new AdminEditChar());
	AdminCommandHandler.getInstance().registerAdminCommandHandler(new AdminEditNpc());
	AdminCommandHandler.getInstance().registerAdminCommandHandler(new AdminEffects());
	AdminCommandHandler.getInstance().registerAdminCommandHandler(new AdminElement());
	AdminCommandHandler.getInstance().registerAdminCommandHandler(new AdminEnchant());
	AdminCommandHandler.getInstance().registerAdminCommandHandler(new AdminEventEngine());
	AdminCommandHandler.getInstance().registerAdminCommandHandler(new AdminExpSp());
	AdminCommandHandler.getInstance().registerAdminCommandHandler(new AdminFightCalculator());
	AdminCommandHandler.getInstance().registerAdminCommandHandler(new AdminFortSiege());
	AdminCommandHandler.getInstance().registerAdminCommandHandler(new AdminGeodata());
	AdminCommandHandler.getInstance().registerAdminCommandHandler(new AdminGeoEditor());
	AdminCommandHandler.getInstance().registerAdminCommandHandler(new AdminGm());
	AdminCommandHandler.getInstance().registerAdminCommandHandler(new AdminGmChat());
	AdminCommandHandler.getInstance().registerAdminCommandHandler(new AdminHeal());
	AdminCommandHandler.getInstance().registerAdminCommandHandler(new AdminHelpPage());
	AdminCommandHandler.getInstance().registerAdminCommandHandler(new AdminInstance());
	AdminCommandHandler.getInstance().registerAdminCommandHandler(new AdminInvul());
	AdminCommandHandler.getInstance().registerAdminCommandHandler(new AdminKick());
	AdminCommandHandler.getInstance().registerAdminCommandHandler(new AdminKill());
	AdminCommandHandler.getInstance().registerAdminCommandHandler(new AdminLevel());
	AdminCommandHandler.getInstance().registerAdminCommandHandler(new AdminLogin());
	AdminCommandHandler.getInstance().registerAdminCommandHandler(new AdminMammon());
	AdminCommandHandler.getInstance().registerAdminCommandHandler(new AdminManor());
	AdminCommandHandler.getInstance().registerAdminCommandHandler(new AdminMenu());
	AdminCommandHandler.getInstance().registerAdminCommandHandler(new AdminMobGroup());
	AdminCommandHandler.getInstance().registerAdminCommandHandler(new AdminMonsterRace());
	AdminCommandHandler.getInstance().registerAdminCommandHandler(new AdminPathNode());
	AdminCommandHandler.getInstance().registerAdminCommandHandler(new AdminPetition());
	AdminCommandHandler.getInstance().registerAdminCommandHandler(new AdminPForge());
	AdminCommandHandler.getInstance().registerAdminCommandHandler(new AdminPledge());
	AdminCommandHandler.getInstance().registerAdminCommandHandler(new AdminPolymorph());
	AdminCommandHandler.getInstance().registerAdminCommandHandler(new AdminQuest());
	AdminCommandHandler.getInstance().registerAdminCommandHandler(new AdminRepairChar());
	AdminCommandHandler.getInstance().registerAdminCommandHandler(new AdminRes());
	AdminCommandHandler.getInstance().registerAdminCommandHandler(new AdminRide());
	AdminCommandHandler.getInstance().registerAdminCommandHandler(new AdminShop());
	AdminCommandHandler.getInstance().registerAdminCommandHandler(new AdminShutdown());
	AdminCommandHandler.getInstance().registerAdminCommandHandler(new AdminSiege());
	AdminCommandHandler.getInstance().registerAdminCommandHandler(new AdminSkill());
	AdminCommandHandler.getInstance().registerAdminCommandHandler(new AdminSpawn());
	AdminCommandHandler.getInstance().registerAdminCommandHandler(new AdminSummon());
	AdminCommandHandler.getInstance().registerAdminCommandHandler(new AdminTarget());
	AdminCommandHandler.getInstance().registerAdminCommandHandler(new AdminTeleport());
	AdminCommandHandler.getInstance().registerAdminCommandHandler(new AdminTest());
	AdminCommandHandler.getInstance().registerAdminCommandHandler(new AdminTvTEvent());
	AdminCommandHandler.getInstance().registerAdminCommandHandler(new AdminUnblockIp());
	AdminCommandHandler.getInstance().registerAdminCommandHandler(new AdminZone());
	_log.config("Loaded " + AdminCommandHandler.getInstance().size() + "  AdminCommandHandlers");
}

private static void loadChatHandlers()
{
	ChatHandler.getInstance().registerChatHandler(new ChatAll());
	ChatHandler.getInstance().registerChatHandler(new ChatAlliance());
	ChatHandler.getInstance().registerChatHandler(new ChatClan());
	ChatHandler.getInstance().registerChatHandler(new ChatHeroVoice());
	ChatHandler.getInstance().registerChatHandler(new ChatParty());
	ChatHandler.getInstance().registerChatHandler(new ChatPartyRoomAll());
	ChatHandler.getInstance().registerChatHandler(new ChatPartyRoomCommander());
	ChatHandler.getInstance().registerChatHandler(new ChatPetition());
	ChatHandler.getInstance().registerChatHandler(new ChatShout());
	ChatHandler.getInstance().registerChatHandler(new ChatTell());
	ChatHandler.getInstance().registerChatHandler(new ChatTrade());
	_log.config("Loaded " + ChatHandler.getInstance().size() + "  ChatHandlers");
}

private static void loadItemHandlers()
{
	ItemHandler.getInstance().registerItemHandler(new ScrollOfResurrection());
	ItemHandler.getInstance().registerItemHandler(new SoulShots());
	ItemHandler.getInstance().registerItemHandler(new SpiritShot());
	ItemHandler.getInstance().registerItemHandler(new BlessedSpiritShot());
	ItemHandler.getInstance().registerItemHandler(new BeastSoulShot());
	ItemHandler.getInstance().registerItemHandler(new BeastSpiritShot());
	ItemHandler.getInstance().registerItemHandler(new PaganKeys());
	ItemHandler.getInstance().registerItemHandler(new Maps());
	ItemHandler.getInstance().registerItemHandler(new Potions());
	ItemHandler.getInstance().registerItemHandler(new Recipes());
	ItemHandler.getInstance().registerItemHandler(new RollingDice());
	ItemHandler.getInstance().registerItemHandler(new EnchantAttribute());
	ItemHandler.getInstance().registerItemHandler(new EnchantScrolls());
	ItemHandler.getInstance().registerItemHandler(new Book());
	ItemHandler.getInstance().registerItemHandler(new SoulCrystals());
	ItemHandler.getInstance().registerItemHandler(new SevenSignsRecord());
	ItemHandler.getInstance().registerItemHandler(new ItemSkills());
	ItemHandler.getInstance().registerItemHandler(new Seed());
	ItemHandler.getInstance().registerItemHandler(new Harvester());
	ItemHandler.getInstance().registerItemHandler(new MercTicket());
	ItemHandler.getInstance().registerItemHandler(new FishShots());
	ItemHandler.getInstance().registerItemHandler(new PetFood());
	ItemHandler.getInstance().registerItemHandler(new SpecialXMas());
	ItemHandler.getInstance().registerItemHandler(new SummonItems());
	ItemHandler.getInstance().registerItemHandler(new BeastSpice());
	ItemHandler.getInstance().registerItemHandler(new TeleportBookmark());
	ItemHandler.getInstance().registerItemHandler(new Elixir());
	_log.config("Loaded " + ItemHandler.getInstance().size() + " ItemHandlers");
}

private static void loadSkillHandlers()
{
	SkillHandler.getInstance().registerSkillHandler(new Blow());
	SkillHandler.getInstance().registerSkillHandler(new Pdam());
	SkillHandler.getInstance().registerSkillHandler(new Mdam());
	SkillHandler.getInstance().registerSkillHandler(new CpDam());
	SkillHandler.getInstance().registerSkillHandler(new Manadam());
	SkillHandler.getInstance().registerSkillHandler(new Heal());
	SkillHandler.getInstance().registerSkillHandler(new CombatPointHeal());
	SkillHandler.getInstance().registerSkillHandler(new ManaHeal());
	SkillHandler.getInstance().registerSkillHandler(new BalanceLife());
	SkillHandler.getInstance().registerSkillHandler(new Charge());
	SkillHandler.getInstance().registerSkillHandler(new Continuous());
	SkillHandler.getInstance().registerSkillHandler(new ChangeFace());
	SkillHandler.getInstance().registerSkillHandler(new Resurrect());
	SkillHandler.getInstance().registerSkillHandler(new ShiftTarget());
	SkillHandler.getInstance().registerSkillHandler(new Spoil());
	SkillHandler.getInstance().registerSkillHandler(new Sweep());
	SkillHandler.getInstance().registerSkillHandler(new StrSiegeAssault());
	SkillHandler.getInstance().registerSkillHandler(new SummonFriend());
	SkillHandler.getInstance().registerSkillHandler(new SummonTreasureKey());
	SkillHandler.getInstance().registerSkillHandler(new Disablers());
	SkillHandler.getInstance().registerSkillHandler(new Recall());
	SkillHandler.getInstance().registerSkillHandler(new BallistaBomb());
	SkillHandler.getInstance().registerSkillHandler(new TakeCastle());
	SkillHandler.getInstance().registerSkillHandler(new TakeFort());
	SkillHandler.getInstance().registerSkillHandler(new Unlock());
	SkillHandler.getInstance().registerSkillHandler(new DrainSoul());
	SkillHandler.getInstance().registerSkillHandler(new Craft());
	SkillHandler.getInstance().registerSkillHandler(new Fishing());
	SkillHandler.getInstance().registerSkillHandler(new FishingSkill());
	SkillHandler.getInstance().registerSkillHandler(new LearnSkill());
	SkillHandler.getInstance().registerSkillHandler(new BeastFeed());
	SkillHandler.getInstance().registerSkillHandler(new DeluxeKey());
	SkillHandler.getInstance().registerSkillHandler(new Sow());
	SkillHandler.getInstance().registerSkillHandler(new Soul());
	SkillHandler.getInstance().registerSkillHandler(new Harvest());
	SkillHandler.getInstance().registerSkillHandler(new GetPlayer());
	SkillHandler.getInstance().registerSkillHandler(new TransformDispel());
	SkillHandler.getInstance().registerSkillHandler(new Trap());
	SkillHandler.getInstance().registerSkillHandler(new GiveSp());
	SkillHandler.getInstance().registerSkillHandler(new InstantJump());
	SkillHandler.getInstance().registerSkillHandler(new Dummy());
	SkillHandler.getInstance().registerSkillHandler(new Extractable());
	_log.config("Loaded " + SkillHandler.getInstance().size() + " SkillHandlers");
}

private static void loadUserHandlers()
{
	UserCommandHandler.getInstance().registerUserCommandHandler(new ClanPenalty());
	UserCommandHandler.getInstance().registerUserCommandHandler(new ClanWarsList());
	UserCommandHandler.getInstance().registerUserCommandHandler(new DisMount());
	UserCommandHandler.getInstance().registerUserCommandHandler(new Escape());
	UserCommandHandler.getInstance().registerUserCommandHandler(new InstanceZone());
	UserCommandHandler.getInstance().registerUserCommandHandler(new Loc());
	UserCommandHandler.getInstance().registerUserCommandHandler(new Mount());
	UserCommandHandler.getInstance().registerUserCommandHandler(new PartyInfo());
	UserCommandHandler.getInstance().registerUserCommandHandler(new Time());
	UserCommandHandler.getInstance().registerUserCommandHandler(new OlympiadStat());
	UserCommandHandler.getInstance().registerUserCommandHandler(new ChannelLeave());
	UserCommandHandler.getInstance().registerUserCommandHandler(new ChannelDelete());
	UserCommandHandler.getInstance().registerUserCommandHandler(new ChannelListUpdate());
	_log.config("Loaded " + UserCommandHandler.getInstance().size() + " UserHandlers");
}

private static void loadVoicedHandlers()
{
	VoicedCommandHandler.getInstance().registerVoicedCommandHandler(new stats());
	if (Config.L2JMOD_ALLOW_WEDDING)
		VoicedCommandHandler.getInstance().registerVoicedCommandHandler(new Wedding());
	if (Config.BANKING_SYSTEM_ENABLED)
		VoicedCommandHandler.getInstance().registerVoicedCommandHandler(new Banking());
	_log.config("Loaded " + VoicedCommandHandler.getInstance().size() + " VoicedHandlers");
}

/**
 * @param args
 */
public static void main(String[] args)
{
	_log.config("Loading Handlers...");
	loadAdminHandlers();
	loadChatHandlers();
	loadItemHandlers();
	loadSkillHandlers();
	loadUserHandlers();
	loadVoicedHandlers();
	_log.config("Handlers Loaded...");
}
}

 

I guess at start of the file but where exactly?

Posted

I get this:

 

aaach.jpg

 

aaaazp.jpg

 

 

MasterHandler.java:

 

/*

* 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 handlers;

 

import handlers.admincommandhandlers.*;

import handlers.chathandlers.*;

import handlers.itemhandlers.*;

import handlers.skillhandlers.*;

import handlers.usercommandhandlers.*;

import handlers.voicedcommandhandlers.*;

 

import java.util.logging.Logger;

 

import net.sf.l2j.Config;

import net.sf.l2j.gameserver.handler.AdminCommandHandler;

import net.sf.l2j.gameserver.handler.ChatHandler;

import net.sf.l2j.gameserver.handler.ItemHandler;

import net.sf.l2j.gameserver.handler.SkillHandler;

import net.sf.l2j.gameserver.handler.UserCommandHandler;

import net.sf.l2j.gameserver.handler.VoicedCommandHandler;

import net.sf.l2j.gameserver.handler.itemhandlers.Harvester;

import net.sf.l2j.gameserver.handler.itemhandlers.HeroItem;

import net.sf.l2j.gameserver.handler.itemhandlers.Maps;

 

/**

*

* @author  nBd

*/

public class MasterHandler

{

private static Logger _log = Logger.getLogger(MasterHandler.class.getName());

 

private static void loadAdminHandlers()

{

AdminCommandHandler.getInstance().registerAdminCommandHandler(new AdminAdmin());

AdminCommandHandler.getInstance().registerAdminCommandHandler(new AdminAnnouncements());

AdminCommandHandler.getInstance().registerAdminCommandHandler(new AdminBan());

AdminCommandHandler.getInstance().registerAdminCommandHandler(new AdminBBS());

AdminCommandHandler.getInstance().registerAdminCommandHandler(new AdminBuffs());

AdminCommandHandler.getInstance().registerAdminCommandHandler(new AdminCache());

AdminCommandHandler.getInstance().registerAdminCommandHandler(new AdminChangeAccessLevel());

AdminCommandHandler.getInstance().registerAdminCommandHandler(new AdminCreateItem());

AdminCommandHandler.getInstance().registerAdminCommandHandler(new AdminCursedWeapons());

AdminCommandHandler.getInstance().registerAdminCommandHandler(new AdminDelete());

AdminCommandHandler.getInstance().registerAdminCommandHandler(new AdminDisconnect());

AdminCommandHandler.getInstance().registerAdminCommandHandler(new AdminDoorControl());

AdminCommandHandler.getInstance().registerAdminCommandHandler(new AdminEditChar());

AdminCommandHandler.getInstance().registerAdminCommandHandler(new AdminEditNpc());

AdminCommandHandler.getInstance().registerAdminCommandHandler(new AdminEffects());

AdminCommandHandler.getInstance().registerAdminCommandHandler(new AdminElement());

AdminCommandHandler.getInstance().registerAdminCommandHandler(new AdminEnchant());

AdminCommandHandler.getInstance().registerAdminCommandHandler(new AdminEventEngine());

AdminCommandHandler.getInstance().registerAdminCommandHandler(new AdminExpSp());

AdminCommandHandler.getInstance().registerAdminCommandHandler(new AdminFightCalculator());

AdminCommandHandler.getInstance().registerAdminCommandHandler(new AdminFortSiege());

AdminCommandHandler.getInstance().registerAdminCommandHandler(new AdminGeodata());

AdminCommandHandler.getInstance().registerAdminCommandHandler(new AdminGeoEditor());

AdminCommandHandler.getInstance().registerAdminCommandHandler(new AdminGm());

AdminCommandHandler.getInstance().registerAdminCommandHandler(new AdminGmChat());

AdminCommandHandler.getInstance().registerAdminCommandHandler(new AdminHeal());

AdminCommandHandler.getInstance().registerAdminCommandHandler(new AdminHelpPage());

AdminCommandHandler.getInstance().registerAdminCommandHandler(new AdminInstance());

AdminCommandHandler.getInstance().registerAdminCommandHandler(new AdminInvul());

AdminCommandHandler.getInstance().registerAdminCommandHandler(new AdminKick());

AdminCommandHandler.getInstance().registerAdminCommandHandler(new AdminKill());

AdminCommandHandler.getInstance().registerAdminCommandHandler(new AdminLevel());

AdminCommandHandler.getInstance().registerAdminCommandHandler(new AdminLogin());

AdminCommandHandler.getInstance().registerAdminCommandHandler(new AdminMammon());

AdminCommandHandler.getInstance().registerAdminCommandHandler(new AdminManor());

AdminCommandHandler.getInstance().registerAdminCommandHandler(new AdminMenu());

AdminCommandHandler.getInstance().registerAdminCommandHandler(new AdminMobGroup());

AdminCommandHandler.getInstance().registerAdminCommandHandler(new AdminMonsterRace());

AdminCommandHandler.getInstance().registerAdminCommandHandler(new AdminPathNode());

AdminCommandHandler.getInstance().registerAdminCommandHandler(new AdminPetition());

AdminCommandHandler.getInstance().registerAdminCommandHandler(new AdminPForge());

AdminCommandHandler.getInstance().registerAdminCommandHandler(new AdminPledge());

AdminCommandHandler.getInstance().registerAdminCommandHandler(new AdminPolymorph());

AdminCommandHandler.getInstance().registerAdminCommandHandler(new AdminQuest());

AdminCommandHandler.getInstance().registerAdminCommandHandler(new AdminRepairChar());

AdminCommandHandler.getInstance().registerAdminCommandHandler(new AdminRes());

AdminCommandHandler.getInstance().registerAdminCommandHandler(new AdminRide());

AdminCommandHandler.getInstance().registerAdminCommandHandler(new AdminShop());

AdminCommandHandler.getInstance().registerAdminCommandHandler(new AdminShutdown());

AdminCommandHandler.getInstance().registerAdminCommandHandler(new AdminSiege());

AdminCommandHandler.getInstance().registerAdminCommandHandler(new AdminSkill());

AdminCommandHandler.getInstance().registerAdminCommandHandler(new AdminSpawn());

AdminCommandHandler.getInstance().registerAdminCommandHandler(new AdminSummon());

AdminCommandHandler.getInstance().registerAdminCommandHandler(new AdminTarget());

AdminCommandHandler.getInstance().registerAdminCommandHandler(new AdminTeleport());

AdminCommandHandler.getInstance().registerAdminCommandHandler(new AdminTest());

AdminCommandHandler.getInstance().registerAdminCommandHandler(new AdminTvTEvent());

AdminCommandHandler.getInstance().registerAdminCommandHandler(new AdminUnblockIp());

AdminCommandHandler.getInstance().registerAdminCommandHandler(new AdminZone());

_log.config("Loaded " + AdminCommandHandler.getInstance().size() + "  AdminCommandHandlers");

}

 

private static void loadChatHandlers()

{

ChatHandler.getInstance().registerChatHandler(new ChatAll());

ChatHandler.getInstance().registerChatHandler(new ChatAlliance());

ChatHandler.getInstance().registerChatHandler(new ChatClan());

ChatHandler.getInstance().registerChatHandler(new ChatHeroVoice());

ChatHandler.getInstance().registerChatHandler(new ChatParty());

ChatHandler.getInstance().registerChatHandler(new ChatPartyRoomAll());

ChatHandler.getInstance().registerChatHandler(new ChatPartyRoomCommander());

ChatHandler.getInstance().registerChatHandler(new ChatPetition());

ChatHandler.getInstance().registerChatHandler(new ChatShout());

ChatHandler.getInstance().registerChatHandler(new ChatTell());

ChatHandler.getInstance().registerChatHandler(new ChatTrade());

_log.config("Loaded " + ChatHandler.getInstance().size() + "  ChatHandlers");

}

 

private static void loadItemHandlers()

{

ItemHandler.getInstance().registerItemHandler(new ScrollOfResurrection());

ItemHandler.getInstance().registerItemHandler(new SoulShots());

ItemHandler.getInstance().registerItemHandler(new SpiritShot());

ItemHandler.getInstance().registerItemHandler(new BlessedSpiritShot());

ItemHandler.getInstance().registerItemHandler(new BeastSoulShot());

ItemHandler.getInstance().registerItemHandler(new BeastSpiritShot());

ItemHandler.getInstance().registerItemHandler(new PaganKeys());

ItemHandler.getInstance().registerItemHandler(new Maps());

ItemHandler.getInstance().registerItemHandler(new Potions());

ItemHandler.getInstance().registerItemHandler(new Recipes());

ItemHandler.getInstance().registerItemHandler(new RollingDice());

ItemHandler.getInstance().registerItemHandler(new EnchantAttribute());

ItemHandler.getInstance().registerItemHandler(new EnchantScrolls());

ItemHandler.getInstance().registerItemHandler(new Book());

ItemHandler.getInstance().registerItemHandler(new SoulCrystals());

ItemHandler.getInstance().registerItemHandler(new SevenSignsRecord());

ItemHandler.getInstance().registerItemHandler(new ItemSkills());

ItemHandler.getInstance().registerItemHandler(new Seed());

ItemHandler.getInstance().registerItemHandler(new Harvester());

ItemHandler.getInstance().registerItemHandler(new MercTicket());

ItemHandler.getInstance().registerItemHandler(new FishShots());

ItemHandler.getInstance().registerItemHandler(new PetFood());

ItemHandler.getInstance().registerItemHandler(new SpecialXMas());

ItemHandler.getInstance().registerItemHandler(new SummonItems());

ItemHandler.getInstance().registerItemHandler(new BeastSpice());

ItemHandler.getInstance().registerItemHandler(new TeleportBookmark());

ItemHandler.getInstance().registerItemHandler(new Elixir());

               _itemHandler.registerItemHandler(new BeastSpice());

               _itemHandler.registerItemHandler(new HeroItem());

_log.config("Loaded " + ItemHandler.getInstance().size() + " ItemHandlers");

}

 

private static void loadSkillHandlers()

{

SkillHandler.getInstance().registerSkillHandler(new Blow());

SkillHandler.getInstance().registerSkillHandler(new Pdam());

SkillHandler.getInstance().registerSkillHandler(new Mdam());

SkillHandler.getInstance().registerSkillHandler(new CpDam());

SkillHandler.getInstance().registerSkillHandler(new Manadam());

SkillHandler.getInstance().registerSkillHandler(new Heal());

SkillHandler.getInstance().registerSkillHandler(new CombatPointHeal());

SkillHandler.getInstance().registerSkillHandler(new ManaHeal());

SkillHandler.getInstance().registerSkillHandler(new BalanceLife());

SkillHandler.getInstance().registerSkillHandler(new Charge());

SkillHandler.getInstance().registerSkillHandler(new Continuous());

SkillHandler.getInstance().registerSkillHandler(new ChangeFace());

SkillHandler.getInstance().registerSkillHandler(new Resurrect());

SkillHandler.getInstance().registerSkillHandler(new ShiftTarget());

SkillHandler.getInstance().registerSkillHandler(new Spoil());

SkillHandler.getInstance().registerSkillHandler(new Sweep());

SkillHandler.getInstance().registerSkillHandler(new StrSiegeAssault());

SkillHandler.getInstance().registerSkillHandler(new SummonFriend());

SkillHandler.getInstance().registerSkillHandler(new SummonTreasureKey());

SkillHandler.getInstance().registerSkillHandler(new Disablers());

SkillHandler.getInstance().registerSkillHandler(new Recall());

SkillHandler.getInstance().registerSkillHandler(new BallistaBomb());

SkillHandler.getInstance().registerSkillHandler(new TakeCastle());

SkillHandler.getInstance().registerSkillHandler(new TakeFort());

SkillHandler.getInstance().registerSkillHandler(new Unlock());

SkillHandler.getInstance().registerSkillHandler(new DrainSoul());

SkillHandler.getInstance().registerSkillHandler(new Craft());

SkillHandler.getInstance().registerSkillHandler(new Fishing());

SkillHandler.getInstance().registerSkillHandler(new FishingSkill());

SkillHandler.getInstance().registerSkillHandler(new LearnSkill());

SkillHandler.getInstance().registerSkillHandler(new BeastFeed());

SkillHandler.getInstance().registerSkillHandler(new DeluxeKey());

SkillHandler.getInstance().registerSkillHandler(new Sow());

SkillHandler.getInstance().registerSkillHandler(new Soul());

SkillHandler.getInstance().registerSkillHandler(new Harvest());

SkillHandler.getInstance().registerSkillHandler(new GetPlayer());

SkillHandler.getInstance().registerSkillHandler(new TransformDispel());

SkillHandler.getInstance().registerSkillHandler(new Trap());

SkillHandler.getInstance().registerSkillHandler(new GiveSp());

SkillHandler.getInstance().registerSkillHandler(new InstantJump());

SkillHandler.getInstance().registerSkillHandler(new Dummy());

SkillHandler.getInstance().registerSkillHandler(new Extractable());

_log.config("Loaded " + SkillHandler.getInstance().size() + " SkillHandlers");

}

 

private static void loadUserHandlers()

{

UserCommandHandler.getInstance().registerUserCommandHandler(new ClanPenalty());

UserCommandHandler.getInstance().registerUserCommandHandler(new ClanWarsList());

UserCommandHandler.getInstance().registerUserCommandHandler(new DisMount());

UserCommandHandler.getInstance().registerUserCommandHandler(new Escape());

UserCommandHandler.getInstance().registerUserCommandHandler(new InstanceZone());

UserCommandHandler.getInstance().registerUserCommandHandler(new Loc());

UserCommandHandler.getInstance().registerUserCommandHandler(new Mount());

UserCommandHandler.getInstance().registerUserCommandHandler(new PartyInfo());

UserCommandHandler.getInstance().registerUserCommandHandler(new Time());

UserCommandHandler.getInstance().registerUserCommandHandler(new OlympiadStat());

UserCommandHandler.getInstance().registerUserCommandHandler(new ChannelLeave());

UserCommandHandler.getInstance().registerUserCommandHandler(new ChannelDelete());

UserCommandHandler.getInstance().registerUserCommandHandler(new ChannelListUpdate());

_log.config("Loaded " + UserCommandHandler.getInstance().size() + " UserHandlers");

}

 

private static void loadVoicedHandlers()

{

VoicedCommandHandler.getInstance().registerVoicedCommandHandler(new stats());

if (Config.L2JMOD_ALLOW_WEDDING)

VoicedCommandHandler.getInstance().registerVoicedCommandHandler(new Wedding());

if (Config.BANKING_SYSTEM_ENABLED)

VoicedCommandHandler.getInstance().registerVoicedCommandHandler(new Banking());

_log.config("Loaded " + VoicedCommandHandler.getInstance().size() + " VoicedHandlers");

}

 

/**

* @param args

*/

public static void main(String[] args)

{

_log.config("Loading Handlers...");

loadAdminHandlers();

loadChatHandlers();

loadItemHandlers();

loadSkillHandlers();

loadUserHandlers();

loadVoicedHandlers();

_log.config("Handlers Loaded...");

}

}

 

MasterHandler.java.error.log:

 

Error on: C:\l2j server\server\core_unstable\core_unstable\gameserver\data\scripts\handlers\MasterHandler.java.error.log
Line: -1 - Column: -1

compilation failed

 

:( thx for any help

 

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.


×
×
  • Create New...