Jump to content

Search the Community

Showing results for tags 'code'.

More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


  • Lineage II Server Packs [Java]
  • Lineage II Server Packs [PTS]
  • Lineage II Server Scripts
  • Lineage II Client Scripts
  • Lineage II Items & Chars
  • Website Templates
  • DenArt Designs's Demo Updater


  • 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
    • Buy Advertising Link #1
    • Private Servers
    • Buy Advertising Link #2
    • [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
  • L2Classic Club's Just trying this thing out
  • Lineage 2 Revolution Club's Discussions
  • Lineage 2 Revolution Club's Tutorials
  • Lineage 2 Revolution Club's Request Help
  • DenArt Designs's Hello and welcome to my club!
  • DenArt Designs's News

Product Groups

  • Advertisements
  • Special Groups

Find results in...

Find results that contain...

Date Created

  • Start


Last Updated

  • Start


Filter by number of...


  • Start





Website URL







Found 33 results

  1. Hello i want to share this ingame balancer its for acis 372 its useless for me now. Files/Code: https://www101.zippyshare.com/v/nMPZpOej/file.html
  2. Hello guys! I use this TvT Event and I have add/fix/remove some things. If you have already this event you will understand what I mean. Removed useless lines/methods. Isn't something special but I wanted to share with you. Mana potions/Escape scrolls,skills fixed. Problems with NPC respawn/spawn. Added Respawn delay on die, Noblesse on die, Do not lose buffs (with config), Reward after 5/8/12/15/20 kills without die & announce the name of player with the count of kills without die. (if you die, kills goes 0 again). You can find the option of the kills count on TvTEvent.java [Watch the lines]. Players can't be healed on event (with config). .tvtjoin / .tvtleave / .tvtstatus Config/Npc [http://pastebin.com/xUd4bJhN] Core [http://pastebin.com/vkGuh57i] Core FOR 360+ rev [http://pastebin.com/ZF85SVBk] Systextures-html [https://dir50.com/6kww37s9u3dy/Systextures-html.rar.html] LINK 2 [if you find problem]
  3. Hello guys, I had a request to make a donation manager but when i finished the guy decided to not open his server (wtf?) so the npc is now useless to me. What is this? A donation manager that selling packages with items and stats like nobl,rec etc. Categories can be added easily i will explain later Current added categories: Bronze,Silver,Gold,Platinum,Diamond,Master,Grandmaster How to configure it? Its configurable via xml How i can add items? <Package item="57,500"/> Will have as a reward 500 adena. How i can add enchanted item? <Package item="7575,1" enchant ="15"/> Will have as reward draconic bow +15 How to add stats like nobl? <Package noblesse="true"/> <Package autoDyes="true"/> <Package rec="50"/> It is can handle noblesse,auto dyes (depends on the current class of the player) and recommends. Some photos: I wont upload video ... I'm not sure about in which aCis rev is coded but it does not matter. Also i'm not friend with html designs, so don't hit me :D P.s Auto dyes system is setted up by my opinion about dyes. You can easily edit it in DonationDyes.java code data/html/mods/donate/ data/xml
  4. Hello, I will start explanation immediately. You all know that Top pvp doesn't mean Top player, right? Who is the best to 'judge' it? Players of course. So players can vote for the best of the server ( God ) , and every week the period ends. The player who has the most votes is the God of the server till period ends! In every period God is changed (unless current God has again the most votes). Every period ends at Sunday 00:01:00. (it's a cool time for that :P ). I will appreciate it if I see it in any server online around because it has sense as a feature , read my first 'question' of explanation again :P Must Read: You can vote offline players of course You cannot vote yourself ( lol ) You vote once in every period! You can see current ranking All can see who is the server's god in the God Manager All can see time remaining till period ends. There is //end_god admin command to end it manually (for every reason) No case sensitive in 'vote a player' textfield ADDED IP PROTECTION. God Manager is updating every 30 seconds! In next version updates (very very soon): Some basic god functions ( like announcements when login, hero , etc. It's the easiest part ! ) Watch this in HD full screen Code: http://pastebin.com/ERp6wsU0 For any bugs: geo.lioy (skype)
  5. Nothing special, just some small trivia engine I wrote back in 2012 for my server that I haven't been using since then because I dropped out this feature, so I leave it here if someone finds use for it package drake.aepvp.l2event; import java.io.BufferedReader; import java.io.File; import java.io.FileReader; import java.text.DecimalFormat; import java.util.ArrayList; import l2.ae.pvp.gameserver.ThreadPoolManager; import l2.ae.pvp.gameserver.model.actor.instance.L2PcInstance; import l2.ae.pvp.gameserver.network.serverpackets.CreatureSay; import l2.ae.pvp.gameserver.util.Broadcast; import l2.ae.pvp.gameserver.util.Util; import l2.ae.pvp.util.Rnd; public class TriviaEngine { private static final ArrayList<TriviaTemplate> _trivias = new ArrayList<>(); public TriviaEngine() { final File file = new File("./data/trivia.txt"); try (BufferedReader reader = new BufferedReader(new FileReader(file))) { String line; while ((line = reader.readLine()) != null) { final String[] explode = line.split(" - "); _trivias.add(new TriviaTemplate(explode[0], explode[1])); } System.out.println("Succesfully loaded " + _trivias.size() + " Trivia Quizes!"); } catch (final Exception e) { e.printStackTrace(); System.out.println("Unsuccesfully loaded " + _trivias.size() + " Trivia Quizes!"); } if (_trivias.size() > 10) ThreadPoolManager.getInstance().scheduleGeneralAtFixedRate(() -> { TriviaEvent.currentTrivia = new TriviaEvent(); }, 1800000, 1600000 + Rnd.get(400000)); } public static class TriviaEvent { private static TriviaEvent currentTrivia; private static DecimalFormat df = new DecimalFormat("###.##"); private final long startTime = System.currentTimeMillis(); private L2PcInstance closeAnswer; private final TriviaTemplate trivia; public TriviaEvent() { trivia = Util.getRandomItem(_trivias); Broadcast(trivia.getQuestion()); Broadcast("PM \"trivia with the answer."); ThreadPoolManager.getInstance().scheduleGeneral(() -> { if (currentTrivia == this) { Broadcast("The correct answer was " + trivia.getAnswer() + ", unfortunately nobody found the answer before the deadline."); if (closeAnswer != null) { Broadcast(closeAnswer.getName() + " wins a small reward for being close enough!"); reward(closeAnswer, 0); } currentTrivia = null; } }, 90000); } private long getTimePassedMillis() { return System.currentTimeMillis() - startTime; } public void check(final L2PcInstance player, String answer) { final long timePassed = getTimePassedMillis(); toTrivia(player, answer, timePassed); answer = answer.toLowerCase(); final String correct = trivia.getAnswer().toLowerCase(); if (answer.equals(correct)) { fromTrivia(player, "That is the correct answer!"); reward(player, timePassed); Broadcast(player.getName() + " found the answer in " + format(timePassed) + " seconds!"); Broadcast("The correct answer was " + trivia.getAnswer() + "."); currentTrivia = null; } else if (answer.length() > 1 && (correct.indexOf(answer) != -1 || correct.startsWith(answer) || correct.endsWith(answer))) { fromTrivia(player, "You are close!"); if (closeAnswer == null) closeAnswer = player; } else fromTrivia(player, "Thats the incorrect answer."); } private void reward(final L2PcInstance player, final long time) { if (time == 0) player.addItem("Trivia", 6320, 1, player, true); else if (time < 4333) player.addItem("Trivia", 6320, 4, player, true); else if (time < 8666) player.addItem("Trivia", 6320, 3, player, true); else if (time < 91000) player.addItem("Trivia", 6320, 2, player, true); } private static void toTrivia(final L2PcInstance player, final String msg, final long timePassed) { final CreatureSay cs = new CreatureSay(0, 2, "->Trivia", "you answered \"" + msg + "\" in " + format(timePassed) + " seconds."); player.sendPacket(cs); } private static void fromTrivia(final L2PcInstance player, final String msg) { final CreatureSay cs = new CreatureSay(0, 2, "Trivia", msg); player.sendPacket(cs); } public void Broadcast(final String msg) { Broadcast.toAllOnlinePlayers(new CreatureSay(0, 18, "", "Trivia: " + msg)); } private static String format(final long time) { return df.format((double) time / 1000); } public static TriviaEvent getCurrentTrivia() { return currentTrivia; } } public static class TriviaTemplate { private final String _question; private final String _answer; public TriviaTemplate(final String question, final String answer) { _question = question; _answer = answer; } public String getQuestion() { return _question; } public String getAnswer() { return _answer; } } public static class InstanceHolder { protected static TriviaEngine instance = new TriviaEngine(); } public static TriviaEngine getInstance() { return InstanceHolder.instance; } } To connect it to your gameserver just put this somewhere in Say2.java if (_type == TELL && "trivia".equalsIgnoreCase(_target)) { final TriviaEvent trivia = TriviaEngine.TriviaEvent.getCurrentTrivia(); if (trivia == null) activeChar.sendMessage("Could not find an active Trivia Event."); else trivia.check(activeChar, _text); return; } Trivia data I was using (I generated this with a java program that was leeching QAs from various sites) https://pastebin.com/Bgei8Tpa Things you have to do by urself: Don't ask the same question within a time period Create your own QA data on trivias.txt Unhardcode the rewards or just edit them impelement a //reload feature The code is tested on live server and worked great, but it is not unit tested and I don't remember if these functions are regex vulnerable
  6. Well this code is simple, and here what it does: With a custom item that you can change (I used Tutorial Guide) you can summon a custom pet The custom pet by default is Dragon Bomber With the command ".copypet" and with a Monster, NPC... as your Target, you can change the visual style ~aka dressme, of your custom pet I find it funny and it's fast to code/add to your server, you can also edit the custom pet stats in the .xml file.For those people that don't like to have common pets, here you have the option to make any NPC or mob your own custom pet, hope you enjoy :) Credits: Wyatt Prieview Coded for L2jServer H5 Stable - Tested and working - by Wyatt http://pastebin.com/5MN1RvUk SQL here INSERT INTO `custom_npc` VALUES ('9005', '13085', 'Dragon Boomber', '0', '', '0', 'LineageMonster4.foxian_wizard_pet', '16', '24', '55', 'male', 'L2Pet', '40', '1673.054730000000000', '889.800000000000000', '6.500000000000000', '2.400000000000000', '35', '37', '30', '32', '20', '25', '0', '0', '388.11142', '223.63620', '265.02979', '163.64727', '253', '4', '333', '0', '0', '0', '35.00000', '170.00000', '0', '1'); INSERT INTO `npcaidata` VALUES ('9005', '7', '15', '0', '0', '1', '1', '1', '0', '0', '0', '0', '2', '2', '0', '0', '0', '0', 'null', '0', 'null', '0', '0', 'fighter'); ALTER TABLE characters ADD customPet INT(10) NOT NULL DEFAULT 0;
  7. A code i wrote for healers to receive pvp upon heal. https://pastebin.com/Ewgb6uv8 2 Things to adjust: 1. The method that calculate if healer has heal enough ( hasHealEnough ). I did the "calculate" randomly. Make it as you want base on levels or fixed heal value 2. Add the addHeal method to your Heal.java or whatever file your project has. And add the healerId of the healer who healed you.
  8. I think it not worth any money, when I bought it I was unskilled and too lazy, now everything changed, so I share some codes with you community, if you like it, every 1-2 weeks I will share unique codes, but I'm a little bit scary, because every server will have it, but nevermind. Download link: http://www58.zippyshare.com/v/IsY3qhhl/file.html Author and seller: Devlin Topic: http://www.maxcheaters.com/topic/181513-l2j-automatic-potions