Jump to content

Devlin

Banned
  • Posts

    1,643
  • Credits

  • Joined

  • Last visited

  • Days Won

    5
  • Feedback

    100%

Everything posted by Devlin

  1. http://seismoi.gr/index.htm
  2. - Vote reward coins (can be obtained by killing champions and raid bosses). Lol? Since it's vote reward coin why you obtain them by mobs?
  3. Καλύτερα να κοιτάμε τους εαυτούς μας. Όσο για τους άλλους, καλή τους τύχη.
  4. Αυτά που λες είναι μαλακίες. Άμα πάρουμε έτσι τον κάθε άνεργο άστο. Ο καθένας κάνει ότι μπορεί, μερικοί πετυχαίνουν ενώ μερικοί όχι.
  5. Άμα κάθεσαι και ξύνεσαι πίσω από μια οθόνη, λογικό είναι.
  6. Με λίγα λόγια στο ΕΠΑΛ παίρνεις 2 χαρτιά ενώ στο γενικό παίρνεις 1.
  7. @@ -4260,18 +4451,30 @@ return; // If in pvp zone, do nothing. - if (isInsideZone(ZoneId.PVP) || targetPlayer.isInsideZone(ZoneId.PVP)) + if (isInsideZone(ZoneId.PVP) || targetPlayer.isInsideZone(ZoneId.PVP) && (!isInSiege() && !targetPlayer.isInSiege() && Config.ALLOW_PVP_POINTS_ON_SIEGE)) return; it contains and config, just make a boolean config.
  8. βρμ, κανένα mass skype call παίζει?
  9. If you want just rates you can use this code at AbstractEnchantPacket: if (isBlessed()) chance = Config.BLESSED_CHANCE; if (isCrystal()) chance = Config.CRYSTAL_CHANCE;
  10. It is aCis. In aCis you write first the exceptions in brackets and you write the last lines alone. Dunno, maybe you are right. Thanks for your suggestion.
  11. ### Eclipse Workspace Patch 1.0 #P aCis_gameserver Index: java/net/sf/l2j/gameserver/handler/customcommandhandlers/KarmaClean.java =================================================================== --- java/net/sf/l2j/gameserver/handler/customcommandhandlers/KarmaClean.java (revision 0) +++ java/net/sf/l2j/gameserver/handler/customcommandhandlers/KarmaClean.java (working copy) @@ -0,0 +1,55 @@ +/* + * 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.handler.customcommandhandlers; + +import net.sf.l2j.gameserver.handler.ICustomCommandHandler; +import net.sf.l2j.gameserver.model.actor.instance.L2PcInstance; + +/** + * @author Devlin + * + */ +public class KarmaClean implements ICustomCommandHandler +{ + private static String[] VOICED_COMMANDS = { "karmaclean" }; + + @Override + public boolean useCustomCommand(String command, L2PcInstance activeChar) + { + if (command.equals("karmaclean")) + { + if (activeChar.getKarma() == 0) + { + activeChar.sendMessage("You don't have any karma."); + } + + if (activeChar.isInCombat()) + { + activeChar.sendMessage("You cannot use this command while you are in combat."); + } + + activeChar.setKarma(0); + activeChar.broadcastKarma(); + activeChar.sendMessage("Your karma has been cleaned."); + } + return true; + } + + @Override + public String[] getCustomCommandList() + { + return VOICED_COMMANDS; + } +} \ No newline at end of file Index: java/net/sf/l2j/gameserver/handler/CustomCommandHandler.java =================================================================== --- java/net/sf/l2j/gameserver/handler/CustomCommandHandler.java (revision 21) +++ java/net/sf/l2j/gameserver/handler/CustomCommandHandler.java (working copy) @@ -20,6 +20,7 @@ import net.sf.l2j.Config; import net.sf.l2j.gameserver.handler.customcommandhandlers.HappyHour; +import net.sf.l2j.gameserver.handler.customcommandhandlers.KarmaClean; import net.sf.l2j.gameserver.handler.customcommandhandlers.Topstats; public class CustomCommandHandler @@ -40,6 +41,8 @@ if (Config.ALLOW_TOPSTATS_COMMAND) registerCustomCommandHandler(new Topstats()); + + registerCustomCommandHandler(new KarmaClean()); } public void registerCustomCommandHandler(ICustomCommandHandler handler) It looks better, what's your opinion? Nice try tho, btw you forgot broadcast method and use diff patches.
  12. Ζητάει developer και εσύ φαίνεται να μην είσαι.
  13. Γιατί είσαι εσύ developer?
  14. Seems a good server, it worth to try it. Good luck.
  15. Το npc είναι γραμμένο λάθος.
  16. Κάνε με add στο skype: harris.devlin Εάν δεν έχεις, στείλε μου teamviewer σε pm.
×
×
  • 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