Addition of OnPlayerTakeHero event.
This commit is contained in:
parent
4869bc1745
commit
63c72de874
@ -45,6 +45,8 @@ import org.l2jmobius.gameserver.model.World;
|
||||
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
|
||||
import org.l2jmobius.gameserver.model.actor.templates.NpcTemplate;
|
||||
import org.l2jmobius.gameserver.model.clan.Clan;
|
||||
import org.l2jmobius.gameserver.model.events.EventDispatcher;
|
||||
import org.l2jmobius.gameserver.model.events.impl.creature.player.OnPlayerTakeHero;
|
||||
import org.l2jmobius.gameserver.model.itemcontainer.Inventory;
|
||||
import org.l2jmobius.gameserver.model.items.instance.ItemInstance;
|
||||
import org.l2jmobius.gameserver.model.olympiad.Olympiad;
|
||||
@ -948,6 +950,7 @@ public class Hero
|
||||
loadFights(player.getObjectId());
|
||||
loadDiary(player.getObjectId());
|
||||
HERO_MESSAGE.put(player.getObjectId(), "");
|
||||
EventDispatcher.getInstance().notifyEvent(new OnPlayerTakeHero(player));
|
||||
|
||||
updateHeroes(false);
|
||||
}
|
||||
|
@ -112,6 +112,7 @@ import org.l2jmobius.gameserver.model.events.impl.creature.player.OnPlayerSubCha
|
||||
import org.l2jmobius.gameserver.model.events.impl.creature.player.OnPlayerSummonAgathion;
|
||||
import org.l2jmobius.gameserver.model.events.impl.creature.player.OnPlayerSummonSpawn;
|
||||
import org.l2jmobius.gameserver.model.events.impl.creature.player.OnPlayerSummonTalk;
|
||||
import org.l2jmobius.gameserver.model.events.impl.creature.player.OnPlayerTakeHero;
|
||||
import org.l2jmobius.gameserver.model.events.impl.creature.player.OnPlayerTransform;
|
||||
import org.l2jmobius.gameserver.model.events.impl.creature.player.OnPlayerUnsummonAgathion;
|
||||
import org.l2jmobius.gameserver.model.events.impl.creature.player.OnTrapAction;
|
||||
@ -268,6 +269,7 @@ public enum EventType
|
||||
ON_PLAYER_SKILL_LEARN(OnPlayerSkillLearn.class, void.class),
|
||||
ON_PLAYER_SUMMON_SPAWN(OnPlayerSummonSpawn.class, void.class),
|
||||
ON_PLAYER_SUMMON_TALK(OnPlayerSummonTalk.class, void.class),
|
||||
ON_PLAYER_TAKE_HERO(OnPlayerTakeHero.class, void.class),
|
||||
ON_PLAYER_TRANSFORM(OnPlayerTransform.class, void.class),
|
||||
ON_PLAYER_SUB_CHANGE(OnPlayerSubChange.class, void.class),
|
||||
ON_PLAYER_QUEST_ABORT(OnPlayerQuestAbort.class, void.class),
|
||||
|
@ -0,0 +1,45 @@
|
||||
/*
|
||||
* This file is part of the L2J Mobius project.
|
||||
*
|
||||
* 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 org.l2jmobius.gameserver.model.events.impl.creature.player;
|
||||
|
||||
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
|
||||
import org.l2jmobius.gameserver.model.events.EventType;
|
||||
import org.l2jmobius.gameserver.model.events.impl.IBaseEvent;
|
||||
|
||||
/**
|
||||
* @author Mobius
|
||||
*/
|
||||
public class OnPlayerTakeHero implements IBaseEvent
|
||||
{
|
||||
private final PlayerInstance _player;
|
||||
|
||||
public OnPlayerTakeHero(PlayerInstance player)
|
||||
{
|
||||
_player = player;
|
||||
}
|
||||
|
||||
public PlayerInstance getPlayer()
|
||||
{
|
||||
return _player;
|
||||
}
|
||||
|
||||
@Override
|
||||
public EventType getType()
|
||||
{
|
||||
return EventType.ON_PLAYER_TAKE_HERO;
|
||||
}
|
||||
}
|
@ -45,6 +45,8 @@ import org.l2jmobius.gameserver.model.World;
|
||||
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
|
||||
import org.l2jmobius.gameserver.model.actor.templates.NpcTemplate;
|
||||
import org.l2jmobius.gameserver.model.clan.Clan;
|
||||
import org.l2jmobius.gameserver.model.events.EventDispatcher;
|
||||
import org.l2jmobius.gameserver.model.events.impl.creature.player.OnPlayerTakeHero;
|
||||
import org.l2jmobius.gameserver.model.itemcontainer.Inventory;
|
||||
import org.l2jmobius.gameserver.model.items.instance.ItemInstance;
|
||||
import org.l2jmobius.gameserver.model.olympiad.Olympiad;
|
||||
@ -948,6 +950,7 @@ public class Hero
|
||||
loadFights(player.getObjectId());
|
||||
loadDiary(player.getObjectId());
|
||||
HERO_MESSAGE.put(player.getObjectId(), "");
|
||||
EventDispatcher.getInstance().notifyEvent(new OnPlayerTakeHero(player));
|
||||
|
||||
updateHeroes(false);
|
||||
}
|
||||
|
@ -112,6 +112,7 @@ import org.l2jmobius.gameserver.model.events.impl.creature.player.OnPlayerSubCha
|
||||
import org.l2jmobius.gameserver.model.events.impl.creature.player.OnPlayerSummonAgathion;
|
||||
import org.l2jmobius.gameserver.model.events.impl.creature.player.OnPlayerSummonSpawn;
|
||||
import org.l2jmobius.gameserver.model.events.impl.creature.player.OnPlayerSummonTalk;
|
||||
import org.l2jmobius.gameserver.model.events.impl.creature.player.OnPlayerTakeHero;
|
||||
import org.l2jmobius.gameserver.model.events.impl.creature.player.OnPlayerTransform;
|
||||
import org.l2jmobius.gameserver.model.events.impl.creature.player.OnPlayerUnsummonAgathion;
|
||||
import org.l2jmobius.gameserver.model.events.impl.creature.player.OnTrapAction;
|
||||
@ -268,6 +269,7 @@ public enum EventType
|
||||
ON_PLAYER_SKILL_LEARN(OnPlayerSkillLearn.class, void.class),
|
||||
ON_PLAYER_SUMMON_SPAWN(OnPlayerSummonSpawn.class, void.class),
|
||||
ON_PLAYER_SUMMON_TALK(OnPlayerSummonTalk.class, void.class),
|
||||
ON_PLAYER_TAKE_HERO(OnPlayerTakeHero.class, void.class),
|
||||
ON_PLAYER_TRANSFORM(OnPlayerTransform.class, void.class),
|
||||
ON_PLAYER_SUB_CHANGE(OnPlayerSubChange.class, void.class),
|
||||
ON_PLAYER_QUEST_ABORT(OnPlayerQuestAbort.class, void.class),
|
||||
|
@ -0,0 +1,45 @@
|
||||
/*
|
||||
* This file is part of the L2J Mobius project.
|
||||
*
|
||||
* 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 org.l2jmobius.gameserver.model.events.impl.creature.player;
|
||||
|
||||
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
|
||||
import org.l2jmobius.gameserver.model.events.EventType;
|
||||
import org.l2jmobius.gameserver.model.events.impl.IBaseEvent;
|
||||
|
||||
/**
|
||||
* @author Mobius
|
||||
*/
|
||||
public class OnPlayerTakeHero implements IBaseEvent
|
||||
{
|
||||
private final PlayerInstance _player;
|
||||
|
||||
public OnPlayerTakeHero(PlayerInstance player)
|
||||
{
|
||||
_player = player;
|
||||
}
|
||||
|
||||
public PlayerInstance getPlayer()
|
||||
{
|
||||
return _player;
|
||||
}
|
||||
|
||||
@Override
|
||||
public EventType getType()
|
||||
{
|
||||
return EventType.ON_PLAYER_TAKE_HERO;
|
||||
}
|
||||
}
|
@ -45,6 +45,8 @@ import org.l2jmobius.gameserver.model.World;
|
||||
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
|
||||
import org.l2jmobius.gameserver.model.actor.templates.NpcTemplate;
|
||||
import org.l2jmobius.gameserver.model.clan.Clan;
|
||||
import org.l2jmobius.gameserver.model.events.EventDispatcher;
|
||||
import org.l2jmobius.gameserver.model.events.impl.creature.player.OnPlayerTakeHero;
|
||||
import org.l2jmobius.gameserver.model.itemcontainer.Inventory;
|
||||
import org.l2jmobius.gameserver.model.items.instance.ItemInstance;
|
||||
import org.l2jmobius.gameserver.model.olympiad.Olympiad;
|
||||
@ -948,6 +950,7 @@ public class Hero
|
||||
loadFights(player.getObjectId());
|
||||
loadDiary(player.getObjectId());
|
||||
HERO_MESSAGE.put(player.getObjectId(), "");
|
||||
EventDispatcher.getInstance().notifyEvent(new OnPlayerTakeHero(player));
|
||||
|
||||
updateHeroes(false);
|
||||
}
|
||||
|
@ -112,6 +112,7 @@ import org.l2jmobius.gameserver.model.events.impl.creature.player.OnPlayerSubCha
|
||||
import org.l2jmobius.gameserver.model.events.impl.creature.player.OnPlayerSummonAgathion;
|
||||
import org.l2jmobius.gameserver.model.events.impl.creature.player.OnPlayerSummonSpawn;
|
||||
import org.l2jmobius.gameserver.model.events.impl.creature.player.OnPlayerSummonTalk;
|
||||
import org.l2jmobius.gameserver.model.events.impl.creature.player.OnPlayerTakeHero;
|
||||
import org.l2jmobius.gameserver.model.events.impl.creature.player.OnPlayerTransform;
|
||||
import org.l2jmobius.gameserver.model.events.impl.creature.player.OnPlayerUnsummonAgathion;
|
||||
import org.l2jmobius.gameserver.model.events.impl.creature.player.OnTrapAction;
|
||||
@ -268,6 +269,7 @@ public enum EventType
|
||||
ON_PLAYER_SKILL_LEARN(OnPlayerSkillLearn.class, void.class),
|
||||
ON_PLAYER_SUMMON_SPAWN(OnPlayerSummonSpawn.class, void.class),
|
||||
ON_PLAYER_SUMMON_TALK(OnPlayerSummonTalk.class, void.class),
|
||||
ON_PLAYER_TAKE_HERO(OnPlayerTakeHero.class, void.class),
|
||||
ON_PLAYER_TRANSFORM(OnPlayerTransform.class, void.class),
|
||||
ON_PLAYER_SUB_CHANGE(OnPlayerSubChange.class, void.class),
|
||||
ON_PLAYER_QUEST_ABORT(OnPlayerQuestAbort.class, void.class),
|
||||
|
@ -0,0 +1,45 @@
|
||||
/*
|
||||
* This file is part of the L2J Mobius project.
|
||||
*
|
||||
* 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 org.l2jmobius.gameserver.model.events.impl.creature.player;
|
||||
|
||||
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
|
||||
import org.l2jmobius.gameserver.model.events.EventType;
|
||||
import org.l2jmobius.gameserver.model.events.impl.IBaseEvent;
|
||||
|
||||
/**
|
||||
* @author Mobius
|
||||
*/
|
||||
public class OnPlayerTakeHero implements IBaseEvent
|
||||
{
|
||||
private final PlayerInstance _player;
|
||||
|
||||
public OnPlayerTakeHero(PlayerInstance player)
|
||||
{
|
||||
_player = player;
|
||||
}
|
||||
|
||||
public PlayerInstance getPlayer()
|
||||
{
|
||||
return _player;
|
||||
}
|
||||
|
||||
@Override
|
||||
public EventType getType()
|
||||
{
|
||||
return EventType.ON_PLAYER_TAKE_HERO;
|
||||
}
|
||||
}
|
@ -45,6 +45,8 @@ import org.l2jmobius.gameserver.model.World;
|
||||
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
|
||||
import org.l2jmobius.gameserver.model.actor.templates.NpcTemplate;
|
||||
import org.l2jmobius.gameserver.model.clan.Clan;
|
||||
import org.l2jmobius.gameserver.model.events.EventDispatcher;
|
||||
import org.l2jmobius.gameserver.model.events.impl.creature.player.OnPlayerTakeHero;
|
||||
import org.l2jmobius.gameserver.model.itemcontainer.Inventory;
|
||||
import org.l2jmobius.gameserver.model.items.instance.ItemInstance;
|
||||
import org.l2jmobius.gameserver.model.olympiad.Olympiad;
|
||||
@ -948,6 +950,7 @@ public class Hero
|
||||
loadFights(player.getObjectId());
|
||||
loadDiary(player.getObjectId());
|
||||
HERO_MESSAGE.put(player.getObjectId(), "");
|
||||
EventDispatcher.getInstance().notifyEvent(new OnPlayerTakeHero(player));
|
||||
|
||||
updateHeroes(false);
|
||||
}
|
||||
|
@ -112,6 +112,7 @@ import org.l2jmobius.gameserver.model.events.impl.creature.player.OnPlayerSubCha
|
||||
import org.l2jmobius.gameserver.model.events.impl.creature.player.OnPlayerSummonAgathion;
|
||||
import org.l2jmobius.gameserver.model.events.impl.creature.player.OnPlayerSummonSpawn;
|
||||
import org.l2jmobius.gameserver.model.events.impl.creature.player.OnPlayerSummonTalk;
|
||||
import org.l2jmobius.gameserver.model.events.impl.creature.player.OnPlayerTakeHero;
|
||||
import org.l2jmobius.gameserver.model.events.impl.creature.player.OnPlayerTransform;
|
||||
import org.l2jmobius.gameserver.model.events.impl.creature.player.OnPlayerUnsummonAgathion;
|
||||
import org.l2jmobius.gameserver.model.events.impl.creature.player.OnTrapAction;
|
||||
@ -268,6 +269,7 @@ public enum EventType
|
||||
ON_PLAYER_SKILL_LEARN(OnPlayerSkillLearn.class, void.class),
|
||||
ON_PLAYER_SUMMON_SPAWN(OnPlayerSummonSpawn.class, void.class),
|
||||
ON_PLAYER_SUMMON_TALK(OnPlayerSummonTalk.class, void.class),
|
||||
ON_PLAYER_TAKE_HERO(OnPlayerTakeHero.class, void.class),
|
||||
ON_PLAYER_TRANSFORM(OnPlayerTransform.class, void.class),
|
||||
ON_PLAYER_SUB_CHANGE(OnPlayerSubChange.class, void.class),
|
||||
ON_PLAYER_QUEST_ABORT(OnPlayerQuestAbort.class, void.class),
|
||||
|
@ -0,0 +1,45 @@
|
||||
/*
|
||||
* This file is part of the L2J Mobius project.
|
||||
*
|
||||
* 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 org.l2jmobius.gameserver.model.events.impl.creature.player;
|
||||
|
||||
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
|
||||
import org.l2jmobius.gameserver.model.events.EventType;
|
||||
import org.l2jmobius.gameserver.model.events.impl.IBaseEvent;
|
||||
|
||||
/**
|
||||
* @author Mobius
|
||||
*/
|
||||
public class OnPlayerTakeHero implements IBaseEvent
|
||||
{
|
||||
private final PlayerInstance _player;
|
||||
|
||||
public OnPlayerTakeHero(PlayerInstance player)
|
||||
{
|
||||
_player = player;
|
||||
}
|
||||
|
||||
public PlayerInstance getPlayer()
|
||||
{
|
||||
return _player;
|
||||
}
|
||||
|
||||
@Override
|
||||
public EventType getType()
|
||||
{
|
||||
return EventType.ON_PLAYER_TAKE_HERO;
|
||||
}
|
||||
}
|
@ -45,6 +45,8 @@ import org.l2jmobius.gameserver.model.World;
|
||||
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
|
||||
import org.l2jmobius.gameserver.model.actor.templates.NpcTemplate;
|
||||
import org.l2jmobius.gameserver.model.clan.Clan;
|
||||
import org.l2jmobius.gameserver.model.events.EventDispatcher;
|
||||
import org.l2jmobius.gameserver.model.events.impl.creature.player.OnPlayerTakeHero;
|
||||
import org.l2jmobius.gameserver.model.itemcontainer.Inventory;
|
||||
import org.l2jmobius.gameserver.model.items.instance.ItemInstance;
|
||||
import org.l2jmobius.gameserver.model.olympiad.Olympiad;
|
||||
@ -948,6 +950,7 @@ public class Hero
|
||||
loadFights(player.getObjectId());
|
||||
loadDiary(player.getObjectId());
|
||||
HERO_MESSAGE.put(player.getObjectId(), "");
|
||||
EventDispatcher.getInstance().notifyEvent(new OnPlayerTakeHero(player));
|
||||
|
||||
updateHeroes(false);
|
||||
}
|
||||
|
@ -112,6 +112,7 @@ import org.l2jmobius.gameserver.model.events.impl.creature.player.OnPlayerSubCha
|
||||
import org.l2jmobius.gameserver.model.events.impl.creature.player.OnPlayerSummonAgathion;
|
||||
import org.l2jmobius.gameserver.model.events.impl.creature.player.OnPlayerSummonSpawn;
|
||||
import org.l2jmobius.gameserver.model.events.impl.creature.player.OnPlayerSummonTalk;
|
||||
import org.l2jmobius.gameserver.model.events.impl.creature.player.OnPlayerTakeHero;
|
||||
import org.l2jmobius.gameserver.model.events.impl.creature.player.OnPlayerTransform;
|
||||
import org.l2jmobius.gameserver.model.events.impl.creature.player.OnPlayerUnsummonAgathion;
|
||||
import org.l2jmobius.gameserver.model.events.impl.creature.player.OnTrapAction;
|
||||
@ -274,6 +275,7 @@ public enum EventType
|
||||
ON_PLAYER_SKILL_LEARN(OnPlayerSkillLearn.class, void.class),
|
||||
ON_PLAYER_SUMMON_SPAWN(OnPlayerSummonSpawn.class, void.class),
|
||||
ON_PLAYER_SUMMON_TALK(OnPlayerSummonTalk.class, void.class),
|
||||
ON_PLAYER_TAKE_HERO(OnPlayerTakeHero.class, void.class),
|
||||
ON_PLAYER_TRANSFORM(OnPlayerTransform.class, void.class),
|
||||
ON_PLAYER_SUB_CHANGE(OnPlayerSubChange.class, void.class),
|
||||
ON_PLAYER_QUEST_ABORT(OnPlayerQuestAbort.class, void.class),
|
||||
|
@ -0,0 +1,45 @@
|
||||
/*
|
||||
* This file is part of the L2J Mobius project.
|
||||
*
|
||||
* 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 org.l2jmobius.gameserver.model.events.impl.creature.player;
|
||||
|
||||
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
|
||||
import org.l2jmobius.gameserver.model.events.EventType;
|
||||
import org.l2jmobius.gameserver.model.events.impl.IBaseEvent;
|
||||
|
||||
/**
|
||||
* @author Mobius
|
||||
*/
|
||||
public class OnPlayerTakeHero implements IBaseEvent
|
||||
{
|
||||
private final PlayerInstance _player;
|
||||
|
||||
public OnPlayerTakeHero(PlayerInstance player)
|
||||
{
|
||||
_player = player;
|
||||
}
|
||||
|
||||
public PlayerInstance getPlayer()
|
||||
{
|
||||
return _player;
|
||||
}
|
||||
|
||||
@Override
|
||||
public EventType getType()
|
||||
{
|
||||
return EventType.ON_PLAYER_TAKE_HERO;
|
||||
}
|
||||
}
|
@ -45,6 +45,8 @@ import org.l2jmobius.gameserver.model.World;
|
||||
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
|
||||
import org.l2jmobius.gameserver.model.actor.templates.NpcTemplate;
|
||||
import org.l2jmobius.gameserver.model.clan.Clan;
|
||||
import org.l2jmobius.gameserver.model.events.EventDispatcher;
|
||||
import org.l2jmobius.gameserver.model.events.impl.creature.player.OnPlayerTakeHero;
|
||||
import org.l2jmobius.gameserver.model.itemcontainer.Inventory;
|
||||
import org.l2jmobius.gameserver.model.items.instance.ItemInstance;
|
||||
import org.l2jmobius.gameserver.model.olympiad.Olympiad;
|
||||
@ -948,6 +950,7 @@ public class Hero
|
||||
loadFights(player.getObjectId());
|
||||
loadDiary(player.getObjectId());
|
||||
HERO_MESSAGE.put(player.getObjectId(), "");
|
||||
EventDispatcher.getInstance().notifyEvent(new OnPlayerTakeHero(player));
|
||||
|
||||
updateHeroes(false);
|
||||
}
|
||||
|
@ -112,6 +112,7 @@ import org.l2jmobius.gameserver.model.events.impl.creature.player.OnPlayerSubCha
|
||||
import org.l2jmobius.gameserver.model.events.impl.creature.player.OnPlayerSummonAgathion;
|
||||
import org.l2jmobius.gameserver.model.events.impl.creature.player.OnPlayerSummonSpawn;
|
||||
import org.l2jmobius.gameserver.model.events.impl.creature.player.OnPlayerSummonTalk;
|
||||
import org.l2jmobius.gameserver.model.events.impl.creature.player.OnPlayerTakeHero;
|
||||
import org.l2jmobius.gameserver.model.events.impl.creature.player.OnPlayerTransform;
|
||||
import org.l2jmobius.gameserver.model.events.impl.creature.player.OnPlayerUnsummonAgathion;
|
||||
import org.l2jmobius.gameserver.model.events.impl.creature.player.OnTrapAction;
|
||||
@ -274,6 +275,7 @@ public enum EventType
|
||||
ON_PLAYER_SKILL_LEARN(OnPlayerSkillLearn.class, void.class),
|
||||
ON_PLAYER_SUMMON_SPAWN(OnPlayerSummonSpawn.class, void.class),
|
||||
ON_PLAYER_SUMMON_TALK(OnPlayerSummonTalk.class, void.class),
|
||||
ON_PLAYER_TAKE_HERO(OnPlayerTakeHero.class, void.class),
|
||||
ON_PLAYER_TRANSFORM(OnPlayerTransform.class, void.class),
|
||||
ON_PLAYER_SUB_CHANGE(OnPlayerSubChange.class, void.class),
|
||||
ON_PLAYER_QUEST_ABORT(OnPlayerQuestAbort.class, void.class),
|
||||
|
@ -0,0 +1,45 @@
|
||||
/*
|
||||
* This file is part of the L2J Mobius project.
|
||||
*
|
||||
* 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 org.l2jmobius.gameserver.model.events.impl.creature.player;
|
||||
|
||||
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
|
||||
import org.l2jmobius.gameserver.model.events.EventType;
|
||||
import org.l2jmobius.gameserver.model.events.impl.IBaseEvent;
|
||||
|
||||
/**
|
||||
* @author Mobius
|
||||
*/
|
||||
public class OnPlayerTakeHero implements IBaseEvent
|
||||
{
|
||||
private final PlayerInstance _player;
|
||||
|
||||
public OnPlayerTakeHero(PlayerInstance player)
|
||||
{
|
||||
_player = player;
|
||||
}
|
||||
|
||||
public PlayerInstance getPlayer()
|
||||
{
|
||||
return _player;
|
||||
}
|
||||
|
||||
@Override
|
||||
public EventType getType()
|
||||
{
|
||||
return EventType.ON_PLAYER_TAKE_HERO;
|
||||
}
|
||||
}
|
@ -45,6 +45,8 @@ import org.l2jmobius.gameserver.model.World;
|
||||
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
|
||||
import org.l2jmobius.gameserver.model.actor.templates.NpcTemplate;
|
||||
import org.l2jmobius.gameserver.model.clan.Clan;
|
||||
import org.l2jmobius.gameserver.model.events.EventDispatcher;
|
||||
import org.l2jmobius.gameserver.model.events.impl.creature.player.OnPlayerTakeHero;
|
||||
import org.l2jmobius.gameserver.model.itemcontainer.Inventory;
|
||||
import org.l2jmobius.gameserver.model.items.instance.ItemInstance;
|
||||
import org.l2jmobius.gameserver.model.olympiad.Olympiad;
|
||||
@ -948,6 +950,7 @@ public class Hero
|
||||
loadFights(player.getObjectId());
|
||||
loadDiary(player.getObjectId());
|
||||
HERO_MESSAGE.put(player.getObjectId(), "");
|
||||
EventDispatcher.getInstance().notifyEvent(new OnPlayerTakeHero(player));
|
||||
|
||||
updateHeroes(false);
|
||||
}
|
||||
|
@ -112,6 +112,7 @@ import org.l2jmobius.gameserver.model.events.impl.creature.player.OnPlayerSubCha
|
||||
import org.l2jmobius.gameserver.model.events.impl.creature.player.OnPlayerSummonAgathion;
|
||||
import org.l2jmobius.gameserver.model.events.impl.creature.player.OnPlayerSummonSpawn;
|
||||
import org.l2jmobius.gameserver.model.events.impl.creature.player.OnPlayerSummonTalk;
|
||||
import org.l2jmobius.gameserver.model.events.impl.creature.player.OnPlayerTakeHero;
|
||||
import org.l2jmobius.gameserver.model.events.impl.creature.player.OnPlayerTransform;
|
||||
import org.l2jmobius.gameserver.model.events.impl.creature.player.OnPlayerUnsummonAgathion;
|
||||
import org.l2jmobius.gameserver.model.events.impl.creature.player.OnTrapAction;
|
||||
@ -274,6 +275,7 @@ public enum EventType
|
||||
ON_PLAYER_SKILL_LEARN(OnPlayerSkillLearn.class, void.class),
|
||||
ON_PLAYER_SUMMON_SPAWN(OnPlayerSummonSpawn.class, void.class),
|
||||
ON_PLAYER_SUMMON_TALK(OnPlayerSummonTalk.class, void.class),
|
||||
ON_PLAYER_TAKE_HERO(OnPlayerTakeHero.class, void.class),
|
||||
ON_PLAYER_TRANSFORM(OnPlayerTransform.class, void.class),
|
||||
ON_PLAYER_SUB_CHANGE(OnPlayerSubChange.class, void.class),
|
||||
ON_PLAYER_QUEST_ABORT(OnPlayerQuestAbort.class, void.class),
|
||||
|
@ -0,0 +1,45 @@
|
||||
/*
|
||||
* This file is part of the L2J Mobius project.
|
||||
*
|
||||
* 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 org.l2jmobius.gameserver.model.events.impl.creature.player;
|
||||
|
||||
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
|
||||
import org.l2jmobius.gameserver.model.events.EventType;
|
||||
import org.l2jmobius.gameserver.model.events.impl.IBaseEvent;
|
||||
|
||||
/**
|
||||
* @author Mobius
|
||||
*/
|
||||
public class OnPlayerTakeHero implements IBaseEvent
|
||||
{
|
||||
private final PlayerInstance _player;
|
||||
|
||||
public OnPlayerTakeHero(PlayerInstance player)
|
||||
{
|
||||
_player = player;
|
||||
}
|
||||
|
||||
public PlayerInstance getPlayer()
|
||||
{
|
||||
return _player;
|
||||
}
|
||||
|
||||
@Override
|
||||
public EventType getType()
|
||||
{
|
||||
return EventType.ON_PLAYER_TAKE_HERO;
|
||||
}
|
||||
}
|
@ -40,6 +40,6 @@ public class OnPlayerTakeHero implements IBaseEvent
|
||||
@Override
|
||||
public EventType getType()
|
||||
{
|
||||
return EventType.ON_PLAYER_TRANSFORM;
|
||||
return EventType.ON_PLAYER_TAKE_HERO;
|
||||
}
|
||||
}
|
||||
|
@ -107,9 +107,11 @@ Fafurion: https://eu.4game.com/patchnotes/lineage2/132/
|
||||
Prelude of War: https://eu.4game.com/patchnotes/lineage2/176/
|
||||
-Teleport list system
|
||||
-Removed item grade penalty
|
||||
-New henna system
|
||||
-New starting quests
|
||||
-Auto attack system
|
||||
-Auto potion system
|
||||
-Rank system
|
||||
|
||||
Prelude of War - Part 2: https://eu.4game.com/patchnotes/lineage2/186/
|
||||
-Just enter game support.
|
||||
|
@ -45,6 +45,8 @@ import org.l2jmobius.gameserver.model.World;
|
||||
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
|
||||
import org.l2jmobius.gameserver.model.actor.templates.NpcTemplate;
|
||||
import org.l2jmobius.gameserver.model.clan.Clan;
|
||||
import org.l2jmobius.gameserver.model.events.EventDispatcher;
|
||||
import org.l2jmobius.gameserver.model.events.impl.creature.player.OnPlayerTakeHero;
|
||||
import org.l2jmobius.gameserver.model.itemcontainer.Inventory;
|
||||
import org.l2jmobius.gameserver.model.items.instance.ItemInstance;
|
||||
import org.l2jmobius.gameserver.model.olympiad.Olympiad;
|
||||
@ -948,6 +950,7 @@ public class Hero
|
||||
loadFights(player.getObjectId());
|
||||
loadDiary(player.getObjectId());
|
||||
HERO_MESSAGE.put(player.getObjectId(), "");
|
||||
EventDispatcher.getInstance().notifyEvent(new OnPlayerTakeHero(player));
|
||||
|
||||
updateHeroes(false);
|
||||
}
|
||||
|
@ -111,6 +111,7 @@ import org.l2jmobius.gameserver.model.events.impl.creature.player.OnPlayerSubCha
|
||||
import org.l2jmobius.gameserver.model.events.impl.creature.player.OnPlayerSummonAgathion;
|
||||
import org.l2jmobius.gameserver.model.events.impl.creature.player.OnPlayerSummonSpawn;
|
||||
import org.l2jmobius.gameserver.model.events.impl.creature.player.OnPlayerSummonTalk;
|
||||
import org.l2jmobius.gameserver.model.events.impl.creature.player.OnPlayerTakeHero;
|
||||
import org.l2jmobius.gameserver.model.events.impl.creature.player.OnPlayerTransform;
|
||||
import org.l2jmobius.gameserver.model.events.impl.creature.player.OnPlayerUnsummonAgathion;
|
||||
import org.l2jmobius.gameserver.model.events.impl.creature.player.OnTrapAction;
|
||||
@ -266,6 +267,7 @@ public enum EventType
|
||||
ON_PLAYER_SKILL_LEARN(OnPlayerSkillLearn.class, void.class),
|
||||
ON_PLAYER_SUMMON_SPAWN(OnPlayerSummonSpawn.class, void.class),
|
||||
ON_PLAYER_SUMMON_TALK(OnPlayerSummonTalk.class, void.class),
|
||||
ON_PLAYER_TAKE_HERO(OnPlayerTakeHero.class, void.class),
|
||||
ON_PLAYER_TRANSFORM(OnPlayerTransform.class, void.class),
|
||||
ON_PLAYER_SUB_CHANGE(OnPlayerSubChange.class, void.class),
|
||||
ON_PLAYER_QUEST_ABORT(OnPlayerQuestAbort.class, void.class),
|
||||
|
@ -0,0 +1,45 @@
|
||||
/*
|
||||
* This file is part of the L2J Mobius project.
|
||||
*
|
||||
* 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 org.l2jmobius.gameserver.model.events.impl.creature.player;
|
||||
|
||||
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
|
||||
import org.l2jmobius.gameserver.model.events.EventType;
|
||||
import org.l2jmobius.gameserver.model.events.impl.IBaseEvent;
|
||||
|
||||
/**
|
||||
* @author Mobius
|
||||
*/
|
||||
public class OnPlayerTakeHero implements IBaseEvent
|
||||
{
|
||||
private final PlayerInstance _player;
|
||||
|
||||
public OnPlayerTakeHero(PlayerInstance player)
|
||||
{
|
||||
_player = player;
|
||||
}
|
||||
|
||||
public PlayerInstance getPlayer()
|
||||
{
|
||||
return _player;
|
||||
}
|
||||
|
||||
@Override
|
||||
public EventType getType()
|
||||
{
|
||||
return EventType.ON_PLAYER_TAKE_HERO;
|
||||
}
|
||||
}
|
@ -45,6 +45,8 @@ import org.l2jmobius.gameserver.model.World;
|
||||
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
|
||||
import org.l2jmobius.gameserver.model.actor.templates.NpcTemplate;
|
||||
import org.l2jmobius.gameserver.model.clan.Clan;
|
||||
import org.l2jmobius.gameserver.model.events.EventDispatcher;
|
||||
import org.l2jmobius.gameserver.model.events.impl.creature.player.OnPlayerTakeHero;
|
||||
import org.l2jmobius.gameserver.model.itemcontainer.Inventory;
|
||||
import org.l2jmobius.gameserver.model.items.instance.ItemInstance;
|
||||
import org.l2jmobius.gameserver.model.olympiad.Olympiad;
|
||||
@ -948,6 +950,7 @@ public class Hero
|
||||
loadFights(player.getObjectId());
|
||||
loadDiary(player.getObjectId());
|
||||
HERO_MESSAGE.put(player.getObjectId(), "");
|
||||
EventDispatcher.getInstance().notifyEvent(new OnPlayerTakeHero(player));
|
||||
|
||||
updateHeroes(false);
|
||||
}
|
||||
|
@ -111,6 +111,7 @@ import org.l2jmobius.gameserver.model.events.impl.creature.player.OnPlayerSubCha
|
||||
import org.l2jmobius.gameserver.model.events.impl.creature.player.OnPlayerSummonAgathion;
|
||||
import org.l2jmobius.gameserver.model.events.impl.creature.player.OnPlayerSummonSpawn;
|
||||
import org.l2jmobius.gameserver.model.events.impl.creature.player.OnPlayerSummonTalk;
|
||||
import org.l2jmobius.gameserver.model.events.impl.creature.player.OnPlayerTakeHero;
|
||||
import org.l2jmobius.gameserver.model.events.impl.creature.player.OnPlayerTransform;
|
||||
import org.l2jmobius.gameserver.model.events.impl.creature.player.OnPlayerUnsummonAgathion;
|
||||
import org.l2jmobius.gameserver.model.events.impl.creature.player.OnTrapAction;
|
||||
@ -266,6 +267,7 @@ public enum EventType
|
||||
ON_PLAYER_SKILL_LEARN(OnPlayerSkillLearn.class, void.class),
|
||||
ON_PLAYER_SUMMON_SPAWN(OnPlayerSummonSpawn.class, void.class),
|
||||
ON_PLAYER_SUMMON_TALK(OnPlayerSummonTalk.class, void.class),
|
||||
ON_PLAYER_TAKE_HERO(OnPlayerTakeHero.class, void.class),
|
||||
ON_PLAYER_TRANSFORM(OnPlayerTransform.class, void.class),
|
||||
ON_PLAYER_SUB_CHANGE(OnPlayerSubChange.class, void.class),
|
||||
ON_PLAYER_QUEST_ABORT(OnPlayerQuestAbort.class, void.class),
|
||||
|
@ -0,0 +1,45 @@
|
||||
/*
|
||||
* This file is part of the L2J Mobius project.
|
||||
*
|
||||
* 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 org.l2jmobius.gameserver.model.events.impl.creature.player;
|
||||
|
||||
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
|
||||
import org.l2jmobius.gameserver.model.events.EventType;
|
||||
import org.l2jmobius.gameserver.model.events.impl.IBaseEvent;
|
||||
|
||||
/**
|
||||
* @author Mobius
|
||||
*/
|
||||
public class OnPlayerTakeHero implements IBaseEvent
|
||||
{
|
||||
private final PlayerInstance _player;
|
||||
|
||||
public OnPlayerTakeHero(PlayerInstance player)
|
||||
{
|
||||
_player = player;
|
||||
}
|
||||
|
||||
public PlayerInstance getPlayer()
|
||||
{
|
||||
return _player;
|
||||
}
|
||||
|
||||
@Override
|
||||
public EventType getType()
|
||||
{
|
||||
return EventType.ON_PLAYER_TAKE_HERO;
|
||||
}
|
||||
}
|
@ -45,6 +45,8 @@ import org.l2jmobius.gameserver.model.World;
|
||||
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
|
||||
import org.l2jmobius.gameserver.model.actor.templates.NpcTemplate;
|
||||
import org.l2jmobius.gameserver.model.clan.Clan;
|
||||
import org.l2jmobius.gameserver.model.events.EventDispatcher;
|
||||
import org.l2jmobius.gameserver.model.events.impl.creature.player.OnPlayerTakeHero;
|
||||
import org.l2jmobius.gameserver.model.itemcontainer.Inventory;
|
||||
import org.l2jmobius.gameserver.model.items.instance.ItemInstance;
|
||||
import org.l2jmobius.gameserver.model.olympiad.Olympiad;
|
||||
@ -948,6 +950,7 @@ public class Hero
|
||||
loadFights(player.getObjectId());
|
||||
loadDiary(player.getObjectId());
|
||||
HERO_MESSAGE.put(player.getObjectId(), "");
|
||||
EventDispatcher.getInstance().notifyEvent(new OnPlayerTakeHero(player));
|
||||
|
||||
updateHeroes(false);
|
||||
}
|
||||
|
@ -111,6 +111,7 @@ import org.l2jmobius.gameserver.model.events.impl.creature.player.OnPlayerSubCha
|
||||
import org.l2jmobius.gameserver.model.events.impl.creature.player.OnPlayerSummonAgathion;
|
||||
import org.l2jmobius.gameserver.model.events.impl.creature.player.OnPlayerSummonSpawn;
|
||||
import org.l2jmobius.gameserver.model.events.impl.creature.player.OnPlayerSummonTalk;
|
||||
import org.l2jmobius.gameserver.model.events.impl.creature.player.OnPlayerTakeHero;
|
||||
import org.l2jmobius.gameserver.model.events.impl.creature.player.OnPlayerTransform;
|
||||
import org.l2jmobius.gameserver.model.events.impl.creature.player.OnPlayerUnsummonAgathion;
|
||||
import org.l2jmobius.gameserver.model.events.impl.creature.player.OnTrapAction;
|
||||
@ -266,6 +267,7 @@ public enum EventType
|
||||
ON_PLAYER_SKILL_LEARN(OnPlayerSkillLearn.class, void.class),
|
||||
ON_PLAYER_SUMMON_SPAWN(OnPlayerSummonSpawn.class, void.class),
|
||||
ON_PLAYER_SUMMON_TALK(OnPlayerSummonTalk.class, void.class),
|
||||
ON_PLAYER_TAKE_HERO(OnPlayerTakeHero.class, void.class),
|
||||
ON_PLAYER_TRANSFORM(OnPlayerTransform.class, void.class),
|
||||
ON_PLAYER_SUB_CHANGE(OnPlayerSubChange.class, void.class),
|
||||
ON_PLAYER_QUEST_ABORT(OnPlayerQuestAbort.class, void.class),
|
||||
|
@ -0,0 +1,45 @@
|
||||
/*
|
||||
* This file is part of the L2J Mobius project.
|
||||
*
|
||||
* 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 org.l2jmobius.gameserver.model.events.impl.creature.player;
|
||||
|
||||
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
|
||||
import org.l2jmobius.gameserver.model.events.EventType;
|
||||
import org.l2jmobius.gameserver.model.events.impl.IBaseEvent;
|
||||
|
||||
/**
|
||||
* @author Mobius
|
||||
*/
|
||||
public class OnPlayerTakeHero implements IBaseEvent
|
||||
{
|
||||
private final PlayerInstance _player;
|
||||
|
||||
public OnPlayerTakeHero(PlayerInstance player)
|
||||
{
|
||||
_player = player;
|
||||
}
|
||||
|
||||
public PlayerInstance getPlayer()
|
||||
{
|
||||
return _player;
|
||||
}
|
||||
|
||||
@Override
|
||||
public EventType getType()
|
||||
{
|
||||
return EventType.ON_PLAYER_TAKE_HERO;
|
||||
}
|
||||
}
|
@ -45,6 +45,8 @@ import org.l2jmobius.gameserver.model.World;
|
||||
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
|
||||
import org.l2jmobius.gameserver.model.actor.templates.NpcTemplate;
|
||||
import org.l2jmobius.gameserver.model.clan.Clan;
|
||||
import org.l2jmobius.gameserver.model.events.EventDispatcher;
|
||||
import org.l2jmobius.gameserver.model.events.impl.creature.player.OnPlayerTakeHero;
|
||||
import org.l2jmobius.gameserver.model.itemcontainer.Inventory;
|
||||
import org.l2jmobius.gameserver.model.items.instance.ItemInstance;
|
||||
import org.l2jmobius.gameserver.model.olympiad.Olympiad;
|
||||
@ -948,6 +950,7 @@ public class Hero
|
||||
loadFights(player.getObjectId());
|
||||
loadDiary(player.getObjectId());
|
||||
HERO_MESSAGE.put(player.getObjectId(), "");
|
||||
EventDispatcher.getInstance().notifyEvent(new OnPlayerTakeHero(player));
|
||||
|
||||
updateHeroes(false);
|
||||
}
|
||||
|
@ -113,6 +113,7 @@ import org.l2jmobius.gameserver.model.events.impl.creature.player.OnPlayerSubCha
|
||||
import org.l2jmobius.gameserver.model.events.impl.creature.player.OnPlayerSummonAgathion;
|
||||
import org.l2jmobius.gameserver.model.events.impl.creature.player.OnPlayerSummonSpawn;
|
||||
import org.l2jmobius.gameserver.model.events.impl.creature.player.OnPlayerSummonTalk;
|
||||
import org.l2jmobius.gameserver.model.events.impl.creature.player.OnPlayerTakeHero;
|
||||
import org.l2jmobius.gameserver.model.events.impl.creature.player.OnPlayerTransform;
|
||||
import org.l2jmobius.gameserver.model.events.impl.creature.player.OnPlayerUnsummonAgathion;
|
||||
import org.l2jmobius.gameserver.model.events.impl.creature.player.OnTrapAction;
|
||||
@ -268,6 +269,7 @@ public enum EventType
|
||||
ON_PLAYER_SKILL_LEARN(OnPlayerSkillLearn.class, void.class),
|
||||
ON_PLAYER_SUMMON_SPAWN(OnPlayerSummonSpawn.class, void.class),
|
||||
ON_PLAYER_SUMMON_TALK(OnPlayerSummonTalk.class, void.class),
|
||||
ON_PLAYER_TAKE_HERO(OnPlayerTakeHero.class, void.class),
|
||||
ON_PLAYER_TRANSFORM(OnPlayerTransform.class, void.class),
|
||||
ON_PLAYER_SUB_CHANGE(OnPlayerSubChange.class, void.class),
|
||||
ON_PLAYER_QUEST_ABORT(OnPlayerQuestAbort.class, void.class),
|
||||
|
@ -0,0 +1,45 @@
|
||||
/*
|
||||
* This file is part of the L2J Mobius project.
|
||||
*
|
||||
* 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 org.l2jmobius.gameserver.model.events.impl.creature.player;
|
||||
|
||||
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
|
||||
import org.l2jmobius.gameserver.model.events.EventType;
|
||||
import org.l2jmobius.gameserver.model.events.impl.IBaseEvent;
|
||||
|
||||
/**
|
||||
* @author Mobius
|
||||
*/
|
||||
public class OnPlayerTakeHero implements IBaseEvent
|
||||
{
|
||||
private final PlayerInstance _player;
|
||||
|
||||
public OnPlayerTakeHero(PlayerInstance player)
|
||||
{
|
||||
_player = player;
|
||||
}
|
||||
|
||||
public PlayerInstance getPlayer()
|
||||
{
|
||||
return _player;
|
||||
}
|
||||
|
||||
@Override
|
||||
public EventType getType()
|
||||
{
|
||||
return EventType.ON_PLAYER_TAKE_HERO;
|
||||
}
|
||||
}
|
@ -45,6 +45,8 @@ import org.l2jmobius.gameserver.model.World;
|
||||
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
|
||||
import org.l2jmobius.gameserver.model.actor.templates.NpcTemplate;
|
||||
import org.l2jmobius.gameserver.model.clan.Clan;
|
||||
import org.l2jmobius.gameserver.model.events.EventDispatcher;
|
||||
import org.l2jmobius.gameserver.model.events.impl.creature.player.OnPlayerTakeHero;
|
||||
import org.l2jmobius.gameserver.model.itemcontainer.Inventory;
|
||||
import org.l2jmobius.gameserver.model.items.instance.ItemInstance;
|
||||
import org.l2jmobius.gameserver.model.olympiad.Olympiad;
|
||||
@ -948,6 +950,7 @@ public class Hero
|
||||
loadFights(player.getObjectId());
|
||||
loadDiary(player.getObjectId());
|
||||
HERO_MESSAGE.put(player.getObjectId(), "");
|
||||
EventDispatcher.getInstance().notifyEvent(new OnPlayerTakeHero(player));
|
||||
|
||||
updateHeroes(false);
|
||||
}
|
||||
|
@ -113,6 +113,7 @@ import org.l2jmobius.gameserver.model.events.impl.creature.player.OnPlayerSubCha
|
||||
import org.l2jmobius.gameserver.model.events.impl.creature.player.OnPlayerSummonAgathion;
|
||||
import org.l2jmobius.gameserver.model.events.impl.creature.player.OnPlayerSummonSpawn;
|
||||
import org.l2jmobius.gameserver.model.events.impl.creature.player.OnPlayerSummonTalk;
|
||||
import org.l2jmobius.gameserver.model.events.impl.creature.player.OnPlayerTakeHero;
|
||||
import org.l2jmobius.gameserver.model.events.impl.creature.player.OnPlayerTransform;
|
||||
import org.l2jmobius.gameserver.model.events.impl.creature.player.OnPlayerUnsummonAgathion;
|
||||
import org.l2jmobius.gameserver.model.events.impl.creature.player.OnTrapAction;
|
||||
@ -268,6 +269,7 @@ public enum EventType
|
||||
ON_PLAYER_SKILL_LEARN(OnPlayerSkillLearn.class, void.class),
|
||||
ON_PLAYER_SUMMON_SPAWN(OnPlayerSummonSpawn.class, void.class),
|
||||
ON_PLAYER_SUMMON_TALK(OnPlayerSummonTalk.class, void.class),
|
||||
ON_PLAYER_TAKE_HERO(OnPlayerTakeHero.class, void.class),
|
||||
ON_PLAYER_TRANSFORM(OnPlayerTransform.class, void.class),
|
||||
ON_PLAYER_SUB_CHANGE(OnPlayerSubChange.class, void.class),
|
||||
ON_PLAYER_QUEST_ABORT(OnPlayerQuestAbort.class, void.class),
|
||||
|
@ -0,0 +1,45 @@
|
||||
/*
|
||||
* This file is part of the L2J Mobius project.
|
||||
*
|
||||
* 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 org.l2jmobius.gameserver.model.events.impl.creature.player;
|
||||
|
||||
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
|
||||
import org.l2jmobius.gameserver.model.events.EventType;
|
||||
import org.l2jmobius.gameserver.model.events.impl.IBaseEvent;
|
||||
|
||||
/**
|
||||
* @author Mobius
|
||||
*/
|
||||
public class OnPlayerTakeHero implements IBaseEvent
|
||||
{
|
||||
private final PlayerInstance _player;
|
||||
|
||||
public OnPlayerTakeHero(PlayerInstance player)
|
||||
{
|
||||
_player = player;
|
||||
}
|
||||
|
||||
public PlayerInstance getPlayer()
|
||||
{
|
||||
return _player;
|
||||
}
|
||||
|
||||
@Override
|
||||
public EventType getType()
|
||||
{
|
||||
return EventType.ON_PLAYER_TAKE_HERO;
|
||||
}
|
||||
}
|
@ -40,6 +40,6 @@ public class OnPlayerTakeHero implements IBaseEvent
|
||||
@Override
|
||||
public EventType getType()
|
||||
{
|
||||
return EventType.ON_PLAYER_TRANSFORM;
|
||||
return EventType.ON_PLAYER_TAKE_HERO;
|
||||
}
|
||||
}
|
||||
|
@ -108,6 +108,7 @@ The Kamael: https://eu.4game.com/patchnotes/lineage2classic/154/
|
||||
-New starting quests
|
||||
-Auto attack system
|
||||
-Auto potion system
|
||||
-Rank system
|
||||
|
||||
Essence: https://eu.4game.com/patchnotes/lineage2essence/188/
|
||||
-Just enter game support
|
||||
|
@ -45,6 +45,8 @@ import org.l2jmobius.gameserver.model.World;
|
||||
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
|
||||
import org.l2jmobius.gameserver.model.actor.templates.NpcTemplate;
|
||||
import org.l2jmobius.gameserver.model.clan.Clan;
|
||||
import org.l2jmobius.gameserver.model.events.EventDispatcher;
|
||||
import org.l2jmobius.gameserver.model.events.impl.creature.player.OnPlayerTakeHero;
|
||||
import org.l2jmobius.gameserver.model.itemcontainer.Inventory;
|
||||
import org.l2jmobius.gameserver.model.items.instance.ItemInstance;
|
||||
import org.l2jmobius.gameserver.model.olympiad.Olympiad;
|
||||
@ -948,6 +950,7 @@ public class Hero
|
||||
loadFights(player.getObjectId());
|
||||
loadDiary(player.getObjectId());
|
||||
HERO_MESSAGE.put(player.getObjectId(), "");
|
||||
EventDispatcher.getInstance().notifyEvent(new OnPlayerTakeHero(player));
|
||||
|
||||
updateHeroes(false);
|
||||
}
|
||||
|
@ -111,6 +111,7 @@ import org.l2jmobius.gameserver.model.events.impl.creature.player.OnPlayerSubCha
|
||||
import org.l2jmobius.gameserver.model.events.impl.creature.player.OnPlayerSummonAgathion;
|
||||
import org.l2jmobius.gameserver.model.events.impl.creature.player.OnPlayerSummonSpawn;
|
||||
import org.l2jmobius.gameserver.model.events.impl.creature.player.OnPlayerSummonTalk;
|
||||
import org.l2jmobius.gameserver.model.events.impl.creature.player.OnPlayerTakeHero;
|
||||
import org.l2jmobius.gameserver.model.events.impl.creature.player.OnPlayerTransform;
|
||||
import org.l2jmobius.gameserver.model.events.impl.creature.player.OnPlayerUnsummonAgathion;
|
||||
import org.l2jmobius.gameserver.model.events.impl.creature.player.OnTrapAction;
|
||||
@ -266,6 +267,7 @@ public enum EventType
|
||||
ON_PLAYER_SKILL_LEARN(OnPlayerSkillLearn.class, void.class),
|
||||
ON_PLAYER_SUMMON_SPAWN(OnPlayerSummonSpawn.class, void.class),
|
||||
ON_PLAYER_SUMMON_TALK(OnPlayerSummonTalk.class, void.class),
|
||||
ON_PLAYER_TAKE_HERO(OnPlayerTakeHero.class, void.class),
|
||||
ON_PLAYER_TRANSFORM(OnPlayerTransform.class, void.class),
|
||||
ON_PLAYER_SUB_CHANGE(OnPlayerSubChange.class, void.class),
|
||||
ON_PLAYER_QUEST_ABORT(OnPlayerQuestAbort.class, void.class),
|
||||
|
@ -0,0 +1,45 @@
|
||||
/*
|
||||
* This file is part of the L2J Mobius project.
|
||||
*
|
||||
* 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 org.l2jmobius.gameserver.model.events.impl.creature.player;
|
||||
|
||||
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
|
||||
import org.l2jmobius.gameserver.model.events.EventType;
|
||||
import org.l2jmobius.gameserver.model.events.impl.IBaseEvent;
|
||||
|
||||
/**
|
||||
* @author Mobius
|
||||
*/
|
||||
public class OnPlayerTakeHero implements IBaseEvent
|
||||
{
|
||||
private final PlayerInstance _player;
|
||||
|
||||
public OnPlayerTakeHero(PlayerInstance player)
|
||||
{
|
||||
_player = player;
|
||||
}
|
||||
|
||||
public PlayerInstance getPlayer()
|
||||
{
|
||||
return _player;
|
||||
}
|
||||
|
||||
@Override
|
||||
public EventType getType()
|
||||
{
|
||||
return EventType.ON_PLAYER_TAKE_HERO;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user