ソースを参照

BETA: Support for Switch Stance.
* Now it performs all required checks.
* Still harcoded, since there is no retail effect for it.

Zoey76 12 年 前
コミット
bccabfd5f3

+ 6 - 0
L2J_Server_BETA/java/com/l2jserver/gameserver/network/clientpackets/RequestActionUse.java

@@ -57,6 +57,7 @@ public final class RequestActionUse extends L2GameClientPacket
 	private static final String _C__56_REQUESTACTIONUSE = "[C] 56 RequestActionUse";
 	
 	private static final int SIN_EATER_ID = 12564;
+	private static final int SWITCH_STANCE_ID = 6054;
 	private static final NpcStringId[] NPC_STRINGS =
 	{
 		NpcStringId.USING_A_SPECIAL_SKILL_HERE_COULD_TRIGGER_A_BLOODBATH,
@@ -850,6 +851,11 @@ public final class RequestActionUse extends L2GameClientPacket
 			summon.setTarget(target);
 			summon.useMagic(SkillTable.getInstance().getInfo(skillId, lvl), _ctrlPressed, _shiftPressed);
 		}
+		
+		if (skillId == SWITCH_STANCE_ID)
+		{
+			summon.switchMode();
+		}
 	}
 	
 	/**