Merged with released L2J-Unity files.

This commit is contained in:
mobiusdev
2016-06-12 01:34:09 +00:00
parent e003e87887
commit 635557f5da
18352 changed files with 3245113 additions and 2892959 deletions

View File

@@ -0,0 +1,28 @@
/*
* 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 com.l2jmobius.gameserver.enums;
/**
* @author UnAfraid
*/
public enum AdminTeleportType
{
NORMAL,
DEMONIC,
SAYUNE,
CHARGE
}

View File

@@ -0,0 +1,102 @@
/*
* 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 com.l2jmobius.gameserver.enums;
/**
* An enum representing all attribute types.
* @author NosBit
*/
public enum AttributeType
{
NONE_ARMOR(-2),
NONE(-1),
FIRE(0),
WATER(1),
WIND(2),
EARTH(3),
HOLY(4),
DARK(5);
public static final AttributeType[] ATTRIBUTE_TYPES =
{
FIRE,
WATER,
WIND,
EARTH,
HOLY,
DARK
};
private final byte _clientId;
AttributeType(int clientId)
{
_clientId = (byte) clientId;
}
/**
* Gets the client id.
* @return the client id
*/
public byte getClientId()
{
return _clientId;
}
/**
* Gets the opposite.
* @return the opposite
*/
public AttributeType getOpposite()
{
return ATTRIBUTE_TYPES[((getClientId() % 2) == 0) ? (getClientId() + 1) : (getClientId() - 1)];
}
/**
* Finds an attribute type by its name.
* @param attributeName the attribute name
* @return An {@code AttributeType} if attribute type was found, {@code null} otherwise
*/
public static AttributeType findByName(String attributeName)
{
for (AttributeType attributeType : values())
{
if (attributeType.name().equalsIgnoreCase(attributeName))
{
return attributeType;
}
}
return null;
}
/**
* Finds an attribute type by its client id.
* @param clientId the client id
* @return An {@code AttributeType} if attribute type was found, {@code null} otherwise
*/
public static AttributeType findByClientId(int clientId)
{
for (AttributeType attributeType : values())
{
if (attributeType.getClientId() == clientId)
{
return attributeType;
}
}
return null;
}
}

View File

@@ -0,0 +1,38 @@
/*
* 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 com.l2jmobius.gameserver.enums;
/**
* Basic property type of skills. <BR>
* Before Goddess of Destruction, BaseStats was used. CON for physical, MEN for magical, and others for special cases. <BR>
* After, only 3 types are used: physical, magic and none. <BR>
* <BR>
* Quote from Juji: <BR>
* ---------------------------------------------------------------------- <BR>
* Physical: Stun, Paralyze, Knockback, Knock Down, Hold, Disarm, Petrify <BR>
* Mental: Sleep, Mutate, Fear, Aerial Yoke, Silence <BR>
* ---------------------------------------------------------------------- <BR>
* All other are considered with no basic property aka NONE. <BR>
* <BR>
* @author Nik
*/
public enum BasicProperty
{
NONE,
PHYSICAL,
MAGIC;
}

View File

@@ -1,184 +1,184 @@
/*
* 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 com.l2jmobius.gameserver.enums;
/**
* This class defines all category types.
* @author xban1x
*/
public enum CategoryType
{
FIGHTER_GROUP,
MAGE_GROUP,
WIZARD_GROUP,
CLERIC_GROUP,
ATTACKER_GROUP,
TANKER_GROUP,
FIRST_CLASS_GROUP,
SECOND_CLASS_GROUP,
THIRD_CLASS_GROUP,
FOURTH_CLASS_GROUP,
BOUNTY_HUNTER_GROUP,
WARSMITH_GROUP,
SUMMON_NPC_GROUP,
KNIGHT_GROUP,
WHITE_MAGIC_GROUP,
HEAL_GROUP,
ASSIST_MAGIC_GROUP,
WARRIOR_GROUP,
HUMAN_2ND_GROUP,
ELF_2ND_GROUP,
DELF_2ND_GROUP,
ORC_2ND_GROUP,
DWARF_2ND_GROUP,
STRIDER,
STRIDER_GROUP,
RED_STRIDER_GROUP,
WOLF_GROUP,
GROWN_UP_WOLF_GROUP,
HATCHLING_GROUP,
BABY_PET_GROUP,
UPGRADE_BABY_PET_GROUP,
WYVERN_GROUP,
ALL_WOLF_GROUP,
WOLF,
SIN_EATER_GROUP,
PET_GROUP,
ITEM_EQUIP_PET_GROUP,
SUBJOB_GROUP_DAGGER,
SUBJOB_GROUP_BOW,
SUBJOB_GROUP_KNIGHT,
SUBJOB_GROUP_SUMMONER,
SUBJOB_GROUP_HALF_HEALER,
SUBJOB_GROUP_DANCE,
SUBJOB_GROUP_WIZARD,
HUMAN_FALL_CLASS,
HUMAN_WALL_CLASS,
HUMAN_MALL_CLASS,
HUMAN_CALL_CLASS,
ELF_FALL_CLASS,
ELF_MALL_CLASS,
ELF_WALL_CLASS,
ELF_CALL_CLASS,
DELF_FALL_CLASS,
DELF_MALL_CLASS,
DELF_WALL_CLASS,
DELF_CALL_CLASS,
ORC_FALL_CLASS,
ORC_MALL_CLASS,
DWARF_ALL_CLASS,
DWARF_BOUNTY_CLASS,
DWARF_SMITH_CLASS,
KAMAEL_ALL_CLASS,
KAMAEL_FIRST_CLASS_GROUP,
KAMAEL_SECOND_CLASS_GROUP,
KAMAEL_THIRD_CLASS_GROUP,
KAMAEL_FOURTH_CLASS_GROUP,
BEGINNER_FIGHTER,
BEGINNER_MAGE,
KAMAEL_MALE_MAIN_OCCUPATION,
KAMAEL_FEMALE_MAIN_OCCUPATION,
ARCHER_GROUP,
SHIELD_MASTER,
BARD,
FORCE_MASTER,
WEAPON_MASTER,
BOW_MASTER,
DAGGER_MASTER,
HEAL_MASTER,
WIZARD_MASTER,
BUFF_MASTER,
SUMMON_MASTER,
WARRIOR_CLOACK,
ROGUE_CLOACK,
MAGE_CLOACK,
SHIELD_MASTER2_3,
BARD2_3,
FORCE_MASTER2_3,
WEAPON_MASTER2_3,
BOW_MASTER2_3,
DAGGER_MASTER2_3,
HEAL_MASTER2_3,
WIZARD_MASTER2_3,
BUFF_MASTER2_3,
SUMMON_MASTER2_3,
ATTRIBUTE_GROUP_SUMMONER,
SUB_GROUP_WARRIOR,
SUB_GROUP_ROGUE,
SUB_GROUP_KNIGHT,
SUB_GROUP_SUMMONER,
SUB_GROUP_WIZARD,
SUB_GROUP_HEALER,
SUB_GROUP_ENCHANTER,
SUB_GROUP_HEC,
SUB_GROUP_HEW,
SUB_GROUP_HEF,
SUB_GROUP_ORC,
SUB_GROUP_WARE,
SUB_GROUP_BLACK,
SUB_GROUP_DE,
SUB_GROUP_KAMAEL,
LIGHT_TANKER_GROUP,
DARK_TANKER_GROUP,
MELEE_ATTACKER,
RECOM_KNIGHT_GROUP,
RECOM_MAGIC_GROUP,
RECOM_WARRIOR_GROUP,
RECOM_ROGUE_GROUP,
RECOM_KAMAEL_GROUP,
RECOM_ORCF_GROUP,
RECOM_ORCM_GROUP,
DEINONYCHUS_PET_GROUP,
BEASTFARM_BEAST,
BEASTFARM_INVADER,
ICEQUEEN_NPC,
AWAKEN_GROUP,
SHILENS_FOLLOWERS,
SIGEL_CANDIDATE,
TYRR_CANDIDATE,
OTHELL_CANDIDATE,
YUL_CANDIDATE,
FEOH_CANDIDATE,
ISS_CANDIDATE,
WYNN_CANDIDATE,
AEORE_CANDIDATE,
SIGEL_GROUP,
TYRR_GROUP,
OTHELL_GROUP,
YUL_GROUP,
FEOH_GROUP,
ISS_GROUP,
WYNN_GROUP,
AEORE_GROUP;
/**
* Finds category by it's name
* @param categoryName
* @return A {@code CategoryType} if category was found, {@code null} if category was not found
*/
public static CategoryType findByName(String categoryName)
{
for (CategoryType type : values())
{
if (type.name().equalsIgnoreCase(categoryName))
{
return type;
}
}
return null;
}
}
/*
* 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 com.l2jmobius.gameserver.enums;
/**
* This class defines all category types.
* @author xban1x
*/
public enum CategoryType
{
FIGHTER_GROUP,
MAGE_GROUP,
WIZARD_GROUP,
CLERIC_GROUP,
ATTACKER_GROUP,
TANKER_GROUP,
FIRST_CLASS_GROUP,
SECOND_CLASS_GROUP,
THIRD_CLASS_GROUP,
FOURTH_CLASS_GROUP,
BOUNTY_HUNTER_GROUP,
WARSMITH_GROUP,
SUMMON_NPC_GROUP,
KNIGHT_GROUP,
WHITE_MAGIC_GROUP,
HEAL_GROUP,
ASSIST_MAGIC_GROUP,
WARRIOR_GROUP,
HUMAN_2ND_GROUP,
ELF_2ND_GROUP,
DELF_2ND_GROUP,
ORC_2ND_GROUP,
DWARF_2ND_GROUP,
STRIDER,
STRIDER_GROUP,
RED_STRIDER_GROUP,
WOLF_GROUP,
GROWN_UP_WOLF_GROUP,
HATCHLING_GROUP,
BABY_PET_GROUP,
UPGRADE_BABY_PET_GROUP,
WYVERN_GROUP,
ALL_WOLF_GROUP,
WOLF,
SIN_EATER_GROUP,
PET_GROUP,
ITEM_EQUIP_PET_GROUP,
SUBJOB_GROUP_DAGGER,
SUBJOB_GROUP_BOW,
SUBJOB_GROUP_KNIGHT,
SUBJOB_GROUP_SUMMONER,
SUBJOB_GROUP_HALF_HEALER,
SUBJOB_GROUP_DANCE,
SUBJOB_GROUP_WIZARD,
HUMAN_FALL_CLASS,
HUMAN_WALL_CLASS,
HUMAN_MALL_CLASS,
HUMAN_CALL_CLASS,
ELF_FALL_CLASS,
ELF_MALL_CLASS,
ELF_WALL_CLASS,
ELF_CALL_CLASS,
DELF_FALL_CLASS,
DELF_MALL_CLASS,
DELF_WALL_CLASS,
DELF_CALL_CLASS,
ORC_FALL_CLASS,
ORC_MALL_CLASS,
DWARF_ALL_CLASS,
DWARF_BOUNTY_CLASS,
DWARF_SMITH_CLASS,
KAMAEL_ALL_CLASS,
KAMAEL_FIRST_CLASS_GROUP,
KAMAEL_SECOND_CLASS_GROUP,
KAMAEL_THIRD_CLASS_GROUP,
KAMAEL_FOURTH_CLASS_GROUP,
BEGINNER_FIGHTER,
BEGINNER_MAGE,
KAMAEL_MALE_MAIN_OCCUPATION,
KAMAEL_FEMALE_MAIN_OCCUPATION,
ARCHER_GROUP,
SHIELD_MASTER,
BARD,
FORCE_MASTER,
WEAPON_MASTER,
BOW_MASTER,
DAGGER_MASTER,
HEAL_MASTER,
WIZARD_MASTER,
BUFF_MASTER,
SUMMON_MASTER,
WARRIOR_CLOACK,
ROGUE_CLOACK,
MAGE_CLOACK,
SHIELD_MASTER2_3,
BARD2_3,
FORCE_MASTER2_3,
WEAPON_MASTER2_3,
BOW_MASTER2_3,
DAGGER_MASTER2_3,
HEAL_MASTER2_3,
WIZARD_MASTER2_3,
BUFF_MASTER2_3,
SUMMON_MASTER2_3,
ATTRIBUTE_GROUP_SUMMONER,
SUB_GROUP_WARRIOR,
SUB_GROUP_ROGUE,
SUB_GROUP_KNIGHT,
SUB_GROUP_SUMMONER,
SUB_GROUP_WIZARD,
SUB_GROUP_HEALER,
SUB_GROUP_ENCHANTER,
SUB_GROUP_HEC,
SUB_GROUP_HEW,
SUB_GROUP_HEF,
SUB_GROUP_ORC,
SUB_GROUP_WARE,
SUB_GROUP_BLACK,
SUB_GROUP_DE,
SUB_GROUP_KAMAEL,
LIGHT_TANKER_GROUP,
DARK_TANKER_GROUP,
MELEE_ATTACKER,
RECOM_KNIGHT_GROUP,
RECOM_MAGIC_GROUP,
RECOM_WARRIOR_GROUP,
RECOM_ROGUE_GROUP,
RECOM_KAMAEL_GROUP,
RECOM_ORCF_GROUP,
RECOM_ORCM_GROUP,
DEINONYCHUS_PET_GROUP,
BEASTFARM_BEAST,
BEASTFARM_INVADER,
ICEQUEEN_NPC,
AWAKEN_GROUP,
SHILENS_FOLLOWERS,
SIGEL_CANDIDATE,
TYRR_CANDIDATE,
OTHELL_CANDIDATE,
YUL_CANDIDATE,
FEOH_CANDIDATE,
ISS_CANDIDATE,
WYNN_CANDIDATE,
AEORE_CANDIDATE,
SIGEL_GROUP,
TYRR_GROUP,
OTHELL_GROUP,
YUL_GROUP,
FEOH_GROUP,
ISS_GROUP,
WYNN_GROUP,
AEORE_GROUP;
/**
* Finds category by it's name
* @param categoryName
* @return A {@code CategoryType} if category was found, {@code null} if category was not found
*/
public static final CategoryType findByName(String categoryName)
{
for (CategoryType type : values())
{
if (type.name().equalsIgnoreCase(categoryName))
{
return type;
}
}
return null;
}
}

View File

@@ -1,29 +1,27 @@
/*
* 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 com.l2jmobius.gameserver.enums;
/**
* @author Zealar
*/
public enum DuelState
{
NO_DUEL,
DUELLING,
DEAD,
WINNER,
INTERRUPTED
}
/*
* 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 com.l2jmobius.gameserver.enums;
/**
* @author Sdw
*/
public enum CeremonyOfChaosResult
{
TIE,
WIN,
LOSE
}

View File

@@ -0,0 +1,31 @@
/*
* 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 com.l2jmobius.gameserver.enums;
import com.l2jmobius.gameserver.model.eventengine.IEventState;
/**
* @author Sdw
*/
public enum CeremonyOfChaosState implements IEventState
{
SCHEDULED,
REGISTRATION,
PREPARING_FOR_TELEPORT,
PREPARING_FOR_FIGHT,
RUNNING
}

View File

@@ -0,0 +1,33 @@
/*
* 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 com.l2jmobius.gameserver.enums;
/**
* @author UnAfraid
*/
public enum CharacterDeleteFailType
{
NONE,
UNKNOWN,
PLEDGE_MEMBER,
PLEDGE_MASTER,
PROHIBIT_CHAR_DELETION,
COMMISSION,
MENTOR,
MENTEE,
MAIL;
}

View File

@@ -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 com.l2jmobius.gameserver.enums;
/**
* @author St3eT
*/
public enum ClanHallGrade
{
GRADE_S(50),
GRADE_A(40),
GRADE_B(30),
GRADE_C(20),
GRADE_D(10),
GRADE_NONE(0);
private final int _gradeValue;
private ClanHallGrade(int gradeValue)
{
_gradeValue = gradeValue;
}
/**
* @return the grade value.
*/
public int getGradeValue()
{
return _gradeValue;
}
}

View File

@@ -0,0 +1,42 @@
/*
* 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 com.l2jmobius.gameserver.enums;
/**
* @author St3eT
*/
public enum ClanHallType
{
AUCTIONABLE(0),
SIEGEABLE(1),
OTHER(2);
private final int _clientVal;
private ClanHallType(int clientVal)
{
_clientVal = clientVal;
}
/**
* @return the client value.
*/
public int getClientVal()
{
return _clientVal;
}
}

View File

@@ -0,0 +1,79 @@
/*
* 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 com.l2jmobius.gameserver.enums;
import java.util.function.Function;
import com.l2jmobius.gameserver.data.xml.impl.ClanRewardData;
import com.l2jmobius.gameserver.model.L2Clan;
import com.l2jmobius.gameserver.model.pledge.ClanRewardBonus;
/**
* @author UnAfraid
*/
public enum ClanRewardType
{
MEMBERS_ONLINE(0, L2Clan::getPreviousMaxOnlinePlayers),
HUNTING_MONSTERS(1, L2Clan::getPreviousHuntingPoints);
final int _clientId;
final int _mask;
final Function<L2Clan, Integer> _pointsFunction;
ClanRewardType(int clientId, Function<L2Clan, Integer> pointsFunction)
{
_clientId = clientId;
_mask = 1 << clientId;
_pointsFunction = pointsFunction;
}
public int getClientId()
{
return _clientId;
}
public int getMask()
{
return _mask;
}
public ClanRewardBonus getAvailableBonus(L2Clan clan)
{
ClanRewardBonus availableBonus = null;
for (ClanRewardBonus bonus : ClanRewardData.getInstance().getClanRewardBonuses(this))
{
if (bonus.getRequiredAmount() <= _pointsFunction.apply(clan))
{
if ((availableBonus == null) || (availableBonus.getLevel() < bonus.getLevel()))
{
availableBonus = bonus;
}
}
}
return availableBonus;
}
public static int getDefaultMask()
{
int mask = 0;
for (ClanRewardType type : values())
{
mask |= type.getMask();
}
return mask;
}
}

View File

@@ -0,0 +1,27 @@
/*
* 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 com.l2jmobius.gameserver.enums;
/**
* @author Sdw
*/
public enum DispelSlotType
{
ALL,
BUFF,
DEBUFF
}

View File

@@ -0,0 +1,30 @@
/*
* 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 com.l2jmobius.gameserver.enums;
/**
* @author St3eT
*/
public enum DoorOpenType
{
NONE,
BY_CLICK,
BY_TIME,
BY_ITEM,
BY_SKILL,
BY_CYCLE;
}

View File

@@ -1,31 +1,28 @@
/*
* 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 com.l2jmobius.gameserver.enums;
/**
* @author Zealar
*/
public enum DuelResult
{
CONTINUE,
TEAM_1_WIN,
TEAM_2_WIN,
TEAM_1_SURRENDER,
TEAM_2_SURRENDER,
CANCELED,
TIMEOUT
}
/*
* 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 com.l2jmobius.gameserver.enums;
public enum DuelResult
{
Continue,
Team1Win,
Team2Win,
Team1Surrender,
Team2Surrender,
Canceled,
Timeout
}

View File

@@ -0,0 +1,27 @@
/*
* 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 com.l2jmobius.gameserver.enums;
/**
* @author Sdw
*/
public enum ExManagePartyRoomMemberType
{
ADD_MEMBER,
UPDATE_MEMBER,
DELETE_MEMBER
}

View File

@@ -0,0 +1,54 @@
/*
* 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 com.l2jmobius.gameserver.enums;
import com.l2jmobius.gameserver.model.interfaces.IUpdateTypeComponent;
/**
* @author malyelfik
*/
public enum GroupType implements IUpdateTypeComponent
{
NONE(0x01),
PARTY(0x02),
COMMAND_CHANNEL(0x04);
private int _mask;
private GroupType(int mask)
{
_mask = mask;
}
@Override
public int getMask()
{
return _mask;
}
public static GroupType getByMask(int flag)
{
for (GroupType type : values())
{
if (type.getMask() == flag)
{
return type;
}
}
return null;
}
}

View File

@@ -1,42 +1,42 @@
/*
* 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 com.l2jmobius.gameserver.enums;
/**
* Illegal Action Punishment Type.
* @author xban1x
*/
public enum IllegalActionPunishmentType
{
NONE,
BROADCAST,
KICK,
KICKBAN,
JAIL;
public static IllegalActionPunishmentType findByName(String name)
{
for (IllegalActionPunishmentType type : values())
{
if (type.name().toLowerCase().equals(name.toLowerCase()))
{
return type;
}
}
return NONE;
}
}
/*
* 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 com.l2jmobius.gameserver.enums;
/**
* Illegal Action Punishment Type.
* @author xban1x
*/
public enum IllegalActionPunishmentType
{
NONE,
BROADCAST,
KICK,
KICKBAN,
JAIL;
public static final IllegalActionPunishmentType findByName(String name)
{
for (IllegalActionPunishmentType type : values())
{
if (type.name().toLowerCase().equals(name.toLowerCase()))
{
return type;
}
}
return NONE;
}
}

View File

@@ -1,27 +1,27 @@
/*
* 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 com.l2jmobius.gameserver.enums;
/**
* @author FallenAngel
*/
public enum InstanceReenterType
{
NONE,
ON_INSTANCE_ENTER,
ON_INSTANCE_FINISH,
/*
* 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 com.l2jmobius.gameserver.enums;
/**
* @author FallenAngel
*/
public enum InstanceReenterType
{
NONE,
ON_ENTER,
ON_FINISH,
}

View File

@@ -1,26 +1,28 @@
/*
* 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 com.l2jmobius.gameserver.enums;
/**
* @author Zealar
*/
public enum StartPosType
{
FIXED,
RANDOM
}
/*
* 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 com.l2jmobius.gameserver.enums;
/**
* @author malyelfik
*/
public enum InstanceTeleportType
{
NONE,
FIXED,
RANDOM,
ORIGIN
}

View File

@@ -1,161 +1,152 @@
/*
* 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 com.l2jmobius.gameserver.enums;
public enum InstanceType
{
L2Object(null),
L2ItemInstance(L2Object),
L2Character(L2Object),
L2Npc(L2Character),
L2Playable(L2Character),
L2Summon(L2Playable),
L2Decoy(L2Character),
L2PcInstance(L2Playable),
L2NpcInstance(L2Npc),
L2MerchantInstance(L2NpcInstance),
L2WarehouseInstance(L2NpcInstance),
L2StaticObjectInstance(L2Character),
L2DoorInstance(L2Character),
L2TerrainObjectInstance(L2Npc),
L2EffectPointInstance(L2Npc),
CommissionManagerInstance(L2Npc),
// Summons, Pets, Decoys and Traps
L2ServitorInstance(L2Summon),
L2PetInstance(L2Summon),
L2BabyPetInstance(L2PetInstance),
L2DecoyInstance(L2Decoy),
L2TrapInstance(L2Npc),
// Attackable
L2Attackable(L2Npc),
L2GuardInstance(L2Attackable),
L2QuestGuardInstance(L2GuardInstance),
L2MonsterInstance(L2Attackable),
L2ChestInstance(L2MonsterInstance),
L2ControllableMobInstance(L2MonsterInstance),
L2FeedableBeastInstance(L2MonsterInstance),
L2TamedBeastInstance(L2FeedableBeastInstance),
L2FriendlyMobInstance(L2Attackable),
L2RaidBossInstance(L2MonsterInstance),
L2GrandBossInstance(L2RaidBossInstance),
// FlyMobs
L2FlyNpcInstance(L2NpcInstance),
L2FlyMonsterInstance(L2MonsterInstance),
L2FlyRaidBossInstance(L2RaidBossInstance),
L2FlyTerrainObjectInstance(L2Npc),
// Sepulchers
L2SepulcherNpcInstance(L2NpcInstance),
L2SepulcherMonsterInstance(L2MonsterInstance),
// Vehicles
L2Vehicle(L2Character),
L2BoatInstance(L2Vehicle),
L2AirShipInstance(L2Vehicle),
L2ShuttleInstance(L2Vehicle),
L2ControllableAirShipInstance(L2AirShipInstance),
// Siege
L2DefenderInstance(L2Attackable),
L2ArtefactInstance(L2NpcInstance),
L2ControlTowerInstance(L2Npc),
L2FlameTowerInstance(L2Npc),
L2SiegeFlagInstance(L2Npc),
// Fort Siege
L2FortCommanderInstance(L2DefenderInstance),
// Fort NPCs
L2FortLogisticsInstance(L2MerchantInstance),
L2FortManagerInstance(L2MerchantInstance),
// City NPCs
L2AdventurerInstance(L2NpcInstance),
L2AuctioneerInstance(L2Npc),
L2ClanHallManagerInstance(L2MerchantInstance),
L2FishermanInstance(L2MerchantInstance),
L2ObservationInstance(L2Npc),
L2OlympiadManagerInstance(L2Npc),
L2PetManagerInstance(L2MerchantInstance),
L2RaceManagerInstance(L2Npc),
L2TeleporterInstance(L2Npc),
L2TrainerInstance(L2NpcInstance),
L2VillageMasterInstance(L2NpcInstance),
// Doormens
L2DoormenInstance(L2NpcInstance),
L2CastleDoormenInstance(L2DoormenInstance),
L2FortDoormenInstance(L2DoormenInstance),
L2ClanHallDoormenInstance(L2DoormenInstance),
// Custom
L2ClassMasterInstance(L2NpcInstance),
L2EventMobInstance(L2Npc);
private final InstanceType _parent;
private final long _typeL;
private final long _typeH;
private final long _maskL;
private final long _maskH;
private InstanceType(InstanceType parent)
{
_parent = parent;
final int high = ordinal() - (Long.SIZE - 1);
if (high < 0)
{
_typeL = 1L << ordinal();
_typeH = 0;
}
else
{
_typeL = 0;
_typeH = 1L << high;
}
if ((_typeL < 0) || (_typeH < 0))
{
throw new Error("Too many instance types, failed to load " + name());
}
if (parent != null)
{
_maskL = _typeL | parent._maskL;
_maskH = _typeH | parent._maskH;
}
else
{
_maskL = _typeL;
_maskH = _typeH;
}
}
public final InstanceType getParent()
{
return _parent;
}
public final boolean isType(InstanceType it)
{
return ((_maskL & it._typeL) > 0) || ((_maskH & it._typeH) > 0);
}
public final boolean isTypes(InstanceType... it)
{
for (InstanceType i : it)
{
if (isType(i))
{
return true;
}
}
return false;
}
}
/*
* 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 com.l2jmobius.gameserver.enums;
public enum InstanceType
{
L2Object(null),
L2ItemInstance(L2Object),
L2Character(L2Object),
L2Npc(L2Character),
L2Playable(L2Character),
L2Summon(L2Playable),
L2Decoy(L2Character),
L2PcInstance(L2Playable),
L2NpcInstance(L2Npc),
L2MerchantInstance(L2NpcInstance),
L2WarehouseInstance(L2NpcInstance),
L2StaticObjectInstance(L2Character),
L2DoorInstance(L2Character),
L2TerrainObjectInstance(L2Npc),
L2EffectPointInstance(L2Npc),
CommissionManagerInstance(L2Npc),
// Summons, Pets, Decoys and Traps
L2ServitorInstance(L2Summon),
L2PetInstance(L2Summon),
L2DecoyInstance(L2Decoy),
L2TrapInstance(L2Npc),
// Attackable
L2Attackable(L2Npc),
L2GuardInstance(L2Attackable),
L2QuestGuardInstance(L2GuardInstance),
L2MonsterInstance(L2Attackable),
L2ChestInstance(L2MonsterInstance),
L2ControllableMobInstance(L2MonsterInstance),
L2FeedableBeastInstance(L2MonsterInstance),
L2TamedBeastInstance(L2FeedableBeastInstance),
L2FriendlyMobInstance(L2Attackable),
L2RaidBossInstance(L2MonsterInstance),
L2GrandBossInstance(L2RaidBossInstance),
FriendlyNpcInstance(L2Attackable),
// FlyMobs
L2FlyTerrainObjectInstance(L2Npc),
// Sepulchers
L2SepulcherNpcInstance(L2NpcInstance),
L2SepulcherMonsterInstance(L2MonsterInstance),
// Vehicles
L2Vehicle(L2Character),
L2BoatInstance(L2Vehicle),
L2AirShipInstance(L2Vehicle),
L2ShuttleInstance(L2Vehicle),
L2ControllableAirShipInstance(L2AirShipInstance),
// Siege
L2DefenderInstance(L2Attackable),
L2ArtefactInstance(L2NpcInstance),
L2ControlTowerInstance(L2Npc),
L2FlameTowerInstance(L2Npc),
L2SiegeFlagInstance(L2Npc),
// Fort Siege
L2FortCommanderInstance(L2DefenderInstance),
// Fort NPCs
L2FortLogisticsInstance(L2MerchantInstance),
L2FortManagerInstance(L2MerchantInstance),
// City NPCs
L2FishermanInstance(L2MerchantInstance),
L2ObservationInstance(L2Npc),
L2OlympiadManagerInstance(L2Npc),
L2PetManagerInstance(L2MerchantInstance),
L2RaceManagerInstance(L2Npc),
L2TeleporterInstance(L2Npc),
L2VillageMasterInstance(L2NpcInstance),
// Doormens
L2DoormenInstance(L2NpcInstance),
L2FortDoormenInstance(L2DoormenInstance),
// Custom
L2ClassMasterInstance(L2NpcInstance),
L2EventMobInstance(L2Npc);
private final InstanceType _parent;
private final long _typeL;
private final long _typeH;
private final long _maskL;
private final long _maskH;
private InstanceType(InstanceType parent)
{
_parent = parent;
final int high = ordinal() - (Long.SIZE - 1);
if (high < 0)
{
_typeL = 1L << ordinal();
_typeH = 0;
}
else
{
_typeL = 0;
_typeH = 1L << high;
}
if ((_typeL < 0) || (_typeH < 0))
{
throw new Error("Too many instance types, failed to load " + name());
}
if (parent != null)
{
_maskL = _typeL | parent._maskL;
_maskH = _typeH | parent._maskH;
}
else
{
_maskL = _typeL;
_maskH = _typeH;
}
}
public final InstanceType getParent()
{
return _parent;
}
public final boolean isType(InstanceType it)
{
return ((_maskL & it._typeL) > 0) || ((_maskH & it._typeH) > 0);
}
public final boolean isTypes(InstanceType... it)
{
for (InstanceType i : it)
{
if (isType(i))
{
return true;
}
}
return false;
}
}

View File

@@ -0,0 +1,39 @@
/*
* 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 com.l2jmobius.gameserver.enums;
/**
* @author UnAfraid
*/
public enum InventoryBlockType
{
NONE(-1),
BLACKLIST(0),
WHITELIST(1);
private int _clientId;
private InventoryBlockType(int clientId)
{
_clientId = clientId;
}
public int getClientId()
{
return _clientId;
}
}

View File

@@ -1,78 +1,78 @@
/*
* 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 com.l2jmobius.gameserver.enums;
import com.l2jmobius.gameserver.model.interfaces.IUpdateTypeComponent;
import com.l2jmobius.gameserver.model.itemcontainer.Inventory;
/**
* @author UnAfraid
*/
public enum InventorySlot implements IUpdateTypeComponent
{
UNDER(Inventory.PAPERDOLL_UNDER),
REAR(Inventory.PAPERDOLL_REAR),
LEAR(Inventory.PAPERDOLL_LEAR),
NECK(Inventory.PAPERDOLL_NECK),
RFINGER(Inventory.PAPERDOLL_RFINGER),
LFINGER(Inventory.PAPERDOLL_LFINGER),
HEAD(Inventory.PAPERDOLL_HEAD),
RHAND(Inventory.PAPERDOLL_RHAND),
LHAND(Inventory.PAPERDOLL_LHAND),
GLOVES(Inventory.PAPERDOLL_GLOVES),
CHEST(Inventory.PAPERDOLL_CHEST),
LEGS(Inventory.PAPERDOLL_LEGS),
FEET(Inventory.PAPERDOLL_FEET),
CLOAK(Inventory.PAPERDOLL_CLOAK),
LRHAND(Inventory.PAPERDOLL_LRHAND),
HAIR(Inventory.PAPERDOLL_HAIR),
HAIR2(Inventory.PAPERDOLL_DHAIR),
RBRACELET(Inventory.PAPERDOLL_RBRACELET),
LBRACELET(Inventory.PAPERDOLL_LBRACELET),
DECO1(Inventory.PAPERDOLL_TALISMAN1),
DECO2(Inventory.PAPERDOLL_TALISMAN2),
DECO3(Inventory.PAPERDOLL_TALISMAN3),
DECO4(Inventory.PAPERDOLL_TALISMAN4),
DECO5(Inventory.PAPERDOLL_TALISMAN5),
DECO6(Inventory.PAPERDOLL_TALISMAN6),
BELT(Inventory.PAPERDOLL_BELT),
BROOCH(Inventory.PAPERDOLL_BROOCH),
BROOCH_JEWEL(Inventory.PAPERDOLL_BROOCH_STONE1),
BROOCH_JEWEL2(Inventory.PAPERDOLL_BROOCH_STONE2),
BROOCH_JEWEL3(Inventory.PAPERDOLL_BROOCH_STONE3),
BROOCH_JEWEL4(Inventory.PAPERDOLL_BROOCH_STONE4),
BROOCH_JEWEL5(Inventory.PAPERDOLL_BROOCH_STONE5),
BROOCH_JEWEL6(Inventory.PAPERDOLL_BROOCH_STONE6);
private final int _paperdollSlot;
private InventorySlot(int paperdollSlot)
{
_paperdollSlot = paperdollSlot;
}
public int getSlot()
{
return _paperdollSlot;
}
@Override
public int getMask()
{
return ordinal();
}
}
/*
* 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 com.l2jmobius.gameserver.enums;
import com.l2jmobius.gameserver.model.interfaces.IUpdateTypeComponent;
import com.l2jmobius.gameserver.model.itemcontainer.Inventory;
/**
* @author UnAfraid
*/
public enum InventorySlot implements IUpdateTypeComponent
{
UNDER(Inventory.PAPERDOLL_UNDER),
REAR(Inventory.PAPERDOLL_REAR),
LEAR(Inventory.PAPERDOLL_LEAR),
NECK(Inventory.PAPERDOLL_NECK),
RFINGER(Inventory.PAPERDOLL_RFINGER),
LFINGER(Inventory.PAPERDOLL_LFINGER),
HEAD(Inventory.PAPERDOLL_HEAD),
RHAND(Inventory.PAPERDOLL_RHAND),
LHAND(Inventory.PAPERDOLL_LHAND),
GLOVES(Inventory.PAPERDOLL_GLOVES),
CHEST(Inventory.PAPERDOLL_CHEST),
LEGS(Inventory.PAPERDOLL_LEGS),
FEET(Inventory.PAPERDOLL_FEET),
CLOAK(Inventory.PAPERDOLL_CLOAK),
LRHAND(Inventory.PAPERDOLL_RHAND),
HAIR(Inventory.PAPERDOLL_HAIR),
HAIR2(Inventory.PAPERDOLL_HAIR2),
RBRACELET(Inventory.PAPERDOLL_RBRACELET),
LBRACELET(Inventory.PAPERDOLL_LBRACELET),
DECO1(Inventory.PAPERDOLL_DECO1),
DECO2(Inventory.PAPERDOLL_DECO2),
DECO3(Inventory.PAPERDOLL_DECO3),
DECO4(Inventory.PAPERDOLL_DECO4),
DECO5(Inventory.PAPERDOLL_DECO5),
DECO6(Inventory.PAPERDOLL_DECO6),
BELT(Inventory.PAPERDOLL_BELT),
BROOCH(Inventory.PAPERDOLL_BROOCH),
BROOCH_JEWEL(Inventory.PAPERDOLL_BROOCH_JEWEL1),
BROOCH_JEWEL2(Inventory.PAPERDOLL_BROOCH_JEWEL2),
BROOCH_JEWEL3(Inventory.PAPERDOLL_BROOCH_JEWEL3),
BROOCH_JEWEL4(Inventory.PAPERDOLL_BROOCH_JEWEL4),
BROOCH_JEWEL5(Inventory.PAPERDOLL_BROOCH_JEWEL5),
BROOCH_JEWEL6(Inventory.PAPERDOLL_BROOCH_JEWEL6);
private final int _paperdollSlot;
private InventorySlot(int paperdollSlot)
{
_paperdollSlot = paperdollSlot;
}
public int getSlot()
{
return _paperdollSlot;
}
@Override
public int getMask()
{
return ordinal();
}
}

View File

@@ -0,0 +1,30 @@
/*
* 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 com.l2jmobius.gameserver.enums;
/**
* @author UnAfraid
*/
public enum ItemSkillType
{
NORMAL,
ON_ENCHANT,
ON_EQUIP,
ON_UNEQUIP,
ON_CRITICAL_SKILL,
ON_MAGIC_SKILL;
}

View File

@@ -0,0 +1,31 @@
/*
* 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 com.l2jmobius.gameserver.enums;
/**
* @author Sdw
*/
public enum MatchingMemberType
{
WAITING_PLAYER,
PARTY_LEADER,
PARTY_MEMBER,
COMMAND_CHANNEL_LEADER,
COMMAND_CHANNEL_PARTY_MEMBER,
WAITING_PARTY,
WAITING_PLAYER_NO_PARTY
}

View File

@@ -0,0 +1,26 @@
/*
* 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 com.l2jmobius.gameserver.enums;
/**
* @author Sdw
*/
public enum MatchingRoomType
{
PARTY,
COMMAND_CHANNEL
}

View File

@@ -0,0 +1,162 @@
/*
* 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 com.l2jmobius.gameserver.enums;
/**
* This file contains all movies.
* @author St3eT
*/
public enum Movie
{
SC_LINDVIOR(1, true),
SC_ECHMUS_OPENING(2, true),
SC_ECHMUS_SUCCESS(3, true),
SC_ECHMUS_FAIL(4, true),
SC_BOSS_TIAT_OPENING(5, true),
SC_BOSS_TIAT_ENDING_SUCCES(6, true),
SC_BOSS_TIAT_ENDING_FAIL(7, true),
SSQ_SUSPICIOUS_DEATHS(8, true),
SSQ_DYING_MASSAGE(9, true),
SSQ_CONTRACT_OF_MAMMON(10, true),
SSQ_RITUAL_OF_PRIEST(11, true),
SSQ_SEALING_EMPEROR_1ST(12, true),
SSQ_SEALING_EMPEROR_2ND(13, true),
SSQ_EMBRYO(14, true),
SC_BOSS_FREYA_OPENING(15, false),
SC_BOSS_FREYA_PHASECH_A(16, true),
SC_BOSS_FREYA_PHASECH_B(17, true),
SC_BOSS_KEGOR_INTRUSION(18, false),
SC_BOSS_FREYA_ENDING_A(19, false),
SC_BOSS_FREYA_ENDING_B(20, false),
SC_BOSS_FREYA_FORCED_DEFEAT(21, true),
SC_BOSS_FREYA_DEFEAT(22, true),
SC_ICE_HEAVYKNIGHT_SPAWN(23, false),
SSQ2_HOLY_BURIAL_GROUND_OPENING(24, true),
SSQ2_HOLY_BURIAL_GROUND_CLOSING(25, true),
SSQ2_SOLINA_TOMB_OPENING(26, false),
SSQ2_SOLINA_TOMB_CLOSING(27, true),
SSQ2_ELYSS_NARRATION(28, false),
SSQ2_BOSS_OPENING(29, false),
SSQ2_BOSS_CLOSING(30, false),
SC_ISTINA_OPENING(31, true),
SC_ISTINA_ENDING_A(32, false),
SC_ISTINA_ENDING_B(33, true),
SC_ISTINA_BRIDGE(34, true),
SC_OCTABIS_OPENING(35, true),
SC_OCTABIS_PHASECH_A(36, false),
SC_OCTABIS_PHASECH_B(37, true),
SC_OCTABIS_ENDING(38, true),
SC_GD1_PROLOGUE(42, false),
SC_TALKING_ISLAND_BOSS_OPENING(43, false),
SC_TALKING_ISLAND_BOSS_ENDING(44, false),
SC_AWAKENING_OPENING(45, false),
SC_AWAKENING_BOSS_OPENING(46, false),
SC_AWAKENING_BOSS_ENDING_A(47, false),
SC_AWAKENING_BOSS_ENDING_B(48, false),
SC_EARTHWORM_ENDING(49, false),
SC_SPACIA_OPENING(50, true),
SC_SPACIA_A(51, true),
SC_SPACIA_B(52, true),
SC_SPACIA_C(53, false),
SC_SPACIA_ENDING(54, true),
SC_AWAKENING_VIEW(55, true),
SC_AWAKENING_OPENING_C(56, false),
SC_AWAKENING_OPENING_D(57, false),
SC_AWAKENING_OPENING_E(58, false),
SC_AWAKENING_OPENING_F(59, false),
SC_TAUTI_OPENING_B(69, true),
SC_TAUTI_OPENING(70, true),
SC_TAUTI_PHASE(71, false),
SC_TAUTI_ENDING(72, true),
SC_SOULISLAND_QUEST(73, false),
SC_METUCELLAR_OPENING(74, false),
SC_SUB_QUEST(75, false),
SC_LIND_OPENING(76, false),
SC_KATACOMB(77, true),
SC_NECRO(78, true),
SC_HELLBOUND(79, true),
SC_HONORS(80, true),
SC_KELBIM_OPENING(81, false),
SC_NOBLE_OPENING(99, true),
SC_NOBLE_ENDING(100, true),
SI_ILLUSION_01_QUE(101, true),
SI_ILLUSION_02_QUE(102, true),
SI_ILLUSION_03_QUE(103, true),
SI_ARKAN_ENTER(104, true),
SI_BARLOG_OPENING(105, true),
SI_BARLOG_STORY(106, true),
SI_ILLUSION_04_QUE(107, false),
SI_ILLUSION_05_QUE(108, false),
SC_BLOODVEIN_OPENING(109, false),
ERT_QUEST_A(110, false),
ERT_QUEST_B(111, false),
EPIC_FREYA_SLIDE(112, true),
EPIC_KELBIM_SLIDE(113, true),
EPIC_TAUTI_SLIDE(114, true),
EPIC_FREYA_SCENE(115, true),
EPIC_KELBIM_SCENE(116, false),
EPIC_TAUTI_SCENE(117, false),
LAND_KSERTH_A(1000, true),
LAND_KSERTH_B(1001, true),
LAND_UNDEAD_A(1002, true),
LAND_DISTRUCTION_A(1003, true),
LAND_ANNIHILATION_A(1004, true),
G_CARTIA_1_SIN(2001, false),
G_CARTIA_2_SIN(2002, false);
private final int _clientId;
private final boolean _isEscapable;
private Movie(int clientId, boolean isEscapable)
{
_clientId = clientId;
_isEscapable = isEscapable;
}
/**
* @return the client id.
*/
public int getClientId()
{
return _clientId;
}
/**
* @return {@code true} if movie can be escaped (skipped), {@code false} otherwise.
*/
public boolean isEscapable()
{
return _isEscapable;
}
/**
* Finds the {@code Movie} by its clientId
* @param clientId the clientId
* @return the {@code Movie} if its found, {@code null} otherwise.
*/
public static Movie findByClientId(int clientId)
{
for (Movie movie : values())
{
if (movie.getClientId() == clientId)
{
return movie;
}
}
return null;
}
}

View File

@@ -0,0 +1,26 @@
/*
* 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 com.l2jmobius.gameserver.enums;
/**
* @author UnAfraid
*/
public enum MpRewardAffectType
{
SOLO,
PARTY
}

View File

@@ -0,0 +1,26 @@
/*
* 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 com.l2jmobius.gameserver.enums;
/**
* @author UnAfraid
*/
public enum MpRewardType
{
PER,
DIFF
}

View File

@@ -1,89 +1,89 @@
/*
* 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 com.l2jmobius.gameserver.enums;
import com.l2jmobius.gameserver.model.interfaces.IUpdateTypeComponent;
/**
* @author UnAfraid
*/
public enum NpcInfoType implements IUpdateTypeComponent
{
// 0
ID(0x00, 4),
ATTACKABLE(0x01, 1),
UNKNOWN1(0x02, 4),
NAME(0x03, 2),
POSITION(0x04, (3 * 4)),
HEADING(0x05, 4),
UNKNOWN2(0x06, 4),
ATK_CAST_SPEED(0x07, (2 * 4)),
// 1
SPEED_MULTIPLIER(0x08, (2 * 4)),
EQUIPPED(0x09, (3 * 4)),
ALIVE(0x0A, 1),
RUNNING(0x0B, 1),
SWIM_OR_FLY(0x0E, 1),
TEAM(0x0F, 1),
// 2
ENCHANT(0x10, 4),
FLYING(0x11, 4),
CLONE(0x12, 4),
UNKNOWN8(0x13, 4),
DISPLAY_EFFECT(0x16, 4),
TRANSFORMATION(0x17, 4),
// 3
CURRENT_HP(0x18, 4),
CURRENT_MP(0x19, 4),
MAX_HP(0x1A, 4),
MAX_MP(0x1B, 4),
UNKNOWN11(0x1C, 1),
UNKNOWN12(0x1D, (2 * 4)),
TITLE(0x1E, 2),
NAME_NPCSTRINGID(0x1F, 4),
// 4
TITLE_NPCSTRINGID(0x20, 4),
PVP_FLAG(0x21, 1),
NAME_COLOR(0x22, 4),
CLAN(0x23, (5 * 4)),
ABNORMALS(0x24, 0),
VISUAL_STATE(0x25, 1);
private final int _mask;
private final int _blockLength;
private NpcInfoType(int mask, int blockLength)
{
_mask = mask;
_blockLength = blockLength;
}
@Override
public int getMask()
{
return _mask;
}
public int getBlockLength()
{
return _blockLength;
}
/*
* 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 com.l2jmobius.gameserver.enums;
import com.l2jmobius.gameserver.model.interfaces.IUpdateTypeComponent;
/**
* @author UnAfraid
*/
public enum NpcInfoType implements IUpdateTypeComponent
{
// 0
ID(0x00, 4),
ATTACKABLE(0x01, 1),
UNKNOWN1(0x02, 4),
NAME(0x03, 2),
POSITION(0x04, (3 * 4)),
HEADING(0x05, 4),
UNKNOWN2(0x06, 4),
ATK_CAST_SPEED(0x07, (2 * 4)),
// 1
SPEED_MULTIPLIER(0x08, (2 * 4)),
EQUIPPED(0x09, (3 * 4)),
ALIVE(0x0A, 1),
RUNNING(0x0B, 1),
SWIM_OR_FLY(0x0E, 1),
TEAM(0x0F, 1),
// 2
ENCHANT(0x10, 4),
FLYING(0x11, 4),
CLONE(0x12, 4),
UNKNOWN8(0x13, 4),
DISPLAY_EFFECT(0x16, 4),
TRANSFORMATION(0x17, 4),
// 3
CURRENT_HP(0x18, 4),
CURRENT_MP(0x19, 4),
MAX_HP(0x1A, 4),
MAX_MP(0x1B, 4),
SUMMONED(0x1C, 1),
UNKNOWN12(0x1D, (2 * 4)),
TITLE(0x1E, 2),
NAME_NPCSTRINGID(0x1F, 4),
// 4
TITLE_NPCSTRINGID(0x20, 4),
PVP_FLAG(0x21, 1),
NAME_COLOR(0x22, 4),
CLAN(0x23, (5 * 4)),
ABNORMALS(0x24, 0),
VISUAL_STATE(0x25, 1);
private final int _mask;
private final int _blockLength;
private NpcInfoType(int mask, int blockLength)
{
_mask = mask;
_blockLength = blockLength;
}
@Override
public int getMask()
{
return _mask;
}
public int getBlockLength()
{
return _blockLength;
}
}

View File

@@ -0,0 +1,51 @@
/*
* 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 com.l2jmobius.gameserver.enums;
/**
* @author UnAfraid
*/
public enum OneDayRewardStatus
{
AVAILABLE(1),
NOT_AVAILABLE(2),
COMPLETED(3);
private int _clientId;
private OneDayRewardStatus(int clientId)
{
_clientId = clientId;
}
public int getClientId()
{
return _clientId;
}
public static OneDayRewardStatus valueOf(int clientId)
{
for (OneDayRewardStatus type : values())
{
if (type.getClientId() == clientId)
{
return type;
}
}
return null;
}
}

View File

@@ -1,48 +1,49 @@
/*
* 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 com.l2jmobius.gameserver.enums;
import com.l2jmobius.gameserver.model.interfaces.IUpdateTypeComponent;
/**
* @author UnAfraid
*/
public enum PartySmallWindowUpdateType implements IUpdateTypeComponent
{
CURRENT_CP(0x01),
MAX_CP(0x02),
CURRENT_HP(0x04),
MAX_HP(0x08),
CURRENT_MP(0x10),
MAX_MP(0x20),
LEVEL(0x40),
CLASS_ID(0x80),
VITALITY_POINTS(0x200);
private final int _mask;
private PartySmallWindowUpdateType(int mask)
{
_mask = mask;
}
@Override
public int getMask()
{
return _mask;
}
}
/*
* 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 com.l2jmobius.gameserver.enums;
import com.l2jmobius.gameserver.model.interfaces.IUpdateTypeComponent;
/**
* @author UnAfraid
*/
public enum PartySmallWindowUpdateType implements IUpdateTypeComponent
{
CURRENT_CP(0x01),
MAX_CP(0x02),
CURRENT_HP(0x04),
MAX_HP(0x08),
CURRENT_MP(0x10),
MAX_MP(0x20),
LEVEL(0x40),
CLASS_ID(0x80),
PARTY_SUBSTITUTE(0x100),
VITALITY_POINTS(0x200);
private final int _mask;
private PartySmallWindowUpdateType(int mask)
{
_mask = mask;
}
@Override
public int getMask()
{
return _mask;
}
}

View File

@@ -1,38 +1,40 @@
/*
* 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 com.l2jmobius.gameserver.enums;
/**
* @author UnAfraid
*/
public enum PlayerAction
{
ADMIN_COMMAND,
USER_ENGAGE;
private final int _mask;
private PlayerAction()
{
_mask = 1 << ordinal();
}
public int getMask()
{
return _mask;
}
}
/*
* 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 com.l2jmobius.gameserver.enums;
/**
* @author UnAfraid
*/
public enum PlayerAction
{
ADMIN_COMMAND,
ADMIN_POINT_PICKING,
ADMIN_SHOW_TERRITORY,
MERCENARY_CONFIRM;
private final int _mask;
private PlayerAction()
{
_mask = (1 << ordinal());
}
public int getMask()
{
return _mask;
}
}

View File

@@ -0,0 +1,34 @@
/*
* 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 com.l2jmobius.gameserver.enums;
import com.l2jmobius.gameserver.model.actor.L2Character;
/**
* @author Sdw
*/
public enum Position
{
FRONT,
SIDE,
BACK;
public static Position getPosition(L2Character effector, L2Character effected)
{
return effector.isInFrontOf(effected) ? FRONT : (effector.isBehind(effected) ? BACK : SIDE);
}
}

File diff suppressed because it is too large Load Diff

View File

@@ -1,50 +1,51 @@
/*
* 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 com.l2jmobius.gameserver.enums;
/**
* Creature races enumerated.
* @author Zealar
*/
public enum Race
{
HUMAN,
ELF,
DARK_ELF,
ORC,
DWARF,
KAMAEL,
ERTHEIA,
ANIMAL,
BEAST,
BUG,
CASTLE_GUARD,
CONSTRUCT,
DEMONIC,
DIVINE,
DRAGON,
ELEMENTAL,
ETC,
FAIRY,
GIANT,
HUMANOID,
MERCENARY,
NONE,
PLANT,
SIEGE_WEAPON,
UNDEAD;
}
/*
* 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 com.l2jmobius.gameserver.enums;
/**
* Creature races enumerated.
* @author Zealar
*/
public enum Race
{
HUMAN,
ELF,
DARK_ELF,
ORC,
DWARF,
KAMAEL,
ERTHEIA,
ANIMAL,
BEAST,
BUG,
CASTLE_GUARD,
CONSTRUCT,
DEMONIC,
DIVINE,
DRAGON,
ELEMENTAL,
ETC,
FAIRY,
GIANT,
HUMANOID,
MERCENARY,
NONE,
PLANT,
SIEGE_WEAPON,
UNDEAD,
FRIEND; // FRIEND ordinal has to be confirmed
}

View File

@@ -0,0 +1,27 @@
/*
* 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 com.l2jmobius.gameserver.enums;
/**
* @author Sdw
*/
public enum ReduceDropType
{
MOB,
PK,
RAID
}

View File

@@ -0,0 +1,27 @@
/*
* 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 com.l2jmobius.gameserver.enums;
/**
* @author malyelfik
*/
public enum ResidenceType
{
CASTLE,
FORTRESS,
CLANHALL
}

View File

@@ -0,0 +1,27 @@
/*
* 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 com.l2jmobius.gameserver.enums;
/**
* @author Sdw
*/
public enum SayuneType
{
START_LOC,
MULTI_WAY_LOC,
ONE_WAY_LOC
}

View File

@@ -1,40 +1,40 @@
/*
* 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 com.l2jmobius.gameserver.enums;
/**
* @author UnAfraid
*/
public enum ShotType
{
SOULSHOTS,
SPIRITSHOTS,
BLESSED_SPIRITSHOTS,
FISH_SOULSHOTS;
private final int _mask;
private ShotType()
{
_mask = 1 << ordinal();
}
public int getMask()
{
return _mask;
}
/*
* 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 com.l2jmobius.gameserver.enums;
/**
* @author UnAfraid
*/
public enum ShotType
{
SOULSHOTS,
SPIRITSHOTS,
BLESSED_SPIRITSHOTS,
FISH_SOULSHOTS;
private final int _mask;
private ShotType()
{
_mask = (1 << ordinal());
}
public int getMask()
{
return _mask;
}
}

View File

@@ -0,0 +1,30 @@
/*
* 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 com.l2jmobius.gameserver.enums;
/**
* @author St3eT
*/
public enum SiegeGuardType
{
SWORD,
POLE,
BOW,
CLERIC,
WIZARD,
TELEPORTER,
}

View File

@@ -0,0 +1,27 @@
/*
* 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 com.l2jmobius.gameserver.enums;
/**
* @author Sdw
*/
public enum SkillConditionAffectType
{
BOTH,
CASTER,
TARGET
}

View File

@@ -0,0 +1,44 @@
/*
* 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 com.l2jmobius.gameserver.enums;
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
/**
* @author Sdw
*/
public enum SkillConditionAlignment
{
LAWFUL
{
@Override
public boolean test(L2PcInstance player)
{
return player.getReputation() >= 0;
}
},
CHAOTIC
{
@Override
public boolean test(L2PcInstance player)
{
return player.getReputation() < 0;
}
};
public abstract boolean test(L2PcInstance player);
}

View File

@@ -0,0 +1,26 @@
/*
* 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 com.l2jmobius.gameserver.enums;
/**
* @author Sdw
*/
public enum SkillConditionCompanionType
{
PET,
MY_SUMMON
}

View File

@@ -0,0 +1,42 @@
/*
* 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 com.l2jmobius.gameserver.enums;
/**
* @author Sdw
*/
public enum SkillConditionPercentType
{
MORE
{
@Override
public boolean test(int x1, int x2)
{
return x1 >= x2;
}
},
LESS
{
@Override
public boolean test(int x1, int x2)
{
return x1 <= x2;
}
};
public abstract boolean test(int x1, int x2);
}

View File

@@ -0,0 +1,31 @@
/*
* 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 com.l2jmobius.gameserver.enums;
/**
* @author Sdw
*/
public enum SpeedType
{
ALL,
RUN,
WALK,
SWIM_RUN,
SWIM_WALK,
FLY_RUN,
FLY_WALK;
}

View File

@@ -1,56 +1,51 @@
/*
* 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 com.l2jmobius.gameserver.enums;
/**
* @author Zealar
*/
public enum StatFunction
{
ADD("Add", 30),
DIV("Div", 20),
ENCHANT("Enchant", 0),
ENCHANTHP("EnchantHp", 40),
ENCHANTACCEVAS("EnchantAccEvas", 30),
ENCHANTPATK("EnchantPAtk", 30),
ENCHANTMATK("EnchantMAtk", 30),
ENCHANTPMCRITRATE("EnchantPMCritRate", 30),
ENCHANTRUNSPD("EnchantRunSpd", 30),
MUL("Mul", 20),
SET("Set", 0),
SHARE("Share", 30),
SUB("Sub", 30);
String name;
int order;
StatFunction(String name, int order)
{
this.name = name;
this.order = order;
}
public String getName()
{
return name;
}
public int getOrder()
{
return order;
}
}
/*
* 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 com.l2jmobius.gameserver.enums;
/**
* @author Zealar
*/
public enum StatFunction
{
ADD("Add", 30),
DIV("Div", 20),
ENCHANT("Enchant", 0),
ENCHANTHP("EnchantHp", 40),
MUL("Mul", 20),
SET("Set", 0),
SHARE("Share", 30),
SUB("Sub", 30);
String name;
int order;
StatFunction(String name, int order)
{
this.name = name;
this.order = order;
}
public String getName()
{
return name;
}
public int getOrder()
{
return order;
}
}

View File

@@ -1,26 +1,26 @@
/*
* 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 com.l2jmobius.gameserver.enums;
/**
* @author Zealar
*/
public enum EffectCalculationType
{
DIFF,
PER
}
/*
* 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 com.l2jmobius.gameserver.enums;
/**
* @author Sdw
*/
public enum StatModifierType
{
DIFF,
PER
}

View File

@@ -0,0 +1,75 @@
/*
* 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 com.l2jmobius.gameserver.enums;
import java.util.function.Function;
import com.l2jmobius.gameserver.model.actor.L2Character;
/**
* @author UnAfraid
*/
public enum StatusUpdateType
{
LEVEL(0x01, L2Character::getLevel),
EXP(0x02, creature -> (int) creature.getStat().getExp()),
STR(0x03, L2Character::getSTR),
DEX(0x04, L2Character::getDEX),
CON(0x05, L2Character::getCON),
INT(0x06, L2Character::getINT),
WIT(0x07, L2Character::getWIT),
MEN(0x08, L2Character::getMEN),
CUR_HP(0x09, creature -> (int) creature.getCurrentHp()),
MAX_HP(0x0A, L2Character::getMaxHp),
CUR_MP(0x0B, creature -> (int) creature.getCurrentMp()),
MAX_MP(0x0C, L2Character::getMaxMp),
P_ATK(0x11, L2Character::getPAtk),
ATK_SPD(0x12, L2Character::getPAtkSpd),
P_DEF(0x13, L2Character::getPDef),
EVASION(0x14, L2Character::getEvasionRate),
ACCURACY(0x15, L2Character::getAccuracy),
CRITICAL(0x16, creature -> (int) creature.getCriticalDmg(1)),
M_ATK(0x17, L2Character::getMAtk),
CAST_SPD(0x18, L2Character::getMAtkSpd),
M_DEF(0x19, L2Character::getMDef),
PVP_FLAG(0x1A, creature -> (int) creature.getPvpFlag()),
REPUTATION(0x1B, creature -> creature.isPlayer() ? creature.getActingPlayer().getReputation() : 0),
CUR_CP(0x21, creature -> (int) creature.getCurrentCp()),
MAX_CP(0x22, L2Character::getMaxCp);
private int _clientId;
private Function<L2Character, Integer> _valueSupplier;
StatusUpdateType(int clientId, Function<L2Character, Integer> valueSupplier)
{
_clientId = clientId;
_valueSupplier = valueSupplier;
}
public int getClientId()
{
return _clientId;
}
public int getValue(L2Character creature)
{
return _valueSupplier.apply(creature);
}
}

View File

@@ -0,0 +1,31 @@
/*
* 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 com.l2jmobius.gameserver.enums;
/**
* @author Sdw
*/
public enum StorageType
{
INVENTORY_NORMAL,
TRADE_BUY,
TRADE_SELL,
RECIPE_DWARVEN,
RECIPE_COMMON,
STORAGE_PRIVATE,
INVENTORY_WAIST;
}

View File

@@ -0,0 +1,26 @@
/*
* 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 com.l2jmobius.gameserver.enums;
/**
* @author Sdw
*/
public enum TaxType
{
BUY,
SELL;
}

View File

@@ -1,70 +0,0 @@
/*
* 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 com.l2jmobius.gameserver.enums;
/**
* @author kombat
*/
public enum TriggerType
{
// You hit an enemy
ON_HIT(1),
// You hit an enemy - was crit
ON_CRIT(2),
// You cast a skill
ON_CAST(4),
// You cast a skill - it was a physical one
ON_PHYSICAL(8),
// You cast a skill - it was a magic one
ON_MAGIC(16),
// You cast a skill - it was a magic one - good magic
ON_MAGIC_GOOD(32),
// You cast a skill - it was a magic one - offensive magic
ON_MAGIC_OFFENSIVE(64),
// You are attacked by enemy
ON_ATTACKED(128),
// You are attacked by enemy - by hit
ON_ATTACKED_HIT(256),
// You are attacked by enemy - by hit - was crit
ON_ATTACKED_CRIT(512),
// A skill was casted on you
ON_HIT_BY_SKILL(1024),
// An evil skill was casted on you
ON_HIT_BY_OFFENSIVE_SKILL(2048),
// A good skill was casted on you
ON_HIT_BY_GOOD_MAGIC(4096),
// Evading melee attack
ON_EVADED_HIT(8192),
// Effect only - on start
ON_START(16384),
// Effect only - each second
ON_ACTION_TIME(32768),
// Effect only - on exit
ON_EXIT(65536);
private final int _mask;
private TriggerType(int mask)
{
_mask = mask;
}
public final boolean check(int event)
{
return (_mask & event) != 0; // Trigger (sub-)type contains event (sub-)type
}
}

View File

@@ -0,0 +1,27 @@
/*
* 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 com.l2jmobius.gameserver.enums;
/**
* @author UnAfraid
*/
public enum TryMixCubeResultType
{
NORMAL,
BONUS,
EXTRA,
}

View File

@@ -0,0 +1,30 @@
/*
* 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 com.l2jmobius.gameserver.enums;
/**
* @author UnAfraid
*/
public enum TryMixCubeType
{
SUCCESS_NORMAL,
SUCCESS_RANDOM,
FAIL_ITEM_NUM,
FAIL_ITEM_WRONG,
FAIL_SKILL_WRONG,
FAIL_SKILL_COOLTIME;
}