Helios branch.
This commit is contained in:
@@ -0,0 +1,37 @@
|
||||
/*
|
||||
* 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 Zoey76
|
||||
*/
|
||||
public enum AISkillScope
|
||||
{
|
||||
BUFF,
|
||||
DEBUFF,
|
||||
NEGATIVE,
|
||||
ATTACK,
|
||||
IMMOBILIZE,
|
||||
HEAL,
|
||||
RES,
|
||||
COT,
|
||||
UNIVERSAL,
|
||||
LONG_RANGE,
|
||||
SHORT_RANGE,
|
||||
GENERAL,
|
||||
SUICIDE
|
||||
}
|
@@ -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 Zoey76
|
||||
*/
|
||||
public enum AIType
|
||||
{
|
||||
FIGHTER,
|
||||
ARCHER,
|
||||
BALANCED,
|
||||
MAGE,
|
||||
HEALER,
|
||||
CORPSE
|
||||
}
|
@@ -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
|
||||
}
|
@@ -0,0 +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 AttackType
|
||||
{
|
||||
MISSED(0x01),
|
||||
BLOCKED(0x02),
|
||||
CRITICAL(0x04),
|
||||
SHOT_USED(0x08);
|
||||
|
||||
private final int _mask;
|
||||
|
||||
private AttackType(int mask)
|
||||
{
|
||||
_mask = mask;
|
||||
}
|
||||
|
||||
public int getMask()
|
||||
{
|
||||
return _mask;
|
||||
}
|
||||
}
|
@@ -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;
|
||||
}
|
||||
}
|
@@ -0,0 +1,22 @@
|
||||
/*
|
||||
* 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 AuctionItemType
|
||||
{
|
||||
ClanHall
|
||||
}
|
@@ -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;
|
||||
}
|
@@ -0,0 +1,56 @@
|
||||
/*
|
||||
* 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 Mobius
|
||||
*/
|
||||
public enum BroochJewel
|
||||
{
|
||||
RUBY_LV3(38857, 17815, 0.075),
|
||||
RUBY_LV4(38858, 17816, 0.125),
|
||||
RUBY_LV5(38859, 17817, 0.2),
|
||||
SHAPPHIRE_LV3(38929, 17819, 0.075),
|
||||
SHAPPHIRE_LV4(38930, 17820, 0.125),
|
||||
SHAPPHIRE_LV5(38931, 17821, 0.2);
|
||||
|
||||
private int _itemId;
|
||||
private int _effectId;
|
||||
private double _bonus;
|
||||
|
||||
private BroochJewel(int itemId, int effectId, double bonus)
|
||||
{
|
||||
_itemId = itemId;
|
||||
_effectId = effectId;
|
||||
_bonus = bonus;
|
||||
}
|
||||
|
||||
public int getItemId()
|
||||
{
|
||||
return _itemId;
|
||||
}
|
||||
|
||||
public int getEffectId()
|
||||
{
|
||||
return _effectId;
|
||||
}
|
||||
|
||||
public double getBonus()
|
||||
{
|
||||
return _bonus;
|
||||
}
|
||||
}
|
@@ -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 St3eT
|
||||
*/
|
||||
public enum CastleSide
|
||||
{
|
||||
NEUTRAL,
|
||||
LIGHT,
|
||||
DARK;
|
||||
}
|
@@ -0,0 +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;
|
||||
}
|
||||
}
|
@@ -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 CeremonyOfChaosResult
|
||||
{
|
||||
TIE,
|
||||
WIN,
|
||||
LOSE
|
||||
}
|
@@ -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
|
||||
}
|
@@ -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;
|
||||
}
|
@@ -0,0 +1,82 @@
|
||||
/*
|
||||
* 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 ChatType
|
||||
{
|
||||
GENERAL(0),
|
||||
SHOUT(1),
|
||||
WHISPER(2),
|
||||
PARTY(3),
|
||||
CLAN(4),
|
||||
GM(5),
|
||||
PETITION_PLAYER(6),
|
||||
PETITION_GM(7),
|
||||
TRADE(8),
|
||||
ALLIANCE(9),
|
||||
ANNOUNCEMENT(10),
|
||||
BOAT(11),
|
||||
FRIEND(12),
|
||||
MSNCHAT(13),
|
||||
PARTYMATCH_ROOM(14),
|
||||
PARTYROOM_COMMANDER(15),
|
||||
PARTYROOM_ALL(16),
|
||||
HERO_VOICE(17),
|
||||
CRITICAL_ANNOUNCE(18),
|
||||
SCREEN_ANNOUNCE(19),
|
||||
BATTLEFIELD(20),
|
||||
MPCC_ROOM(21),
|
||||
NPC_GENERAL(22),
|
||||
NPC_SHOUT(23),
|
||||
NPC_WHISPER(24),
|
||||
WORLD(25);
|
||||
|
||||
private final int _clientId;
|
||||
|
||||
private ChatType(int clientId)
|
||||
{
|
||||
_clientId = clientId;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the client id.
|
||||
*/
|
||||
public int getClientId()
|
||||
{
|
||||
return _clientId;
|
||||
}
|
||||
|
||||
/**
|
||||
* Finds the {@code ChatType} by its clientId
|
||||
* @param clientId the clientId
|
||||
* @return the {@code ChatType} if its found, {@code null} otherwise.
|
||||
*/
|
||||
public static ChatType findByClientId(int clientId)
|
||||
{
|
||||
for (ChatType ChatType : values())
|
||||
{
|
||||
if (ChatType.getClientId() == clientId)
|
||||
{
|
||||
return ChatType;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
}
|
@@ -0,0 +1,29 @@
|
||||
/*
|
||||
* 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 ClanEntryStatus
|
||||
{
|
||||
DEFAULT,
|
||||
ORDERED,
|
||||
CLAN_REGISTRATION,
|
||||
UNKNOWN,
|
||||
WAITING
|
||||
}
|
@@ -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;
|
||||
}
|
||||
}
|
@@ -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;
|
||||
}
|
||||
}
|
@@ -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;
|
||||
}
|
||||
}
|
@@ -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 DailyMissionStatus
|
||||
{
|
||||
AVAILABLE(1),
|
||||
NOT_AVAILABLE(2),
|
||||
COMPLETED(3);
|
||||
|
||||
private int _clientId;
|
||||
|
||||
private DailyMissionStatus(int clientId)
|
||||
{
|
||||
_clientId = clientId;
|
||||
}
|
||||
|
||||
public int getClientId()
|
||||
{
|
||||
return _clientId;
|
||||
}
|
||||
|
||||
public static DailyMissionStatus valueOf(int clientId)
|
||||
{
|
||||
for (DailyMissionStatus type : values())
|
||||
{
|
||||
if (type.getClientId() == clientId)
|
||||
{
|
||||
return type;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
}
|
@@ -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
|
||||
}
|
@@ -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;
|
||||
}
|
@@ -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;
|
||||
|
||||
public enum DuelResult
|
||||
{
|
||||
Continue,
|
||||
Team1Win,
|
||||
Team2Win,
|
||||
Team1Surrender,
|
||||
Team2Surrender,
|
||||
Canceled,
|
||||
Timeout
|
||||
}
|
@@ -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 EventState
|
||||
{
|
||||
STARTED,
|
||||
FINISHED,
|
||||
}
|
@@ -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
|
||||
}
|
@@ -0,0 +1,24 @@
|
||||
/*
|
||||
* 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 FortTeleportWhoType
|
||||
{
|
||||
All,
|
||||
Attacker,
|
||||
Owner,
|
||||
}
|
@@ -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;
|
||||
}
|
||||
}
|
@@ -0,0 +1,29 @@
|
||||
/*
|
||||
* 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 HorridoJoho
|
||||
*/
|
||||
public enum HtmlActionScope
|
||||
{
|
||||
NPC_HTML,
|
||||
NPC_ITEM_HTML,
|
||||
NPC_QUEST_HTML,
|
||||
TUTORIAL_HTML,
|
||||
COMM_BOARD_HTML
|
||||
}
|
@@ -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;
|
||||
|
||||
/**
|
||||
* 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;
|
||||
}
|
||||
}
|
@@ -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 FallenAngel
|
||||
*/
|
||||
public enum InstanceReenterType
|
||||
{
|
||||
NONE,
|
||||
ON_ENTER,
|
||||
ON_FINISH,
|
||||
}
|
@@ -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 St3eT
|
||||
*/
|
||||
public enum InstanceRemoveBuffType
|
||||
{
|
||||
NONE,
|
||||
ALL,
|
||||
WHITELIST,
|
||||
BLACKLIST,
|
||||
}
|
@@ -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 malyelfik
|
||||
*/
|
||||
public enum InstanceTeleportType
|
||||
{
|
||||
NONE,
|
||||
FIXED,
|
||||
RANDOM,
|
||||
ORIGIN
|
||||
}
|
@@ -0,0 +1,150 @@
|
||||
/*
|
||||
* 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),
|
||||
L2BlockInstance(L2Attackable),
|
||||
L2ChestInstance(L2MonsterInstance),
|
||||
L2ControllableMobInstance(L2MonsterInstance),
|
||||
L2FeedableBeastInstance(L2MonsterInstance),
|
||||
L2TamedBeastInstance(L2FeedableBeastInstance),
|
||||
L2FriendlyMobInstance(L2Attackable),
|
||||
L2RaidBossInstance(L2MonsterInstance),
|
||||
L2GrandBossInstance(L2RaidBossInstance),
|
||||
FriendlyNpcInstance(L2Attackable),
|
||||
// FlyMobs
|
||||
L2FlyTerrainObjectInstance(L2Npc),
|
||||
// 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;
|
||||
}
|
||||
}
|
@@ -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;
|
||||
}
|
||||
}
|
@@ -0,0 +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_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();
|
||||
}
|
||||
}
|
@@ -0,0 +1,73 @@
|
||||
/*
|
||||
* 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.items.type.CrystalType;
|
||||
|
||||
/**
|
||||
* @author UnAfraid
|
||||
*/
|
||||
public enum ItemGrade
|
||||
{
|
||||
NONE,
|
||||
D,
|
||||
C,
|
||||
B,
|
||||
A,
|
||||
S,
|
||||
R;
|
||||
|
||||
public static ItemGrade valueOf(CrystalType type)
|
||||
{
|
||||
switch (type)
|
||||
{
|
||||
case NONE:
|
||||
{
|
||||
return NONE;
|
||||
}
|
||||
case D:
|
||||
{
|
||||
return D;
|
||||
}
|
||||
case C:
|
||||
{
|
||||
return C;
|
||||
}
|
||||
case B:
|
||||
{
|
||||
return B;
|
||||
}
|
||||
case A:
|
||||
{
|
||||
return A;
|
||||
}
|
||||
case S:
|
||||
case S80:
|
||||
case S84:
|
||||
{
|
||||
return S;
|
||||
}
|
||||
case R:
|
||||
case R95:
|
||||
case R99:
|
||||
{
|
||||
return R;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
}
|
@@ -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.interfaces.IUpdateTypeComponent;
|
||||
|
||||
/**
|
||||
* @author UnAfraid
|
||||
*/
|
||||
public enum ItemListType implements IUpdateTypeComponent
|
||||
{
|
||||
AUGMENT_BONUS(0x01),
|
||||
ELEMENTAL_ATTRIBUTE(0x02),
|
||||
ENCHANT_EFFECT(0x04),
|
||||
VISUAL_ID(0x08),
|
||||
SOUL_CRYSTAL(0x10);
|
||||
|
||||
private final int _mask;
|
||||
|
||||
private ItemListType(int mask)
|
||||
{
|
||||
_mask = mask;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getMask()
|
||||
{
|
||||
return _mask;
|
||||
}
|
||||
}
|
@@ -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;
|
||||
|
||||
public enum ItemLocation
|
||||
{
|
||||
VOID,
|
||||
INVENTORY,
|
||||
PAPERDOLL,
|
||||
WAREHOUSE,
|
||||
CLANWH,
|
||||
PET,
|
||||
PET_EQUIP,
|
||||
LEASE,
|
||||
REFUND,
|
||||
MAIL,
|
||||
FREIGHT,
|
||||
COMMISSION
|
||||
}
|
@@ -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;
|
||||
}
|
@@ -0,0 +1,32 @@
|
||||
/*
|
||||
* 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;
|
||||
|
||||
/**
|
||||
* Macro type enumerated.
|
||||
* @author Zoey76
|
||||
*/
|
||||
public enum MacroType
|
||||
{
|
||||
NONE,
|
||||
SKILL,
|
||||
ACTION,
|
||||
TEXT,
|
||||
SHORTCUT,
|
||||
ITEM,
|
||||
DELAY
|
||||
}
|
@@ -0,0 +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 jeremy
|
||||
*/
|
||||
public enum MacroUpdateType
|
||||
{
|
||||
ADD(0x01),
|
||||
LIST(0x01),
|
||||
MODIFY(0x02),
|
||||
DELETE(0x00);
|
||||
|
||||
private final int _id;
|
||||
|
||||
private MacroUpdateType(int id)
|
||||
{
|
||||
_id = id;
|
||||
}
|
||||
|
||||
public int getId()
|
||||
{
|
||||
return _id;
|
||||
}
|
||||
}
|
@@ -0,0 +1,32 @@
|
||||
/*
|
||||
* 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 MailType
|
||||
{
|
||||
REGULAR,
|
||||
NEWS_INFORMER,
|
||||
NPC,
|
||||
BIRTHDAY,
|
||||
COMMISSION_ITEM_RETURNED,
|
||||
COMMISSION_ITEM_SOLD,
|
||||
MENTOR_NPC,
|
||||
PRIME_SHOP_GIFT
|
||||
}
|
@@ -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 malyelfik
|
||||
*/
|
||||
public enum ManorMode
|
||||
{
|
||||
DISABLED,
|
||||
MODIFIABLE,
|
||||
MAINTENANCE,
|
||||
APPROVED
|
||||
}
|
@@ -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
|
||||
}
|
@@ -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
|
||||
}
|
@@ -0,0 +1,47 @@
|
||||
/*
|
||||
* 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.data.xml.impl.CategoryData;
|
||||
|
||||
/**
|
||||
* @author UnAfraid
|
||||
*/
|
||||
public enum MountType
|
||||
{
|
||||
NONE,
|
||||
STRIDER,
|
||||
WYVERN,
|
||||
WOLF;
|
||||
|
||||
public static MountType findByNpcId(int npcId)
|
||||
{
|
||||
if (CategoryData.getInstance().isInCategory(CategoryType.STRIDER, npcId))
|
||||
{
|
||||
return STRIDER;
|
||||
}
|
||||
else if (CategoryData.getInstance().isInCategory(CategoryType.WYVERN_GROUP, npcId))
|
||||
{
|
||||
return WYVERN;
|
||||
}
|
||||
else if (CategoryData.getInstance().isInCategory(CategoryType.WOLF_GROUP, npcId))
|
||||
{
|
||||
return WOLF;
|
||||
}
|
||||
return NONE;
|
||||
}
|
||||
}
|
162
L2J_Mobius_Helios/java/com/l2jmobius/gameserver/enums/Movie.java
Normal file
162
L2J_Mobius_Helios/java/com/l2jmobius/gameserver/enums/Movie.java
Normal 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;
|
||||
}
|
||||
}
|
@@ -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
|
||||
}
|
@@ -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
|
||||
}
|
@@ -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 NextActionType
|
||||
{
|
||||
NONE,
|
||||
ATTACK,
|
||||
CAST
|
||||
}
|
@@ -0,0 +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),
|
||||
COLOR_EFFECT(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;
|
||||
}
|
||||
}
|
@@ -0,0 +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;
|
||||
|
||||
/**
|
||||
* @author NosBit
|
||||
*/
|
||||
public enum PartyDistributionType
|
||||
{
|
||||
FINDERS_KEEPERS(0, 487),
|
||||
RANDOM(1, 488),
|
||||
RANDOM_INCLUDING_SPOIL(2, 798),
|
||||
BY_TURN(3, 799),
|
||||
BY_TURN_INCLUDING_SPOIL(4, 800);
|
||||
|
||||
private final int _id;
|
||||
private final int _sysStringId;
|
||||
|
||||
/**
|
||||
* Constructs a party distribution type.
|
||||
* @param id the id used by packets.
|
||||
* @param sysStringId the sysstring id
|
||||
*/
|
||||
private PartyDistributionType(int id, int sysStringId)
|
||||
{
|
||||
_id = id;
|
||||
_sysStringId = sysStringId;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the id used by packets.
|
||||
* @return the id
|
||||
*/
|
||||
public int getId()
|
||||
{
|
||||
return _id;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the sysstring id used by system messages.
|
||||
* @return the sysstring-e id
|
||||
*/
|
||||
public int getSysStringId()
|
||||
{
|
||||
return _sysStringId;
|
||||
}
|
||||
|
||||
/**
|
||||
* Finds the {@code PartyDistributionType} by its id
|
||||
* @param id the id
|
||||
* @return the {@code PartyDistributionType} if its found, {@code null} otherwise.
|
||||
*/
|
||||
public static PartyDistributionType findById(int id)
|
||||
{
|
||||
for (PartyDistributionType partyDistributionType : values())
|
||||
{
|
||||
if (partyDistributionType.getId() == id)
|
||||
{
|
||||
return partyDistributionType;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
}
|
@@ -0,0 +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),
|
||||
PARTY_SUBSTITUTE(0x100),
|
||||
VITALITY_POINTS(0x200);
|
||||
|
||||
private final int _mask;
|
||||
|
||||
private PartySmallWindowUpdateType(int mask)
|
||||
{
|
||||
_mask = mask;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getMask()
|
||||
{
|
||||
return _mask;
|
||||
}
|
||||
}
|
@@ -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;
|
||||
|
||||
/**
|
||||
* Enum with petition states.
|
||||
* @author xban1x
|
||||
*/
|
||||
public enum PetitionState
|
||||
{
|
||||
PENDING,
|
||||
RESPONDER_CANCEL,
|
||||
RESPONDER_MISSING,
|
||||
RESPONDER_REJECT,
|
||||
RESPONDER_COMPLETE,
|
||||
PETITIONER_CANCEL,
|
||||
PETITIONER_MISSING,
|
||||
IN_PROCESS,
|
||||
COMPLETED
|
||||
}
|
@@ -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;
|
||||
|
||||
/**
|
||||
* Enum with petition types.
|
||||
* @author xban1x
|
||||
*/
|
||||
public enum PetitionType
|
||||
{
|
||||
IMMOBILITY,
|
||||
RECOVERY_RELATED,
|
||||
BUG_REPORT,
|
||||
QUEST_RELATED,
|
||||
BAD_USER,
|
||||
SUGGESTIONS,
|
||||
GAME_TIP,
|
||||
OPERATION_RELATED,
|
||||
OTHER
|
||||
}
|
@@ -0,0 +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,
|
||||
ADMIN_POINT_PICKING,
|
||||
ADMIN_SHOW_TERRITORY,
|
||||
MERCENARY_CONFIRM;
|
||||
|
||||
private final int _mask;
|
||||
|
||||
private PlayerAction()
|
||||
{
|
||||
_mask = (1 << ordinal());
|
||||
}
|
||||
|
||||
public int getMask()
|
||||
{
|
||||
return _mask;
|
||||
}
|
||||
}
|
@@ -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);
|
||||
}
|
||||
}
|
@@ -0,0 +1,55 @@
|
||||
/*
|
||||
* 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 NosBit
|
||||
*/
|
||||
public enum PrivateStoreType
|
||||
{
|
||||
NONE(0),
|
||||
SELL(1),
|
||||
SELL_MANAGE(2),
|
||||
BUY(3),
|
||||
BUY_MANAGE(4),
|
||||
MANUFACTURE(5),
|
||||
PACKAGE_SELL(8);
|
||||
|
||||
private int _id;
|
||||
|
||||
private PrivateStoreType(int id)
|
||||
{
|
||||
_id = id;
|
||||
}
|
||||
|
||||
public int getId()
|
||||
{
|
||||
return _id;
|
||||
}
|
||||
|
||||
public static PrivateStoreType findById(int id)
|
||||
{
|
||||
for (PrivateStoreType privateStoreType : values())
|
||||
{
|
||||
if (privateStoreType.getId() == id)
|
||||
{
|
||||
return privateStoreType;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
}
|
@@ -0,0 +1,170 @@
|
||||
/*
|
||||
* 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.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
import com.l2jmobius.gameserver.network.serverpackets.PlaySound;
|
||||
|
||||
/**
|
||||
* This enum contains known sound effects used by quests.<br>
|
||||
* The idea is to have only a single object of each quest sound instead of constructing a new one every time a script calls the playSound method.<br>
|
||||
* This is pretty much just a memory and CPU cycle optimization; avoids constructing/deconstructing objects all the time if they're all the same.<br>
|
||||
* For datapack scripts written in Java and extending the Quest class, this does not need an extra import.
|
||||
* @author jurchiks
|
||||
*/
|
||||
public enum QuestSound
|
||||
{
|
||||
ITEMSOUND_QUEST_ACCEPT(new PlaySound("ItemSound.quest_accept")),
|
||||
ITEMSOUND_QUEST_MIDDLE(new PlaySound("ItemSound.quest_middle")),
|
||||
ITEMSOUND_QUEST_FINISH(new PlaySound("ItemSound.quest_finish")),
|
||||
ITEMSOUND_QUEST_ITEMGET(new PlaySound("ItemSound.quest_itemget")),
|
||||
// Newbie Guide tutorial (incl. some quests), Mutated Kaneus quests, Quest 192
|
||||
ITEMSOUND_QUEST_TUTORIAL(new PlaySound("ItemSound.quest_tutorial")),
|
||||
// Quests 107, 363, 364
|
||||
ITEMSOUND_QUEST_GIVEUP(new PlaySound("ItemSound.quest_giveup")),
|
||||
// Quests 212, 217, 224, 226, 416
|
||||
ITEMSOUND_QUEST_BEFORE_BATTLE(new PlaySound("ItemSound.quest_before_battle")),
|
||||
// Quests 211, 258, 266, 330
|
||||
ITEMSOUND_QUEST_JACKPOT(new PlaySound("ItemSound.quest_jackpot")),
|
||||
// Quests 508, 509 and 510
|
||||
ITEMSOUND_QUEST_FANFARE_1(new PlaySound("ItemSound.quest_fanfare_1")),
|
||||
// Played only after class transfer via Test Server Helpers (ID 31756 and 31757)
|
||||
ITEMSOUND_QUEST_FANFARE_2(new PlaySound("ItemSound.quest_fanfare_2")),
|
||||
// Quest 336
|
||||
ITEMSOUND_QUEST_FANFARE_MIDDLE(new PlaySound("ItemSound.quest_fanfare_middle")),
|
||||
// Quest 114
|
||||
ITEMSOUND_ARMOR_WOOD(new PlaySound("ItemSound.armor_wood_3")),
|
||||
// Quest 21
|
||||
ITEMSOUND_ARMOR_CLOTH(new PlaySound("ItemSound.item_drop_equip_armor_cloth")),
|
||||
AMDSOUND_ED_CHIMES(new PlaySound("AmdSound.ed_chimes_05")),
|
||||
HORROR_01(new PlaySound("horror_01")), // played when spawned monster sees player
|
||||
// Quest 22
|
||||
AMBSOUND_HORROR_01(new PlaySound("AmbSound.dd_horror_01")),
|
||||
AMBSOUND_HORROR_03(new PlaySound("AmbSound.d_horror_03")),
|
||||
AMBSOUND_HORROR_15(new PlaySound("AmbSound.d_horror_15")),
|
||||
// Quest 23
|
||||
ITEMSOUND_ARMOR_LEATHER(new PlaySound("ItemSound.itemdrop_armor_leather")),
|
||||
ITEMSOUND_WEAPON_SPEAR(new PlaySound("ItemSound.itemdrop_weapon_spear")),
|
||||
AMBSOUND_MT_CREAK(new PlaySound("AmbSound.mt_creak01")),
|
||||
AMBSOUND_EG_DRON(new PlaySound("AmbSound.eg_dron_02")),
|
||||
SKILLSOUND_HORROR_02(new PlaySound("SkillSound5.horror_02")),
|
||||
CHRSOUND_MHFIGHTER_CRY(new PlaySound("ChrSound.MHFighter_cry")),
|
||||
// Quest 24
|
||||
AMDSOUND_WIND_LOOT(new PlaySound("AmdSound.d_wind_loot_02")),
|
||||
INTERFACESOUND_CHARSTAT_OPEN(new PlaySound("InterfaceSound.charstat_open_01")),
|
||||
// Quest 25
|
||||
AMDSOUND_HORROR_02(new PlaySound("AmdSound.dd_horror_02")),
|
||||
CHRSOUND_FDELF_CRY(new PlaySound("ChrSound.FDElf_Cry")),
|
||||
// Quest 115
|
||||
AMBSOUND_WINGFLAP(new PlaySound("AmbSound.t_wingflap_04")),
|
||||
AMBSOUND_THUNDER(new PlaySound("AmbSound.thunder_02")),
|
||||
// Quest 120
|
||||
AMBSOUND_DRONE(new PlaySound("AmbSound.ed_drone_02")),
|
||||
AMBSOUND_CRYSTAL_LOOP(new PlaySound("AmbSound.cd_crystal_loop")),
|
||||
AMBSOUND_PERCUSSION_01(new PlaySound("AmbSound.dt_percussion_01")),
|
||||
AMBSOUND_PERCUSSION_02(new PlaySound("AmbSound.ac_percussion_02")),
|
||||
// Quest 648 and treasure chests
|
||||
ITEMSOUND_BROKEN_KEY(new PlaySound("ItemSound2.broken_key")),
|
||||
// Quest 184
|
||||
ITEMSOUND_SIREN(new PlaySound("ItemSound3.sys_siren")),
|
||||
// Quest 648
|
||||
ITEMSOUND_ENCHANT_SUCCESS(new PlaySound("ItemSound3.sys_enchant_success")),
|
||||
ITEMSOUND_ENCHANT_FAILED(new PlaySound("ItemSound3.sys_enchant_failed")),
|
||||
// Best farm mobs
|
||||
ITEMSOUND_SOW_SUCCESS(new PlaySound("ItemSound3.sys_sow_success")),
|
||||
// Quest 25
|
||||
SKILLSOUND_HORROR_1(new PlaySound("SkillSound5.horror_01")),
|
||||
// Quests 21 and 23
|
||||
SKILLSOUND_HORROR_2(new PlaySound("SkillSound5.horror_02")),
|
||||
// Quest 22
|
||||
SKILLSOUND_ANTARAS_FEAR(new PlaySound("SkillSound3.antaras_fear")),
|
||||
// Quest 505
|
||||
SKILLSOUND_JEWEL_CELEBRATE(new PlaySound("SkillSound2.jewel.celebrate")),
|
||||
// Quest 373
|
||||
SKILLSOUND_LIQUID_MIX(new PlaySound("SkillSound5.liquid_mix_01")),
|
||||
SKILLSOUND_LIQUID_SUCCESS(new PlaySound("SkillSound5.liquid_success_01")),
|
||||
SKILLSOUND_LIQUID_FAIL(new PlaySound("SkillSound5.liquid_fail_01")),
|
||||
// Quest 111
|
||||
ETCSOUND_ELROKI_SONG_FULL(new PlaySound("EtcSound.elcroki_song_full")),
|
||||
ETCSOUND_ELROKI_SONG_1ST(new PlaySound("EtcSound.elcroki_song_1st")),
|
||||
ETCSOUND_ELROKI_SONG_2ND(new PlaySound("EtcSound.elcroki_song_2nd")),
|
||||
ETCSOUND_ELROKI_SONG_3RD(new PlaySound("EtcSound.elcroki_song_3rd")),
|
||||
// Long duration AI sounds
|
||||
BS01_A(new PlaySound("BS01_A")),
|
||||
BS02_A(new PlaySound("BS02_A")),
|
||||
BS03_A(new PlaySound("BS03_A")),
|
||||
BS04_A(new PlaySound("BS04_A")),
|
||||
BS06_A(new PlaySound("BS06_A")),
|
||||
BS07_A(new PlaySound("BS07_A")),
|
||||
BS08_A(new PlaySound("BS08_A")),
|
||||
BS01_D(new PlaySound("BS01_D")),
|
||||
BS02_D(new PlaySound("BS02_D")),
|
||||
BS05_D(new PlaySound("BS05_D")),
|
||||
BS07_D(new PlaySound("BS07_D"));
|
||||
|
||||
private final PlaySound _playSound;
|
||||
|
||||
private static Map<String, PlaySound> soundPackets = new HashMap<>();
|
||||
|
||||
private QuestSound(PlaySound playSound)
|
||||
{
|
||||
_playSound = playSound;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get a {@link PlaySound} packet by its name.
|
||||
* @param soundName the name of the sound to look for
|
||||
* @return the {@link PlaySound} packet with the specified sound or {@code null} if one was not found
|
||||
*/
|
||||
public static PlaySound getSound(String soundName)
|
||||
{
|
||||
if (soundPackets.containsKey(soundName))
|
||||
{
|
||||
return soundPackets.get(soundName);
|
||||
}
|
||||
|
||||
for (QuestSound qs : QuestSound.values())
|
||||
{
|
||||
if (qs._playSound.getSoundName().equals(soundName))
|
||||
{
|
||||
soundPackets.put(soundName, qs._playSound); // cache in map to avoid looping repeatedly
|
||||
return qs._playSound;
|
||||
}
|
||||
}
|
||||
|
||||
soundPackets.put(soundName, new PlaySound(soundName));
|
||||
return soundPackets.get(soundName);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the name of the sound of this QuestSound object
|
||||
*/
|
||||
public String getSoundName()
|
||||
{
|
||||
return _playSound.getSoundName();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the {@link PlaySound} packet of this QuestSound object
|
||||
*/
|
||||
public PlaySound getPacket()
|
||||
{
|
||||
return _playSound;
|
||||
}
|
||||
}
|
@@ -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 Luis Arias
|
||||
*/
|
||||
public enum QuestType
|
||||
{
|
||||
REPEATABLE,
|
||||
ONE_TIME,
|
||||
DAILY
|
||||
}
|
@@ -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;
|
||||
|
||||
/**
|
||||
* 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
|
||||
}
|
@@ -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
|
||||
}
|
@@ -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
|
||||
}
|
@@ -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
|
||||
}
|
@@ -0,0 +1,24 @@
|
||||
/*
|
||||
* 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 Sex
|
||||
{
|
||||
MALE,
|
||||
FEMALE,
|
||||
ETC;
|
||||
}
|
@@ -0,0 +1,32 @@
|
||||
/*
|
||||
* 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;
|
||||
|
||||
/**
|
||||
* Shortcut type enumerated.
|
||||
* @author Zoey76
|
||||
*/
|
||||
public enum ShortcutType
|
||||
{
|
||||
NONE,
|
||||
ITEM,
|
||||
SKILL,
|
||||
ACTION,
|
||||
MACRO,
|
||||
RECIPE,
|
||||
BOOKMARK,
|
||||
}
|
@@ -0,0 +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;
|
||||
}
|
||||
}
|
@@ -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 St3eT
|
||||
*/
|
||||
public enum SiegeClanType
|
||||
{
|
||||
OWNER,
|
||||
DEFENDER_PENDING,
|
||||
DEFENDER,
|
||||
ATTACKER;
|
||||
}
|
@@ -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,
|
||||
}
|
@@ -0,0 +1,25 @@
|
||||
/*
|
||||
* 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 SiegeTeleportWhoType
|
||||
{
|
||||
Attacker,
|
||||
Owner,
|
||||
NotOwner,
|
||||
Spectator
|
||||
}
|
@@ -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
|
||||
}
|
@@ -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);
|
||||
}
|
@@ -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
|
||||
}
|
@@ -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);
|
||||
}
|
@@ -0,0 +1,29 @@
|
||||
/*
|
||||
* 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 SkillEnchantType
|
||||
{
|
||||
NORMAL,
|
||||
BLESSED,
|
||||
UNTRAIN,
|
||||
CHANGE,
|
||||
IMMORTAL
|
||||
}
|
@@ -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;
|
||||
}
|
@@ -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 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;
|
||||
}
|
||||
}
|
@@ -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 StatModifierType
|
||||
{
|
||||
DIFF,
|
||||
PER
|
||||
}
|
@@ -0,0 +1,29 @@
|
||||
/*
|
||||
* 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 StatType
|
||||
{
|
||||
HP,
|
||||
MP,
|
||||
XP,
|
||||
SP,
|
||||
GIM // grab item modifier:
|
||||
// GIM: the default function uses only the skilllevel to determine
|
||||
// how many item is grabbed in each step
|
||||
// with this stat changer you can multiple this
|
||||
}
|
@@ -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);
|
||||
}
|
||||
}
|
@@ -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;
|
||||
}
|
@@ -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 SubclassInfoType
|
||||
{
|
||||
NO_CHANGES,
|
||||
NEW_SLOT_USED,
|
||||
CLASS_CHANGED
|
||||
}
|
@@ -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 SubclassType
|
||||
{
|
||||
BASECLASS,
|
||||
DUALCLASS,
|
||||
SUBCLASS
|
||||
}
|
@@ -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;
|
||||
}
|
@@ -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 NosBit
|
||||
*/
|
||||
public enum Team
|
||||
{
|
||||
NONE(0),
|
||||
BLUE(1),
|
||||
RED(2);
|
||||
|
||||
private int _id;
|
||||
|
||||
private Team(int id)
|
||||
{
|
||||
_id = id;
|
||||
}
|
||||
|
||||
public int getId()
|
||||
{
|
||||
return _id;
|
||||
}
|
||||
}
|
@@ -0,0 +1,24 @@
|
||||
/*
|
||||
* 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 TrapAction
|
||||
{
|
||||
TRAP_TRIGGERED,
|
||||
TRAP_DETECTED,
|
||||
TRAP_DISARMED
|
||||
}
|
@@ -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,
|
||||
}
|
@@ -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;
|
||||
}
|
@@ -0,0 +1,76 @@
|
||||
/*
|
||||
* 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 Sdw
|
||||
*/
|
||||
public enum UserInfoType implements IUpdateTypeComponent
|
||||
{
|
||||
RELATION(0x00, 4),
|
||||
BASIC_INFO(0x01, 16),
|
||||
BASE_STATS(0x02, 18),
|
||||
MAX_HPCPMP(0x03, 14),
|
||||
CURRENT_HPMPCP_EXP_SP(0x04, 38),
|
||||
ENCHANTLEVEL(0x05, 4),
|
||||
APPAREANCE(0x06, 15),
|
||||
STATUS(0x07, 6),
|
||||
|
||||
STATS(0x08, 56),
|
||||
ELEMENTALS(0x09, 14),
|
||||
POSITION(0x0A, 18),
|
||||
SPEED(0x0B, 18),
|
||||
MULTIPLIER(0x0C, 18),
|
||||
COL_RADIUS_HEIGHT(0x0D, 18),
|
||||
ATK_ELEMENTAL(0x0E, 5),
|
||||
CLAN(0x0F, 32),
|
||||
|
||||
SOCIAL(0x10, 22),
|
||||
VITA_FAME(0x11, 15),
|
||||
SLOTS(0x12, 9),
|
||||
MOVEMENTS(0x13, 4),
|
||||
COLOR(0x14, 10),
|
||||
INVENTORY_LIMIT(0x15, 9),
|
||||
UNK_3(0x16, 9);
|
||||
|
||||
/** Int mask. */
|
||||
private final int _mask;
|
||||
private final int _blockLength;
|
||||
|
||||
private UserInfoType(int mask, int blockLength)
|
||||
{
|
||||
_mask = mask;
|
||||
_blockLength = blockLength;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the int mask.
|
||||
* @return the int mask
|
||||
*/
|
||||
@Override
|
||||
public final int getMask()
|
||||
{
|
||||
return _mask;
|
||||
}
|
||||
|
||||
public int getBlockLength()
|
||||
{
|
||||
return _blockLength;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user