Jump to content

Nicolás™

Members
  • Posts

    3,024
  • Joined

  • Last visited

  • Days Won

    2
  • Feedback

    0%

Everything posted by Nicolás™

  1. good job dude, p.s you can choose on how many pvp in a row you have this reward right?
  2. Hello,hope to find it usefull .joinoly and you are register Index: L2jFrozen_GameServer\head-src\com\l2jfrozen\Config.java =================================================================== --- head-src\com\l2jfrozen\Config.java (revision 931) +++ head-src\com\l2jfrozen\Config.java (working copy) @@ -2385,1 +2385,5 @@ public static String PVP2_CUSTOM_MESSAGE; + public static boolean OLYMPIAD_JOIN_COMMAND; + //============================================================ public static void loadL2JFrozenConfig() @@ -2512,1 +2512,13 @@ PVP2_CUSTOM_MESSAGE = L2JFrozenSettings.getProperty("PvP2CustomMeesage", "You have been teleported to PvP Zone 2!"); + OLYMPIAD_JOIN_COMMAND = Boolean.parseBoolean(L2JFrozenSettings.getProperty("EnableJoinOlympiadCommand", "True")); (/No newline at the end of the line) Index: L2jFrozen_GameServer\head-src\com\l2jfrozen\gameserver\handler\voicedcommandhandlers\JoinOly.java =================================================================== +++ head-src\com\l2jfrozen\gameserver\handler\voicedcommandhandlers\JoinOly.java (working copy) +package com.l2jfrozen.gameserver.handler.voicedcommandhandlers; + +import com.l2jfrozen.gameserver.model.entity.olympiad.Olympiad; +import com.l2jfrozen.gameserver.handler.IVoicedCommandHandler; +import com.l2jfrozen.gameserver.model.actor.instance.L2PcInstance; + +public class JoinOly implements IVoicedCommandHandler +{ + + private static final String[] VOICED_COMMANDS = { "joinoly" , "leaveoly" }; + + +public boolean useVoicedCommand(String command, L2PcInstance activeChar,String target) +{ + if (command.equalsIgnoreCase("joinoly")) + { + if (!activeChar.isInOlympiadMode() ) + { + Olympiad.getInstance().registerNoble(activeChar, true); + return true; + } + else if (!activeChar.isNoble() || activeChar.isDead() || activeChar.isFestivalParticipant() || activeChar.atEvent + || activeChar.isSubClassActive() || activeChar.isInDuel() || activeChar.isAlikeDead() + || activeChar.getPvpFlag() > 0 || activeChar.getKarma() > 0 || activeChar.isInCombat() || activeChar.inObserverMode()) + { + activeChar.sendMessage("Your Status Doesnt Allow You To Join Olympiad!"); + return false; + } + } + + if (command.equalsIgnoreCase("leaveoly")) + { + if (activeChar.isInOlympiadMode()) + { + Olympiad.getInstance().unRegisterNoble(activeChar); + return true; + } + else if (activeChar.isAlikeDead() || activeChar.isInCombat() + || activeChar.inObserverMode() || !activeChar.isInOlympiadMode()) + { + activeChar.sendMessage("You Can't Leave Olympiad while Participating somewhere."); + return false; + } + } + + + return true; +} + + public String[] getVoicedCommandList() + { + return VOICED_COMMANDS; + } +} + (/No newline at the end of the line) Index: L2jFrozen_GameServer\head-src\com\l2jfrozen\gameserver\handler\VoicedCommandHandler.java =================================================================== --- head-src\com\l2jfrozen\gameserver\handler\VoicedCommandHandler.java (revision 570) +++ head-src\com\l2jfrozen\gameserver\handler\VoicedCommandHandler.java (working copy) @@ -75,1 +75,9 @@ if(Config.BANKING_SYSTEM_ENABLED) { registerVoicedCommandHandler(new BankingCmd()); } + + if(Config.OLYMPIAD_JOIN_COMMAND) + { + registerVoicedCommandHandler(new JoinOly()); + } if(Config.CTF_COMMAND) (/No newline at the end of the line) Index: L2jFrozen_GameServer\config\functions\l2jfrozen.ppt =================================================================== --- config\functions\l2jfrozen.ppt (revision 912) +++ config\functions\l2jfrozen.ppt (working copy) @@ -282,1 +282,1 @@ ProtectorSkillId = 1170 # Skill Level used for npc ProtectorSkillLevel = 13 ProtectorSkillTime = 600 # Npc Protector Message ProtectorMessage = Hey You!, Never Kill On This Area, Go Read The Rules! + +#------------------------------------- +# Join and Leave Olympiad by Command - +#------------------------------------- +# Default: True +EnableJoinOlympiadCommand = True
  3. skype more
  4. γαμας
  5. ότι πεις εσύ, σε όλα ναι!
  6. και τώρα θα πέσει το ερώτημα ποιος θα το κάνει?
  7. χαχαχαχαχ
  8. μεχρι το 2009 καλα ητανε
  9. bob marley cousin
  10. no woman no cry
  11. Bob Marley - Legend (full album) Χαλαρώστε
  12. why?
  13. ποιος μίλησε για ddos? Θα μπορούσα να εκμεταλλευτώ καταστάσεις αλλά δεν το κάνω και το ξέρουνε αρκετοί εδώ μέσα γιατί πράμα μιλάμε
  14. tha s lega ti paizei
  15. παλιοσπαμερι
  16. υπαρχει και το fb
  17. κομπλενταν ρε
  18. αραξε νικολη
  19. γαμαν
  20. εγω απλα πεταγομαι ακυρος
×
×
  • 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