Addition of the WaitingAction player action handler.
Contributed by Index.
This commit is contained in:
parent
bcd62a95db
commit
18718b4148
@ -63,6 +63,7 @@
|
|||||||
<action id="88" handler="SocialAction" option="29" /> <!-- Provoke -->
|
<action id="88" handler="SocialAction" option="29" /> <!-- Provoke -->
|
||||||
<action id="89" handler="SocialAction" option="30" /> <!-- Beauty Shop -->
|
<action id="89" handler="SocialAction" option="30" /> <!-- Beauty Shop -->
|
||||||
<action id="90" handler="InstanceZoneInfo" />
|
<action id="90" handler="InstanceZoneInfo" />
|
||||||
|
<action id="95" handler="PlayIdleAnimation" />
|
||||||
<action id="1000" handler="ServitorSkillUse" option="4079" /> <!-- Siege Golem - Siege Hammer -->
|
<action id="1000" handler="ServitorSkillUse" option="4079" /> <!-- Siege Golem - Siege Hammer -->
|
||||||
<action id="1003" handler="PetSkillUse" option="4710" /> <!-- Wind Hatchling/Strider - Wild Stun -->
|
<action id="1003" handler="PetSkillUse" option="4710" /> <!-- Wind Hatchling/Strider - Wild Stun -->
|
||||||
<action id="1004" handler="PetSkillUse" option="4711" /> <!-- Wind Hatchling/Strider - Wild Defense -->
|
<action id="1004" handler="PetSkillUse" option="4711" /> <!-- Wind Hatchling/Strider - Wild Defense -->
|
||||||
|
@ -239,6 +239,7 @@ import handlers.playeractions.TacticalSignUse;
|
|||||||
import handlers.playeractions.TeleportBookmark;
|
import handlers.playeractions.TeleportBookmark;
|
||||||
import handlers.playeractions.UnsummonPet;
|
import handlers.playeractions.UnsummonPet;
|
||||||
import handlers.playeractions.UnsummonServitor;
|
import handlers.playeractions.UnsummonServitor;
|
||||||
|
import handlers.playeractions.WaitingAction;
|
||||||
import handlers.punishmenthandlers.BanHandler;
|
import handlers.punishmenthandlers.BanHandler;
|
||||||
import handlers.punishmenthandlers.ChatBanHandler;
|
import handlers.punishmenthandlers.ChatBanHandler;
|
||||||
import handlers.punishmenthandlers.JailHandler;
|
import handlers.punishmenthandlers.JailHandler;
|
||||||
@ -687,7 +688,8 @@ public class MasterHandler
|
|||||||
TacticalSignUse.class,
|
TacticalSignUse.class,
|
||||||
TeleportBookmark.class,
|
TeleportBookmark.class,
|
||||||
UnsummonPet.class,
|
UnsummonPet.class,
|
||||||
UnsummonServitor.class
|
UnsummonServitor.class,
|
||||||
|
WaitingAction.class
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
43
L2J_Mobius_10.2_MasterClass/dist/game/data/scripts/handlers/playeractions/WaitingAction.java
vendored
Normal file
43
L2J_Mobius_10.2_MasterClass/dist/game/data/scripts/handlers/playeractions/WaitingAction.java
vendored
Normal file
@ -0,0 +1,43 @@
|
|||||||
|
/*
|
||||||
|
* 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 handlers.playeractions;
|
||||||
|
|
||||||
|
import org.l2jmobius.gameserver.handler.IPlayerActionHandler;
|
||||||
|
import org.l2jmobius.gameserver.instancemanager.CastleManager;
|
||||||
|
import org.l2jmobius.gameserver.model.ActionDataHolder;
|
||||||
|
import org.l2jmobius.gameserver.model.actor.Player;
|
||||||
|
import org.l2jmobius.gameserver.network.SystemMessageId;
|
||||||
|
import org.l2jmobius.gameserver.network.serverpackets.SocialAction;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author Index
|
||||||
|
*/
|
||||||
|
public class WaitingAction implements IPlayerActionHandler
|
||||||
|
{
|
||||||
|
@Override
|
||||||
|
public void useAction(Player player, ActionDataHolder data, boolean ctrlPressed, boolean shiftPressed)
|
||||||
|
{
|
||||||
|
final int actionId = (player.getClan() != null) && (CastleManager.getInstance().getCastleByOwner(player.getClan()) != null) ? player.isClanLeader() ? 100 : 101 : 0;
|
||||||
|
if (actionId == 0)
|
||||||
|
{
|
||||||
|
player.sendPacket(SystemMessageId.YOU_HAVE_NOT_SET_A_LIST_OF_ACTIONS_FOR_THE_WAITING_TIME);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
player.sendPacket(new SocialAction(player.getObjectId(), actionId));
|
||||||
|
}
|
||||||
|
}
|
@ -100,7 +100,7 @@ public class ExBasicActionList implements IClientOutgoingPacket
|
|||||||
81, 82, 83, 84,
|
81, 82, 83, 84,
|
||||||
85, 86, 87, 88,
|
85, 86, 87, 88,
|
||||||
89, 90, 92, 93,
|
89, 90, 92, 93,
|
||||||
94, 96, 97,
|
94, 95, 96, 97,
|
||||||
1000, 1001,
|
1000, 1001,
|
||||||
1002, 1003, 1004, 1005,
|
1002, 1003, 1004, 1005,
|
||||||
1006, 1007, 1008, 1009,
|
1006, 1007, 1008, 1009,
|
||||||
|
Loading…
Reference in New Issue
Block a user