Jump to content

Search the Community

Showing results for tags 'aCis'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • General Zone
    • Announcements and News
    • Newbies Introduce Urself
    • Maxcheaters Competitions & Events
    • Votes/Polls Area
    • Report Section
    • Downloads Section
    • Suggestions/Feedback Board
  • 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
    • L2FURY.EU GRAND OPENING 23 DECEMBER at 20:00 GMT+2
    • [Previews] L2 Private Servers
    • Clans and Alliances
  • Lineage II Marketplace
    • Marketplace [Items & Chars]
    • Marketplace [L2Packs & Files]
    • Marketplace [Powerlvl & Support]
    • Marketplace [Webdesign & Webdevelop]
  • 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
  • Other Games
    • Grand Theft Auto V: FiveM
    • League of Legends
    • World Of Warcraft
    • Counter Strike GO
    • Aion
    • Diablo IV
    • Other Multiplayer Games
  • General Section
    • General Marketplace
    • Crypto Zone
    • Consoles/Mobile Gaming Zone
    • Webmasters Zone
    • Hacking/Coding Zone
  • Graphics/GFX Zone
    • Graphics/GFX General Discussion
    • Graphics/GFX Showcase
    • Graphics/GFX Resources/Tools
  • Premium Zone
    • General Discussion [Premium]
    • Lineage II [Premium]
    • GFX Area [Premium]
  • MaxCheaters Corner
    • Tech/World News
    • Off-Topics
    • Spam 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
  • Old Vips
  • Premium Member

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


WhatsApp


Telegram


Website URL


ICQ


Yahoo


Discord


Skype


Location


Interests


LocationNew

  1. Hello , i download this buffer for l2 acis https://maxcheaters.com/topic/223485-npc-player-buffer-acis/?tab=comments#comment-2688248 The only that i did is to make a folder in gameserver/data/html/mods/buffer and i paste the html files there, then i create a new npc in xml. After that i spawn buffer, i can see the Index of buffer ( buffs,heal,fighter set,mage set, etc) but i cant get buffs from this npc. No any message showed up on my screen. Any idea on how can i fix the problem above? ( if yes, be specific at comments ) Thnx in advance
  2. Hello ppl of mxc, i never post anything or ask for anything,but this last few days i almost melt my brain trying to get to work Clan quest for acis, i dont care about the rev in this case 370 i've got the code without errors, quest started all ok, but mobs don't drop the items, or when killed Grave Guards, grave keymaster isnt spawning,the same happen with the box when imperal gravekeeper is killed. this is the code im trying to get to work. alsoi i had to add some lines to Quest but those are not improtant, just a few typos i had form the code below. package net.sf.l2j.gameserver.scripting.quests; import net.sf.l2j.commons.random.Rnd; import net.sf.l2j.gameserver.model.L2Skill; import net.sf.l2j.gameserver.model.actor.Npc; import net.sf.l2j.gameserver.model.actor.instance.Player; import net.sf.l2j.gameserver.scripting.Quest; import net.sf.l2j.gameserver.scripting.QuestState; public class Q503_PursuitOfClanAmbition extends Quest { private static final int G_LET_MARTIEN = 3866; private static final int TH_WYRM_EGGS = 3842; private static final int DRAKE_EGGS = 3841; private static final int BL_WYRM_EGGS = 3840; private static final int MI_DRAKE_EGGS = 3839; private static final int BROOCH = 3843; private static final int BL_ANVIL_COIN = 3871; private static final int G_LET_BALTHAZAR = 3867; private static final int RECIPE_POWER_STONE = 3838; private static final int POWER_STONE = 3846; private static final int NEBULITE_CRYSTALS = 3844; private static final int BROKE_POWER_STONE = 3845; private static final int G_LET_RODEMAI = 3868; private static final int IMP_KEYS = 3847; private static final int SCEPTER_JUDGEMENT = 3869; private static final int PROOF_ASPIRATION = 3870; private static final int MARTIEN = 30645; private static final int ATHREA = 30758; private static final int KALIS = 30759; private static final int GUSTAF = 30760; private static final int FRITZ = 30761; private static final int LUTZ = 30762; private static final int KURTZ = 30763; private static final int KUSTO = 30512; private static final int BALTHAZAR = 30764; private static final int RODEMAI = 30868; private static final int COFFER = 30765; private static final int CLEO = 30766; private static final int THUNDER_WYRM = 20282; private static final int THUNDER_WYRM_TWO = 20243; private static final int DRAKE = 20137; private static final int DRAKE_TWO = 20285; private static final int BLITZ_WYRM = 27178; private static final int GIANT_SOLDIER = 20654; private static final int GIANT_SCOUT = 20656; private static final int GRAVE_GUARD = 20668; private static final int GRAVE_KEYMASTER = 27179; private static final int IMPERIAL_SLAVE = 27180; private static final int IMPERIAL_GRAVEKEEPER = 27181; private static final int[][] DROPLIST = { // npcId, cond, MaxCount, chance, item1, item2 (giants), item3 (giants) // @formatter:off {THUNDER_WYRM, 2, 10, 200000, TH_WYRM_EGGS, 0, 0}, {THUNDER_WYRM_TWO, 2, 10, 90000, TH_WYRM_EGGS, 0, 0}, {DRAKE, 2, 10, 200000, DRAKE_EGGS, 0, 0}, {DRAKE_TWO, 2, 10, 250000, DRAKE_EGGS, 0, 0}, {BLITZ_WYRM, 2, 10, 1000000, BL_WYRM_EGGS, 0, 0}, {GIANT_SOLDIER, 5, 10, 250000, NEBULITE_CRYSTALS, BROKE_POWER_STONE, POWER_STONE}, {GIANT_SCOUT, 5, 10, 350000, NEBULITE_CRYSTALS, BROKE_POWER_STONE, POWER_STONE}, {GRAVE_GUARD, 10, 0, 150000, 0, 0, 0}, {GRAVE_KEYMASTER, 10, 6, 800000, IMP_KEYS, 0, 0}, {IMPERIAL_GRAVEKEEPER, 10, 0, 0, 0, 0, 0} // @formatter:on }; public Q503_PursuitOfClanAmbition() { super(503, "Pursuit of Clan Ambition!"); setItemsIds(MI_DRAKE_EGGS, BL_WYRM_EGGS, DRAKE_EGGS, TH_WYRM_EGGS, BROOCH, NEBULITE_CRYSTALS, BROKE_POWER_STONE, POWER_STONE, IMP_KEYS, G_LET_MARTIEN, G_LET_BALTHAZAR, G_LET_RODEMAI, SCEPTER_JUDGEMENT); addStartNpc(GUSTAF); addTalkId(MARTIEN, ATHREA, KALIS, GUSTAF, FRITZ, LUTZ, KURTZ, KUSTO, BALTHAZAR, RODEMAI, COFFER, CLEO); addKillId(THUNDER_WYRM_TWO, THUNDER_WYRM, DRAKE, DRAKE_TWO, BLITZ_WYRM, GIANT_SOLDIER, GIANT_SCOUT, GRAVE_GUARD, GRAVE_KEYMASTER, IMPERIAL_GRAVEKEEPER); addAttackId(IMPERIAL_GRAVEKEEPER); } @Override public String onAdvEvent(String event, Npc npc, Player player) { String htmltext = event; final QuestState st = player.getQuestState(getName()); if (st == null) { return htmltext; } // Gustaf if (event.equalsIgnoreCase("30760-08.htm")) { st.setState(STATE_STARTED); st.giveItems(G_LET_MARTIEN, 1); st.set("cond", "1"); } else if (event.equalsIgnoreCase("30760-12.htm")) { st.giveItems(G_LET_BALTHAZAR, 1); st.set("cond", "4"); } else if (event.equalsIgnoreCase("30760-16.htm")) { st.giveItems(G_LET_RODEMAI, 1); st.set("cond", "7"); } else if (event.equalsIgnoreCase("30760-20.htm")) { st.takeItems(SCEPTER_JUDGEMENT, -1); st.giveItems(PROOF_ASPIRATION, 1); st.rewardExpAndSp(0, 250000); st.exitQuest(false); finishQuestToClan(player); } else if (event.equalsIgnoreCase("30760-22.htm")) { st.set("cond", "1"); } else if (event.equalsIgnoreCase("30760-23.htm")) { st.takeItems(SCEPTER_JUDGEMENT, -1); st.giveItems(PROOF_ASPIRATION, 1); st.rewardExpAndSp(0, 250000); st.exitQuest(false); finishQuestToClan(player); } // Martien else if (event.equalsIgnoreCase("30645-03.htm")) { setQuestToClanMembers(player); st.takeItems(G_LET_MARTIEN, -1); st.set("cond", "2"); st.set("kurt", "0"); } // Kurtz else if (event.equalsIgnoreCase("30763-02.htm")) { st.giveItems(MI_DRAKE_EGGS, 6); st.giveItems(BROOCH, 1); st.set("kurt", "1"); } // Lutz else if (event.equalsIgnoreCase("30762-02.htm")) { st.giveItems(MI_DRAKE_EGGS, 4); st.giveItems(BL_WYRM_EGGS, 3); st.addSpawn(BLITZ_WYRM, npc.getX(), npc.getY(), npc.getZ(), npc.getHeading(), true, 0, false); st.addSpawn(BLITZ_WYRM, npc.getX(), npc.getY(), npc.getZ(), npc.getHeading(), true, 0, false); st.set("lutz", "1"); } // Fritz else if (event.equalsIgnoreCase("30761-02.htm")) { st.giveItems(BL_WYRM_EGGS, 3); st.addSpawn(BLITZ_WYRM, npc.getX(), npc.getY(), npc.getZ(), npc.getHeading(), true, 0, false); st.addSpawn(BLITZ_WYRM, npc.getX(), npc.getY(), npc.getZ(), npc.getHeading(), true, 0, false); st.set("fritz", "1"); } // Kusto else if (event.equalsIgnoreCase("30512-03.htm")) { st.takeItems(BROOCH, 1); st.giveItems(BL_ANVIL_COIN, 1); st.set("kurt", "2"); } // Balthazar else if (event.equalsIgnoreCase("30764-03.htm")) { st.takeItems(G_LET_BALTHAZAR, -1); st.set("cond", "5"); } else if (event.equalsIgnoreCase("30764-05.htm")) { st.takeItems(G_LET_BALTHAZAR, -1); st.set("cond", "5"); } else if (event.equalsIgnoreCase("30764-06.htm")) { st.takeItems(BL_ANVIL_COIN, -1); st.giveItems(RECIPE_POWER_STONE, 1); } // Rodemai else if (event.equalsIgnoreCase("30868-04.htm")) { st.takeItems(G_LET_RODEMAI, -1); st.set("cond", "8"); } else if (event.equalsIgnoreCase("30868-06a.htm")) { st.set("cond", "10"); } else if (event.equalsIgnoreCase("30868-10.htm")) { st.set("cond", "12"); } // Cleo else if (event.equalsIgnoreCase("30766-04.htm")) { st.set("cond", "9"); npc.broadcastNpcSay("Blood and Honor"); final Npc sister1 = addSpawn(KALIS, 160665, 21209, -3710, npc.getHeading(), false, 180000, false); sister1.broadcastNpcSay("Ambition and Power"); final Npc sister2 = addSpawn(ATHREA, 160665, 21291, -3710, npc.getHeading(), false, 180000, false); sister2.broadcastNpcSay("War and Death"); } // Coffer else if (event.equalsIgnoreCase("Open")) { if (st.getQuestItemsCount(IMP_KEYS) < 6) { htmltext = "30765-03a.htm"; } else { htmltext = "30765-03.htm"; st.set("cond", "11"); st.takeItems(IMP_KEYS, 6); st.giveItems(SCEPTER_JUDGEMENT, 1); } } return htmltext; } @Override public String onTalk(Npc npc, Player player) { String htmltext = getNoQuestMsg(); final QuestState st = player.getQuestState(getName()); if (st == null) { return htmltext; } switch (st.getState()) { case STATE_CREATED: if (player.getClan() == null) { htmltext = "30760-01.htm"; st.exitQuest(true); } else if (player.isClanLeader()) { if (st.hasQuestItems(PROOF_ASPIRATION)) { htmltext = "30760-03.htm"; st.exitQuest(true); } else if (player.getClan().getLevel() != 4) { htmltext = "30760-02.htm"; st.exitQuest(true); } else { htmltext = "30760-04.htm"; } } else { htmltext = "30760-04t.htm"; st.exitQuest(true); } break; case STATE_STARTED: final int cond = st.getInt("cond"); int memberCond = 0; if (getClanLeaderQuestState(player, npc) != null) { memberCond = getClanLeaderQuestState(player, npc).getInt("cond"); } switch (npc.getNpcId()) { case GUSTAF: if (player.isClanLeader()) { if (cond == 1) { htmltext = "30760-09.htm"; } else if (cond == 2) { htmltext = "30760-10.htm"; } else if (cond == 3) { htmltext = "30760-11.htm"; } else if (cond == 4) { htmltext = "30760-13.htm"; } else if (cond == 5) { htmltext = "30760-14.htm"; } else if (cond == 6) { htmltext = "30760-15.htm"; } else if (cond == 7) { htmltext = "30760-17.htm"; } else if (cond == 12) { htmltext = "30760-19.htm"; } else if (cond == 13) { htmltext = "30760-24.htm"; } else { htmltext = "30760-18.htm"; } } else { if (memberCond == 3) { htmltext = "30760-11t.htm"; } else if (memberCond == 4) { htmltext = "30760-15t.htm"; } else if (memberCond == 12) { htmltext = "30760-19t.htm"; } else if (memberCond == 13) { htmltext = "30766-24t.htm"; } } break; case MARTIEN: if (player.isClanLeader()) { if (cond == 1) { htmltext = "30645-02.htm"; } else if (cond == 2) { if ((st.getQuestItemsCount(MI_DRAKE_EGGS) > 9) && (st.getQuestItemsCount(BL_WYRM_EGGS) > 9) && (st.getQuestItemsCount(DRAKE_EGGS) > 9) && (st.getQuestItemsCount(TH_WYRM_EGGS) > 9)) { htmltext = "30645-05.htm"; st.set("cond", "3"); st.takeItems(MI_DRAKE_EGGS, -1); st.takeItems(BL_WYRM_EGGS, -1); st.takeItems(DRAKE_EGGS, -1); st.takeItems(TH_WYRM_EGGS, -1); } else { htmltext = "30645-04.htm"; } } else if (cond == 3) { htmltext = "30645-07.htm"; } else { htmltext = "30645-08.htm"; } } else { if ((memberCond == 1) || (memberCond == 2) || (memberCond == 3)) { htmltext = "30645-01.htm"; } } break; case LUTZ: if (player.isClanLeader() && (cond == 2)) { if (st.getInt("lutz") == 1) { htmltext = "30762-03.htm"; } else { htmltext = "30762-01.htm"; } } break; case KURTZ: if (player.isClanLeader() && (cond == 2)) { if (st.getInt("kurt") == 1) { htmltext = "30763-03.htm"; } else { htmltext = "30763-01.htm"; } } break; case FRITZ: if (player.isClanLeader() && (cond == 2)) { if (st.getInt("fritz") == 1) { htmltext = "30761-03.htm"; } else { htmltext = "30761-01.htm"; } } break; case KUSTO: if (player.isClanLeader()) { if (st.getQuestItemsCount(BROOCH) == 1) { if (st.getInt("kurt") == 0) { htmltext = "30512-01.htm"; } else if (st.getInt("kurt") == 1) { htmltext = "30512-02.htm"; } else { htmltext = "30512-04.htm"; } } } else { if ((memberCond > 2) && (memberCond < 6)) { htmltext = "30512-01a.htm"; } } break; case BALTHAZAR: if (player.isClanLeader()) { if (cond == 4) { if (st.getInt("kurt") == 2) { htmltext = "30764-04.htm"; } else { htmltext = "30764-02.htm"; } } else if (cond == 5) { if ((st.getQuestItemsCount(POWER_STONE) > 9) && (st.getQuestItemsCount(NEBULITE_CRYSTALS) > 9)) { htmltext = "30764-08.htm"; st.takeItems(POWER_STONE, -1); st.takeItems(NEBULITE_CRYSTALS, -1); st.takeItems(BROOCH, -1); st.set("cond", "6"); } else { htmltext = "30764-07.htm"; } } else if (cond == 6) { htmltext = "30764-09.htm"; } } else { if (memberCond == 4) { htmltext = "30764-01.htm"; } } break; case RODEMAI: if (player.isClanLeader()) { if (cond == 7) { htmltext = "30868-02.htm"; } else if (cond == 8) { htmltext = "30868-05.htm"; } else if (cond == 9) { htmltext = "30868-06.htm"; } else if (cond == 10) { htmltext = "30868-08.htm"; } else if (cond == 11) { htmltext = "30868-09.htm"; } else if (cond == 12) { htmltext = "30868-11.htm"; } } else { if (memberCond == 7) { htmltext = "30868-01.htm"; } else if ((memberCond == 9) || (memberCond == 10)) { htmltext = "30868-07.htm"; } } break; case CLEO: if (player.isClanLeader()) { if (cond == 8) { htmltext = "30766-02.htm"; } else if (cond == 9) { htmltext = "30766-05.htm"; } else if (cond == 10) { htmltext = "30766-06.htm"; } else if ((cond == 11) || (cond == 12) || (cond == 13)) { htmltext = "30766-07.htm"; } } else { if (memberCond == 8) { htmltext = "30766-01.htm"; } } break; case COFFER: if (player.isClanLeader()) { if (cond == 10) { htmltext = "30765-01.htm"; } } else { if (memberCond == 10) { htmltext = "30765-02.htm"; } } break; case KALIS: if (player.isClanLeader()) { htmltext = "30759-01.htm"; } break; case ATHREA: if (player.isClanLeader()) { htmltext = "30758-01.htm"; } break; } break; } return htmltext; } @Override public String onKill(Npc npc, Player player, boolean isPet) { QuestState st = null; st = getClanLeaderQuestState(player, npc); if ((st == null) || !st.isStarted()) { return null; } for (int[] element : DROPLIST) { if (element[0] == npc.getNpcId()) { final int cond = element[1]; final int maxCount = element[2]; final int chance = element[3]; final int item1 = element[4]; final int item2 = element[5]; final int item3 = element[6]; if (st.getInt("cond") == cond) { if (item1 != 0) { st.dropItems(item1, 1, maxCount, chance); } else { if (element[0] == IMPERIAL_GRAVEKEEPER) { final Npc coffer = addSpawn(COFFER, npc.getX(), npc.getY(), npc.getZ(), npc.getHeading(), true, 180000, false); coffer.broadcastNpcSay("Curse of the gods on the one that defiles the property of the empire!"); } else if ((element[0] == GRAVE_GUARD) && (st.getQuestItemsCount(IMP_KEYS) < 6) && (Rnd.get(50) < chance)) { addSpawn(GRAVE_KEYMASTER, player.getX(), player.getY(), player.getZ(), player.getHeading(), true, 0, false); } } if ((item2 != 0) && (item3 != 0)) { if (Rnd.get(4) == 0) { st.dropItems(item2, 1, maxCount, chance); } else { st.dropItems(item3, 1, maxCount, chance); } } } } } return null; } @Override public String onAttack(Npc npc, Player attacker, int damage, boolean isPet, L2Skill skill) { if ((npc.getMaxHp() / 2) > npc.getCurrentHp()) { if (Rnd.get(100) < 4) { addSpawn(IMPERIAL_SLAVE, npc.getX(), npc.getY(), npc.getZ(), npc.getHeading(), true, 0, false); } else { attacker.teleToLocation(185462, 20342, -3250, 0); } } return super.onAttack(npc, attacker, damage, isPet, skill); } } NVM, Fixed :) close this topic!
  3. Hi friends , Im having some problems to set a default crest when faction is selected, i cant get the method to set a default crest from crestcache (previously loaded in data/crest) for all faction members. can i get some help with this ? sorry for my bad english. Greetings
  4. Hi, is there some command to refresh clan skills without re-login ?
  5. Looking for a working rebirth manager for rev 370+ yes i have searched... yes i have tryed adapting.... get error: cannot find symbol [javac] if (rsl.getId() == _skillId && rsl.getLevel() == _skillLevel) or if someone know how to fix... some help please p.s. not an eclipse pro. :-(
  6. Hello MxC Community! So I was goofing around trying to make a project for fun so I decided to try l2jacis . I downloaded all of the essentials (Java, Navicat, MySql, Eclipse) and this pack/source. I installed Java JDK and JRE (Version 1.8.0_172) I compiled the files with no problem, I created a MySql server and a established connection with navicat with no problem. I edited the server properties to match my MySql settings. (username, password and database) And when I tried to run RegisterGameServer and chose my ID this happened. I know I screwed up somewhere but I can't figure out where... If anyone could help me I would appreciate it.
  7. Dunno if that one is shared its for acis 370 i found that on a br ? website its antifeed pvp protection unfortunately it works exept this part +# If character died faster than timeout - pvp/pk points for killer will not increase+# and clan reputation will not be transferred+AntiFeedInterval = 120 any thoughts ? *code inside Spoiler*
  8. i noticed on l2jacis is not being used javolution also fastmap changed to hashmap , what about the typeformat ? import javolution.text.TypeFormat; <-- BLESS_WEAPON_ENCHANT_LEVEL.put(TypeFormat.parseInt(writeData[0]), TypeFormat.parseInt(writeData[1])); wich iis the new '' typeformat import' and what i'll change for this option i wish to use ! thank you
  9. Hello everyone. I am making my own balance system on Acis, and i got stuck on changing Pdef, Mdef, CritRate. I need to multiply calculated Pdef, Mdef or CritRate on activeChar based on his class. I found getPdef() function in CreatureStat.java. public int getPDef(Creature target) { return (int) calcStat(Stats.POWER_DEFENCE, _activeChar.getTemplate().getBasePDef() * ((_activeChar.isRaid()) ? Config.RAID_DEFENCE_MULTIPLIER : 1), target, null); } But then i multiply this return, it also applies on targets. So how do i make it apply only on players based on class? Sorry for very bad english.
  10. Im Looking for a Anti Farm PVP Protection with ip/hwid option , im using l2jacis 370
  11. I've been tryin to get this L2ACP system to work on my server, but without any luck of working. I've compiled the projects, edited and corrected the api for Acis, published the web app, but my server for some unkown reasonit doesnt responde to the requests made from the web app. I've checked port 8000 on my server firewall and was open, tryed with DMZ, and still with no luck. I believe something is wrong, but don't know why, the api was properly corrected, server is running without errors, but the web app doesnt comunicate with the port 8000 on the server. HELP :) thanks
  12. hello i have a problem with mages they are doing from 500 dmg they are doing 10k in 3k mdef it was running normal and that happend just like that w/o reason
  13. Καλησπερα παιδια σημερα ειδα ενα ερρορ κατα τυχη γιατι δεν ετυχε να πειραξω τιποτα στην Olympiada αυτο εδω http://prntscr.com/ij465r δεν μπορω να καταλαβω απο που ειναι αυτο το ερρο και οταν παω να μιλησω σε αυτον τον τυπα της ολυμπιαδας για να δω της καταταξης με τα classes παλι το ιδιο μου πεταει ενω οταν παω να δω την καταταξη με τα classes στο community board μου τα διχνει μια χαρα http://prntscr.com/ij4752 acis pack
  14. Hello i have a problem with this code i get no errors in eclipse but in game it doesnt work.. to Player.java if (getParty() != null) { for (Player p : getParty().getMembers()) { if (Config.Synergy_Class.contains(p.getClassId().getId()) && p.isInCombat() && (Rnd.get(100) <= 90)) { p.sendMessage("You have earned a pvp by supporting " + target.getName()); p.getPvpKills(); } } } and the config public static List<Integer> Synergy_Class = new ArrayList<>(); String Synergy_Class = customs.getProperty("ClassesSupp", "97"); String[] atdc_splitted = Synergy_Class.split(","); for (String s : atdc_splitted) { Synergy_Class.add(Integer.valueOf(s)); }
  15. Hello who can help with Acis pack ports ? How to open them
  16. I don't know if this is client or server bug, so I posted on both places (I know I shouldn't). So a title for any player should show up blue, but it only shows blue to the owner of that Character, to everyone else around him his title show's in black, as for everyone else but yourself. Only characters are affected, NPC's and others are not affected. I'm running Acis 370.
  17. Hello i have this code but i cant make it work with % chance on item if anyone can help package net.sf.l2j.gameserver.handler.voicedcommandhandlers; import java.util.StringTokenizer; import net.sf.l2j.commons.lang.StringUtil; import net.sf.l2j.gameserver.datatables.ItemTable; import net.sf.l2j.gameserver.datatables.NpcTable; import net.sf.l2j.gameserver.handler.IVoicedCommandHandler; import net.sf.l2j.gameserver.model.actor.instance.Player; import net.sf.l2j.gameserver.model.actor.template.NpcTemplate; import net.sf.l2j.gameserver.model.item.DropCategory; import net.sf.l2j.gameserver.model.item.DropData; import net.sf.l2j.gameserver.network.serverpackets.NpcHtmlMessage; public class ShiftClickToNpc implements IVoicedCommandHandler { private static final int PAGE_LIMIT = 20; private static String[] _voicedCommands = { "show_droplist" }; @Override public boolean useVoicedCommand(String command, Player activeChar, String target) { final StringTokenizer st = new StringTokenizer(command, " "); st.nextToken(); if (command.startsWith("show_droplist")) { try { int npcId = Integer.parseInt(st.nextToken()); int page = (st.hasMoreTokens()) ? Integer.parseInt(st.nextToken()) : 1; showNpcDropList(activeChar, npcId, page); } catch (Exception e) { activeChar.sendMessage("Usage: .show_droplist <npc_id> [<page>]"); } } return true; } private static void showNpcDropList(Player activeChar, int npcId, int page) { final NpcTemplate npcData = NpcTable.getInstance().getTemplate(npcId); if (npcData == null) { activeChar.sendMessage("Npc template is unknown for id: " + npcId + "."); return; } final StringBuilder sb = new StringBuilder(2000); StringUtil.append(sb, "<html><title>Show droplist page ", page, "</title><body><center><font color=\"LEVEL\">", npcData.getName(), " (", ")</font></center><br>"); if (!npcData.getDropData().isEmpty()) { sb.append("Drop type legend: <font color=\"3BB9FF\">Drop</font><br><table><tr><td width=20>item</td><td width=20>drop count</td></tr>"); int myPage = 1; int i = 0; int shown = 0; boolean hasMore = false; for (DropCategory cat : npcData.getDropData()) { if (shown == PAGE_LIMIT) { hasMore = true; break; } for (DropData drop : cat.getAllDrops()) { if (myPage != page) { i++; if (i == PAGE_LIMIT) { myPage++; i = 0; } continue; } if (shown == PAGE_LIMIT) { hasMore = true; break; } StringUtil.append(sb, "<font color=\\\"3BB9FF\\\"><tr><td>", ItemTable.getInstance().getTemplate(drop.getItemId()).getName(), " (", drop.getMinDrop(), " - ", drop.getMaxDrop(), ")</td></tr></font>"); shown++; } } sb.append("</table><table width=\"100%\" bgcolor=666666><tr>"); if (page > 1) { StringUtil.append(sb, "<td width=120><a action=\"bypass -h voiced_show_droplist ", npcId, " ", page - 1, "\">Prev Page</a></td>"); if (!hasMore) StringUtil.append(sb, "<td width=100>Page", page, "</td><td width=70></td></tr>"); } if (hasMore) { if (page <= 1) sb.append("<td width=120></td>"); StringUtil.append(sb, "<td width=100>Page ", page, "</td><td width=70><a action=\"bypass -h voiced_show_droplist ", npcId, " ", page + 1, "\">Next Page</a></td></tr>"); } sb.append("</table>"); } else sb.append("This NPC has no drops."); sb.append("</body></html>"); final NpcHtmlMessage html = new NpcHtmlMessage(0); html.setHtml(sb.toString()); activeChar.sendPacket(html); } @Override public String[] getVoicedCommandList() { return _voicedCommands; } }
  18. Hello, I have a problem I have Acis 368rev pack, and I have a problem... I use whole time on VPS this pack and I do not have any problems, but when I try on PC, it's not allowing me to connect in Gameserver, I do not know why. But problem cause this is from source. I search everything in source its looks fine, where I need check maybe please tell me. (I try this on clean Acis pack, works everything fine) https://imgur.com/a/XjdVa gameserver.java https://pastebin.com/WsNX5EUA server.config https://pastebin.com/BsWdnSjU loginserver.config https://pastebin.com/JNtRs4aZ
  19. I'm using ElfoCrash Individual Vote System, and it works with some minor adjustments. However, it does have a big problem, every character from the same IP can just collect the reward, in theory its fine but only if the item is untradable, witch is not. Can someone help me make an IP check ? This is for Acis pack. Thanks
  20. Hi, Can someone hint me where or what should I do to fix casting speed, attack speed? In example, this is bishop with casting speed 1450... blue reuse bar shouldn't even be visible... or if i have sorceror, prominence reuse faster than aura flare.. Ant this is about attack speed.. 700+ attack speed and i can use stunshot non-stop.. it should be like 1st stunshot -> 2 hits > 2nd stunshot Waiting for your answers buds.. and don't tell me that there is same topic because there is not. There was actually something similar but all links are dead and topic closed.
  21. Hello i have a problem i fixed the most part of the code but i have a problem i get that red line here log.warning(StringUtil.concat( under concat only here is the code package net.sf.l2j.gameserver.masteriopack.rankpvpsystem; import java.io.File; import java.io.FileInputStream; import java.io.InputStream; import java.util.ArrayList; import java.util.Arrays; import java.util.Comparator; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.Properties; import java.util.logging.Logger; import net.sf.l2j.commons.lang.StringUtil; import net.sf.l2j.gameserver.masteriopack.imageconverter.ServerSideImage; /** * This class initializes all global variables for configuration.<br> * If the key doesn't appear in properties file, a default value is set by this class.<br> * @author Masterio */ public final class RankPvpSystemConfig { private static final Logger log = Logger.getLogger(RankPvpSystemConfig.class.getName()); // Rank PvP System: public static boolean RANK_PVP_SYSTEM_ENABLED; public static int LEGAL_KILL_MIN_LVL; public static boolean LEGAL_COUNTER_ALTT_ENABLED; public static boolean LEGAL_KILL_FOR_PK_KILLER_ENABLED; public static boolean LEGAL_KILL_FOR_INNOCENT_KILL_ENABLED; public static int PROTECTION_TIME_RESET; public static int LEGAL_KILL_PROTECTION; public static int DAILY_LEGAL_KILL_PROTECTION; public static boolean GM_IGNORE_ENABLED; // PvP + RPC Reward: public static boolean RPC_REWARD_ENABLED; public static long RPC_REWARD_AMOUNT; public static int RPC_REWARD_MIN_LVL; public static boolean PVP_REWARD_ENABLED; public static int PVP_REWARD_ID; public static long PVP_REWARD_AMOUNT; public static int PVP_REWARD_MIN_LVL; public static boolean REWARD_FOR_PK_KILLER_ENABLED; public static boolean REWARD_FOR_INNOCENT_KILL_ENABLED; public static boolean RANK_PVP_REWARD_ENABLED; public static int RANK_PVP_REWARD_MIN_LVL; public static boolean REWARD_LEGAL_KILL_ENABLED; public static boolean RANK_LEVEL_REWARD_ENABLED; // Ranks: public static boolean RANKS_ENABLED; public static int RANK_POINTS_MIN_LVL; public static boolean RANK_POINTS_CUT_ENABLED; public static boolean RANK_RPC_ENABLED; public static boolean RANK_POINTS_DOWN_COUNT_ENABLED; public static List<Integer> RANK_POINTS_DOWN_AMOUNTS = new ArrayList<>(); public static boolean RANK_SHOUT_INFO_ON_KILL_ENABLED; public static boolean RANK_SHOUT_BONUS_INFO_ON_KILL_ENABLED; public static boolean RPC_EXCHANGE_ENABLED; public static boolean RPC_EXCHANGE_CONFIRM_BOX_ENABLED; // War Kills: public static boolean WAR_KILLS_ENABLED; public static double WAR_RANK_POINTS_RATIO; // Combo Kill: public static boolean COMBO_KILL_ENABLED; public static boolean COMBO_KILL_PROTECTION_WITH_LEGAL_KILL_ENABLED; public static boolean COMBO_KILL_PROTECTION_NO_REPEAT_ENABLED; public static Map<Integer, String> COMBO_KILL_LOCAL_AREA_MESSAGES = new HashMap<>(); public static Map<Integer, String> COMBO_KILL_GLOBAL_AREA_MESSAGES = new HashMap<>(); public static boolean COMBO_KILL_ALT_MESSAGES_ENABLED; public static String COMBO_KILL_ALT_MESSAGE; public static int COMBO_KILL_ALT_GLOBAL_MESSAGE_LVL; public static boolean COMBO_KILL_DEFEAT_MESSAGE_ENABLED; public static int COMBO_KILL_DEFEAT_MESSAGE_MIN_LVL; public static String COMBO_KILL_DEFEAT_MESSAGE; public static int COMBO_KILL_RESETER; public static boolean COMBO_KILL_RANK_POINTS_RATIO_ENABLED; public static Map<Integer, Double> COMBO_KILL_RANK_POINTS_RATIO = new HashMap<>(); // Title & Nick Color: public static boolean NICK_COLOR_ENABLED; public static boolean TITLE_COLOR_ENABLED; // Zones: public static List<Integer> ALLOWED_ZONES_IDS = new ArrayList<>(); public static List<Integer> RESTRICTED_ZONES_IDS = new ArrayList<>(); public static List<Integer> DEATH_MANAGER_RESTRICTED_ZONES_IDS = new ArrayList<>(); public static Map<Integer, Double> RANK_POINTS_BONUS_ZONES_IDS = new HashMap<>(); // pvpinfo command, pvp status window, death manager: public static boolean PVP_INFO_COMMAND_ENABLED; public static boolean PVP_INFO_USER_COMMAND_ENABLED; public static int PVP_INFO_USER_COMMAND_ID; public static boolean PVP_INFO_COMMAND_ON_DEATH_ENABLED; public static boolean DEATH_MANAGER_DETAILS_ENABLED; public static boolean DEATH_MANAGER_SHOW_ITEMS_ENABLED; public static boolean TOTAL_KILLS_IN_SHOUT_ENABLED; public static boolean TOTAL_KILLS_IN_PVPINFO_ENABLED; public static boolean TOTAL_KILLS_ON_ME_IN_PVPINFO_ENABLED; public static boolean SHOW_PLAYER_LEVEL_IN_PVPINFO_ENABLED; // Anti-Farm: public static boolean ANTI_FARM_CLAN_ALLY_ENABLED; public static boolean ANTI_FARM_PARTY_ENABLED; public static boolean ANTI_FARM_IP_ENABLED; // Top List (Community Board): public static boolean TOP_LIST_ENABLED; public static long TOP_LIST_IGNORE_TIME_LIMIT; // Database: public static long PVP_TABLE_UPDATE_INTERVAL; public static List<Long> TOP_TABLE_UPDATE_TIMES = new ArrayList<>(); public static boolean RPC_TABLE_FORCE_UPDATE_ENABLED; public static boolean DATABASE_CLEANER_ENABLED; public static long DATABASE_CLEANER_REPEAT_TIME; // Image: public static boolean SERVER_SIDE_IMAGES_ENABLED; public static int IMAGE_PREFIX; // Button style: public static String BUTTON_UP; public static String BUTTON_DOWN; public static String BUTTON_W; public static String BUTTON_H; public static String BUTTON_BIG_W; public static String BUTTON_BIG_H; /** * All required tables are initialized here. */ public static void load() { log.info("> Initializing Rank PvP System ("+RANK_PVP_SYSTEM_VERSION+"):"); try { File cc = new File(RANK_PVP_SYSTEM_CONFIG_FILE); InputStream is = new FileInputStream(cc); Properties ccSettings = new Properties(); ccSettings.load(is); RANK_PVP_SYSTEM_ENABLED = Boolean.parseBoolean(ccSettings.getProperty("RankPvpSystemEnabled", "false")); LEGAL_COUNTER_ALTT_ENABLED = Boolean.parseBoolean(ccSettings.getProperty("LegalCounterAltTEnabled", "false")); DATABASE_CLEANER_ENABLED = Boolean.parseBoolean(ccSettings.getProperty("DatabaseCleanerEnabled", "false")); DATABASE_CLEANER_REPEAT_TIME = Integer.parseInt(ccSettings.getProperty("DatabaseCleanerRepeatTime", "0")); if (DATABASE_CLEANER_REPEAT_TIME <= 0) { DATABASE_CLEANER_ENABLED = false; log.warning("[DatabaseCleanerRepeatTime]: invalid config property -> \""+DATABASE_CLEANER_REPEAT_TIME+"\""); } else { DATABASE_CLEANER_REPEAT_TIME *= 86400000; } RPC_REWARD_ENABLED = Boolean.parseBoolean(ccSettings.getProperty("RpcRewardEnabled", "false")); RPC_REWARD_AMOUNT = Integer.parseInt(ccSettings.getProperty("RpcRewardAmmount", "1")); RPC_REWARD_MIN_LVL = Integer.parseInt(ccSettings.getProperty("RpcRewardMinLvl", "76")); PVP_REWARD_ENABLED = Boolean.parseBoolean(ccSettings.getProperty("PvpRewardEnabled", "false")); PVP_REWARD_ID = Integer.parseInt(ccSettings.getProperty("PvpRewardId", "57")); PVP_REWARD_AMOUNT = Integer.parseInt(ccSettings.getProperty("PvpRewardAmount", "1")); PVP_REWARD_MIN_LVL = Integer.parseInt(ccSettings.getProperty("PvpRewardMinLvl", "76")); REWARD_FOR_PK_KILLER_ENABLED = Boolean.parseBoolean(ccSettings.getProperty("RewardForPkKillerEnabled", "true")); RANK_PVP_REWARD_MIN_LVL = Integer.parseInt(ccSettings.getProperty("RankPvpRewardMinLvl", "76")); REWARD_FOR_INNOCENT_KILL_ENABLED = Boolean.parseBoolean(ccSettings.getProperty("RewardForInnocentKillEnabled", "false")); RANK_PVP_REWARD_ENABLED = Boolean.parseBoolean(ccSettings.getProperty("RankPvpRewardEnabled", "true")); REWARD_LEGAL_KILL_ENABLED = Boolean.parseBoolean(ccSettings.getProperty("RewardLegalKillEnabled", "true")); RANK_LEVEL_REWARD_ENABLED = Boolean.parseBoolean(ccSettings.getProperty("RankLevelRewardEnabled", "true")); RANKS_ENABLED = Boolean.parseBoolean(ccSettings.getProperty("RanksEnabled", "false")); RANK_POINTS_MIN_LVL = Integer.parseInt(ccSettings.getProperty("RankPointsMinLvl", "76")); RANK_POINTS_CUT_ENABLED = Boolean.parseBoolean(ccSettings.getProperty("RankPointsCutEnabled", "true")); RANK_RPC_ENABLED = Boolean.parseBoolean(ccSettings.getProperty("RankRpcEnabled", "false")); // set rank's: String id1[] = ccSettings.getProperty("RankNames", "").split(","); String id2[] = ccSettings.getProperty("RankMinPoints", "").split(","); String id3[] = ccSettings.getProperty("RankPointsForKill", "").split(","); String id5[] = ccSettings.getProperty("RankRpcAmount", "").split(","); String id6[] = ccSettings.getProperty("NickColors", "").split(","); String id7[] = ccSettings.getProperty("TitleColors", "").split(","); if (RANK_PVP_SYSTEM_ENABLED || RANK_RPC_ENABLED || RANKS_ENABLED) { if (id1.length != id2.length || id1.length != id3.length || id1.length != id5.length || id1.length != id6.length || id1.length != id7.length) { log.info("[RankPvpSystemConfig]: Arrays sizes should be the same!"); log.info("RANK_NAMES :" + id1.length); log.info("RANK_MIN_POINTS :" + id2.length); log.info("RANK_POINTS_FOR_KILL :" + id3.length); log.info("RANK_RPC_AMOUNT :" + id5.length); log.info("RANK_NICK_COLORS :" + id6.length); log.info("RANK_TITLE_COLORS :" + id7.length); } else if(id1.length == 0 || id2.length == 0 || id3.length == 0 || id5.length == 0 || id6.length == 0 || id7.length == 0) { log.info("[RankPvpSystemConfig]: Arrays sizes must be greater than 0!"); log.info("RANK_NAMES :" + id1.length); log.info("RANK_MIN_POINTS :" + id2.length); log.info("RANK_POINTS_FOR_KILL :" + id3.length); log.info("RANK_RPC_AMOUNT :" + id5.length); log.info("RANK_NICK_COLORS :" + id6.length); log.info("RANK_TITLE_COLORS :" + id7.length); } else if(id2.length > 0 && Integer.parseInt(id2[id2.length - 1]) != 0) { log.info("[RankMinPoints]: Last value must equal 0! Example: ...,6,5,4,3,2,1,0"); } else { for (int i = 1; i <= id1.length; i++) { Rank rank = new Rank(); rank.setId(i); rank.setName(id1[id1.length - i]); rank.setMinPoints(Long.parseLong(id2[id1.length - i])); rank.setPointsForKill(Integer.parseInt(id3[id1.length - i])); rank.setRpc(Integer.parseInt(id5[id1.length - i])); rank.setNickColor(Integer.decode("0x" + id6[id1.length - i])); rank.setTitleColor(Integer.decode("0x" + id7[id1.length - i])); RankTable.getInstance().getRankList().put(i, rank); } } } NICK_COLOR_ENABLED = Boolean.parseBoolean(ccSettings.getProperty("NickColorEnabled", "false")); TITLE_COLOR_ENABLED = Boolean.parseBoolean(ccSettings.getProperty("TitleColorEnabled", "false")); RANK_POINTS_DOWN_COUNT_ENABLED = Boolean.parseBoolean(ccSettings.getProperty("RankPointsDownCountEnabled", "false")); RANK_POINTS_DOWN_AMOUNTS = new ArrayList<>(); for (String id : ccSettings.getProperty("RankPointsDownAmounts", "").split(",")) { RANK_POINTS_DOWN_AMOUNTS.add(Integer.parseInt(id)); } RANK_SHOUT_INFO_ON_KILL_ENABLED = Boolean.parseBoolean(ccSettings.getProperty("RankShoutInfoOnKillEnabled", "false")); RANK_SHOUT_BONUS_INFO_ON_KILL_ENABLED = Boolean.parseBoolean(ccSettings.getProperty("RankShoutBonusInfoOnKillEnabled", "false")); WAR_KILLS_ENABLED = Boolean.parseBoolean(ccSettings.getProperty("WarKillsEnabled", "false")); if (WAR_KILLS_ENABLED) { WAR_RANK_POINTS_RATIO = Double.parseDouble(ccSettings.getProperty("WarRankPointsRatio", "1.0")); } else { WAR_RANK_POINTS_RATIO = 1.0; } COMBO_KILL_ENABLED = Boolean.parseBoolean(ccSettings.getProperty("ComboKillEnabled", "false")); COMBO_KILL_PROTECTION_WITH_LEGAL_KILL_ENABLED = Boolean.parseBoolean(ccSettings.getProperty("ComboKillProtectionWithLegalKillEnabled", "false")); COMBO_KILL_PROTECTION_NO_REPEAT_ENABLED = Boolean.parseBoolean(ccSettings.getProperty("ComboKillProtectionNoRepeatEnabled", "false")); String propertyValue = ccSettings.getProperty("ComboKillLocalAreaMessages"); if ((propertyValue != null) && (propertyValue.length() > 0)) { String[] propertySplit = propertyValue.split(";"); if (propertySplit.length > 0) { for (String value : propertySplit) { String[] valueSplit = value.split(","); if (valueSplit.length != 2) { log.warning(StringUtil.concat("[ComboKillLocalAreaMessages]: invalid config property -> \"", value, "\"")); } else { try { COMBO_KILL_LOCAL_AREA_MESSAGES.put(Integer.parseInt(valueSplit[0]), valueSplit[1]); } catch (NumberFormatException nfe) { if (!value.isEmpty()) { log.warning(StringUtil.concat("[ComboKillLocalAreaMessages]: invalid config property -> \"", valueSplit[0], "\"", valueSplit[1])); } } } } } } propertyValue = ccSettings.getProperty("ComboKillGlobalAreaMessages", ""); if ((propertyValue != null) && (propertyValue.length() > 0)) { String[] propertySplit = ccSettings.getProperty("ComboKillGlobalAreaMessages").split(";"); if (propertySplit.length > 0) { for (String value : propertySplit) { String[] valueSplit = value.split(","); if (valueSplit.length != 2) { log.warning(StringUtil.concat("[ComboKillGlobalAreaMessages]: invalid config property -> \"", value, "\"")); } else { try { COMBO_KILL_GLOBAL_AREA_MESSAGES.put(Integer.parseInt(valueSplit[0]), valueSplit[1]); } catch (NumberFormatException nfe) { if (!value.isEmpty()) { log.warning(StringUtil.concat("[ComboKillGlobalAreaMessages]: invalid config property -> \"", valueSplit[0], "\"", valueSplit[1])); } } } } } } COMBO_KILL_ALT_MESSAGES_ENABLED = Boolean.parseBoolean(ccSettings.getProperty("ComboKillAltMessagesEnabled", "false")); COMBO_KILL_ALT_MESSAGE = ccSettings.getProperty("ComboKillAltMessage", "%killer% have %combo_level% Combo kills!"); COMBO_KILL_ALT_GLOBAL_MESSAGE_LVL = Integer.parseInt(ccSettings.getProperty("ComboKillAltGlobalMessageMinLvl", "0")); COMBO_KILL_DEFEAT_MESSAGE_ENABLED = Boolean.parseBoolean(ccSettings.getProperty("ComboKillDefeatMessageEnabled", "true")); COMBO_KILL_DEFEAT_MESSAGE_MIN_LVL = Integer.parseInt(ccSettings.getProperty("ComboKillDefeatMessageMinComboLvl", "0")); COMBO_KILL_DEFEAT_MESSAGE = ccSettings.getProperty("ComboKillDefeatMessage", "%killer% is defeated with %combo_level% combo lvl!!!"); COMBO_KILL_RESETER = Integer.parseInt(ccSettings.getProperty("ComboKillReseter", "0")); COMBO_KILL_RANK_POINTS_RATIO_ENABLED = Boolean.parseBoolean(ccSettings.getProperty("ComboKillRankPointsRatioEnabled", "false")); propertyValue = ccSettings.getProperty("ComboKillRankPointsRatio", ""); if ((propertyValue != null) && (propertyValue.length() > 0)) { String[] propertySplit = ccSettings.getProperty("ComboKillRankPointsRatio").split(";"); if (propertySplit.length > 0) { for (String value : propertySplit) { String[] valueSplit = value.split(","); if (valueSplit.length != 2) { log.warning(StringUtil.concat("[ComboKillRankPointsRatio]: invalid config property -> \"", value, "\"")); } else { try { COMBO_KILL_RANK_POINTS_RATIO.put(Integer.parseInt(valueSplit[0]), Double.parseDouble(valueSplit[1])); } catch (NumberFormatException nfe) { if (!value.isEmpty()) { log.warning(StringUtil.concat("[ComboKillRankPointsRatio]: invalid config property -> \"", valueSplit[0], "\"", valueSplit[1])); } } } } } } // additional security for combo kill system: if ((COMBO_KILL_LOCAL_AREA_MESSAGES.size() == 0) && (COMBO_KILL_GLOBAL_AREA_MESSAGES.size() == 0)) { COMBO_KILL_ENABLED = false; } int i = 0; String tempStr = ccSettings.getProperty("AllowedZonesIds"); if ((tempStr != null) && (tempStr.length() > 0)) { for (String rZoneId : tempStr.split(",")) { try { ALLOWED_ZONES_IDS.add(i, Integer.parseInt(rZoneId)); } catch (Exception e) { log.info(e.getMessage()); } i++; } } i = 0; tempStr = ccSettings.getProperty("RestrictedZonesIds"); if ((tempStr != null) && (tempStr.length() > 0)) { for (String rZoneId : tempStr.split(",")) { try { RESTRICTED_ZONES_IDS.add(i, Integer.parseInt(rZoneId)); } catch (Exception e) { log.info(e.getMessage()); } i++; } } LEGAL_KILL_MIN_LVL = Integer.parseInt(ccSettings.getProperty("LegalKillMinLvl", "1")); LEGAL_KILL_FOR_PK_KILLER_ENABLED = Boolean.parseBoolean(ccSettings.getProperty("LegalKillForPkKillerEnabled", "true")); LEGAL_KILL_FOR_INNOCENT_KILL_ENABLED = Boolean.parseBoolean(ccSettings.getProperty("LegalKillForInnocentKillEnabled", "false")); PROTECTION_TIME_RESET = Integer.parseInt(ccSettings.getProperty("ProtectionTimeReset", "0")); LEGAL_KILL_PROTECTION = Integer.parseInt(ccSettings.getProperty("LegalKillProtection", "0")); DAILY_LEGAL_KILL_PROTECTION = Integer.parseInt(ccSettings.getProperty("DailyLegalKillProtection", "0")); GM_IGNORE_ENABLED = Boolean.parseBoolean(ccSettings.getProperty("GMIgnoreEnabled", "true")); PVP_INFO_COMMAND_ENABLED = Boolean.parseBoolean(ccSettings.getProperty("PvpInfoCommandEnabled", "true")); PVP_INFO_USER_COMMAND_ENABLED = Boolean.parseBoolean(ccSettings.getProperty("PvpInfoUserCommandEnabled", "false")); PVP_INFO_USER_COMMAND_ID = Integer.parseInt(ccSettings.getProperty("PvpInfoUserCommandId", "114")); PVP_INFO_COMMAND_ON_DEATH_ENABLED = Boolean.parseBoolean(ccSettings.getProperty("PvpInfoCommandShowOnDeathEnabled", "true")); DEATH_MANAGER_DETAILS_ENABLED = Boolean.parseBoolean(ccSettings.getProperty("DeathManagerDetailsEnabled", "true")); DEATH_MANAGER_SHOW_ITEMS_ENABLED = Boolean.parseBoolean(ccSettings.getProperty("DeathManagerShowItemsEnabled", "true")); i = 0; tempStr = ccSettings.getProperty("DeathManagerRestrictedZonesIds"); if ((tempStr != null) && (tempStr.length() > 0)) { for (String rZoneId : tempStr.split(",")) { try { DEATH_MANAGER_RESTRICTED_ZONES_IDS.add(i, Integer.parseInt(rZoneId)); } catch (Exception e) { log.info(e.getMessage()); } i++; } } propertyValue = ccSettings.getProperty("RankPointsBonusZonesIds", ""); if ((propertyValue != null) && (propertyValue.length() > 0)) { String[] propertySplit = ccSettings.getProperty("RankPointsBonusZonesIds", "").split(";"); if (propertySplit.length > 0) { for (String value : propertySplit) { String[] valueSplit = value.split(","); if (valueSplit.length != 2) { log.warning(StringUtil.concat("[RankPointsBonusZonesIds]: invalid config property -> \"", value, "\"")); } else { try { RANK_POINTS_BONUS_ZONES_IDS.put(Integer.parseInt(valueSplit[0]), Double.parseDouble(valueSplit[1])); } catch (NumberFormatException nfe) { if (!value.isEmpty()) { log.warning(StringUtil.concat("[RankPointsBonusZonesIds]: invalid config property -> \"", valueSplit[0], "\"", valueSplit[1])); } } } } } } TOTAL_KILLS_IN_SHOUT_ENABLED = Boolean.parseBoolean(ccSettings.getProperty("TotalKillsInShoutEnabled", "true")); TOTAL_KILLS_IN_PVPINFO_ENABLED = Boolean.parseBoolean(ccSettings.getProperty("TotalKillsInPvpInfoEnabled", "true")); TOTAL_KILLS_ON_ME_IN_PVPINFO_ENABLED = Boolean.parseBoolean(ccSettings.getProperty("TotalKillsOnMeInPvpInfoEnabled", "true")); SHOW_PLAYER_LEVEL_IN_PVPINFO_ENABLED = Boolean.parseBoolean(ccSettings.getProperty("ShowPlayerLevelInPvpInfoEnabled", "true")); RPC_EXCHANGE_ENABLED = Boolean.parseBoolean(ccSettings.getProperty("RpcExchangeEnabled", "true")); RPC_EXCHANGE_CONFIRM_BOX_ENABLED = Boolean.parseBoolean(ccSettings.getProperty("RpcExchangeConfirmBoxEnabled", "true")); ANTI_FARM_CLAN_ALLY_ENABLED = Boolean.parseBoolean(ccSettings.getProperty("AntiFarmClanAllyEnabled", "true")); ANTI_FARM_PARTY_ENABLED = Boolean.parseBoolean(ccSettings.getProperty("AntiFarmPartyEnabled", "true")); ANTI_FARM_IP_ENABLED = Boolean.parseBoolean(ccSettings.getProperty("AntiFarmIpEnabled", "true")); PVP_TABLE_UPDATE_INTERVAL = (Integer.parseInt(ccSettings.getProperty("PvpTableUpdateInterval", "1")) * 60000); if (PVP_TABLE_UPDATE_INTERVAL < 1) { log.warning(StringUtil.concat("[PvpTableUpdateInterval]: invalid config property -> \"", Long.toString(PVP_TABLE_UPDATE_INTERVAL), "\"")); PVP_TABLE_UPDATE_INTERVAL = 60000; } RPC_TABLE_FORCE_UPDATE_ENABLED = Boolean.parseBoolean(ccSettings.getProperty("RpcTableForceUpdate", "true")); // top table update times: propertyValue = ccSettings.getProperty("TopTableUpdateTimes", "3:00"); List<Long> temp_time_list = new ArrayList<>(); if ((propertyValue != null) && (propertyValue.length() > 0)) { String[] propertySplit = ccSettings.getProperty("TopTableUpdateTimes", "").split(","); if (propertySplit.length > 0) { for (String value : propertySplit) { String[] hm = value.split(":"); if (hm.length != 2) // hm table length { log.warning(StringUtil.concat("[TopTableUpdateTimes]: invalid config property -> \"", value, "\"")); } else { try { // prepare h & m: String h_s = hm[0]; String m_s = hm[1]; if(m_s.length() != 2) { log.warning(StringUtil.concat("[TopTableUpdateTimes]: invalid config property -> \"", value, "\" minutes format incorrect [hh:mm]")); break; } // check times like: [0]3:15, 3:[0]5. if(h_s.startsWith("0") && h_s.length() == 2) { h_s = h_s.substring(1); } if(m_s.startsWith("0") && m_s.length() == 2) { m_s = m_s.substring(1); } if(h_s.equals("0")) { h_s = "24"; } // calculate all times for times in ms from time 0:00. long h = Long.parseLong(h_s); long m = Long.parseLong(m_s); if(h < 0 || m < 0 || h > 24 || m > 59) { log.warning(StringUtil.concat("[TopTableUpdateTimes]: invalid config property -> \"", value, "\" minutes format incorrect [hh:mm]")); break; } long mili = (h * 60 + m) * 60000 - (3600000); // - 1h if(mili >= 0 && !temp_time_list.contains(mili)) temp_time_list.add(mili); } catch (NumberFormatException nfe) { } } } } } class LongComparator implements Comparator<Long> { @Override public int compare(Long v1, Long v2) { if (v1 > v2) { return 1; } else if (v1 == v2) { return 0; } else { return -1; } } } Comparator<Long> comp = new LongComparator(); Long[] aol = new Long[temp_time_list.size()]; Arrays.sort(temp_time_list.toArray(aol), comp); TOP_TABLE_UPDATE_TIMES = Arrays.asList(aol); TOP_LIST_ENABLED = Boolean.parseBoolean(ccSettings.getProperty("TopListEnabled", "true")); TOP_LIST_IGNORE_TIME_LIMIT = Integer.parseInt(ccSettings.getProperty("TopListIgnoreTimeLimit", "0")); if (TOP_LIST_IGNORE_TIME_LIMIT > 0) { TOP_LIST_IGNORE_TIME_LIMIT *= 86400000; // in milliseconds } SERVER_SIDE_IMAGES_ENABLED = Boolean.parseBoolean(ccSettings.getProperty("ServerSideImagesEnabled", "true")); IMAGE_PREFIX = Integer.parseInt(ccSettings.getProperty("ImagePrefix", "1")); // Buttons style: BUTTON_UP = ccSettings.getProperty("ButtonFore", "L2UI_ch3.BigButton3_over"); BUTTON_DOWN = ccSettings.getProperty("ButtonBack", "L2UI_ch3.BigButton3"); BUTTON_W = ccSettings.getProperty("ButtonWidth", "134"); BUTTON_H = ccSettings.getProperty("ButtonHeight", "21"); BUTTON_BIG_W = ccSettings.getProperty("ButtonBigWidth", "180"); BUTTON_BIG_H = ccSettings.getProperty("ButtonBigHeight", "24"); log.warning(" - Rank Pvp System Config initialization complete."); } catch (Exception e) { log.warning("Config: " + e.getMessage()); throw new Error("Failed to Load " + RANK_PVP_SYSTEM_CONFIG_FILE + " File."); } // initializing system PvpTable.getInstance(); if(RPC_REWARD_ENABLED || RANK_RPC_ENABLED || RPC_TABLE_FORCE_UPDATE_ENABLED) RPCTable.getInstance(); else log.info(" - RPCTable: Disabled, players RPC will be not updated!"); if(RPC_REWARD_ENABLED || RPC_EXCHANGE_ENABLED) RPCRewardTable.getInstance(); else log.info(" - RPCRewardTable: Disabled."); if(PVP_REWARD_ENABLED || RANK_PVP_REWARD_ENABLED) RewardTable.getInstance(); else log.info(" - RewardTable: Disabled."); if(TOP_LIST_ENABLED) TopTable.getInstance(); else log.info(" - TopTable: Disabled."); ServerSideImage.getInstance(); } // -------------------------------------------------- // Constants - not placed in configuration file // -------------------------------------------------- public static final String RANK_PVP_SYSTEM_CONFIG_FILE = "./config/masterio/RankPvpSystemConfig.properties"; public static final String RANK_PVP_SYSTEM_VERSION = "3.8.7"; // CHAR_ID_COLUMN_NAME is not in configuration file. //public static final String CHAR_ID_COLUMN_NAME = "charId"; // H5 public static final String CHAR_ID_COLUMN_NAME = "obj_Id"; // IL }
  22. Hello!, I adapted Community board code to last rev aCis , but have errors. Any can help me for solved :) Ty guys
  23. Hello guys as the title says i request for the costum starting level code for acis rev 360.. i already tried multiple codes shared here in the forum non of it works and i also tried to do it by myself but im a newbie so didnt have much luck.. any help would be appreciated Thanks in Advance, VanGon
  24. hi i have a request 1 sceme buffer for acis please (npc prefered a link so i can download and add it to the server im making i cannot find anything good enough so if anyone can help i would much appreciate it
×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock