Search the Community

Showing results for tags 'l2jacis'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Categories

  • Lineage II Server Packs [Java]
  • Lineage II Server Packs [PTS]
  • Lineage II Server Scripts
  • Lineage II Client Scripts
  • Lineage II Items & Chars
  • Website Templates

Categories

  • Articles

Forums

  • General Zone
    • Announcements and News
    • Newbies Introduce Urself
    • Maxcheaters Competitions & Events
    • Votes/Polls Area
    • Report Section
    • Downloads Section
  • Lineage II General Section
    • General Discussion [English]
    • Request Support [English]
  • Lineage II Hacks,Cheats and Bots
    • Hacks & Cheats [English]
    • Request Hacks & Cheats [English]
    • Botting [English]
    • Request Botting [English]
  • Lineage II Private Servers
    • E-Global - Modern Interlude x7
    • Private Servers
    • L2Mordor.com - Interlude [x27] - Grand Opening 4 May!
    • [Previews] L2 Private Servers
    • Clans and Alliances
  • Lineage II Marketplace
    • Marketplace [Items & Chars]
    • Marketplace [L2Packs & Files]
    • Marketplace [Powerlvl & Support]
  • Lineage II OFF Server Development
    • Server Development Discussion [L2OFF]
    • Request Server Development Help [L2OFF]
    • Server Shares & Files [L2OFF]
  • Lineage II Java Server Development
    • Server Development Discussion [L2J]
    • Request Server Development Help [L2J]
    • Server Shares & Files [L2J]
    • Private Projects [L2J]
  • Lineage II Client Development
    • Client Development Discussion
  • MMO Games
    • League of Legends
    • World Of Warcraft Area
    • Other Multiplayer Games
  • General Section
    • General Marketplace
    • Consoles/Mobiles/PDA Gaming Zone
    • Webmasters Zone
    • Hacking/Coding Zone
  • Graphics/GFX Zone
    • Graphics/GFX General Discussion
    • Graphics/GFX Showcase
    • Graphics/GFX Resources/Tools
  • VIP/SVIP/Donators Zone
    • VIPs/Donators Discussion
    • VIPs Lineage II
    • VIPs [GFX] Zone
    • VIPs Download Area
  • MaxCheaters Corner
    • Tech/World News
    • Off-Topics
    • Spam Topics
  • TEST's Topics

Found 8 results

  1. Hello guys, Long time ago, i had to create zone using NPoly and due to fact that is pain in the ass, i've decided to make this code. It's not unique, it's just slightly helpful thing which is going to make your life easier and save a bit time. To understand how the zones work take a look @SweeTs topic. You will understand many things. What is it? You have to select the zone type (NPoly,Cuboid,Cylinder) Set the coordinates (//saveLoc will store the current loc) Once you set all the locs you can save it in xml via the button Store or //storeLocs The Z distance can be found zDifference ( i made it 1000 as default but its up to you and the zone). P.S Im so lazy to make the htmls good. (even the first one , its not my job :P) coded for aCis 374
  2. When 2 or more cardinals or other healers in one party the heal gets nerfed net.sf.l2j.gameserver.handler.skillhandlers.heal.java public void useSkill(Creature activeChar, L2Skill skill, WorldObject[] targets) { +int healers = 0; +int minus = 2; + + if (activeChar.getParty() != null) +{ + for (Player player : activeChar.getParty().getMembers()) + { + if (player != null && player.getClassId().getId() == 97) + { + healers++; + + if (minus != 2 && (player.getPvpFlag() != 0 || player.getKarma() > 0)) + minus = 2; + } + } +} //go here hp = power; hp *= target.calcStat(Stats.HEAL_EFFECTIVNESS, 100, null, null) / 100; } //and paste this too +if (healers >= 2) // 2 or more healers in party +{ + int nerfValue = (2 + (healers - minus)); + hp /= nerfValue; + } // If you have full HP and you get HP buff, u will receive 0HP restored message
  3. Hello i found something that i didnt think of and i cant fix it that when i kill a mob the drop i have put on this if it is more than 1 it has to be shared to every one in the party but i dont know how but i doesnt getting shared here is what i mean i killed this mob 3 times and http://prntscr.com/ifoopd ..i've tried changing by here but nothing. public void distributeItem(Player player, ItemInstance item) { if (item.getItemId() == 57 && item.getItemId() == 6577) { distributeAdena(player, item.getCount(), player); ItemTable.getInstance().destroyItem("Party", item, player, null); return; } and here public void distributeItem(Player player, IntIntHolder item, boolean spoil, Attackable target) { if (item == null) return; if (item.getId() == 57 && item.getId() == 6577) { distributeAdena(player, item.getValue(), target); return; }
  4. Added bug report for acis 372, and when sending without a message, this error is skipped. How can you solved? code: /* * 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 net.sf.l2j.gameserver.model.actor.instance; import java.io.BufferedWriter; import java.io.File; import java.io.FileWriter; import java.util.StringTokenizer; import net.sf.l2j.commons.random.Rnd; import net.sf.l2j.gameserver.model.World; import net.sf.l2j.gameserver.model.actor.Npc; import net.sf.l2j.gameserver.model.actor.ai.CtrlIntention; import net.sf.l2j.gameserver.model.actor.template.NpcTemplate; import net.sf.l2j.gameserver.network.L2GameClient; import net.sf.l2j.gameserver.network.clientpackets.Say2; import net.sf.l2j.gameserver.network.serverpackets.ActionFailed; import net.sf.l2j.gameserver.network.serverpackets.CreatureSay; import net.sf.l2j.gameserver.network.serverpackets.MoveToPawn; import net.sf.l2j.gameserver.network.serverpackets.NpcHtmlMessage; /** * @author squallcs * * @Reworked Abyssal */ public class L2BugReportInstance extends Folk { private static String _type; public L2BugReportInstance(int objectId, NpcTemplate template) { super(objectId, template); } @Override public void onBypassFeedback(Player player, String command) { if (command.startsWith("send_report")) { StringTokenizer st = new StringTokenizer(command); st.nextToken(); String msg = ""; String type = null; type = st.nextToken(); st.nextToken(); try { while (st.hasMoreTokens()) { msg = msg + " " + st.nextToken(); } sendReport(player, type, msg); } catch (StringIndexOutOfBoundsException e) { } } } static { new File("log/BugReports/").mkdirs(); } private void sendReport(Player player, String command, String msg) { String type = command; L2GameClient info = player.getClient().getConnection().getClient(); if (type.equals("General")) _type = "General"; if (type.equals("Fatal")) _type = "Fatal"; if (type.equals("Misuse")) _type = "Misuse"; if (type.equals("Balance")) _type = "Balance"; if (type.equals("Other")) _type = "Other"; try { String fname = "log/BugReports/" + player.getName() + ".txt"; File file = new File(fname); boolean exist = file.createNewFile(); if (!exist) { player.sendMessage("You have already sent a bug report, GMs must check it first."); return; } FileWriter fstream = new FileWriter(fname); BufferedWriter out = new BufferedWriter(fstream); out.write("Character Info: " + info + "\r\nBug Type: " + _type + "\r\nMessage: " + msg); player.sendMessage("Report sent. GMs will check it soon. Thanks..."); for (Player allgms : World.getInstance().getPlayers()) allgms.sendPacket(new CreatureSay(0, Say2.SHOUT, "Bug Report Manager", player.getName() + " sent a bug report.")); System.out.println("Character: " + player.getName() + " sent a bug report."); out.close(); } catch (Exception e) { player.sendMessage("Something went wrong try again."); } } @Override public void onAction(Player player) { // Set the target of the player if (player.getTarget() != this) player.setTarget(this); else { // Check if the player is attackable (without a forced attack) and isn't dead if (isAutoAttackable(player)) { player.getAI().setIntention(CtrlIntention.ATTACK, this); } else { // Calculate the distance between the Player and the L2Npc if (!canInteract(player)) { // Notify the Player AI with INTERACT player.getAI().setIntention(CtrlIntention.INTERACT, this); } else { // Stop moving if we're already in interact range. if (player.isMoving()) player.getAI().setIntention(CtrlIntention.IDLE); // Rotate the player to face the instance player.sendPacket(new MoveToPawn(player, this, Npc.INTERACTION_DISTANCE)); // Send ActionFailed to the player in order to avoid he stucks player.sendPacket(ActionFailed.STATIC_PACKET); if (hasRandomAnimation()) onRandomAnimation(Rnd.get(8)); showHtmlWindow(player); } } } } private void showHtmlWindow(Player activeChar) { NpcHtmlMessage nhm = new NpcHtmlMessage(5); StringBuilder replyMSG = new StringBuilder(""); replyMSG.append("<html><title>Bug Report Manager</title>"); replyMSG.append("<body><br><br><center>"); replyMSG.append("<table border=0 height=10 bgcolor=\"444444\" width=240>"); replyMSG.append("<tr><td align=center><font color=\"00FFFF\">Hello " + activeChar.getName() + ".</font></td></tr>"); replyMSG.append("<tr><td align=center><font color=\"00FFFF\">There are no Gms online</font></td></tr>"); replyMSG.append("<tr><td align=center><font color=\"00FFFF\">and you want to report something?</font></td></tr>"); replyMSG.append("</table><br>"); replyMSG.append("<img src=\"L2UI.SquareWhite\" width=280 height=1><br><br>"); replyMSG.append("<table width=250><tr>"); replyMSG.append("<td><font color=\"LEVEL\">Select Report Type:</font></td>"); replyMSG.append("<td><combobox width=105 var=type list=General;Fatal;Misuse;Balance;Other></td>"); replyMSG.append("</tr></table><br><br>"); replyMSG.append("<multiedit var=\"msg\" width=250 height=50><br>"); replyMSG.append("<br><img src=\"L2UI.SquareWhite\" width=280 height=1><br><br><br><br><br><br><br>"); replyMSG.append("<button value=\"Send Report\" action=\"bypass -h npc_" + getObjectId() + "_send_report $type $msg\" width=204 height=20 back=\"sek.cbui75\" fore=\"sek.cbui75\">"); replyMSG.append("</center></body></html>"); nhm.setHtml(replyMSG.toString()); activeChar.sendPacket(nhm); activeChar.sendPacket(ActionFailed.STATIC_PACKET); } } error: http://joxi.net/5mdqa9ZSv7lK52 thanks!
  5. Hello i'm trying to make acis pack max level 90 experience is edited like thi s package net.sf.l2j.gameserver.model.base; public class Experience { public static final long LEVEL[] = { -1L, // level 0 (unreachable) 0L, 68L, 363L, 1168L, 2884L, 6038L, 11287L, 19423L, 31378L, 48229L, // level 10 71201L, 101676L, 141192L, 191452L, 254327L, 331864L, 426284L, 539995L, 675590L, 835854L, // level 20 1023775L, 1242536L, 1495531L, 1786365L, 2118860L, 2497059L, 2925229L, 3407873L, 3949727L, 4555766L, // level 30 5231213L, 5981539L, 6812472L, 7729999L, 8740372L, 9850111L, 11066012L, 12395149L, 13844879L, 15422851L, // level 40 17137002L, 18995573L, 21007103L, 23180442L, 25524751L, 28049509L, 30764519L, 33679907L, 36806133L, 40153995L, // level 50 45524865L, 51262204L, 57383682L, 63907585L, 70852742L, 80700339L, 91162131L, 102265326L, 114038008L, 126509030L, // level 60 146307211L, 167243291L, 189363788L, 212716741L, 237351413L, 271973532L, 308441375L, 346825235L, 387197529L, 429632402L, // level 70 474205751L, 532692055L, 606319094L, 696376867L, 804219972L, 931275828L, 1151275834L, 1511275834L, 2099275834L, 4200000000L, // level 80 6299994999L, 10499905559L, 16800005559L, 27299995559L, 44100005559L, // level 85 71400000000L, 115500000000L, 186900000000L, 302400000000L, 489300000000L,// level 90 791700000000L }; /** * This is the first UNREACHABLE level.<BR> * ex: If you want a max at 90 & 99.99%, you have to put 91.<BR> * <BR> */ public static final byte MAX_LEVEL = 91; } but i cant figure out how to edit the classes <class id="93"><!-- Adventurer --> <set name="str" val="40" /> <set name="con" val="43" /> <set name="dex" val="30" /> <set name="int" val="21" /> <set name="wit" val="11" /> <set name="men" val="25" /> <set name="pAtk" val="4" /> <set name="pDef" val="80" /> <set name="mAtk" val="6" /> <set name="mDef" val="41" /> <set name="runSpd" val="115" /> <set name="walkSpd" val="80" /> <set name="swimSpd" val="50" /> <set name="spawnX" val="-71338" /> <set name="spawnY" val="258271" /> <set name="spawnZ" val="-3104" /> <set name="radius" val="9" /> <set name="radiusFemale" val="8" /> <set name="height" val="23" /> <set name="heightFemale" val="23.5" /> <set name="baseLvl" val="76" /> <set name="hpTable" val="80;91.83;103.79;115.88;128.1;140.45;152.93;165.54;178.28;191.15;204.15;217.28;230.54;243.93;257.45;271.1;284.88;298.79;312.83;327;354.5;382.25;410.25;438.5;467;495.75;524.75;554;583.5;613.25;643.25;673.5;704;734.75;765.75;797;828.5;860.25;892.25;924.5;966.1;1008.02;1050.26;1092.82;1135.7;1178.9;1222.42;1266.26;1310.42;1354.9;1399.7;1444.82;1490.26;1536.02;1582.1;1628.5;1675.22;1722.26;1769.62;1817.3;1865.3;1913.62;1962.26;2011.22;2060.5;2110.1;2160.02;2210.26;2260.82;2311.7;2362.9;2414.42;2466.26;2518.42;2570.9;2623.7;2676.82;2730.26;2784.02;2838.1" /> <set name="mpTable" val="30;35.46;40.98;46.56;52.2;57.9;63.66;69.48;75.36;81.3;87.3;93.36;99.48;105.66;111.9;118.2;124.56;130.98;137.46;144;153.9;163.89;173.97;184.14;194.4;204.75;215.19;225.72;236.34;247.05;257.85;268.74;279.72;290.79;301.95;313.2;324.54;335.97;347.49;359.1;378.6;398.25;418.05;438;458.1;478.35;498.75;519.3;540;560.85;581.85;603;624.3;645.75;667.35;689.1;711;733.05;755.25;777.6;800.1;822.75;845.55;868.5;891.6;914.85;938.25;961.8;985.5;1009.35;1033.35;1057.5;1081.8;1106.25;1130.85;1155.6;1180.5;1205.55;1230.75;1256.1" /> <set name="cpTable" val="32;36.732;41.516;46.352;51.24;56.18;61.172;66.216;71.312;76.46;81.66;86.912;92.216;97.572;102.98;108.44;113.952;119.516;125.132;130.8;141.8;152.9;164.1;175.4;186.8;198.3;209.9;221.6;233.4;245.3;257.3;269.4;281.6;293.9;306.3;318.8;331.4;344.1;356.9;369.8;386.44;403.208;420.104;437.128;454.28;471.56;488.968;506.504;524.168;541.96;559.88;577.928;596.104;614.408;632.84;651.4;670.088;688.904;707.848;726.92;746.12;765.448;784.904;804.488;824.2;844.04;864.008;884.104;904.328;924.68;945.16;965.768;986.504;1007.368;1028.36;1049.48;1070.728;1092.104;1113.608;1135.24" /> <skillTrees> <!-- Wisdom --> <skill id="328" lvl="1" sp="12500000" minLvl="76" /> <!-- Skill Mastery --> <skill id="330" lvl="1" sp="14670000" minLvl="77" /> <!-- Focus Skill Mastery --> <skill id="334" lvl="1" sp="16000000" minLvl="78" /> <!-- Lethal Blow --> <skill id="344" lvl="1" sp="12500000" minLvl="76" /> <!-- Focus Chance --> <skill id="356" lvl="1" sp="16000000" minLvl="78" /> <!-- Focus Power --> <skill id="357" lvl="1" sp="16000000" minLvl="78" /> <!-- Bluff --> <skill id="358" lvl="1" sp="14670000" minLvl="77" /> <!-- Battle Force --> <skill id="426" lvl="1" sp="14670000" minLvl="77" /> <!-- Assassination --> <skill id="432" lvl="1" sp="16000000" minLvl="78" /> <!-- Mirage --> <skill id="445" lvl="1" sp="80000000" minLvl="79" /> <!-- Symbol of the Assassin --> <skill id="460" lvl="1" sp="150000000" minLvl="80" /> <!-- Divine Inspiration --> <skill id="1405" lvl="3" sp="0" minLvl="76" /> <skill id="1405" lvl="4" sp="0" minLvl="76" /> </skillTrees> </class>
  6. Hello here is a pvp auto enchant code for acis when you kill some you have a chance to get a random item from yours by +1 http://prntscr.com/i451wk go to net/sf/l2j/gameserver/model/actor/instance/player.java find this protected int _classIndex; and put this /** Pvp enchant System **/ private int rewardConsecutiveKillCount = 0; like that protected int _classIndex; /** Pvp enchant System **/ private int rewardConsecutiveKillCount = 0; next find this // Add PvP point to attacker. setPvpKills(getPvpKills() + 1); and paste this rewardConsecutiveKillCount++; like that // Add PvP point to attacker. setPvpKills(getPvpKills() + 1); rewardConsecutiveKillCount++; and under this rewardConsecutiveKillCount++; paste all this final ItemInstance pvpwep = getInventory().getPaperdollItem(Inventory.PAPERDOLL_RHAND); final ItemInstance pvphead = getInventory().getPaperdollItem(Inventory.PAPERDOLL_HEAD); final ItemInstance pvpgloves = getInventory().getPaperdollItem(Inventory.PAPERDOLL_GLOVES); final ItemInstance pvpchest = getInventory().getPaperdollItem(Inventory.PAPERDOLL_CHEST); final ItemInstance pvplegs = getInventory().getPaperdollItem(Inventory.PAPERDOLL_LEGS); final ItemInstance pvpfeet = getInventory().getPaperdollItem(Inventory.PAPERDOLL_FEET); final ItemInstance pvpneck = getInventory().getPaperdollItem(Inventory.PAPERDOLL_NECK); final ItemInstance pvplf = getInventory().getPaperdollItem(Inventory.PAPERDOLL_LFINGER); final ItemInstance pvprf = getInventory().getPaperdollItem(Inventory.PAPERDOLL_RFINGER); if (rewardConsecutiveKillCount >= Config.PVP_COUNT_TILL_ENCHANTMENT && Config.ENABLE_PVP_ENCHANTMENT) { switch (Rnd.get(9)) { case 0: { pvpwep.setEnchantLevel(pvpwep.getEnchantLevel() + 1); sendMessage("Your " + getInventory().getPaperdollItem(Inventory.PAPERDOLL_RHAND) + "has been enchanted by +1 due to your pvp kills"); rewardConsecutiveKillCount = 0; break; } case 1: { pvphead.setEnchantLevel(pvphead.getEnchantLevel() + 1); sendMessage("Your " + getInventory().getPaperdollItem(Inventory.PAPERDOLL_HEAD) + "has been enchanted by +1 due to your pvp kills"); rewardConsecutiveKillCount = 0; break; } case 2: { pvpgloves.setEnchantLevel(pvpgloves.getEnchantLevel() + 1); sendMessage("Your " + getInventory().getPaperdollItem(Inventory.PAPERDOLL_GLOVES) + "has been enchanted by +1 due to your pvp kills"); rewardConsecutiveKillCount = 0; break; } case 3: { pvpchest.setEnchantLevel(pvpchest.getEnchantLevel() + 1); sendMessage("Your " + getInventory().getPaperdollItem(Inventory.PAPERDOLL_CHEST) + "has been enchanted by +1 due to your pvp kills"); rewardConsecutiveKillCount = 0; break; } case 4: { pvplegs.setEnchantLevel(pvplegs.getEnchantLevel() + 1); sendMessage("Your " + getInventory().getPaperdollItem(Inventory.PAPERDOLL_LEGS) + "has been enchanted by +1 due to your pvp kills"); rewardConsecutiveKillCount = 0; break; } case 5: { pvpfeet.setEnchantLevel(pvpfeet.getEnchantLevel() + 1); sendMessage("Your " + getInventory().getPaperdollItem(Inventory.PAPERDOLL_FEET) + "has been enchanted by +1 due to your pvp kills"); rewardConsecutiveKillCount = 0; break; } case 6: { pvpneck.setEnchantLevel(pvpneck.getEnchantLevel() + 1); sendMessage("Your " + getInventory().getPaperdollItem(Inventory.PAPERDOLL_NECK) + "has been enchanted by +1 due to your pvp kills"); rewardConsecutiveKillCount = 0; break; } case 7: { pvplf.setEnchantLevel(pvplf.getEnchantLevel() + 1); sendMessage("Your " + getInventory().getPaperdollItem(Inventory.PAPERDOLL_LFINGER) + "has been enchanted by +1 due to your pvp kills"); rewardConsecutiveKillCount = 0; break; } case 8: { pvprf.setEnchantLevel(pvprf.getEnchantLevel() + 1); sendMessage("Your " + getInventory().getPaperdollItem(Inventory.PAPERDOLL_RFINGER) + "has been enchanted by +1 due to your pvp kills"); rewardConsecutiveKillCount = 0; break; } } } go to net/sf/l2j find this public static boolean ALT_GAME_SUBCLASS_WITHOUT_QUESTS; and paste this like that public static boolean ALT_GAME_SUBCLASS_WITHOUT_QUESTS; /** PvP auto enchant system */ public static boolean ENABLE_PVP_ENCHANTMENT; public static int PVP_COUNT_TILL_ENCHANTMENT; find this ALT_GAME_SUBCLASS_WITHOUT_QUESTS = players.getProperty("AltSubClassWithoutQuests", false); and put this like that ALT_GAME_SUBCLASS_WITHOUT_QUESTS = players.getProperty("AltSubClassWithoutQuests", false); ENABLE_PVP_ENCHANTMENT = players.getProperty("EnablePvpEnchantSystem", false); PVP_COUNT_TILL_ENCHANTMENT = players.getProperty("PvpCountTillEnchanment", 20); go to config/players.properties #=================================# #== by thelwhelprepaidia ==# #== Pvp Enchant System ==# #=================================# #By enabling this then every X pvp #in a row the player will get randomly #a part of his armor,weapon or jewel that #is currently equiped automatically enchanted #To enable the system set True below EnablePvpEnchantSystem = True #Every how many kills you want the chars to be #awared with +1? PvpCountTillEnchanment = 20 And you are done. credits Elfocrash
  7. Hello, We have started with a new project. We are looking for a talented l2jaCis developer. Requirements: - free time - good l2jaCis knowledge. We offer: - dedicated server - all need payments - 40% from donation system ( server start date 1.03.2018 ) - website is ready ( forum included ) - ready files to work with on the server Anyone who wants to particiapte just pm me. Mike
  8. Hello members, I made an event because Christmas is coming I made it with xml version ( i like it more..) Here's the video: Source Files Npc's Credits for the awesome htmls : @Sinister Smile What is this event? When a mob dies there is a chance to spawn santa boy/girl and get some rewards. I do not think you need more explainations... Check the xml and set it as you wish! (Rewards are unlimited but one of them will be chosen) Edit: Coded in acis 372 Updates: ConcurrentHashMap replace by ArrayList ty @Tryskell Override onSpawn method removed in SantaClaus instance ty @Tryskell Xml reworked (removed id) Fixed html path Fixed 1 bug while storing rewards. Added npc's link