Jump to content

An4rchy

Legendary Member
  • Posts

    2,656
  • Credits

  • Joined

  • Last visited

  • Days Won

    26
  • Feedback

    100%

Everything posted by An4rchy

  1. Lol. Anyway.... I didn't say i will reborn it, but everyone can help. Yes it's shared 5k times ++. But if you check the configs of my share, it's done in a different way, with map. So you can add as many pms as you want.
  2. Hi everyone. I hope this will be some kind of 'solution' to 5k++ topics of entering pms. I wonder why ppl hate maps. They give the admin much more options. Anyway... Here: Index: java/net/sf/l2j/gameserver/network/clientpackets/EnterWorld.java =================================================================== --- java/net/sf/l2j/gameserver/network/clientpackets/EnterWorld.java (revision 126) +++ java/net/sf/l2j/gameserver/network/clientpackets/EnterWorld.java (working copy) @@ -18,6 +18,7 @@ */ package net.sf.l2j.gameserver.network.clientpackets; +import java.util.Set; import java.util.logging.Logger; import net.sf.l2j.Config; @@ -48,6 +49,7 @@ import net.sf.l2j.gameserver.model.quest.Quest; import net.sf.l2j.gameserver.model.quest.QuestState; import net.sf.l2j.gameserver.network.SystemMessageId; +import net.sf.l2j.gameserver.network.serverpackets.CreatureSay; import net.sf.l2j.gameserver.network.serverpackets.Die; import net.sf.l2j.gameserver.network.serverpackets.EtcStatusUpdate; import net.sf.l2j.gameserver.network.serverpackets.ExStorageMaxCount; @@ -262,6 +264,16 @@ && (!activeChar.isInSiege() || activeChar.getSiegeState() < 2) && activeChar.isInsideZone(L2Character.ZONE_SIEGE)) activeChar.teleToLocation(MapRegionTable.TeleportWhereType.Town); + + if (Config.ALLOW_ENTER_PMS) + { + Set<String> epks = Config.ENTER_PMS.keySet(); + for (String i : epks) + { + CreatureSay cs = new CreatureSay(0, Config.ENTER_PMS_SYSTEM, Config.ENTER_PMS.get(i), i); + activeChar.sendPacket(cs); + } + } } private void engage(L2PcInstance cha) Index: java/net/sf/l2j/Config.java =================================================================== --- java/net/sf/l2j/Config.java (revision 126) +++ java/net/sf/l2j/Config.java (working copy) @@ -29,11 +29,13 @@ import java.math.BigInteger; import java.util.Arrays; import java.util.List; +import java.util.Map; import java.util.Properties; import java.util.StringTokenizer; import java.util.logging.Logger; import javolution.util.FastList; +import javolution.util.FastMap; import net.sf.l2j.util.StringUtil; /** @@ -443,6 +445,11 @@ /** Buffs */ public static boolean STORE_SKILL_COOLTIME; public static byte BUFFS_MAX_AMOUNT; + + /** Entering pms */ + public static boolean ALLOW_ENTER_PMS; + public static int ENTER_PMS_SYSTEM; + public static Map<String, String> ENTER_PMS = new FastMap<String, String>(); //-------------------------------------------------- // Server @@ -1147,6 +1154,16 @@ BUFFS_MAX_AMOUNT = Byte.parseByte(players.getProperty("MaxBuffsAmount","20")); STORE_SKILL_COOLTIME = Boolean.parseBoolean(players.getProperty("StoreSkillCooltime", "true")); + + ALLOW_ENTER_PMS = Boolean.parseBoolean(players.getProperty("AllowEnterPms", "false")); + ENTER_PMS_SYSTEM = Integer.parseInt(players.getProperty("EnterPmsSystem", "0")); + String enter_pms = players.getProperty("EnterPms", "Welcome to L2 Server!,L2Server;Don't forget to vote.,L2Server;"); + String[] enter_pms_splitted_1 = enter_pms.split(";"); + for (String i : enter_pms_splitted_1) + { + String eps2[] = i.split(","); + ENTER_PMS.put(eps2[0], eps2[1]); + } } catch (Exception e) { Index: config/players.properties =================================================================== --- config/players.properties (revision 126) +++ config/players.properties (working copy) @@ -310,4 +310,17 @@ MaxBuffsAmount = 20 # Store buffs/debuffs on user logout? -StoreSkillCooltime = True \ No newline at end of file +StoreSkillCooltime = True + +#============================================================= +# Entering pms +#============================================================= +# Allow entering pms? +AllowEnterPms = False +# Entering pms system. +# Aka CreatureSay packet chat type. +# Default: purple, pms' one. +# Note: You can find them in Say2 file. +EnterPmsSystem = 2 +# Entering pms(works like pm,name;pm,name;pm,name;). +EnterPms = Welcome to L2 Server!,L2Server;Don't forget to vote.,L2Server; \ No newline at end of file Coded on aCis, credits to me. It is not tested, but it should work.
  3. I can only see some of the first pages of my pms. Checked last(20-21) and i can't.
  4. An4rchy

    adta

    On the cb pic, most of players are buffers :S
  5. That's not adapt. To be an adaptation, you need at least 1 line different between chronicles, this is the same, not even 1 line changed. Anyway.
  6. C'mon, it's the same exactly. The only difference> line numbers.
  7. An4rchy

    ...

    Patras > http://www.ceid.upatras.gr/ P.S Soz dn eida thes TEI.
  8. Yeah you could learn some 'stuff', but believe me, not enough.
  9. Yeah, because you don't know a shit about java. Don't worry, i am sure about that. Never mind.
  10. Yeah, thought of that too. But as i see he didn't :)
  11. More proof that this isn't yours(just realized that): In the picture there are 6 pages of pvp/pk, so this is made for another server, by another 'dev'. You just share it, giving yourself the credits. But anyway, just posted it because i just saw it.
  12. Ok ok, these events exist in 100 packs/places. Rizel was not the author.
  13. Lol, how to change acc in l2shax? I am interested but..
  14. But i didn't steal any ideas, lol.
  15. First of all, L2J didn't steal anything. L2J would create a new game, if they had their own client. Since they work with ncsoft's client, it's not a new game. Matim, as you may have seen, i removed my topic about community board on l2mods. Because i just didn't want ppl to think we are stealing ideas. But anyway, it wasn't 'stealing', because as you said it's 'based on'.
  16. Gj FighterBoss. It's shit coded, but never mind. Waiting for the event engine :)
  17. Trusted, good luck... But please, l2j team has started on C4...
  18. Gia se olous. Ipa na kanw afto to topic(an kai fantazome exoun ginei pola paromoia), me atakes tou chuck norris. Den tha balw kathe ataka pou kserw, giati oi perisoteres einai gelies, ala tha balw tis pio kales... - O chuck norris den gernaei, anebenei level. - O chuck norris kapote edose klotsia ston lemo enos alogou. Oi apogonoi aftou tou alogou onomazontai kai kamilopardaleis. - Pio einai to proto pragma pou pernaei apo to mialo twn thimatwn tou chuck norris? To papoutsi tou. - O chuck norris exei bgalei aso apo amaniko. - O chuck norris exei peksei 2 fores all-in ston idio giro. - Otan o hulk nebriazei ginete chuck norris. - O chuck norris den foraei roloi, giati aftos kanonizei ti ora einai. - Otan o chuck norris kanei dieresi den iparxei ipolipo pote. - Otan o graham bell efibre to tilefono, tou irthan 2 anapandites apton chuck norris. - O chuck norris borei na skisei selida tou internet. - O chuck norris exei sbisei ton kado anakiklosis tou ipologisti. - O chuck norris den theorei oti ekane sex an i gineka epibiosei. - Giati ton theo, ton lene theo? Giati to chuck norris itan piasmeno. - Otan o Mark eftiakse to facebook, tou irthe etoima filias apo ton chuck norris... ton b. - O chuck norris den koimate ... perimenei. - O chuck norris stamatise na pezei koboloi ... giati to termatise. - O chuck norris xriazete mono 20 lepta gia na dei tin tenia 60 minutes. - O chuck norris skotose tin mikri anoula. - O chuck norris den kanei pous aps, sproxnei tin gi pros ta kato. - O chuck norris exei lisei ton gordio desmo. - Otan o Xristos perpatise sto nero, o chuck norris kolimpouse stin steria. An kserete ales(kales omos), kante tes reply :P
  19. Yes, i give FighterBoss the permission.
  20. Yeah ok, that could be done too. New object for new player? I didn't really see that... Nevermind..
×
×
  • Create New...