Ir para conteúdo
  • Cadastre-se

BAN - L2JDev

Zoneador
  • Total de itens

    1863
  • Registro em

  • Prêmios recebidos

    128

Tudo que BAN - L2JDev postou

  1. - Reworked JDEV Patch
    - New Community Board Textures
    - Addition Config Options available
    - Olympiad has been fixed
    - Retail Epic Boss Working
    - Custom Epic Boss Working
    - Champion Monsters Added
    - Memory (RAM) Leak Fixed
    - Dungeon System Reworked (With Pre-Made dungeons)
    - Daily Reward system has been fixed
    - Various HTML Fixes
    - Fortress TVT Added / Fixed
    - FakePlayer Improvements
    - Various Server Stability Improvements
    - Monster Race Track temporarily disabled
    - Remove Votesystem no Work
    - Remove TownWar no Work
    - Add Fix Multisell
    - Add Offiline Shop Store
    - Add ItemHandler <set name="handler" val="DeletePk" />, <set name="handler" val="SexCoin" />, <set name="handler" val="DungeonReset" />
    - Add Fix Config Mana recover Other.proprierts
    - Configure Server System Protocol 730 and 746 Change in Server.proprierts
    - Add Fix Dressme Skin Fix Hats user
    - Add Reweork All Npcs Xml Easy peopple

    Versão 11 próxima Update 

  2. Ola me chamo "BAN" gostaria de trazer esse vídeo de como todos configura eclipes e suas fermentas automáticas para colocar os Import sozinho pra ajudar todos. e aprenda como configurar o java para cada projeto que todos tiver importado para o eclipes dessa forma todos, pode ter 2 java diferente e configurar biuld para cada projeto
  3. Olá a todos me chamo "BAN" geralmente tenho recebido muitos pedidos para que possa ensinar a modificar seus arquivos em formato ".u" que fica dentro da system dos jogadores. Bom com esse tutorial acho que todos vão aprender a modificar seus Icons ou Exportar de outro Patch de outro servidor. criar um arquivo próprio pra que possa diminuir o tamanho deixando o que todos deseja. L2Editor All Files Tex: Download File: [Hidden Content] Vale Lembrar a todos esse aplicativo para download não trabalha com Mash Esse L2Editor e modificado pra abrir arquivos em formato .utx .ukx .u
  4. [Hidden Content] Network Information Name: ShadowNetwork Chronicles: Interlude (Others in future) Release Date: When its ready Premium Interlude Experience - Low/Mid Rate - 30 Custom/Reworked maps to explore - 2 New Castles [Gludin and Kamael] - PVP Zone's on Custom Maps - New Raids [Fafurion, Lindvior, Freya, Frintezza, Skeleton King] - New Dungeons [Designed for Solo or Party play] - Reworked Crafting System [All races can craft] - Exclusive Pets and Cloaks - Retail Gear from Higher Clients Interface - Unique Interface for Interlude - New Macro Icons - New World Map - Working "Party Finder" System Features and Systems: - Olympiad - Dungeons (Perfect for PvE players) - Team vs Team (On Custom Maps) - Fortress TVT (On Custom Maps) - Castle TVT (On Custom Maps) - Server Tournament (On Custom Maps) - Chaotic/PVP Zone (On Custom Maps) - Player/Clan Ranking (Multiple Categories) - DressMe (50 Player Skins, New Strider and Wyvern) - VIP Player System Custom Maps: - Aden Town + Castle (Classic for Interlude) - Rune Town + Area (Classic for Interlude) - Gludio Town + Castle (Classic for Interlude) - Gludin Town + New Castle (Classic for Interlude) - Kamael Island + Castle - Execution Grounds (Classic for Interlude) - New Talking Island - Disron Village + Area - The Lost City of Arkan - Arkan Arena - Arkan Arena Extended - Temple of Orbis - Garden of Genesis - Kecerus Alliance Base - Hellbound Island - Fantasy Island - Sylph Village - Seed of Destruction - Crystal Island - Astanine Village - Ertheia Island - Fafurion Cave - Fafurion Farmzone - Portal Zone Map - Windmill Hill + Dungeon (Classic for Interlude) - Blood Callus (Custom Tournament Zone) - Lindvior Boss Area - Freya Throne (Remake) - Aden Arena (Extended Version)
  5. meu rei skin e visual não tem a ver um com o outro voce nao ta invisivel ou invul não dentro de cidade e tudo diferente dentro desse servidor
  6. talves o outro jogador que sera atingido deve estar em combate e flag
  7. ultimamente recebi alguns fedback sobre dungeon mesmo. Eddin me pediu pra dar alguns fix dela aparentemente agora funciona de acordo com a ideia desse bug que ele avia me reportado. na versao em java 8 mais eu nao trabalho mais com ela e nem mais a uso fico grato qual quer coisa me chama que podemos ver o que fazer com seu problema!
  8. diff --git a/config/CustomMods/Skin.ini b/config/CustomMods/Skin.ini new file mode 100644 index 0000000..f26c954 --- /dev/null +++ b/config/CustomMods/Skin.ini @@ -0,0 +1,207 @@ +#=============================================================== +# Skin Item +#=============================================================== +#Enable Skin +AllowDressMeSystem = True + +#Effect Time All Skins +# 4000 = 4 Segunds +SkillEffectsTime = 4000 + +#Skill ID Skin 1 +SkillIDSkin1 = 1036 + +#Skill ID Skin 2 +SkillIDSkin2 = 0 + +#Skill ID Skin 3 +SkillIDSkin3 = 0 + +#Skill ID Skin 4 +SkillIDSkin4 = 0 + +#Skill ID Skin 5 +SkillIDSkin5 = 0 + +#Skill ID Skin 6 +SkillIDSkin6 = 0 + +#Skill ID Skin 7 +SkillIDSkin7 = 0 + +#Skill ID Skin 8 +SkillIDSkin8 = 0 + +#Skill ID Skin 9 +SkillIDSkin9 = 0 + +#Skill ID Skin 10 +SkillIDSkin10 = 0 + +#Skill ID Skin 11 +SkillIDSkin11 = 0 + +#Skill ID Skin 12 +SkillIDSkin12 = 0 + +#Skill ID Skin 13 +SkillIDSkin13 = 0 + +#Skill ID Skin 14 +SkillIDSkin14 = 0 + +#Skill ID Skin 15 +SkillIDSkin15 = 0 + +#None Quando equipar Item +NameArmor1 = Draconic Light +NameArmor2 = Titanium Armor Wizzard +NameArmor3 = Titanium Armor Heavy +NameArmor4 = Dark Knight Heavy +NameArmor5 = Dark Knight Light +NameArmor6 = Dark Knight Wizzard +NameArmor7 = Dynasty Armor Heavy +NameArmor8 = Dynasty Armor Light +NameArmor9 = Dynasty Armor Wizzard +NameArmor10 = Vesper Black Armor Heavy +NameArmor11 = Vesper Black Armor Light +NameArmor12 = Vesper Black Armor Wizzard +NameArmor13 = Moirai Armor Heavy +NameArmor14 = Moirai Armor Light +NameArmor15 = Moirai Armor Wizzard + +# DressMe values. +#Aqui não pode ultilizar Espaco! +# Skin name (Example: "Draconic") +SkinName1 = Draconic_light +SkinName2 = Titanium_Robe +SkinName3 = Titanium_Heavy +SkinName4 = Dark_Kinight_Heavy +SkinName5 = Dark_Kinight_Light +SkinName6 = Dark_Kinight_Robe +SkinName7 = Dynasty_Heavy +SkinName8 = Dynasty_Light +SkinName9 = Dynasty_Robe +SkinName10 = VesperBlack_Heavy +SkinName11 = VesperBlack_Light +SkinName12 = VesperBlack_Robe +SkinName13 = Moirai_H +SkinName14 = Moirai_L +SkinName15 = Moirai_R + +# Skin item id (Example: "6673") +SkinItem1 = 0 +SkinItem2 = 0 +SkinItem3 = 0 +SkinItem4 = 0 +SkinItem5 = 0 +SkinItem6 = 0 +SkinItem7 = 0 +SkinItem8 = 0 +SkinItem9 = 0 +SkinItem10 = 0 +SkinItem11 = 0 +SkinItem12 = 0 +SkinItem13 = 0 +SkinItem14 = 0 +SkinItem15 = 0 + + +# Note: It works like name,id;name,id +# WARNING: No spaces on names, use _ instead of space. +#Hair Accesories +DressMeHair = Draconic_light,6842;\ +Titanium_Robe,21002;\ +Titanium_Heavy,21002;\ +Dark_Kinight_Heavy,21003;\ +Dark_Kinight_Light,21004;\ +Dark_Kinight_Robe,21005;\ +Dynasty_Heavy,21006;\ +Dynasty_Light,21011;\ +Dynasty_Robe,21010;\ +VesperBlack_Heavy,21009;\ +VesperBlack_Light,21008;\ +VesperBlack_Robe,21007;\ +Moirai_H,21001;\ +Moirai_L,21000;\ +Moirai_R,20097;\ +Tauti_H,20089;\ +Tauti_L,20090;\ +Tauti_R,20091 + +#Armor Chests +DressMeChests = Draconic_light,6379;\ +Titanium_Robe,20071;\ +Titanium_Heavy,20067;\ +Dark_Kinight_Heavy,21023;\ +Dark_Kinight_Light,21028;\ +Dark_Kinight_Robe,21033;\ +Dynasty_Heavy,21038;\ +Dynasty_Light,21043;\ +Dynasty_Robe,21048;\ +VesperBlack_Heavy,21053;\ +VesperBlack_Light,21058;\ +VesperBlack_Robe,21063;\ +Moirai_H,21068;\ +Moirai_L,21073;\ +Moirai_R,21078;\ +Tauti_H,21083;\ +Tauti_L,21088;\ +Tauti_R,21093 + +# Armor Legs +DressMeLegs = Dark_Kinight_Heavy,21024;\ +Dark_Kinight_Light,21029;\ +Dark_Kinight_Robe,21034;\ +Dynasty_Heavy,21039;\ +Dynasty_Light,21044;\ +Dynasty_Robe,21049;\ +VesperBlack_Heavy,21054;\ +VesperBlack_Light,21059;\ +VesperBlack_Robe,21064;\ +Moirai_H,21069;\ +Moirai_L,21074;\ +Moirai_R,21079;\ +Tauti_H,21084;\ +Tauti_L,21089;\ +Tauti_R,21094 + +# Armor Gloves +DressMeGloves = Draconic_light,6380;\ +Titanium_Robe,20072;\ +Titanium_Heavy,20068;\ +Dark_Kinight_Heavy,21025;\ +Dark_Kinight_Light,21030;\ +Dark_Kinight_Robe,21035;\ +Dynasty_Heavy,21040;\ +Dynasty_Light,21045;\ +Dynasty_Robe,21050;\ +VesperBlack_Heavy,21055;\ +VesperBlack_Light,21060;\ +VesperBlack_Robe,21065;\ +Moirai_H,21070;\ +Moirai_L,21075;\ +Moirai_R,21080;\ +Tauti_H,21085;\ +Tauti_L,21090;\ +Tauti_R,21095 + +#Armor Boots +DressMeBoots = Draconic_light,6381;\ +Titanium_Robe,20073;\ +Titanium_Heavy,20069;\ +Dark_Kinight_Heavy,21026;\ +Dark_Kinight_Light,21031;\ +Dark_Kinight_Robe,21036;\ +Dynasty_Heavy,21041;\ +Dynasty_Light,21046;\ +Dynasty_Robe,21051;\ +VesperBlack_Heavy,21056;\ +VesperBlack_Light,21061;\ +VesperBlack_Robe,21066;\ +Moirai_H,21071;\ +Moirai_L,21076;\ +Moirai_R,21081;\ +Tauti_H,21086;\ +Tauti_L,21091;\ +Tauti_R,21096 diff --git a/head-src/com/l2jfrozen/Config.java b/head-src/com/l2jfrozen/Config.java index 7f8d0ef..38d378e 100644 --- a/head-src/com/l2jfrozen/Config.java +++ b/head-src/com/l2jfrozen/Config.java @@ -56,6 +56,202 @@ private static final Logger LOGGER = Logger.getLogger(Config.class); // ============================================================ + public static int SEGUNDS_SKILL_ANIMATION; + public static int SKILL_ID_SKIN1; + public static int SKILL_ID_SKIN2; + public static int SKILL_ID_SKIN3; + public static int SKILL_ID_SKIN4; + public static int SKILL_ID_SKIN5; + public static int SKILL_ID_SKIN6; + public static int SKILL_ID_SKIN7; + public static int SKILL_ID_SKIN8; + public static int SKILL_ID_SKIN9; + public static int SKILL_ID_SKIN10; + public static int SKILL_ID_SKIN11; + public static int SKILL_ID_SKIN12; + public static int SKILL_ID_SKIN13; + public static int SKILL_ID_SKIN14; + public static int SKILL_ID_SKIN15; + /** Skins Dressme */ + public static boolean ALLOW_DRESS_ME_SYSTEM; + public static Map<String, Integer> DRESS_ME_HELMET = new HashMap<>(); + public static Map<String, Integer> DRESS_ME_CHESTS = new HashMap<>(); + public static Map<String, Integer> DRESS_ME_LEGS = new HashMap<>(); + public static Map<String, Integer> DRESS_ME_BOOTS = new HashMap<>(); + public static Map<String, Integer> DRESS_ME_GLOVES = new HashMap<>(); + public static String SKIN_NAME1; + public static String SKIN_NAME2; + public static String SKIN_NAME3; + public static String SKIN_NAME4; + public static String SKIN_NAME5; + public static String SKIN_NAME6; + public static String SKIN_NAME7; + public static String SKIN_NAME8; + public static String SKIN_NAME9; + public static String SKIN_NAME10; + public static String SKIN_NAME11; + public static String SKIN_NAME12; + public static String SKIN_NAME13; + public static String SKIN_NAME14; + public static String SKIN_NAME15; + + public static int SKIN_ITEM_1; + public static int SKIN_ITEM_2; + public static int SKIN_ITEM_3; + public static int SKIN_ITEM_4; + public static int SKIN_ITEM_5; + public static int SKIN_ITEM_6; + public static int SKIN_ITEM_7; + public static int SKIN_ITEM_8; + public static int SKIN_ITEM_9; + public static int SKIN_ITEM_10; + public static int SKIN_ITEM_11; + public static int SKIN_ITEM_12; + public static int SKIN_ITEM_13; + public static int SKIN_ITEM_14; + public static int SKIN_ITEM_15; + + public static String NAME1; + public static String NAME2; + public static String NAME3; + public static String NAME4; + public static String NAME5; + public static String NAME6; + public static String NAME7; + public static String NAME8; + public static String NAME9; + public static String NAME10; + public static String NAME11; + public static String NAME12; + public static String NAME13; + public static String NAME14; + public static String NAME15; + // ============================================================ + public static void loadSkin() + { + final String SKIN = FService.SKIN; + + try + { + final Properties Skins = new Properties(); + final InputStream is = new FileInputStream(new File(SKIN)); + Skins.load(is); + is.close(); + SEGUNDS_SKILL_ANIMATION = Integer.parseInt(Skins.getProperty("SkillEffectsTime", "0")); + SKILL_ID_SKIN1 = Integer.parseInt(Skins.getProperty("SkillIDSkin1", "0")); + SKILL_ID_SKIN2 = Integer.parseInt(Skins.getProperty("SkillIDSkin2", "0")); + SKILL_ID_SKIN3 = Integer.parseInt(Skins.getProperty("SkillIDSkin3", "0")); + SKILL_ID_SKIN4 = Integer.parseInt(Skins.getProperty("SkillIDSkin4", "0")); + SKILL_ID_SKIN5 = Integer.parseInt(Skins.getProperty("SkillIDSkin5", "0")); + SKILL_ID_SKIN6 = Integer.parseInt(Skins.getProperty("SkillIDSkin6", "0")); + SKILL_ID_SKIN7 = Integer.parseInt(Skins.getProperty("SkillIDSkin7", "0")); + SKILL_ID_SKIN8 = Integer.parseInt(Skins.getProperty("SkillIDSkin8", "0")); + SKILL_ID_SKIN9 = Integer.parseInt(Skins.getProperty("SkillIDSkin9", "0")); + SKILL_ID_SKIN10 = Integer.parseInt(Skins.getProperty("SkillIDSkin10", "0")); + SKILL_ID_SKIN11 = Integer.parseInt(Skins.getProperty("SkillIDSkin11", "0")); + SKILL_ID_SKIN12 = Integer.parseInt(Skins.getProperty("SkillIDSkin12", "0")); + SKILL_ID_SKIN13 = Integer.parseInt(Skins.getProperty("SkillIDSkin13", "0")); + SKILL_ID_SKIN14 = Integer.parseInt(Skins.getProperty("SkillIDSkin14", "0")); + SKILL_ID_SKIN15 = Integer.parseInt(Skins.getProperty("SkillIDSkin15", "0")); + ALLOW_DRESS_ME_SYSTEM = Boolean.parseBoolean(Skins.getProperty("AllowDressMeSystem", "false")); + SKIN_NAME1 = String.valueOf(Skins.getProperty("SkinName1", "SkinName")); + SKIN_NAME2 = String.valueOf(Skins.getProperty("SkinName2", "SkinName")); + SKIN_NAME3 = String.valueOf(Skins.getProperty("SkinName3", "SkinName")); + SKIN_NAME4 = String.valueOf(Skins.getProperty("SkinName4", "SkinName")); + SKIN_NAME5 = String.valueOf(Skins.getProperty("SkinName5", "SkinName")); + SKIN_NAME6 = String.valueOf(Skins.getProperty("SkinName6", "SkinName")); + SKIN_NAME7 = String.valueOf(Skins.getProperty("SkinName7", "SkinName")); + SKIN_NAME8 = String.valueOf(Skins.getProperty("SkinName8", "SkinName")); + SKIN_NAME9 = String.valueOf(Skins.getProperty("SkinName9", "SkinName")); + SKIN_NAME10 = String.valueOf(Skins.getProperty("SkinName10", "SkinName")); + SKIN_NAME11 = String.valueOf(Skins.getProperty("SkinName11", "SkinName")); + SKIN_NAME12 = String.valueOf(Skins.getProperty("SkinName12", "SkinName")); + SKIN_NAME13 = String.valueOf(Skins.getProperty("SkinName13", "SkinName")); + SKIN_NAME14 = String.valueOf(Skins.getProperty("SkinName14", "SkinName")); + SKIN_NAME15 = String.valueOf(Skins.getProperty("SkinName15", "SkinName")); + + + SKIN_ITEM_1 = Integer.parseInt(Skins.getProperty("SkinItem1", "0")); + SKIN_ITEM_2 = Integer.parseInt(Skins.getProperty("SkinItem2", "0")); + SKIN_ITEM_3 = Integer.parseInt(Skins.getProperty("SkinItem3", "0")); + SKIN_ITEM_4 = Integer.parseInt(Skins.getProperty("SkinItem4", "0")); + SKIN_ITEM_5 = Integer.parseInt(Skins.getProperty("SkinItem5", "0")); + SKIN_ITEM_6 = Integer.parseInt(Skins.getProperty("SkinItem6", "0")); + SKIN_ITEM_7 = Integer.parseInt(Skins.getProperty("SkinItem7", "0")); + SKIN_ITEM_8 = Integer.parseInt(Skins.getProperty("SkinItem8", "0")); + SKIN_ITEM_9 = Integer.parseInt(Skins.getProperty("SkinItem9", "0")); + SKIN_ITEM_10 = Integer.parseInt(Skins.getProperty("SkinItem10", "0")); + SKIN_ITEM_11 = Integer.parseInt(Skins.getProperty("SkinItem11", "0")); + SKIN_ITEM_12 = Integer.parseInt(Skins.getProperty("SkinItem12", "0")); + SKIN_ITEM_13 = Integer.parseInt(Skins.getProperty("SkinItem13", "0")); + SKIN_ITEM_14 = Integer.parseInt(Skins.getProperty("SkinItem14", "0")); + SKIN_ITEM_15 = Integer.parseInt(Skins.getProperty("SkinItem15", "0")); + + String temp = Skins.getProperty("DressMeChests", ""); + String[] temp2 = temp.split(";"); + for (String s : temp2) + { + String[] t = s.split(","); + DRESS_ME_CHESTS.put(t[0], Integer.parseInt(t[1])); + } + + temp = Skins.getProperty("DressMeHair", ""); + temp2 = temp.split(";"); + for (String s : temp2) + { + String[] t = s.split(","); + DRESS_ME_HELMET.put(t[0], Integer.parseInt(t[1])); + } + + + temp = Skins.getProperty("DressMeLegs", ""); + temp2 = temp.split(";"); + for (String s : temp2) + { + String[] t = s.split(","); + DRESS_ME_LEGS.put(t[0], Integer.parseInt(t[1])); + } + temp = Skins.getProperty("DressMeBoots", ""); + temp2 = temp.split(";"); + for (String s : temp2) + { + String[] t = s.split(","); + DRESS_ME_BOOTS.put(t[0], Integer.parseInt(t[1])); + } + temp = Skins.getProperty("DressMeGloves", ""); + temp2 = temp.split(";"); + for (String s : temp2) + { + String[] t = s.split(","); + DRESS_ME_GLOVES.put(t[0], Integer.parseInt(t[1])); + } + + NAME1 = Skins.getProperty("NameArmor1", " Skins Dressme"); + NAME2 = Skins.getProperty("NameArmor2", " Skins Dressme"); + NAME3 = Skins.getProperty("NameArmor3", " Skins Dressme"); + NAME4 = Skins.getProperty("NameArmor4", " Skins Dressme"); + NAME5 = Skins.getProperty("NameArmor5", " Skins Dressme"); + NAME6 = Skins.getProperty("NameArmor6", " Skins Dressme"); + NAME7 = Skins.getProperty("NameArmor7", " Skins Dressme"); + NAME8 = Skins.getProperty("NameArmor8", " Skins Dressme"); + NAME9 = Skins.getProperty("NameArmor9", " Skins Dressme"); + NAME10 = Skins.getProperty("NameArmor10", " Skins Dressme"); + NAME11 = Skins.getProperty("NameArmor11", " Skins Dressme"); + NAME12 = Skins.getProperty("NameArmor12", " Skins Dressme"); + NAME13 = Skins.getProperty("NameArmor13", " Skins Dressme"); + NAME14 = Skins.getProperty("NameArmor14", " Skins Dressme"); + NAME15 = Skins.getProperty("NameArmor15", " Skins Dressme"); + + } + catch (final Exception e) + { + e.printStackTrace(); + throw new Error("Failed to Load " + SKIN + " File."); + } + } + + + // ============================================================ public static boolean EVERYBODY_HAS_ADMIN_RIGHTS; public static boolean SHOW_GM_LOGIN; public static boolean GM_STARTUP_INVISIBLE; @@ -4534,6 +4730,7 @@ loadAccessConfig(); loadPvpConfig(); loadCraftConfig(); + loadSkin(); // Frozen config loadCTFConfig(); diff --git a/head-src/com/l2jfrozen/FService.java b/head-src/com/l2jfrozen/FService.java index f8afb7c..f4bf4d3 100644 --- a/head-src/com/l2jfrozen/FService.java +++ b/head-src/com/l2jfrozen/FService.java @@ -34,7 +34,7 @@ public static final String QUESTION_FILE = "./config/questionwords.txt"; public static final String HEXID_FILE = "./config/hexid.txt"; public static final String TELNET_FILE = "./config/telnet.properties"; - + public static final String SKIN = "./config/CustomMods/Skin.ini"; // head public static final String ALT_SETTINGS_FILE = "./config/head/altsettings.properties"; public static final String CLANHALL_CONFIG_FILE = "./config/head/clanhall.properties"; diff --git a/head-src/com/l2jfrozen/gameserver/handler/ItemHandler.java b/head-src/com/l2jfrozen/gameserver/handler/ItemHandler.java index 8dad568..8b8cb8d 100644 --- a/head-src/com/l2jfrozen/gameserver/handler/ItemHandler.java +++ b/head-src/com/l2jfrozen/gameserver/handler/ItemHandler.java @@ -63,6 +63,21 @@ import com.l2jfrozen.gameserver.handler.itemhandlers.Scrolls; import com.l2jfrozen.gameserver.handler.itemhandlers.Seed; import com.l2jfrozen.gameserver.handler.itemhandlers.SevenSignsRecord; +import com.l2jfrozen.gameserver.handler.itemhandlers.Skin1; +import com.l2jfrozen.gameserver.handler.itemhandlers.Skin10; +import com.l2jfrozen.gameserver.handler.itemhandlers.Skin11; +import com.l2jfrozen.gameserver.handler.itemhandlers.Skin12; +import com.l2jfrozen.gameserver.handler.itemhandlers.Skin13; +import com.l2jfrozen.gameserver.handler.itemhandlers.Skin14; +import com.l2jfrozen.gameserver.handler.itemhandlers.Skin15; +import com.l2jfrozen.gameserver.handler.itemhandlers.Skin2; +import com.l2jfrozen.gameserver.handler.itemhandlers.Skin3; +import com.l2jfrozen.gameserver.handler.itemhandlers.Skin4; +import com.l2jfrozen.gameserver.handler.itemhandlers.Skin5; +import com.l2jfrozen.gameserver.handler.itemhandlers.Skin6; +import com.l2jfrozen.gameserver.handler.itemhandlers.Skin7; +import com.l2jfrozen.gameserver.handler.itemhandlers.Skin8; +import com.l2jfrozen.gameserver.handler.itemhandlers.Skin9; import com.l2jfrozen.gameserver.handler.itemhandlers.SoulCrystals; import com.l2jfrozen.gameserver.handler.itemhandlers.SoulShots; import com.l2jfrozen.gameserver.handler.itemhandlers.SpecialXMas; @@ -110,6 +125,21 @@ private ItemHandler() { _datatable = new TreeMap<>(); + registerItemHandler(new Skin1()); + registerItemHandler(new Skin2()); + registerItemHandler(new Skin3()); + registerItemHandler(new Skin4()); + registerItemHandler(new Skin5()); + registerItemHandler(new Skin6()); + registerItemHandler(new Skin7()); + registerItemHandler(new Skin8()); + registerItemHandler(new Skin9()); + registerItemHandler(new Skin10()); + registerItemHandler(new Skin11()); + registerItemHandler(new Skin12()); + registerItemHandler(new Skin13()); + registerItemHandler(new Skin14()); + registerItemHandler(new Skin15()); registerItemHandler(new ScrollOfEscape()); registerItemHandler(new ScrollOfResurrection()); registerItemHandler(new SoulShots()); diff --git a/head-src/com/l2jfrozen/gameserver/handler/itemhandlers/Skin1.java b/head-src/com/l2jfrozen/gameserver/handler/itemhandlers/Skin1.java new file mode 100644 index 0000000..26c70a0 --- /dev/null +++ b/head-src/com/l2jfrozen/gameserver/handler/itemhandlers/Skin1.java @@ -0,0 +1,76 @@ +package com.l2jfrozen.gameserver.handler.itemhandlers; + +import com.l2jfrozen.Config; +import com.l2jfrozen.gameserver.handler.IItemHandler; +import com.l2jfrozen.gameserver.model.L2Object; +import com.l2jfrozen.gameserver.model.actor.instance.L2ItemInstance; +import com.l2jfrozen.gameserver.model.actor.instance.L2PcInstance; +import com.l2jfrozen.gameserver.model.actor.instance.L2PlayableInstance; +import com.l2jfrozen.gameserver.network.clientpackets.RequestBypassToServer; +import com.l2jfrozen.gameserver.network.serverpackets.MagicSkillUser; +import com.l2jfrozen.gameserver.network.serverpackets.SetupGauge; +import com.l2jfrozen.gameserver.thread.ThreadPoolManager; +import com.l2jfrozen.gameserver.util.Broadcast; + +public class Skin1 implements IItemHandler + +{ + @Override + public void useItem(final L2PlayableInstance playable, final L2ItemInstance item) + { + ThreadPoolManager.getInstance().scheduleGeneral(new Runnable() + { + @Override + public void run() + { + playable.setIsImmobileUntilAttacked(false); + } + }, Config.SEGUNDS_SKILL_ANIMATION); + final L2Object oldTarget = playable.getTarget(); + playable.setTarget(playable); + Broadcast.toSelfAndKnownPlayers(playable, new MagicSkillUser(playable, Config.SKILL_ID_SKIN1, 1, Config.SEGUNDS_SKILL_ANIMATION, 0)); + playable.setTarget(oldTarget); + playable.sendPacket(new SetupGauge(0, Config.SEGUNDS_SKILL_ANIMATION)); + playable.setIsImmobileUntilAttacked(true); + if(Config.ALLOW_DRESS_ME_SYSTEM) + { + if(!(playable instanceof L2PcInstance)) + return; + + L2PcInstance activeChar = (L2PcInstance)playable; + + RequestBypassToServer.setPart(activeChar, "helmet", Config.SKIN_NAME1); + RequestBypassToServer.setPart(activeChar, "chest", Config.SKIN_NAME1); + RequestBypassToServer.setPart(activeChar, "legs", Config.SKIN_NAME1); + RequestBypassToServer.setPart(activeChar, "gloves", Config.SKIN_NAME1); + RequestBypassToServer.setPart(activeChar, "boots", Config.SKIN_NAME1); + + if (activeChar.isDressMeEnabled()) + { + activeChar.setDressMeEnabled(false); + activeChar.broadcastUserInfo(); + activeChar.sendMessage("You have disabled skin."); + + } + else + { + activeChar.setDressMeEnabled(true); + activeChar.broadcastUserInfo(); + activeChar.sendMessage("You have activated " + Config.NAME1 + " skin."); + + } + } + else + playable.sendMessage("Sorry, admin has disabled skins."); + } + + @Override + public int[] getItemIds() + { + return ITEM_IDS; + } + + private static final int ITEM_IDS[] = { + Config.SKIN_ITEM_1 + }; +} \ No newline at end of file diff --git a/head-src/com/l2jfrozen/gameserver/handler/itemhandlers/Skin10.java b/head-src/com/l2jfrozen/gameserver/handler/itemhandlers/Skin10.java new file mode 100644 index 0000000..5201a2e --- /dev/null +++ b/head-src/com/l2jfrozen/gameserver/handler/itemhandlers/Skin10.java @@ -0,0 +1,71 @@ +package com.l2jfrozen.gameserver.handler.itemhandlers; + +import com.l2jfrozen.Config; +import com.l2jfrozen.gameserver.handler.IItemHandler; +import com.l2jfrozen.gameserver.model.L2Object; +import com.l2jfrozen.gameserver.model.actor.instance.L2ItemInstance; +import com.l2jfrozen.gameserver.model.actor.instance.L2PcInstance; +import com.l2jfrozen.gameserver.model.actor.instance.L2PlayableInstance; +import com.l2jfrozen.gameserver.network.clientpackets.RequestBypassToServer; +import com.l2jfrozen.gameserver.network.serverpackets.MagicSkillUser; +import com.l2jfrozen.gameserver.network.serverpackets.SetupGauge; +import com.l2jfrozen.gameserver.thread.ThreadPoolManager; +import com.l2jfrozen.gameserver.util.Broadcast; + +public class Skin10 implements IItemHandler +{ + @Override + public void useItem(final L2PlayableInstance playable, final L2ItemInstance item) + { + ThreadPoolManager.getInstance().scheduleGeneral(new Runnable() + { + @Override + public void run() + { + playable.setIsImmobileUntilAttacked(false); + } + }, Config.SEGUNDS_SKILL_ANIMATION); + final L2Object oldTarget = playable.getTarget(); + playable.setTarget(playable); + Broadcast.toSelfAndKnownPlayers(playable, new MagicSkillUser(playable, Config.SKILL_ID_SKIN10, 1, Config.SEGUNDS_SKILL_ANIMATION, 0)); + playable.setTarget(oldTarget); + playable.sendPacket(new SetupGauge(0, Config.SEGUNDS_SKILL_ANIMATION)); + playable.setIsImmobileUntilAttacked(true); + if(Config.ALLOW_DRESS_ME_SYSTEM) + { + if(!(playable instanceof L2PcInstance)) + return; + L2PcInstance activeChar = (L2PcInstance)playable; + RequestBypassToServer.setPart(activeChar, "helmet", Config.SKIN_NAME10); + RequestBypassToServer.setPart(activeChar, "chest", Config.SKIN_NAME10); + RequestBypassToServer.setPart(activeChar, "legs", Config.SKIN_NAME10); + RequestBypassToServer.setPart(activeChar, "gloves", Config.SKIN_NAME10); + RequestBypassToServer.setPart(activeChar, "boots", Config.SKIN_NAME10); + + if (activeChar.isDressMeEnabled()) + { + activeChar.setDressMeEnabled(false); + activeChar.broadcastUserInfo(); + activeChar.sendMessage("You have disabled skin."); + } + else + { + activeChar.setDressMeEnabled(true); + activeChar.broadcastUserInfo(); + activeChar.sendMessage("You have activated " + Config.NAME10 + " skin."); + } + } + else + playable.sendMessage("Sorry, admin has disabled skins."); + } + + @Override + public int[] getItemIds() + { + return ITEM_IDS; + } + + private static final int ITEM_IDS[] = { + Config.SKIN_ITEM_10 + }; +} \ No newline at end of file diff --git a/head-src/com/l2jfrozen/gameserver/handler/itemhandlers/Skin11.java b/head-src/com/l2jfrozen/gameserver/handler/itemhandlers/Skin11.java new file mode 100644 index 0000000..0b94f81 --- /dev/null +++ b/head-src/com/l2jfrozen/gameserver/handler/itemhandlers/Skin11.java @@ -0,0 +1,72 @@ +package com.l2jfrozen.gameserver.handler.itemhandlers; + +import com.l2jfrozen.Config; +import com.l2jfrozen.gameserver.handler.IItemHandler; +import com.l2jfrozen.gameserver.model.L2Object; +import com.l2jfrozen.gameserver.model.actor.instance.L2ItemInstance; +import com.l2jfrozen.gameserver.model.actor.instance.L2PcInstance; +import com.l2jfrozen.gameserver.model.actor.instance.L2PlayableInstance; +import com.l2jfrozen.gameserver.network.clientpackets.RequestBypassToServer; +import com.l2jfrozen.gameserver.network.serverpackets.MagicSkillUser; +import com.l2jfrozen.gameserver.network.serverpackets.SetupGauge; +import com.l2jfrozen.gameserver.thread.ThreadPoolManager; +import com.l2jfrozen.gameserver.util.Broadcast; + +public class Skin11 implements IItemHandler +{ + @Override + public void useItem(final L2PlayableInstance playable, final L2ItemInstance item) + { + ThreadPoolManager.getInstance().scheduleGeneral(new Runnable() + { + @Override + public void run() + { + playable.setIsImmobileUntilAttacked(false); + } + }, Config.SEGUNDS_SKILL_ANIMATION); + final L2Object oldTarget = playable.getTarget(); + playable.setTarget(playable); + Broadcast.toSelfAndKnownPlayers(playable, new MagicSkillUser(playable, Config.SKILL_ID_SKIN11, 1, Config.SEGUNDS_SKILL_ANIMATION, 0)); + playable.setTarget(oldTarget); + playable.sendPacket(new SetupGauge(0, Config.SEGUNDS_SKILL_ANIMATION)); + playable.setIsImmobileUntilAttacked(true); + if(Config.ALLOW_DRESS_ME_SYSTEM) + { + if(!(playable instanceof L2PcInstance)) + return; + L2PcInstance activeChar = (L2PcInstance)playable; + RequestBypassToServer.setPart(activeChar, "helmet", Config.SKIN_NAME11); + RequestBypassToServer.setPart(activeChar, "chest", Config.SKIN_NAME11); + RequestBypassToServer.setPart(activeChar, "legs", Config.SKIN_NAME11); + RequestBypassToServer.setPart(activeChar, "gloves", Config.SKIN_NAME11); + RequestBypassToServer.setPart(activeChar, "boots", Config.SKIN_NAME11); + + if (activeChar.isDressMeEnabled()) + { + activeChar.setDressMeEnabled(false); + activeChar.broadcastUserInfo(); + activeChar.sendMessage("You have disabled skin."); + } + else + { + activeChar.setDressMeEnabled(true); + activeChar.broadcastUserInfo(); + activeChar.sendMessage("You have activated " + Config.NAME11 + " skin."); + + } + } + else + playable.sendMessage("Sorry, admin has disabled skins."); + } + + @Override + public int[] getItemIds() + { + return ITEM_IDS; + } + + private static final int ITEM_IDS[] = { + Config.SKIN_ITEM_11 + }; +} \ No newline at end of file diff --git a/head-src/com/l2jfrozen/gameserver/handler/itemhandlers/Skin12.java b/head-src/com/l2jfrozen/gameserver/handler/itemhandlers/Skin12.java new file mode 100644 index 0000000..619008b --- /dev/null +++ b/head-src/com/l2jfrozen/gameserver/handler/itemhandlers/Skin12.java @@ -0,0 +1,72 @@ +package com.l2jfrozen.gameserver.handler.itemhandlers; + +import com.l2jfrozen.Config; +import com.l2jfrozen.gameserver.handler.IItemHandler; +import com.l2jfrozen.gameserver.model.L2Object; +import com.l2jfrozen.gameserver.model.actor.instance.L2ItemInstance; +import com.l2jfrozen.gameserver.model.actor.instance.L2PcInstance; +import com.l2jfrozen.gameserver.model.actor.instance.L2PlayableInstance; +import com.l2jfrozen.gameserver.network.clientpackets.RequestBypassToServer; +import com.l2jfrozen.gameserver.network.serverpackets.MagicSkillUser; +import com.l2jfrozen.gameserver.network.serverpackets.SetupGauge; +import com.l2jfrozen.gameserver.thread.ThreadPoolManager; +import com.l2jfrozen.gameserver.util.Broadcast; + +public class Skin12 implements IItemHandler +{ + @Override + public void useItem(final L2PlayableInstance playable, final L2ItemInstance item) + { + ThreadPoolManager.getInstance().scheduleGeneral(new Runnable() + { + @Override + public void run() + { + playable.setIsImmobileUntilAttacked(false); + } + }, Config.SEGUNDS_SKILL_ANIMATION); + final L2Object oldTarget = playable.getTarget(); + playable.setTarget(playable); + Broadcast.toSelfAndKnownPlayers(playable, new MagicSkillUser(playable, Config.SKILL_ID_SKIN12, 1, Config.SEGUNDS_SKILL_ANIMATION, 0)); + playable.setTarget(oldTarget); + playable.sendPacket(new SetupGauge(0, Config.SEGUNDS_SKILL_ANIMATION)); + playable.setIsImmobileUntilAttacked(true); + if(Config.ALLOW_DRESS_ME_SYSTEM) + { + if(!(playable instanceof L2PcInstance)) + return; + L2PcInstance activeChar = (L2PcInstance)playable; + RequestBypassToServer.setPart(activeChar, "helmet", Config.SKIN_NAME12); + RequestBypassToServer.setPart(activeChar, "chest", Config.SKIN_NAME12); + RequestBypassToServer.setPart(activeChar, "legs", Config.SKIN_NAME12); + RequestBypassToServer.setPart(activeChar, "gloves", Config.SKIN_NAME12); + RequestBypassToServer.setPart(activeChar, "boots", Config.SKIN_NAME12); + + if (activeChar.isDressMeEnabled()) + { + activeChar.setDressMeEnabled(false); + activeChar.broadcastUserInfo(); + activeChar.sendMessage("You have disabled skin."); + } + else + { + activeChar.setDressMeEnabled(true); + activeChar.broadcastUserInfo(); + activeChar.sendMessage("You have activated " + Config.NAME12 + " skin."); + + } + } + else + playable.sendMessage("Sorry, admin has disabled skins."); + } + + @Override + public int[] getItemIds() + { + return ITEM_IDS; + } + + private static final int ITEM_IDS[] = { + Config.SKIN_ITEM_12 + }; +} \ No newline at end of file diff --git a/head-src/com/l2jfrozen/gameserver/handler/itemhandlers/Skin13.java b/head-src/com/l2jfrozen/gameserver/handler/itemhandlers/Skin13.java new file mode 100644 index 0000000..8ccca10 --- /dev/null +++ b/head-src/com/l2jfrozen/gameserver/handler/itemhandlers/Skin13.java @@ -0,0 +1,71 @@ +package com.l2jfrozen.gameserver.handler.itemhandlers; + +import com.l2jfrozen.Config; +import com.l2jfrozen.gameserver.handler.IItemHandler; +import com.l2jfrozen.gameserver.model.L2Object; +import com.l2jfrozen.gameserver.model.actor.instance.L2ItemInstance; +import com.l2jfrozen.gameserver.model.actor.instance.L2PcInstance; +import com.l2jfrozen.gameserver.model.actor.instance.L2PlayableInstance; +import com.l2jfrozen.gameserver.network.clientpackets.RequestBypassToServer; +import com.l2jfrozen.gameserver.network.serverpackets.MagicSkillUser; +import com.l2jfrozen.gameserver.network.serverpackets.SetupGauge; +import com.l2jfrozen.gameserver.thread.ThreadPoolManager; +import com.l2jfrozen.gameserver.util.Broadcast; + +public class Skin13 implements IItemHandler +{ + @Override + public void useItem(final L2PlayableInstance playable, final L2ItemInstance item) + { + ThreadPoolManager.getInstance().scheduleGeneral(new Runnable() + { + @Override + public void run() + { + playable.setIsImmobileUntilAttacked(false); + } + }, Config.SEGUNDS_SKILL_ANIMATION); + final L2Object oldTarget = playable.getTarget(); + playable.setTarget(playable); + Broadcast.toSelfAndKnownPlayers(playable, new MagicSkillUser(playable, Config.SKILL_ID_SKIN13, 1, Config.SEGUNDS_SKILL_ANIMATION, 0)); + playable.setTarget(oldTarget); + playable.sendPacket(new SetupGauge(0, Config.SEGUNDS_SKILL_ANIMATION)); + playable.setIsImmobileUntilAttacked(true); + if(Config.ALLOW_DRESS_ME_SYSTEM) + { + if(!(playable instanceof L2PcInstance)) + return; + L2PcInstance activeChar = (L2PcInstance)playable; + RequestBypassToServer.setPart(activeChar, "helmet", Config.SKIN_NAME13); + RequestBypassToServer.setPart(activeChar, "chest", Config.SKIN_NAME13); + RequestBypassToServer.setPart(activeChar, "legs", Config.SKIN_NAME13); + RequestBypassToServer.setPart(activeChar, "gloves", Config.SKIN_NAME13); + RequestBypassToServer.setPart(activeChar, "boots", Config.SKIN_NAME13); + + if (activeChar.isDressMeEnabled()) + { + activeChar.setDressMeEnabled(false); + activeChar.broadcastUserInfo(); + activeChar.sendMessage("You have disabled skin."); + } + else + { + activeChar.setDressMeEnabled(true); + activeChar.broadcastUserInfo(); + activeChar.sendMessage("You have activated " + Config.NAME13 + " skin."); + } + } + else + playable.sendMessage("Sorry, admin has disabled skins."); + } + + @Override + public int[] getItemIds() + { + return ITEM_IDS; + } + + private static final int ITEM_IDS[] = { + Config.SKIN_ITEM_13 + }; +} \ No newline at end of file diff --git a/head-src/com/l2jfrozen/gameserver/handler/itemhandlers/Skin14.java b/head-src/com/l2jfrozen/gameserver/handler/itemhandlers/Skin14.java new file mode 100644 index 0000000..414dd05 --- /dev/null +++ b/head-src/com/l2jfrozen/gameserver/handler/itemhandlers/Skin14.java @@ -0,0 +1,71 @@ +package com.l2jfrozen.gameserver.handler.itemhandlers; + +import com.l2jfrozen.Config; +import com.l2jfrozen.gameserver.handler.IItemHandler; +import com.l2jfrozen.gameserver.model.L2Object; +import com.l2jfrozen.gameserver.model.actor.instance.L2ItemInstance; +import com.l2jfrozen.gameserver.model.actor.instance.L2PcInstance; +import com.l2jfrozen.gameserver.model.actor.instance.L2PlayableInstance; +import com.l2jfrozen.gameserver.network.clientpackets.RequestBypassToServer; +import com.l2jfrozen.gameserver.network.serverpackets.MagicSkillUser; +import com.l2jfrozen.gameserver.network.serverpackets.SetupGauge; +import com.l2jfrozen.gameserver.thread.ThreadPoolManager; +import com.l2jfrozen.gameserver.util.Broadcast; + +public class Skin14 implements IItemHandler +{ + @Override + public void useItem(final L2PlayableInstance playable, final L2ItemInstance item) + { + ThreadPoolManager.getInstance().scheduleGeneral(new Runnable() + { + @Override + public void run() + { + playable.setIsImmobileUntilAttacked(false); + } + }, Config.SEGUNDS_SKILL_ANIMATION); + final L2Object oldTarget = playable.getTarget(); + playable.setTarget(playable); + Broadcast.toSelfAndKnownPlayers(playable, new MagicSkillUser(playable, Config.SKILL_ID_SKIN14, 1, Config.SEGUNDS_SKILL_ANIMATION, 0)); + playable.setTarget(oldTarget); + playable.sendPacket(new SetupGauge(0, Config.SEGUNDS_SKILL_ANIMATION)); + playable.setIsImmobileUntilAttacked(true); + if(Config.ALLOW_DRESS_ME_SYSTEM) + { + if(!(playable instanceof L2PcInstance)) + return; + L2PcInstance activeChar = (L2PcInstance)playable; + RequestBypassToServer.setPart(activeChar, "helmet", Config.SKIN_NAME14); + RequestBypassToServer.setPart(activeChar, "chest", Config.SKIN_NAME14); + RequestBypassToServer.setPart(activeChar, "legs", Config.SKIN_NAME14); + RequestBypassToServer.setPart(activeChar, "gloves", Config.SKIN_NAME14); + RequestBypassToServer.setPart(activeChar, "boots", Config.SKIN_NAME14); + + if (activeChar.isDressMeEnabled()) + { + activeChar.setDressMeEnabled(false); + activeChar.broadcastUserInfo(); + activeChar.sendMessage("You have disabled skin."); + } + else + { + activeChar.setDressMeEnabled(true); + activeChar.broadcastUserInfo(); + activeChar.sendMessage("You have activated " + Config.NAME14 + " skin."); + } + } + else + playable.sendMessage("Sorry, admin has disabled skins."); + } + + @Override + public int[] getItemIds() + { + return ITEM_IDS; + } + + private static final int ITEM_IDS[] = { + Config.SKIN_ITEM_14 + }; +} \ No newline at end of file diff --git a/head-src/com/l2jfrozen/gameserver/handler/itemhandlers/Skin15.java b/head-src/com/l2jfrozen/gameserver/handler/itemhandlers/Skin15.java new file mode 100644 index 0000000..1bfe6ce --- /dev/null +++ b/head-src/com/l2jfrozen/gameserver/handler/itemhandlers/Skin15.java @@ -0,0 +1,75 @@ +package com.l2jfrozen.gameserver.handler.itemhandlers; + +import com.l2jfrozen.Config; +import com.l2jfrozen.gameserver.handler.IItemHandler; +import com.l2jfrozen.gameserver.model.L2Object; +import com.l2jfrozen.gameserver.model.actor.instance.L2ItemInstance; +import com.l2jfrozen.gameserver.model.actor.instance.L2PcInstance; +import com.l2jfrozen.gameserver.model.actor.instance.L2PlayableInstance; +import com.l2jfrozen.gameserver.network.clientpackets.RequestBypassToServer; +import com.l2jfrozen.gameserver.network.serverpackets.MagicSkillUser; +import com.l2jfrozen.gameserver.network.serverpackets.SetupGauge; +import com.l2jfrozen.gameserver.thread.ThreadPoolManager; +import com.l2jfrozen.gameserver.util.Broadcast; + +public class Skin15 implements IItemHandler +{ + @Override + public void useItem(final L2PlayableInstance playable, final L2ItemInstance item) + { + ThreadPoolManager.getInstance().scheduleGeneral(new Runnable() + { + @Override + public void run() + { + playable.setIsImmobileUntilAttacked(false); + } + }, Config.SEGUNDS_SKILL_ANIMATION); + final L2Object oldTarget = playable.getTarget(); + playable.setTarget(playable); + Broadcast.toSelfAndKnownPlayers(playable, new MagicSkillUser(playable, Config.SKILL_ID_SKIN15, 1, Config.SEGUNDS_SKILL_ANIMATION, 0)); + playable.setTarget(oldTarget); + playable.sendPacket(new SetupGauge(0, Config.SEGUNDS_SKILL_ANIMATION)); + playable.setIsImmobileUntilAttacked(true); + if(Config.ALLOW_DRESS_ME_SYSTEM) + { + if(!(playable instanceof L2PcInstance)) + return; + + L2PcInstance activeChar = (L2PcInstance)playable; + + RequestBypassToServer.setPart(activeChar, "helmet", Config.SKIN_NAME15); + RequestBypassToServer.setPart(activeChar, "chest", Config.SKIN_NAME15); + RequestBypassToServer.setPart(activeChar, "legs", Config.SKIN_NAME15); + RequestBypassToServer.setPart(activeChar, "gloves", Config.SKIN_NAME15); + RequestBypassToServer.setPart(activeChar, "boots", Config.SKIN_NAME15); + + if (activeChar.isDressMeEnabled()) + { + + activeChar.setDressMeEnabled(false); + activeChar.broadcastUserInfo(); + activeChar.sendMessage("You have disabled skin."); + } + else + { + + activeChar.setDressMeEnabled(true); + activeChar.broadcastUserInfo(); + activeChar.sendMessage("You have activated " + Config.NAME15 + " skin."); + } + } + else + playable.sendMessage("Sorry, admin has disabled skins."); + } + + @Override + public int[] getItemIds() + { + return ITEM_IDS; + } + + private static final int ITEM_IDS[] = { + Config.SKIN_ITEM_15 + }; +} \ No newline at end of file diff --git a/head-src/com/l2jfrozen/gameserver/handler/itemhandlers/Skin2.java b/head-src/com/l2jfrozen/gameserver/handler/itemhandlers/Skin2.java new file mode 100644 index 0000000..93d653a --- /dev/null +++ b/head-src/com/l2jfrozen/gameserver/handler/itemhandlers/Skin2.java @@ -0,0 +1,72 @@ +package com.l2jfrozen.gameserver.handler.itemhandlers; + +import com.l2jfrozen.Config; +import com.l2jfrozen.gameserver.handler.IItemHandler; +import com.l2jfrozen.gameserver.model.L2Object; +import com.l2jfrozen.gameserver.model.actor.instance.L2ItemInstance; +import com.l2jfrozen.gameserver.model.actor.instance.L2PcInstance; +import com.l2jfrozen.gameserver.model.actor.instance.L2PlayableInstance; +import com.l2jfrozen.gameserver.network.clientpackets.RequestBypassToServer; +import com.l2jfrozen.gameserver.network.serverpackets.MagicSkillUser; +import com.l2jfrozen.gameserver.network.serverpackets.SetupGauge; +import com.l2jfrozen.gameserver.thread.ThreadPoolManager; +import com.l2jfrozen.gameserver.util.Broadcast; + +public class Skin2 implements IItemHandler +{ + @Override + public void useItem(final L2PlayableInstance playable, final L2ItemInstance item) + { + ThreadPoolManager.getInstance().scheduleGeneral(new Runnable() + { + @Override + public void run() + { + playable.setIsImmobileUntilAttacked(false); + } + }, Config.SEGUNDS_SKILL_ANIMATION); + final L2Object oldTarget = playable.getTarget(); + playable.setTarget(playable); + Broadcast.toSelfAndKnownPlayers(playable, new MagicSkillUser(playable, Config.SKILL_ID_SKIN2, 1, Config.SEGUNDS_SKILL_ANIMATION, 0)); + playable.setTarget(oldTarget); + playable.sendPacket(new SetupGauge(0, Config.SEGUNDS_SKILL_ANIMATION)); + playable.setIsImmobileUntilAttacked(true); + if(Config.ALLOW_DRESS_ME_SYSTEM) + { + if(!(playable instanceof L2PcInstance)) + return; + L2PcInstance activeChar = (L2PcInstance)playable; + RequestBypassToServer.setPart(activeChar, "helmet", Config.SKIN_NAME2); + RequestBypassToServer.setPart(activeChar, "chest", Config.SKIN_NAME2); + RequestBypassToServer.setPart(activeChar, "legs", Config.SKIN_NAME2); + RequestBypassToServer.setPart(activeChar, "gloves", Config.SKIN_NAME2); + RequestBypassToServer.setPart(activeChar, "boots", Config.SKIN_NAME2); + + if (activeChar.isDressMeEnabled()) + { + activeChar.setDressMeEnabled(false); + activeChar.broadcastUserInfo(); + activeChar.sendMessage("You have disabled skin."); + + } + else + { + activeChar.setDressMeEnabled(true); + activeChar.broadcastUserInfo(); + activeChar.sendMessage("You have activated " + Config.NAME2 + " skin."); + } + } + else + playable.sendMessage("Sorry, admin has disabled skins."); + } + + @Override + public int[] getItemIds() + { + return ITEM_IDS; + } + + private static final int ITEM_IDS[] = { + Config.SKIN_ITEM_2 + }; +} \ No newline at end of file diff --git a/head-src/com/l2jfrozen/gameserver/handler/itemhandlers/Skin3.java b/head-src/com/l2jfrozen/gameserver/handler/itemhandlers/Skin3.java new file mode 100644 index 0000000..1ac31ab --- /dev/null +++ b/head-src/com/l2jfrozen/gameserver/handler/itemhandlers/Skin3.java @@ -0,0 +1,72 @@ +package com.l2jfrozen.gameserver.handler.itemhandlers; + +import com.l2jfrozen.Config; +import com.l2jfrozen.gameserver.handler.IItemHandler; +import com.l2jfrozen.gameserver.model.L2Object; +import com.l2jfrozen.gameserver.model.actor.instance.L2ItemInstance; +import com.l2jfrozen.gameserver.model.actor.instance.L2PcInstance; +import com.l2jfrozen.gameserver.model.actor.instance.L2PlayableInstance; +import com.l2jfrozen.gameserver.network.clientpackets.RequestBypassToServer; +import com.l2jfrozen.gameserver.network.serverpackets.MagicSkillUser; +import com.l2jfrozen.gameserver.network.serverpackets.SetupGauge; +import com.l2jfrozen.gameserver.thread.ThreadPoolManager; +import com.l2jfrozen.gameserver.util.Broadcast; + +public class Skin3 implements IItemHandler +{ + @Override + public void useItem(final L2PlayableInstance playable, final L2ItemInstance item) + { + ThreadPoolManager.getInstance().scheduleGeneral(new Runnable() + { + @Override + public void run() + { + playable.setIsImmobileUntilAttacked(false); + } + }, Config.SEGUNDS_SKILL_ANIMATION); + final L2Object oldTarget = playable.getTarget(); + playable.setTarget(playable); + Broadcast.toSelfAndKnownPlayers(playable, new MagicSkillUser(playable, Config.SKILL_ID_SKIN3, 1, Config.SEGUNDS_SKILL_ANIMATION, 0)); + playable.setTarget(oldTarget); + playable.sendPacket(new SetupGauge(0, Config.SEGUNDS_SKILL_ANIMATION)); + playable.setIsImmobileUntilAttacked(true); + if(Config.ALLOW_DRESS_ME_SYSTEM) + { + if(!(playable instanceof L2PcInstance)) + return; + L2PcInstance activeChar = (L2PcInstance)playable; + RequestBypassToServer.setPart(activeChar, "helmet", Config.SKIN_NAME3); + RequestBypassToServer.setPart(activeChar, "chest", Config.SKIN_NAME3); + RequestBypassToServer.setPart(activeChar, "legs", Config.SKIN_NAME3); + RequestBypassToServer.setPart(activeChar, "gloves", Config.SKIN_NAME3); + RequestBypassToServer.setPart(activeChar, "boots", Config.SKIN_NAME3); + + if (activeChar.isDressMeEnabled()) + { + activeChar.setDressMeEnabled(false); + activeChar.broadcastUserInfo(); + activeChar.sendMessage("You have disabled skin."); + + } + else + { + activeChar.setDressMeEnabled(true); + activeChar.broadcastUserInfo(); + activeChar.sendMessage("You have activated " + Config.NAME3 + " skin."); + } + } + else + playable.sendMessage("Sorry, admin has disabled skins."); + } + + @Override + public int[] getItemIds() + { + return ITEM_IDS; + } + + private static final int ITEM_IDS[] = { + Config.SKIN_ITEM_3 + }; +} \ No newline at end of file diff --git a/head-src/com/l2jfrozen/gameserver/handler/itemhandlers/Skin4.java b/head-src/com/l2jfrozen/gameserver/handler/itemhandlers/Skin4.java new file mode 100644 index 0000000..4b43152 --- /dev/null +++ b/head-src/com/l2jfrozen/gameserver/handler/itemhandlers/Skin4.java @@ -0,0 +1,72 @@ +package com.l2jfrozen.gameserver.handler.itemhandlers; + +import com.l2jfrozen.Config; +import com.l2jfrozen.gameserver.handler.IItemHandler; +import com.l2jfrozen.gameserver.model.L2Object; +import com.l2jfrozen.gameserver.model.actor.instance.L2ItemInstance; +import com.l2jfrozen.gameserver.model.actor.instance.L2PcInstance; +import com.l2jfrozen.gameserver.model.actor.instance.L2PlayableInstance; +import com.l2jfrozen.gameserver.network.clientpackets.RequestBypassToServer; +import com.l2jfrozen.gameserver.network.serverpackets.MagicSkillUser; +import com.l2jfrozen.gameserver.network.serverpackets.SetupGauge; +import com.l2jfrozen.gameserver.thread.ThreadPoolManager; +import com.l2jfrozen.gameserver.util.Broadcast; + +public class Skin4 implements IItemHandler +{ + @Override + public void useItem(final L2PlayableInstance playable, final L2ItemInstance item) + { + ThreadPoolManager.getInstance().scheduleGeneral(new Runnable() + { + @Override + public void run() + { + playable.setIsImmobileUntilAttacked(false); + } + }, Config.SEGUNDS_SKILL_ANIMATION); + final L2Object oldTarget = playable.getTarget(); + playable.setTarget(playable); + Broadcast.toSelfAndKnownPlayers(playable, new MagicSkillUser(playable, Config.SKILL_ID_SKIN4, 1, Config.SEGUNDS_SKILL_ANIMATION, 0)); + playable.setTarget(oldTarget); + playable.sendPacket(new SetupGauge(0, Config.SEGUNDS_SKILL_ANIMATION)); + playable.setIsImmobileUntilAttacked(true); + if(Config.ALLOW_DRESS_ME_SYSTEM) + { + if(!(playable instanceof L2PcInstance)) + return; + L2PcInstance activeChar = (L2PcInstance)playable; + RequestBypassToServer.setPart(activeChar, "helmet", Config.SKIN_NAME4); + RequestBypassToServer.setPart(activeChar, "chest", Config.SKIN_NAME4); + RequestBypassToServer.setPart(activeChar, "legs", Config.SKIN_NAME4); + RequestBypassToServer.setPart(activeChar, "gloves", Config.SKIN_NAME4); + RequestBypassToServer.setPart(activeChar, "boots", Config.SKIN_NAME4); + + if (activeChar.isDressMeEnabled()) + { + activeChar.setDressMeEnabled(false); + activeChar.broadcastUserInfo(); + activeChar.sendMessage("You have disabled skin."); + + } + else + { + activeChar.setDressMeEnabled(true); + activeChar.broadcastUserInfo(); + activeChar.sendMessage("You have activated " + Config.NAME4 + " skin."); + } + } + else + playable.sendMessage("Sorry, admin has disabled skins."); + } + + @Override + public int[] getItemIds() + { + return ITEM_IDS; + } + + private static final int ITEM_IDS[] = { + Config.SKIN_ITEM_4 + }; +} \ No newline at end of file diff --git a/head-src/com/l2jfrozen/gameserver/handler/itemhandlers/Skin5.java b/head-src/com/l2jfrozen/gameserver/handler/itemhandlers/Skin5.java new file mode 100644 index 0000000..896d73d --- /dev/null +++ b/head-src/com/l2jfrozen/gameserver/handler/itemhandlers/Skin5.java @@ -0,0 +1,72 @@ +package com.l2jfrozen.gameserver.handler.itemhandlers; + +import com.l2jfrozen.Config; +import com.l2jfrozen.gameserver.handler.IItemHandler; +import com.l2jfrozen.gameserver.model.L2Object; +import com.l2jfrozen.gameserver.model.actor.instance.L2ItemInstance; +import com.l2jfrozen.gameserver.model.actor.instance.L2PcInstance; +import com.l2jfrozen.gameserver.model.actor.instance.L2PlayableInstance; +import com.l2jfrozen.gameserver.network.clientpackets.RequestBypassToServer; +import com.l2jfrozen.gameserver.network.serverpackets.MagicSkillUser; +import com.l2jfrozen.gameserver.network.serverpackets.SetupGauge; +import com.l2jfrozen.gameserver.thread.ThreadPoolManager; +import com.l2jfrozen.gameserver.util.Broadcast; + +public class Skin5 implements IItemHandler +{ + @Override + public void useItem(final L2PlayableInstance playable, final L2ItemInstance item) + { + ThreadPoolManager.getInstance().scheduleGeneral(new Runnable() + { + @Override + public void run() + { + playable.setIsImmobileUntilAttacked(false); + } + }, Config.SEGUNDS_SKILL_ANIMATION); + final L2Object oldTarget = playable.getTarget(); + playable.setTarget(playable); + Broadcast.toSelfAndKnownPlayers(playable, new MagicSkillUser(playable, Config.SKILL_ID_SKIN5, 1, Config.SEGUNDS_SKILL_ANIMATION, 0)); + playable.setTarget(oldTarget); + playable.sendPacket(new SetupGauge(0, Config.SEGUNDS_SKILL_ANIMATION)); + playable.setIsImmobileUntilAttacked(true); + if(Config.ALLOW_DRESS_ME_SYSTEM) + { + if(!(playable instanceof L2PcInstance)) + return; + L2PcInstance activeChar = (L2PcInstance)playable; + RequestBypassToServer.setPart(activeChar, "helmet", Config.SKIN_NAME5); + RequestBypassToServer.setPart(activeChar, "chest", Config.SKIN_NAME5); + RequestBypassToServer.setPart(activeChar, "legs", Config.SKIN_NAME5); + RequestBypassToServer.setPart(activeChar, "gloves", Config.SKIN_NAME5); + RequestBypassToServer.setPart(activeChar, "boots", Config.SKIN_NAME5); + + if (activeChar.isDressMeEnabled()) + { + activeChar.setDressMeEnabled(false); + activeChar.broadcastUserInfo(); + activeChar.sendMessage("You have disabled skin."); + + } + else + { + activeChar.setDressMeEnabled(true); + activeChar.broadcastUserInfo(); + activeChar.sendMessage("You have activated " + Config.NAME5 + " skin."); + } + } + else + playable.sendMessage("Sorry, admin has disabled skins."); + } + + @Override + public int[] getItemIds() + { + return ITEM_IDS; + } + + private static final int ITEM_IDS[] = { + Config.SKIN_ITEM_5 + }; +} \ No newline at end of file diff --git a/head-src/com/l2jfrozen/gameserver/handler/itemhandlers/Skin6.java b/head-src/com/l2jfrozen/gameserver/handler/itemhandlers/Skin6.java new file mode 100644 index 0000000..4ed33eb --- /dev/null +++ b/head-src/com/l2jfrozen/gameserver/handler/itemhandlers/Skin6.java @@ -0,0 +1,71 @@ +package com.l2jfrozen.gameserver.handler.itemhandlers; + +import com.l2jfrozen.Config; +import com.l2jfrozen.gameserver.handler.IItemHandler; +import com.l2jfrozen.gameserver.model.L2Object; +import com.l2jfrozen.gameserver.model.actor.instance.L2ItemInstance; +import com.l2jfrozen.gameserver.model.actor.instance.L2PcInstance; +import com.l2jfrozen.gameserver.model.actor.instance.L2PlayableInstance; +import com.l2jfrozen.gameserver.network.clientpackets.RequestBypassToServer; +import com.l2jfrozen.gameserver.network.serverpackets.MagicSkillUser; +import com.l2jfrozen.gameserver.network.serverpackets.SetupGauge; +import com.l2jfrozen.gameserver.thread.ThreadPoolManager; +import com.l2jfrozen.gameserver.util.Broadcast; + +public class Skin6 implements IItemHandler +{ + @Override + public void useItem(final L2PlayableInstance playable, final L2ItemInstance item) + { + ThreadPoolManager.getInstance().scheduleGeneral(new Runnable() + { + @Override + public void run() + { + playable.setIsImmobileUntilAttacked(false); + } + }, Config.SEGUNDS_SKILL_ANIMATION); + final L2Object oldTarget = playable.getTarget(); + playable.setTarget(playable); + Broadcast.toSelfAndKnownPlayers(playable, new MagicSkillUser(playable, Config.SKILL_ID_SKIN6, 1, Config.SEGUNDS_SKILL_ANIMATION, 0)); + playable.setTarget(oldTarget); + playable.sendPacket(new SetupGauge(0, Config.SEGUNDS_SKILL_ANIMATION)); + playable.setIsImmobileUntilAttacked(true); + if(Config.ALLOW_DRESS_ME_SYSTEM) + { + if(!(playable instanceof L2PcInstance)) + return; + L2PcInstance activeChar = (L2PcInstance)playable; + RequestBypassToServer.setPart(activeChar, "helmet", Config.SKIN_NAME6); + RequestBypassToServer.setPart(activeChar, "chest", Config.SKIN_NAME6); + RequestBypassToServer.setPart(activeChar, "legs", Config.SKIN_NAME6); + RequestBypassToServer.setPart(activeChar, "gloves", Config.SKIN_NAME6); + RequestBypassToServer.setPart(activeChar, "boots", Config.SKIN_NAME6); + + if (activeChar.isDressMeEnabled()) + { + activeChar.setDressMeEnabled(false); + activeChar.broadcastUserInfo(); + activeChar.sendMessage("You have disabled skin."); + } + else + { + activeChar.setDressMeEnabled(true); + activeChar.broadcastUserInfo(); + activeChar.sendMessage("You have activated " + Config.NAME6 + " skin."); + } + } + else + playable.sendMessage("Sorry, admin has disabled skins."); + } + + @Override + public int[] getItemIds() + { + return ITEM_IDS; + } + + private static final int ITEM_IDS[] = { + Config.SKIN_ITEM_6 + }; +} \ No newline at end of file diff --git a/head-src/com/l2jfrozen/gameserver/handler/itemhandlers/Skin7.java b/head-src/com/l2jfrozen/gameserver/handler/itemhandlers/Skin7.java new file mode 100644 index 0000000..9d40c21 --- /dev/null +++ b/head-src/com/l2jfrozen/gameserver/handler/itemhandlers/Skin7.java @@ -0,0 +1,71 @@ +package com.l2jfrozen.gameserver.handler.itemhandlers; + +import com.l2jfrozen.Config; +import com.l2jfrozen.gameserver.handler.IItemHandler; +import com.l2jfrozen.gameserver.model.L2Object; +import com.l2jfrozen.gameserver.model.actor.instance.L2ItemInstance; +import com.l2jfrozen.gameserver.model.actor.instance.L2PcInstance; +import com.l2jfrozen.gameserver.model.actor.instance.L2PlayableInstance; +import com.l2jfrozen.gameserver.network.clientpackets.RequestBypassToServer; +import com.l2jfrozen.gameserver.network.serverpackets.MagicSkillUser; +import com.l2jfrozen.gameserver.network.serverpackets.SetupGauge; +import com.l2jfrozen.gameserver.thread.ThreadPoolManager; +import com.l2jfrozen.gameserver.util.Broadcast; + +public class Skin7 implements IItemHandler +{ + @Override + public void useItem(final L2PlayableInstance playable, final L2ItemInstance item) + { + ThreadPoolManager.getInstance().scheduleGeneral(new Runnable() + { + @Override + public void run() + { + playable.setIsImmobileUntilAttacked(false); + } + }, Config.SEGUNDS_SKILL_ANIMATION); + final L2Object oldTarget = playable.getTarget(); + playable.setTarget(playable); + Broadcast.toSelfAndKnownPlayers(playable, new MagicSkillUser(playable, Config.SKILL_ID_SKIN7, 1, Config.SEGUNDS_SKILL_ANIMATION, 0)); + playable.setTarget(oldTarget); + playable.sendPacket(new SetupGauge(0, Config.SEGUNDS_SKILL_ANIMATION)); + playable.setIsImmobileUntilAttacked(true); + if(Config.ALLOW_DRESS_ME_SYSTEM) + { + if(!(playable instanceof L2PcInstance)) + return; + L2PcInstance activeChar = (L2PcInstance)playable; + RequestBypassToServer.setPart(activeChar, "helmet", Config.SKIN_NAME7); + RequestBypassToServer.setPart(activeChar, "chest", Config.SKIN_NAME7); + RequestBypassToServer.setPart(activeChar, "legs", Config.SKIN_NAME7); + RequestBypassToServer.setPart(activeChar, "gloves", Config.SKIN_NAME7); + RequestBypassToServer.setPart(activeChar, "boots", Config.SKIN_NAME7); + + if (activeChar.isDressMeEnabled()) + { + activeChar.setDressMeEnabled(false); + activeChar.broadcastUserInfo(); + activeChar.sendMessage("You have disabled skin."); + } + else + { + activeChar.setDressMeEnabled(true); + activeChar.broadcastUserInfo(); + activeChar.sendMessage("You have activated " + Config.NAME7 + " skin."); + } + } + else + playable.sendMessage("Sorry, admin has disabled skins."); + } + + @Override + public int[] getItemIds() + { + return ITEM_IDS; + } + + private static final int ITEM_IDS[] = { + Config.SKIN_ITEM_7 + }; +} \ No newline at end of file diff --git a/head-src/com/l2jfrozen/gameserver/handler/itemhandlers/Skin8.java b/head-src/com/l2jfrozen/gameserver/handler/itemhandlers/Skin8.java new file mode 100644 index 0000000..d85c549 --- /dev/null +++ b/head-src/com/l2jfrozen/gameserver/handler/itemhandlers/Skin8.java @@ -0,0 +1,72 @@ +package com.l2jfrozen.gameserver.handler.itemhandlers; + +import com.l2jfrozen.Config; +import com.l2jfrozen.gameserver.handler.IItemHandler; +import com.l2jfrozen.gameserver.model.L2Object; +import com.l2jfrozen.gameserver.model.actor.instance.L2ItemInstance; +import com.l2jfrozen.gameserver.model.actor.instance.L2PcInstance; +import com.l2jfrozen.gameserver.model.actor.instance.L2PlayableInstance; +import com.l2jfrozen.gameserver.network.clientpackets.RequestBypassToServer; +import com.l2jfrozen.gameserver.network.serverpackets.MagicSkillUser; +import com.l2jfrozen.gameserver.network.serverpackets.SetupGauge; +import com.l2jfrozen.gameserver.thread.ThreadPoolManager; +import com.l2jfrozen.gameserver.util.Broadcast; + +public class Skin8 implements IItemHandler +{ + @Override + public void useItem(final L2PlayableInstance playable, final L2ItemInstance item) + { + ThreadPoolManager.getInstance().scheduleGeneral(new Runnable() + { + @Override + public void run() + { + playable.setIsImmobileUntilAttacked(false); + } + }, Config.SEGUNDS_SKILL_ANIMATION); + final L2Object oldTarget = playable.getTarget(); + playable.setTarget(playable); + Broadcast.toSelfAndKnownPlayers(playable, new MagicSkillUser(playable, Config.SKILL_ID_SKIN8, 1, Config.SEGUNDS_SKILL_ANIMATION, 0)); + playable.setTarget(oldTarget); + playable.sendPacket(new SetupGauge(0, Config.SEGUNDS_SKILL_ANIMATION)); + playable.setIsImmobileUntilAttacked(true); + if (Config.ALLOW_DRESS_ME_SYSTEM) + { + if (!(playable instanceof L2PcInstance)) + return; + L2PcInstance activeChar = (L2PcInstance) playable; + RequestBypassToServer.setPart(activeChar, "helmet", Config.SKIN_NAME8); + RequestBypassToServer.setPart(activeChar, "chest", Config.SKIN_NAME8); + RequestBypassToServer.setPart(activeChar, "legs", Config.SKIN_NAME8); + RequestBypassToServer.setPart(activeChar, "gloves", Config.SKIN_NAME8); + RequestBypassToServer.setPart(activeChar, "boots", Config.SKIN_NAME8); + + if (activeChar.isDressMeEnabled()) + { + activeChar.setDressMeEnabled(false); + activeChar.broadcastUserInfo(); + activeChar.sendMessage("You have disabled skin."); + } + else + { + activeChar.setDressMeEnabled(true); + activeChar.broadcastUserInfo(); + activeChar.sendMessage("You have activated " + Config.NAME8 + " skin."); + } + } + else + playable.sendMessage("Sorry, admin has disabled skins."); + } + + @Override + public int[] getItemIds() + { + return ITEM_IDS; + } + + private static final int ITEM_IDS[] = + { + Config.SKIN_ITEM_8 + }; +} \ No newline at end of file diff --git a/head-src/com/l2jfrozen/gameserver/handler/itemhandlers/Skin9.java b/head-src/com/l2jfrozen/gameserver/handler/itemhandlers/Skin9.java new file mode 100644 index 0000000..3bd6819 --- /dev/null +++ b/head-src/com/l2jfrozen/gameserver/handler/itemhandlers/Skin9.java @@ -0,0 +1,71 @@ +package com.l2jfrozen.gameserver.handler.itemhandlers; + +import com.l2jfrozen.Config; +import com.l2jfrozen.gameserver.handler.IItemHandler; +import com.l2jfrozen.gameserver.model.L2Object; +import com.l2jfrozen.gameserver.model.actor.instance.L2ItemInstance; +import com.l2jfrozen.gameserver.model.actor.instance.L2PcInstance; +import com.l2jfrozen.gameserver.model.actor.instance.L2PlayableInstance; +import com.l2jfrozen.gameserver.network.clientpackets.RequestBypassToServer; +import com.l2jfrozen.gameserver.network.serverpackets.MagicSkillUser; +import com.l2jfrozen.gameserver.network.serverpackets.SetupGauge; +import com.l2jfrozen.gameserver.thread.ThreadPoolManager; +import com.l2jfrozen.gameserver.util.Broadcast; + +public class Skin9 implements IItemHandler +{ + @Override + public void useItem(final L2PlayableInstance playable, final L2ItemInstance item) + { + ThreadPoolManager.getInstance().scheduleGeneral(new Runnable() + { + @Override + public void run() + { + playable.setIsImmobileUntilAttacked(false); + } + }, Config.SEGUNDS_SKILL_ANIMATION); + final L2Object oldTarget = playable.getTarget(); + playable.setTarget(playable); + Broadcast.toSelfAndKnownPlayers(playable, new MagicSkillUser(playable, Config.SKILL_ID_SKIN9, 1, Config.SEGUNDS_SKILL_ANIMATION, 0)); + playable.setTarget(oldTarget); + playable.sendPacket(new SetupGauge(0, Config.SEGUNDS_SKILL_ANIMATION)); + playable.setIsImmobileUntilAttacked(true); + if(Config.ALLOW_DRESS_ME_SYSTEM) + { + if(!(playable instanceof L2PcInstance)) + return; + L2PcInstance activeChar = (L2PcInstance)playable; + RequestBypassToServer.setPart(activeChar, "helmet", Config.SKIN_NAME9); + RequestBypassToServer.setPart(activeChar, "chest", Config.SKIN_NAME9); + RequestBypassToServer.setPart(activeChar, "legs", Config.SKIN_NAME9); + RequestBypassToServer.setPart(activeChar, "gloves", Config.SKIN_NAME9); + RequestBypassToServer.setPart(activeChar, "boots", Config.SKIN_NAME9); + + if (activeChar.isDressMeEnabled()) + { + activeChar.setDressMeEnabled(false); + activeChar.broadcastUserInfo(); + activeChar.sendMessage("You have disabled skin."); + } + else + { + activeChar.setDressMeEnabled(true); + activeChar.broadcastUserInfo(); + activeChar.sendMessage("You have activated " + Config.NAME9 + " skin."); + } + } + else + playable.sendMessage("Sorry, admin has disabled skins."); + } + + @Override + public int[] getItemIds() + { + return ITEM_IDS; + } + + private static final int ITEM_IDS[] = { + Config.SKIN_ITEM_9 + }; +} \ No newline at end of file diff --git a/head-src/com/l2jfrozen/gameserver/managers/DressMeData.java b/head-src/com/l2jfrozen/gameserver/managers/DressMeData.java new file mode 100644 index 0000000..04e6dce --- /dev/null +++ b/head-src/com/l2jfrozen/gameserver/managers/DressMeData.java @@ -0,0 +1,81 @@ +package com.l2jfrozen.gameserver.managers; + +public class DressMeData +{ + private int chestId, + helmetId, + legsId, + glovesId, + feetId, + weapId; + + public DressMeData() + { + helmetId = 0; + chestId = 0; + legsId = 0; + glovesId = 0; + feetId = 0; + weapId = 0; + } + + public int getHelmetId() + { + return helmetId; + } + + public int getChestId() + { + return chestId; + } + + public int getLegsId() + { + return legsId; + } + + public int getGlovesId() + { + return glovesId; + } + + public int getBootsId() + { + return feetId; + } + + public int getWeapId() + { + return weapId; + } + + public void setHelmetId(int val) + { + helmetId = val; + } + + public void setChestId(int val) + { + chestId = val; + } + + public void setLegsId(int val) + { + legsId = val; + } + + public void setGlovesId(int val) + { + glovesId = val; + } + + public void setBootsId(int val) + { + feetId = val; + } + + public void setWeapId(int val) + { + weapId = val; + } +} \ No newline at end of file diff --git a/head-src/com/l2jfrozen/gameserver/model/L2Character.java b/head-src/com/l2jfrozen/gameserver/model/L2Character.java index fc1cf18..19ffb4b 100644 --- a/head-src/com/l2jfrozen/gameserver/model/L2Character.java +++ b/head-src/com/l2jfrozen/gameserver/model/L2Character.java @@ -10956,7 +10956,17 @@ { _isAttackDisabled = value; } - + /** + * <B><U> Overridden in </U> :</B><BR> + * <BR> + * <li>Player</li><BR> + * <BR> + * @param text The string to send. + */ + public void sendMessage(String text) + { + // default implementation + } /* * AI not. Task */ diff --git a/head-src/com/l2jfrozen/gameserver/model/actor/instance/L2PcInstance.java b/head-src/com/l2jfrozen/gameserver/model/actor/instance/L2PcInstance.java index 223b046..b318417 100644 --- a/head-src/com/l2jfrozen/gameserver/model/actor/instance/L2PcInstance.java +++ b/head-src/com/l2jfrozen/gameserver/model/actor/instance/L2PcInstance.java @@ -88,6 +88,7 @@ import com.l2jfrozen.gameserver.managers.CoupleManager; import com.l2jfrozen.gameserver.managers.CursedWeaponsManager; import com.l2jfrozen.gameserver.managers.DimensionalRiftManager; +import com.l2jfrozen.gameserver.managers.DressMeData; import com.l2jfrozen.gameserver.managers.DuelManager; import com.l2jfrozen.gameserver.managers.FortSiegeManager; import com.l2jfrozen.gameserver.managers.ItemsOnGroundManager; @@ -19485,7 +19486,27 @@ sendMessage("========================"); } + private DressMeData _dressmedata = null; + private boolean _dressed = false; + public DressMeData getDressMeData() + { + return _dressmedata; + } + public void setDressMeData(DressMeData val) + { + _dressmedata = val; + } + + public boolean isDressMeEnabled() + { + return _dressed; + } + + public void setDressMeEnabled(boolean val) + { + _dressed = val; + } public long getLastAttackPacket() { return _lastAttackPacket; diff --git a/head-src/com/l2jfrozen/gameserver/network/clientpackets/RequestBypassToServer.java b/head-src/com/l2jfrozen/gameserver/network/clientpackets/RequestBypassToServer.java index 921c087..0ca34f7 100644 --- a/head-src/com/l2jfrozen/gameserver/network/clientpackets/RequestBypassToServer.java +++ b/head-src/com/l2jfrozen/gameserver/network/clientpackets/RequestBypassToServer.java @@ -29,6 +29,8 @@ import com.l2jfrozen.gameserver.handler.AdminCommandHandler; import com.l2jfrozen.gameserver.handler.IAdminCommandHandler; import com.l2jfrozen.gameserver.handler.custom.CustomBypassHandler; +import com.l2jfrozen.gameserver.managers.DressMeData; +import com.l2jfrozen.gameserver.model.Inventory; import com.l2jfrozen.gameserver.model.L2Object; import com.l2jfrozen.gameserver.model.L2World; import com.l2jfrozen.gameserver.model.actor.instance.L2ClassMasterInstance; @@ -331,7 +333,201 @@ // activeChar.clearBypass(); // } } - + public static void setPart(L2PcInstance p, String part, String type) + { + if (p.getDressMeData() == null) + { + DressMeData dmd = new DressMeData(); + p.setDressMeData(dmd); + } + + switch (part) + { + + case "helmet": + { + if (Config.DRESS_ME_HELMET.keySet().contains(type)) + { + p.getDressMeData().setHelmetId(Config.DRESS_ME_HELMET.get(type)); + } + + break; + } + + + case "chest": + { + if (Config.DRESS_ME_CHESTS.keySet().contains(type)) + { + p.getDressMeData().setChestId(Config.DRESS_ME_CHESTS.get(type)); + } + + break; + } + case "legs": + { + if (Config.DRESS_ME_LEGS.keySet().contains(type)) + { + p.getDressMeData().setLegsId(Config.DRESS_ME_LEGS.get(type)); + } + + break; + } + case "gloves": + { + if (Config.DRESS_ME_GLOVES.keySet().contains(type)) + { + p.getDressMeData().setGlovesId(Config.DRESS_ME_GLOVES.get(type)); + } + + break; + } + case "boots": + { + if (Config.DRESS_ME_BOOTS.keySet().contains(type)) + { + p.getDressMeData().setBootsId(Config.DRESS_ME_BOOTS.get(type)); + } + + break; + } + + } + + p.broadcastUserInfo(); + // sendEditWindow(p, part); + } + public static void stealTarget(L2PcInstance p, String part) + { + if (p.getTarget() == null || !(p.getTarget() instanceof L2PcInstance)) + { + p.sendMessage("Invalid target."); + return; + } + + L2PcInstance t = (L2PcInstance)p.getTarget(); + + if (p.getDressMeData() == null) + { + DressMeData dmd = new DressMeData(); + p.setDressMeData(dmd); + } + + + switch (part) + { + case "helmet": + { + if (t.getInventory().getPaperdollItem(Inventory.PAPERDOLL_FACE) == null) + { + p.getDressMeData().setHelmetId(0); + } + else + { + p.getDressMeData().setHelmetId(t.getInventory().getPaperdollItem(Inventory.PAPERDOLL_FACE).getItemId()); + } + break; + } + + case "chest": + { + if (t.getInventory().getPaperdollItem(Inventory.PAPERDOLL_CHEST) == null) + { + p.getDressMeData().setChestId(0); + } + else + { + p.getDressMeData().setChestId(t.getInventory().getPaperdollItem(Inventory.PAPERDOLL_CHEST).getItemId()); + } + break; + } + case "legs": + { + if (t.getInventory().getPaperdollItem(Inventory.PAPERDOLL_LEGS) == null) + { + p.getDressMeData().setLegsId(0); + } + else + { + p.getDressMeData().setLegsId(t.getInventory().getPaperdollItem(Inventory.PAPERDOLL_LEGS).getItemId()); + } + break; + } + case "gloves": + { + if (t.getInventory().getPaperdollItem(Inventory.PAPERDOLL_GLOVES) == null) + { + p.getDressMeData().setGlovesId(0); + } + else + { + p.getDressMeData().setGlovesId(t.getInventory().getPaperdollItem(Inventory.PAPERDOLL_GLOVES).getItemId()); + } + break; + } + case "boots": + { + if (t.getInventory().getPaperdollItem(Inventory.PAPERDOLL_FEET) == null) + { + p.getDressMeData().setBootsId(0); + } + else + { + p.getDressMeData().setBootsId(t.getInventory().getPaperdollItem(Inventory.PAPERDOLL_FEET).getItemId()); + } + break; + } + case "all": + { + + if (t.getInventory().getPaperdollItem(Inventory.PAPERDOLL_FACE) == null) + { + p.getDressMeData().setHelmetId(0); + } + else + { + p.getDressMeData().setHelmetId(t.getInventory().getPaperdollItem(Inventory.PAPERDOLL_FACE).getItemId()); + } + + if (t.getInventory().getPaperdollItem(Inventory.PAPERDOLL_CHEST) == null) + { + p.getDressMeData().setChestId(0); + } + else + { + p.getDressMeData().setChestId(t.getInventory().getPaperdollItem(Inventory.PAPERDOLL_CHEST).getItemId()); + } + if (t.getInventory().getPaperdollItem(Inventory.PAPERDOLL_LEGS) == null) + { + p.getDressMeData().setLegsId(0); + } + else + { + p.getDressMeData().setLegsId(t.getInventory().getPaperdollItem(Inventory.PAPERDOLL_LEGS).getItemId()); + } + if (t.getInventory().getPaperdollItem(Inventory.PAPERDOLL_GLOVES) == null) + { + p.getDressMeData().setGlovesId(0); + } + else + { + p.getDressMeData().setGlovesId(t.getInventory().getPaperdollItem(Inventory.PAPERDOLL_GLOVES).getItemId()); + } + if (t.getInventory().getPaperdollItem(Inventory.PAPERDOLL_FEET) == null) + { + p.getDressMeData().setBootsId(0); + } + else + { + p.getDressMeData().setBootsId(t.getInventory().getPaperdollItem(Inventory.PAPERDOLL_FEET).getItemId()); + } + + break; + } + } + + p.broadcastUserInfo(); + } /** * @param activeChar */ diff --git a/head-src/com/l2jfrozen/gameserver/network/serverpackets/CharInfo.java b/head-src/com/l2jfrozen/gameserver/network/serverpackets/CharInfo.java index 840eff9..1550b8f 100644 --- a/head-src/com/l2jfrozen/gameserver/network/serverpackets/CharInfo.java +++ b/head-src/com/l2jfrozen/gameserver/network/serverpackets/CharInfo.java @@ -230,18 +230,37 @@ writeD(_activeChar.getBaseClass()); } - writeD(_inv.getPaperdollItemId(Inventory.PAPERDOLL_DHAIR)); - writeD(_inv.getPaperdollItemId(Inventory.PAPERDOLL_HEAD)); - writeD(_inv.getPaperdollItemId(Inventory.PAPERDOLL_RHAND)); - writeD(_inv.getPaperdollItemId(Inventory.PAPERDOLL_LHAND)); - writeD(_inv.getPaperdollItemId(Inventory.PAPERDOLL_GLOVES)); - writeD(_inv.getPaperdollItemId(Inventory.PAPERDOLL_CHEST)); - writeD(_inv.getPaperdollItemId(Inventory.PAPERDOLL_LEGS)); - writeD(_inv.getPaperdollItemId(Inventory.PAPERDOLL_FEET)); - writeD(_inv.getPaperdollItemId(Inventory.PAPERDOLL_BACK)); - writeD(_inv.getPaperdollItemId(Inventory.PAPERDOLL_LRHAND)); - writeD(_inv.getPaperdollItemId(Inventory.PAPERDOLL_HAIR)); - writeD(_inv.getPaperdollItemId(Inventory.PAPERDOLL_FACE)); + if (!_activeChar.isDressMeEnabled()) + { + writeD(_inv.getPaperdollItemId(Inventory.PAPERDOLL_DHAIR)); + writeD(_inv.getPaperdollItemId(Inventory.PAPERDOLL_HEAD)); + writeD(_inv.getPaperdollItemId(Inventory.PAPERDOLL_RHAND)); + writeD(_inv.getPaperdollItemId(Inventory.PAPERDOLL_LHAND)); + writeD(_inv.getPaperdollItemId(Inventory.PAPERDOLL_GLOVES)); + writeD(_inv.getPaperdollItemId(Inventory.PAPERDOLL_CHEST)); + writeD(_inv.getPaperdollItemId(Inventory.PAPERDOLL_LEGS)); + writeD(_inv.getPaperdollItemId(Inventory.PAPERDOLL_FEET)); + writeD(_inv.getPaperdollItemId(Inventory.PAPERDOLL_BACK)); + writeD(_inv.getPaperdollItemId(Inventory.PAPERDOLL_LRHAND)); + writeD(_inv.getPaperdollItemId(Inventory.PAPERDOLL_HAIR)); + writeD(_inv.getPaperdollItemId(Inventory.PAPERDOLL_FACE)); + } + else + { + + writeD(_inv.getPaperdollObjectId(Inventory.PAPERDOLL_DHAIR)); + writeD(_inv.getPaperdollItemId(Inventory.PAPERDOLL_HEAD)); + writeD(_inv.getPaperdollItemId(Inventory.PAPERDOLL_RHAND)); + writeD(_inv.getPaperdollItemId(Inventory.PAPERDOLL_LHAND)); + writeD(_activeChar.getDressMeData() == null ? _activeChar.getInventory().getPaperdollItemId(Inventory.PAPERDOLL_GLOVES) : (_activeChar.getDressMeData().getGlovesId() == 0 ? _activeChar.getInventory().getPaperdollItemId(Inventory.PAPERDOLL_GLOVES) : _activeChar.getDressMeData().getGlovesId())); + writeD(_activeChar.getDressMeData() == null ? _activeChar.getInventory().getPaperdollItemId(Inventory.PAPERDOLL_CHEST) : (_activeChar.getDressMeData().getChestId() == 0 ? _activeChar.getInventory().getPaperdollItemId(Inventory.PAPERDOLL_CHEST) : _activeChar.getDressMeData().getChestId())); + writeD(_activeChar.getDressMeData() == null ? _activeChar.getInventory().getPaperdollItemId(Inventory.PAPERDOLL_LEGS) : (_activeChar.getDressMeData().getLegsId() == 0 ? _activeChar.getInventory().getPaperdollItemId(Inventory.PAPERDOLL_LEGS) : _activeChar.getDressMeData().getLegsId())); + writeD(_activeChar.getDressMeData() == null ? _activeChar.getInventory().getPaperdollItemId(Inventory.PAPERDOLL_FEET) : (_activeChar.getDressMeData().getBootsId() == 0 ? _activeChar.getInventory().getPaperdollItemId(Inventory.PAPERDOLL_FEET) : _activeChar.getDressMeData().getBootsId())); + writeD(_inv.getPaperdollItemId(Inventory.PAPERDOLL_BACK)); + writeD(_inv.getPaperdollItemId(Inventory.PAPERDOLL_RHAND)); + writeD(_activeChar.getDressMeData() == null ? _activeChar.getInventory().getPaperdollItemId(Inventory.PAPERDOLL_FACE) : (_activeChar.getDressMeData().getHelmetId() == 0 ? _activeChar.getInventory().getPaperdollItemId(Inventory.PAPERDOLL_FACE) : _activeChar.getDressMeData().getHelmetId())); + writeD(_inv.getPaperdollObjectId(Inventory.PAPERDOLL_HAIR)); + } // c6 new h's writeH(0x00); diff --git a/head-src/com/l2jfrozen/gameserver/network/serverpackets/UserInfo.java b/head-src/com/l2jfrozen/gameserver/network/serverpackets/UserInfo.java index ed24e1f..0fcbabb 100644 --- a/head-src/com/l2jfrozen/gameserver/network/serverpackets/UserInfo.java +++ b/head-src/com/l2jfrozen/gameserver/network/serverpackets/UserInfo.java @@ -139,6 +139,8 @@ writeD(_activeChar.getActiveWeaponItem() != null ? 40 : 20); // 20 no weapon, 40 weapon equippe + if (!_activeChar.isDressMeEnabled()) + { writeD(_activeChar.getInventory().getPaperdollObjectId(Inventory.PAPERDOLL_DHAIR)); writeD(_activeChar.getInventory().getPaperdollObjectId(Inventory.PAPERDOLL_REAR)); writeD(_activeChar.getInventory().getPaperdollObjectId(Inventory.PAPERDOLL_LEAR)); @@ -156,7 +158,7 @@ writeD(_activeChar.getInventory().getPaperdollObjectId(Inventory.PAPERDOLL_LRHAND)); writeD(_activeChar.getInventory().getPaperdollObjectId(Inventory.PAPERDOLL_HAIR)); writeD(_activeChar.getInventory().getPaperdollObjectId(Inventory.PAPERDOLL_FACE)); - + writeD(_activeChar.getInventory().getPaperdollItemId(Inventory.PAPERDOLL_DHAIR)); writeD(_activeChar.getInventory().getPaperdollItemId(Inventory.PAPERDOLL_REAR)); writeD(_activeChar.getInventory().getPaperdollItemId(Inventory.PAPERDOLL_LEAR)); @@ -174,6 +176,47 @@ writeD(_activeChar.getInventory().getPaperdollItemId(Inventory.PAPERDOLL_LRHAND)); writeD(_activeChar.getInventory().getPaperdollItemId(Inventory.PAPERDOLL_HAIR)); writeD(_activeChar.getInventory().getPaperdollItemId(Inventory.PAPERDOLL_FACE)); + } + else + { + writeD(_activeChar.getDressMeData() == null ? _activeChar.getInventory().getPaperdollItemId(Inventory.PAPERDOLL_DHAIR) : (_activeChar.getDressMeData().getHelmetId() == 0 ? _activeChar.getInventory().getPaperdollItemId(Inventory.PAPERDOLL_DHAIR) : _activeChar.getDressMeData().getHelmetId())); + + writeD(_activeChar.getInventory().getPaperdollObjectId(Inventory.PAPERDOLL_REAR)); + writeD(_activeChar.getInventory().getPaperdollObjectId(Inventory.PAPERDOLL_LEAR)); + writeD(_activeChar.getInventory().getPaperdollObjectId(Inventory.PAPERDOLL_NECK)); + writeD(_activeChar.getInventory().getPaperdollObjectId(Inventory.PAPERDOLL_RFINGER)); + writeD(_activeChar.getInventory().getPaperdollObjectId(Inventory.PAPERDOLL_LFINGER)); + writeD(_activeChar.getInventory().getPaperdollObjectId(Inventory.PAPERDOLL_HEAD)); + writeD(_activeChar.getDressMeData() == null ? _activeChar.getInventory().getPaperdollObjectId(Inventory.PAPERDOLL_RHAND) : (_activeChar.getDressMeData().getWeapId() == 0 ? _activeChar.getInventory().getPaperdollObjectId(Inventory.PAPERDOLL_RHAND) : _activeChar.getDressMeData().getWeapId())); + writeD(_activeChar.getInventory().getPaperdollObjectId(Inventory.PAPERDOLL_LHAND)); + writeD(_activeChar.getDressMeData() == null ? _activeChar.getInventory().getPaperdollObjectId(Inventory.PAPERDOLL_GLOVES) : (_activeChar.getDressMeData().getGlovesId() == 0 ? _activeChar.getInventory().getPaperdollObjectId(Inventory.PAPERDOLL_GLOVES) : _activeChar.getDressMeData().getGlovesId())); + writeD(_activeChar.getDressMeData() == null ? _activeChar.getInventory().getPaperdollObjectId(Inventory.PAPERDOLL_CHEST) : (_activeChar.getDressMeData().getChestId() == 0 ? _activeChar.getInventory().getPaperdollObjectId(Inventory.PAPERDOLL_CHEST) : _activeChar.getDressMeData().getChestId())); + writeD(_activeChar.getDressMeData() == null ? _activeChar.getInventory().getPaperdollObjectId(Inventory.PAPERDOLL_LEGS) : (_activeChar.getDressMeData().getLegsId() == 0 ? _activeChar.getInventory().getPaperdollObjectId(Inventory.PAPERDOLL_LEGS) : _activeChar.getDressMeData().getLegsId())); + writeD(_activeChar.getDressMeData() == null ? _activeChar.getInventory().getPaperdollObjectId(Inventory.PAPERDOLL_FEET) : (_activeChar.getDressMeData().getBootsId() == 0 ? _activeChar.getInventory().getPaperdollObjectId(Inventory.PAPERDOLL_FEET) : _activeChar.getDressMeData().getBootsId())); + writeD(_activeChar.getInventory().getPaperdollObjectId(Inventory.PAPERDOLL_BACK)); + writeD(_activeChar.getDressMeData() == null ? _activeChar.getInventory().getPaperdollObjectId(Inventory.PAPERDOLL_RHAND) : (_activeChar.getDressMeData().getWeapId() == 0 ? _activeChar.getInventory().getPaperdollObjectId(Inventory.PAPERDOLL_RHAND) : _activeChar.getDressMeData().getWeapId())); + writeD(_activeChar.getDressMeData() == null ? _activeChar.getInventory().getPaperdollItemId(Inventory.PAPERDOLL_HAIR) : (_activeChar.getDressMeData().getHelmetId() == 0 ? _activeChar.getInventory().getPaperdollItemId(Inventory.PAPERDOLL_HAIR) : _activeChar.getDressMeData().getHelmetId())); + writeD(_activeChar.getDressMeData() == null ? _activeChar.getInventory().getPaperdollItemId(Inventory.PAPERDOLL_FACE) : (_activeChar.getDressMeData().getHelmetId() == 0 ? _activeChar.getInventory().getPaperdollItemId(Inventory.PAPERDOLL_FACE) : _activeChar.getDressMeData().getHelmetId())); + + writeD(_activeChar.getDressMeData() == null ? _activeChar.getInventory().getPaperdollItemId(Inventory.PAPERDOLL_DHAIR) : (_activeChar.getDressMeData().getHelmetId() == 0 ? _activeChar.getInventory().getPaperdollItemId(Inventory.PAPERDOLL_DHAIR) : _activeChar.getDressMeData().getHelmetId())); + writeD(_activeChar.getInventory().getPaperdollItemId(Inventory.PAPERDOLL_REAR)); + writeD(_activeChar.getInventory().getPaperdollItemId(Inventory.PAPERDOLL_LEAR)); + writeD(_activeChar.getInventory().getPaperdollItemId(Inventory.PAPERDOLL_NECK)); + writeD(_activeChar.getInventory().getPaperdollItemId(Inventory.PAPERDOLL_RFINGER)); + writeD(_activeChar.getInventory().getPaperdollItemId(Inventory.PAPERDOLL_LFINGER)); + writeD(_activeChar.getInventory().getPaperdollItemId(Inventory.PAPERDOLL_HEAD)); + writeD(_activeChar.getDressMeData() == null ? _activeChar.getInventory().getPaperdollItemId(Inventory.PAPERDOLL_RHAND) : (_activeChar.getDressMeData().getWeapId() == 0 ? _activeChar.getInventory().getPaperdollItemId(Inventory.PAPERDOLL_RHAND) : _activeChar.getDressMeData().getWeapId())); + writeD(_activeChar.getInventory().getPaperdollItemId(Inventory.PAPERDOLL_LHAND)); + writeD(_activeChar.getDressMeData() == null ? _activeChar.getInventory().getPaperdollItemId(Inventory.PAPERDOLL_GLOVES) : (_activeChar.getDressMeData().getGlovesId() == 0 ? _activeChar.getInventory().getPaperdollItemId(Inventory.PAPERDOLL_GLOVES) : _activeChar.getDressMeData().getGlovesId())); + writeD(_activeChar.getDressMeData() == null ? _activeChar.getInventory().getPaperdollItemId(Inventory.PAPERDOLL_CHEST) : (_activeChar.getDressMeData().getChestId() == 0 ? _activeChar.getInventory().getPaperdollItemId(Inventory.PAPERDOLL_CHEST) : _activeChar.getDressMeData().getChestId())); + writeD(_activeChar.getDressMeData() == null ? _activeChar.getInventory().getPaperdollItemId(Inventory.PAPERDOLL_LEGS) : (_activeChar.getDressMeData().getLegsId() == 0 ? _activeChar.getInventory().getPaperdollItemId(Inventory.PAPERDOLL_LEGS) : _activeChar.getDressMeData().getLegsId())); + writeD(_activeChar.getDressMeData() == null ? _activeChar.getInventory().getPaperdollItemId(Inventory.PAPERDOLL_FEET) : (_activeChar.getDressMeData().getBootsId() == 0 ? _activeChar.getInventory().getPaperdollItemId(Inventory.PAPERDOLL_FEET) : _activeChar.getDressMeData().getBootsId())); + writeD(_activeChar.getInventory().getPaperdollItemId(Inventory.PAPERDOLL_BACK)); + writeD(_activeChar.getDressMeData() == null ? _activeChar.getInventory().getPaperdollItemId(Inventory.PAPERDOLL_RHAND) : (_activeChar.getDressMeData().getWeapId() == 0 ? _activeChar.getInventory().getPaperdollItemId(Inventory.PAPERDOLL_RHAND) : _activeChar.getDressMeData().getWeapId())); + writeD(_activeChar.getDressMeData() == null ? _activeChar.getInventory().getPaperdollItemId(Inventory.PAPERDOLL_HAIR) : (_activeChar.getDressMeData().getHelmetId() == 0 ? _activeChar.getInventory().getPaperdollItemId(Inventory.PAPERDOLL_HAIR) : _activeChar.getDressMeData().getHelmetId())); + writeD(_activeChar.getDressMeData() == null ? _activeChar.getInventory().getPaperdollItemId(Inventory.PAPERDOLL_FACE) : (_activeChar.getDressMeData().getHelmetId() == 0 ? _activeChar.getInventory().getPaperdollItemId(Inventory.PAPERDOLL_FACE) : _activeChar.getDressMeData().getHelmetId())); + + } writeH(0x00); writeH(0x00);
  9. Dungeon.xml <dungeon id="2" name="Quatro Hard Mode" players="4" rewards="6622,1;8762,3" rewardHtm="NULL">
  10. aiaiai você sonha mesmo ne irmão diz voce que e o brabo denegrindo as pessoa aiaiai senhor eu nem ia falar nada ia deixar você e dono da aCis no silencio fazer oque se você morre de inveja mano, fica assim não voce e bom pra caramba na suas coisas, mais deixa eu te dizer uma coisa sua arrogância e pensar que sabe mais do que os outros voce tomo um monte de BAN na suas conta, e outra coisa não so eu que procuro as pessoas sao elas que me procura, eu nao sou como você que fica mandando mensagem no privado de cada membro que posta uma duvida na L2jBrasil querendo vender sua Jone por favor ne irmao segura sua onda, nao tenho culpa das pessoa me procurar para fazer o servidor. Eu nem tinha que dizer isso aqui mais vou te explicar algumas coisas, EU não sou dono da aCis e muito menos troquei 2 palavras com o dono, quando eu nao sabia nada Bluur usava aCis e cria os pack dele, quando conheci e aprendi java, as pessoas compra diretamente dele so para me dar o codigo fonte, e foi assim que tudo começou eu so uso aCis comprada irmao nao uso aCis postada em lugar em um voce pode ver que o proprio dono fala que uso a versao dele oficial eu faço isso pra forçar ele lançar atualização da pack ou ele faz isso e melhora o pack ou eu mesmo faço... ele cuida do retail e caso aparece alguma coisa errada eu apenas olho em qual quer rev que existe e faço a correção sem problema agora voces falar que tudo e feito pelo dono da acis foi o melhor eu fico rindo de vocês nos somos mais de 40 Vip extrem bro e digo mais, não entrei em contato com nem um deles eles acharam minha midia e vieram me chamar desculpa se L2jDev quebro voces tudo no meio. Mais saiba de uma coisa sempre falei com todos da mesma forma, eu fazia servidor e items mods tudo free pra quebrar essa patotinha de cara que acha que so ele sabe java para l2j dono da aCis tem 3 poste a conta e de 2012 se ele comento aqui e porque chamo atenção ate dele agora ta com inveja porque ele nunca entro no seu forum. voce tambem usa aCis bb fica triste não aqui e apenas o compilado do meu projeto feito para l2jbrasil as pessoas me paga para criar tudo irmão eu apenas crio as coisas para as pessoas nao me importo com seu comentário muito menos o dele, e quando ele lançar outra aCis 406 eu vou ter tambem ele nao pode me segurar ele vende o codigo fonte e euro e dolar pra me e facil eu tenho muitos amigos cara em todo esse planeta 100 euro pro meus amigo e dinheiro de cerveja pra eles eles compra so pra eu colocar meu mods no servidor voce pode entrar no forum aCis sao os mesmo topico sempre nada muda ai voce olha no meu todos interagir e postar coisas privadas voces deve morrer de odio mesmo tenho culpa da repercussão não bro e isso nao vai acabar pelo seu comentário por mais que voce tente fazer isso da certo sempre vai dar errado
  11. precisa nao meu querido ja vem prontinho essa ai tudo em xml e um pouco diferente fico como Lucera agora por xml muita coisa
  12. voce deve olhar em data/xml/SummonItem.xml criar um semelhate puxando o ID Mostro <item id="4424" npcId="12528" summonType="1"/><!-- Twilight Strider --> Depois coloca em NpcName e NpcGrp crie um xml para os pet la em data/xml/npc/ e cria eles como um pet strider pega a referencia dele e faz outro com outro ID igual dos Pets de download
  13. voce deve buscar seu tutorial aqui prestar bastante atenção e fazer da sua melhor forma
  14. @yycarvalho Seu Link esta Off Se ainda tiver os arquivos reposte para a galera ou mande um PM para algum moderador para atualizar o tópico obrigado.
  15. vou verificar uma config para a mudança o ou ativação da Soushot
  16. voce deve criar um local em zone/Arenazone.xml Abrir os arquivos dos evento e mudar localidade usando in-game /loc e direcionando o time pra cada lado voce deve abrir o html do buffer e verificar id e quantidade que sera cobrado ou olhar nas config
  17. Hi nonameNpc good as you even know the sale was not made within the JBR. You talk to me for months to days before your purchase. Being that your amount has already been refunded even taking all the files with me since we gave problem. you now get the files and your money. its value has already been delivered along with the filles soucer + web so I regret to say the scam I did not give Ty Bro ♥ don't be sad now you have everything as you wish ----- Oi nonameNpc bom como você até sabe a venda não foi feita dentro do JBR. Você fala comigo por meses a dias antes de sua compra. Sendo que seu valor já foi reembolsado mesmo levando todos os arquivos comigo desde que demos problema. agora você recebe os arquivos e seu dinheiro. seu valor já foi entregue junto com os filles soucer + web então lamento dizer o golpe que não dei Ty Bro ♥ não fique triste agora você tem tudo como deseja
  18. voce deve fazer seu html procura em mods/menu alguma coisa com nome de skin que voce deve achar
  19. faça seu melhor esta ai servidor codigo fonte faça um bom uso eu fiz para voces todos usarem mesmo e acredite eu fiquei por meses criando coisas
  20. depende de voce que fique claro os link nunca caiu dez de 2020 e veja a quantidade e tire suas proprias ideias sim ele pode ser coloca online sem problemas agora se vai ser um bom servidor voce tera que montar e dizer ao final o que achou! [Hidden Content]
  21. sao 2 html o grad A e escrito em core ja os outros estao escrito nos arquivos verifica os ids e remove a parte do htm que nao esta sendo usado
  22. classItemsRestrictions.zip voce deve usar //create_zone e criar sua zona propria e colocar o arquivos ChaoticZone.xml em data/zones essa e minha casa meu brother e eu sou moderador o mínimo e contribuir com vocês. minha versão vip e para os user que deseja suporte em tempo real suporte remotamente soucer files entre outras coisa...
  23. ta te dizendo que a past LIB dentro da pasta do arquivo bat nao existe procura a pasta lib e coloque ela no caminho que CMD diz
×
×
  • Criar Novo...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.