This commit is contained in:
MobiusDev
2016-10-20 23:40:28 +00:00
parent 7772f93f80
commit 93c43d7067
18458 changed files with 3262754 additions and 0 deletions

View File

@@ -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
}

View File

@@ -0,0 +1,30 @@
/*
* This file is part of the L2J Mobius project.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.l2jmobius.gameserver.enums;
/**
* @author Zoey76
*/
public enum AIType
{
FIGHTER,
ARCHER,
BALANCED,
MAGE,
HEALER,
CORPSE
}

View File

@@ -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;
}
}

View File

@@ -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
}

View File

@@ -0,0 +1,27 @@
/*
* This file is part of the L2J Mobius project.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.l2jmobius.gameserver.enums;
/**
* @author St3eT
*/
public enum CastleSide
{
NEUTRAL,
LIGHT,
DARK;
}

View File

@@ -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;
}
}

View File

@@ -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;
}
}

View File

@@ -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
}

View File

@@ -0,0 +1,31 @@
/*
* This file is part of the L2J Mobius project.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.l2jmobius.gameserver.enums;
/**
* @author Zealar
*/
public enum DuelResult
{
CONTINUE,
TEAM_1_WIN,
TEAM_2_WIN,
TEAM_1_SURRENDER,
TEAM_2_SURRENDER,
CANCELED,
TIMEOUT
}

View File

@@ -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 Zealar
*/
public enum DuelState
{
NO_DUEL,
DUELLING,
DEAD,
WINNER,
INTERRUPTED
}

View File

@@ -0,0 +1,26 @@
/*
* This file is part of the L2J Mobius project.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.l2jmobius.gameserver.enums;
/**
* @author Zealar
*/
public enum EffectCalculationType
{
DIFF,
PER
}

View File

@@ -0,0 +1,26 @@
/*
* This file is part of the L2J Mobius project.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.l2jmobius.gameserver.enums;
/**
* @author UnAfraid
*/
public enum EventState
{
STARTED,
FINISHED,
}

View File

@@ -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,
}

View File

@@ -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
}

View File

@@ -0,0 +1,42 @@
/*
* This file is part of the L2J Mobius project.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.l2jmobius.gameserver.enums;
/**
* 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;
}
}

View File

@@ -0,0 +1,27 @@
/*
* This file is part of the L2J Mobius project.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.l2jmobius.gameserver.enums;
/**
* @author FallenAngel
*/
public enum InstanceReenterType
{
NONE,
ON_INSTANCE_ENTER,
ON_INSTANCE_FINISH,
}

View File

@@ -0,0 +1,28 @@
/*
* This file is part of the L2J Mobius project.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.l2jmobius.gameserver.enums;
/**
* @author St3eT
*/
public enum InstanceRemoveBuffType
{
NONE,
ALL,
WHITELIST,
BLACKLIST,
}

View File

@@ -0,0 +1,161 @@
/*
* This file is part of the L2J Mobius project.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.l2jmobius.gameserver.enums;
public enum InstanceType
{
L2Object(null),
L2ItemInstance(L2Object),
L2Character(L2Object),
L2Npc(L2Character),
L2Playable(L2Character),
L2Summon(L2Playable),
L2Decoy(L2Character),
L2PcInstance(L2Playable),
L2NpcInstance(L2Npc),
L2MerchantInstance(L2NpcInstance),
L2WarehouseInstance(L2NpcInstance),
L2StaticObjectInstance(L2Character),
L2DoorInstance(L2Character),
L2TerrainObjectInstance(L2Npc),
L2EffectPointInstance(L2Npc),
CommissionManagerInstance(L2Npc),
// Summons, Pets, Decoys and Traps
L2ServitorInstance(L2Summon),
L2PetInstance(L2Summon),
L2BabyPetInstance(L2PetInstance),
L2DecoyInstance(L2Decoy),
L2TrapInstance(L2Npc),
// Attackable
L2Attackable(L2Npc),
L2GuardInstance(L2Attackable),
L2QuestGuardInstance(L2GuardInstance),
L2MonsterInstance(L2Attackable),
L2ChestInstance(L2MonsterInstance),
L2ControllableMobInstance(L2MonsterInstance),
L2FeedableBeastInstance(L2MonsterInstance),
L2TamedBeastInstance(L2FeedableBeastInstance),
L2FriendlyMobInstance(L2Attackable),
L2RaidBossInstance(L2MonsterInstance),
L2GrandBossInstance(L2RaidBossInstance),
// FlyMobs
L2FlyNpcInstance(L2NpcInstance),
L2FlyMonsterInstance(L2MonsterInstance),
L2FlyRaidBossInstance(L2RaidBossInstance),
L2FlyTerrainObjectInstance(L2Npc),
// Sepulchers
L2SepulcherNpcInstance(L2NpcInstance),
L2SepulcherMonsterInstance(L2MonsterInstance),
// Vehicles
L2Vehicle(L2Character),
L2BoatInstance(L2Vehicle),
L2AirShipInstance(L2Vehicle),
L2ShuttleInstance(L2Vehicle),
L2ControllableAirShipInstance(L2AirShipInstance),
// Siege
L2DefenderInstance(L2Attackable),
L2ArtefactInstance(L2NpcInstance),
L2ControlTowerInstance(L2Npc),
L2FlameTowerInstance(L2Npc),
L2SiegeFlagInstance(L2Npc),
// Fort Siege
L2FortCommanderInstance(L2DefenderInstance),
// Fort NPCs
L2FortLogisticsInstance(L2MerchantInstance),
L2FortManagerInstance(L2MerchantInstance),
// City NPCs
L2AdventurerInstance(L2NpcInstance),
L2AuctioneerInstance(L2Npc),
L2ClanHallManagerInstance(L2MerchantInstance),
L2FishermanInstance(L2MerchantInstance),
L2ObservationInstance(L2Npc),
L2OlympiadManagerInstance(L2Npc),
L2PetManagerInstance(L2MerchantInstance),
L2RaceManagerInstance(L2Npc),
L2TeleporterInstance(L2Npc),
L2TrainerInstance(L2NpcInstance),
L2VillageMasterInstance(L2NpcInstance),
// Doormens
L2DoormenInstance(L2NpcInstance),
L2CastleDoormenInstance(L2DoormenInstance),
L2FortDoormenInstance(L2DoormenInstance),
L2ClanHallDoormenInstance(L2DoormenInstance),
// Custom
L2ClassMasterInstance(L2NpcInstance),
L2EventMobInstance(L2Npc);
private final InstanceType _parent;
private final long _typeL;
private final long _typeH;
private final long _maskL;
private final long _maskH;
private InstanceType(InstanceType parent)
{
_parent = parent;
final int high = ordinal() - (Long.SIZE - 1);
if (high < 0)
{
_typeL = 1L << ordinal();
_typeH = 0;
}
else
{
_typeL = 0;
_typeH = 1L << high;
}
if ((_typeL < 0) || (_typeH < 0))
{
throw new Error("Too many instance types, failed to load " + name());
}
if (parent != null)
{
_maskL = _typeL | parent._maskL;
_maskH = _typeH | parent._maskH;
}
else
{
_maskL = _typeL;
_maskH = _typeH;
}
}
public final InstanceType getParent()
{
return _parent;
}
public final boolean isType(InstanceType it)
{
return ((_maskL & it._typeL) > 0) || ((_maskH & it._typeH) > 0);
}
public final boolean isTypes(InstanceType... it)
{
for (InstanceType i : it)
{
if (isType(i))
{
return true;
}
}
return false;
}
}

View File

@@ -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_LRHAND),
HAIR(Inventory.PAPERDOLL_HAIR),
HAIR2(Inventory.PAPERDOLL_DHAIR),
RBRACELET(Inventory.PAPERDOLL_RBRACELET),
LBRACELET(Inventory.PAPERDOLL_LBRACELET),
DECO1(Inventory.PAPERDOLL_TALISMAN1),
DECO2(Inventory.PAPERDOLL_TALISMAN2),
DECO3(Inventory.PAPERDOLL_TALISMAN3),
DECO4(Inventory.PAPERDOLL_TALISMAN4),
DECO5(Inventory.PAPERDOLL_TALISMAN5),
DECO6(Inventory.PAPERDOLL_TALISMAN6),
BELT(Inventory.PAPERDOLL_BELT),
BROOCH(Inventory.PAPERDOLL_BROOCH),
BROOCH_JEWEL(Inventory.PAPERDOLL_BROOCH_STONE1),
BROOCH_JEWEL2(Inventory.PAPERDOLL_BROOCH_STONE2),
BROOCH_JEWEL3(Inventory.PAPERDOLL_BROOCH_STONE3),
BROOCH_JEWEL4(Inventory.PAPERDOLL_BROOCH_STONE4),
BROOCH_JEWEL5(Inventory.PAPERDOLL_BROOCH_STONE5),
BROOCH_JEWEL6(Inventory.PAPERDOLL_BROOCH_STONE6);
private final int _paperdollSlot;
private InventorySlot(int paperdollSlot)
{
_paperdollSlot = paperdollSlot;
}
public int getSlot()
{
return _paperdollSlot;
}
@Override
public int getMask()
{
return ordinal();
}
}

View File

@@ -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;
}
}

View File

@@ -0,0 +1,44 @@
/*
* This file is part of the L2J Mobius project.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.l2jmobius.gameserver.enums;
import com.l2jmobius.gameserver.model.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;
}
}

View File

@@ -0,0 +1,33 @@
/*
* This file is part of the L2J Mobius project.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.l2jmobius.gameserver.enums;
public enum ItemLocation
{
VOID,
INVENTORY,
PAPERDOLL,
WAREHOUSE,
CLANWH,
PET,
PET_EQUIP,
LEASE,
REFUND,
MAIL,
FREIGHT,
COMMISSION
}

View File

@@ -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
}

View File

@@ -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;
}
}

View File

@@ -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
}

View File

@@ -0,0 +1,28 @@
/*
* This file is part of the L2J Mobius project.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.l2jmobius.gameserver.enums;
/**
* @author malyelfik
*/
public enum ManorMode
{
DISABLED,
MODIFIABLE,
MAINTENANCE,
APPROVED
}

View File

@@ -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;
}
}

View File

@@ -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),
UNKNOWN8(0x13, 4),
DISPLAY_EFFECT(0x16, 4),
TRANSFORMATION(0x17, 4),
// 3
CURRENT_HP(0x18, 4),
CURRENT_MP(0x19, 4),
MAX_HP(0x1A, 4),
MAX_MP(0x1B, 4),
UNKNOWN11(0x1C, 1),
UNKNOWN12(0x1D, (2 * 4)),
TITLE(0x1E, 2),
NAME_NPCSTRINGID(0x1F, 4),
// 4
TITLE_NPCSTRINGID(0x20, 4),
PVP_FLAG(0x21, 1),
NAME_COLOR(0x22, 4),
CLAN(0x23, (5 * 4)),
ABNORMALS(0x24, 0),
VISUAL_STATE(0x25, 1);
private final int _mask;
private final int _blockLength;
private NpcInfoType(int mask, int blockLength)
{
_mask = mask;
_blockLength = blockLength;
}
@Override
public int getMask()
{
return _mask;
}
public int getBlockLength()
{
return _blockLength;
}
}

View File

@@ -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;
}
}

View File

@@ -0,0 +1,48 @@
/*
* This file is part of the L2J Mobius project.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.l2jmobius.gameserver.enums;
import com.l2jmobius.gameserver.model.interfaces.IUpdateTypeComponent;
/**
* @author UnAfraid
*/
public enum PartySmallWindowUpdateType implements IUpdateTypeComponent
{
CURRENT_CP(0x01),
MAX_CP(0x02),
CURRENT_HP(0x04),
MAX_HP(0x08),
CURRENT_MP(0x10),
MAX_MP(0x20),
LEVEL(0x40),
CLASS_ID(0x80),
VITALITY_POINTS(0x200);
private final int _mask;
private PartySmallWindowUpdateType(int mask)
{
_mask = mask;
}
@Override
public int getMask()
{
return _mask;
}
}

View File

@@ -0,0 +1,34 @@
/*
* This file is part of the L2J Mobius project.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.l2jmobius.gameserver.enums;
/**
* 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
}

View File

@@ -0,0 +1,34 @@
/*
* This file is part of the L2J Mobius project.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.l2jmobius.gameserver.enums;
/**
* Enum with petition types.
* @author xban1x
*/
public enum PetitionType
{
IMMOBILITY,
RECOVERY_RELATED,
BUG_REPORT,
QUEST_RELATED,
BAD_USER,
SUGGESTIONS,
GAME_TIP,
OPERATION_RELATED,
OTHER
}

View File

@@ -0,0 +1,38 @@
/*
* This file is part of the L2J Mobius project.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.l2jmobius.gameserver.enums;
/**
* @author UnAfraid
*/
public enum PlayerAction
{
ADMIN_COMMAND,
USER_ENGAGE;
private final int _mask;
private PlayerAction()
{
_mask = 1 << ordinal();
}
public int getMask()
{
return _mask;
}
}

View File

@@ -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;
}
}

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,27 @@
/*
* This file is part of the L2J Mobius project.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.l2jmobius.gameserver.enums;
/**
* @author Luis Arias
*/
public enum QuestType
{
REPEATABLE,
ONE_TIME,
DAILY
}

View File

@@ -0,0 +1,50 @@
/*
* 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;
}

View File

@@ -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;
}

View File

@@ -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,
}

View File

@@ -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;
}
}

View File

@@ -0,0 +1,28 @@
/*
* This file is part of the L2J Mobius project.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.l2jmobius.gameserver.enums;
/**
* @author St3eT
*/
public enum SiegeClanType
{
OWNER,
DEFENDER_PENDING,
DEFENDER,
ATTACKER;
}

View File

@@ -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
}

View File

@@ -0,0 +1,26 @@
/*
* This file is part of the L2J Mobius project.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.l2jmobius.gameserver.enums;
/**
* @author Zealar
*/
public enum StartPosType
{
FIXED,
RANDOM
}

View File

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

View File

@@ -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
}

View File

@@ -0,0 +1,27 @@
/*
* This file is part of the L2J Mobius project.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.l2jmobius.gameserver.enums;
/**
* @author malyelfik
*/
public enum SubclassInfoType
{
NO_CHANGES,
NEW_SLOT_USED,
CLASS_CHANGED
}

View File

@@ -0,0 +1,27 @@
/*
* This file is part of the L2J Mobius project.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.l2jmobius.gameserver.enums;
/**
* @author Sdw
*/
public enum SubclassType
{
BASECLASS,
DUALCLASS,
SUBCLASS
}

View File

@@ -0,0 +1,39 @@
/*
* This file is part of the L2J Mobius project.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.l2jmobius.gameserver.enums;
/**
* @author NosBit
*/
public enum Team
{
NONE(0),
BLUE(1),
RED(2);
private int _id;
private Team(int id)
{
_id = id;
}
public int getId()
{
return _id;
}
}

View File

@@ -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
}

View File

@@ -0,0 +1,70 @@
/*
* This file is part of the L2J Mobius project.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.l2jmobius.gameserver.enums;
/**
* @author kombat
*/
public enum TriggerType
{
// You hit an enemy
ON_HIT(1),
// You hit an enemy - was crit
ON_CRIT(2),
// You cast a skill
ON_CAST(4),
// You cast a skill - it was a physical one
ON_PHYSICAL(8),
// You cast a skill - it was a magic one
ON_MAGIC(16),
// You cast a skill - it was a magic one - good magic
ON_MAGIC_GOOD(32),
// You cast a skill - it was a magic one - offensive magic
ON_MAGIC_OFFENSIVE(64),
// You are attacked by enemy
ON_ATTACKED(128),
// You are attacked by enemy - by hit
ON_ATTACKED_HIT(256),
// You are attacked by enemy - by hit - was crit
ON_ATTACKED_CRIT(512),
// A skill was casted on you
ON_HIT_BY_SKILL(1024),
// An evil skill was casted on you
ON_HIT_BY_OFFENSIVE_SKILL(2048),
// A good skill was casted on you
ON_HIT_BY_GOOD_MAGIC(4096),
// Evading melee attack
ON_EVADED_HIT(8192),
// Effect only - on start
ON_START(16384),
// Effect only - each second
ON_ACTION_TIME(32768),
// Effect only - on exit
ON_EXIT(65536);
private final int _mask;
private TriggerType(int mask)
{
_mask = mask;
}
public final boolean check(int event)
{
return (_mask & event) != 0; // Trigger (sub-)type contains event (sub-)type
}
}

View File

@@ -0,0 +1,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;
}
}