Jump to content

SySt3MGaM3RFr3aKs

Members
  • Posts

    838
  • Joined

  • Last visited

    Never
  • Feedback

    0%

Everything posted by SySt3MGaM3RFr3aKs

  1. I made something, is my 3d PS Modification ;P. I know it sucks but, i was working on it 8 Hours :D. Here it is:
  2. and without " - " to Google [ /url] real / :D To google
  3. This command removes your PvP Flag, When you have the color of the PvP Flag i mean :P. You just type .noflag and done :D Credits: ŚyśţęmƒяәдҚς Here is a simple Patch: V2 Index: trunk/Eclipse-Game/java/net/sf/l2j/gameserver/handler/voicedcommandhandlers/flag.java =================================================================== --- trunk/Eclipse-Game/java/net/sf/l2j/gameserver/handler/voicedcommandhandlers/flag.java (revision 0) +++ trunk/Eclipse-Game/java/net/sf/l2j/gameserver/handler/voicedcommandhandlers/flag.java (revision 0) @@ -0,0 +1,48 @@ +package net.sf.l2j.gameserver.handler.voicedcommandhandlers; + +import net.sf.l2j.gameserver.handler.IVoicedCommandHandler; +import net.sf.l2j.gameserver.model.actor.instance.L2PcInstance; +import net.sf.l2j.gameserver.network.serverpackets.ActionFailed; + +/** + * @Author s + */ + +public class flag implements IVoicedCommandHandler +{ + private static final String[] VOICED_COMMANDS = + { + "noflag" + }; + + public boolean useVoicedCommand(String command, L2PcInstance activeChar, + String target) + { + if (command.equalsIgnoreCase("noflag")) + { + if (activeChar.getPvpFlag() == 0) + { + activeChar.sendMessage("You cannot use this command at this moment."); + activeChar.sendPacket(new ActionFailed()); + return false; + } + else if (activeChar.isDead() || activeChar.isFakeDeath() || activeChar.isAlikeDead() || activeChar.isFestivalParticipant() || activeChar.isInJail() || activeChar.atEvent || activeChar.isInOlympiadMode() || activeChar.inObserverMode() || activeChar.isFlying() || activeChar.isInDuel()) + { + activeChar.sendMessage("You cannot use this command at this moment."); + activeChar.sendPacket(new ActionFailed()); + return false; + } + else if (activeChar.getPvpFlag() != 0) + { + activeChar.setPvpFlag(0); + activeChar.sendMessage("You are not flagged anymore."); + } + } + return true; + } + + public String[] getVoicedCommandList() + { + return VOICED_COMMANDS; + } +} Index: trunk/Eclipse-Game/java/net/sf/l2j/gameserver/GameServer.java =================================================================== --- trunk/Eclipse-Game/java/net/sf/l2j/gameserver/GameServer.java (revision 237) +++ trunk/Eclipse-Game/java/net/sf/l2j/gameserver/GameServer.java (working copy) @@ -200,6 +200,7 @@ import net.sf.l2j.gameserver.handler.voicedcommandhandlers.trade; import net.sf.l2j.gameserver.handler.voicedcommandhandlers.pm; import net.sf.l2j.gameserver.handler.voicedcommandhandlers.Info; +import net.sf.l2j.gameserver.handler.voicedcommandhandlers.flag; import net.sf.l2j.gameserver.handler.voicedcommandhandlers.Cl; import net.sf.l2j.gameserver.handler.voicedcommandhandlers.karma; import net.sf.l2j.gameserver.handler.voicedcommandhandlers.stat; @@ -615,6 +616,8 @@ _voicedCommandHandler.registerVoicedCommandHandler(new Info()); _voicedCommandHandler.registerVoicedCommandHandler(new karma()); + + _voicedCommandHandler.registerVoicedCommandHandler(new flag()); _log.config("VoicedCommandHandler: Loaded " + _voicedCommandHandler.size() + " handlers.");
  4. Oxi. To xereis oti eisai mlkas ?
  5. ekanes 2006 Selida Yioupi.
  6. Tespa tin kanw tora, ta leme aurio. Otan mpw MxC na dw toulaxiston 2012 :D
  7. p einai to Magaki leader ? :D
  8. Ade spam spam na pame 2010 rgrigora :D grigora &
  9. Dn asxoloume mazi sou tora, psaxe internet.
  10. Egw lew me kamia Screen tha to katalavene kalitera && :D
  11. Tha to Thimame auto p ekanes tora, Morted :D thanks.
  12. Min arxisw kai egw tora. Eixe 5 Ginaikes, dn itan gay, dn viaze paidia, ta agapouse. Any proofs giauta p les ? Egw exw.
  13. Dn teleiwsame exoum akoma :D
  14. esei tora ti epathes mazi mou :D. lol.
  15. Giati akougontas MJ, boro kai ginome pio Galinios :D. Vlepw ton kosmo me mia diaforetikh opsi. Niwthw poli orea. :D Kai dn ginete kapios p akouw MJ, na min kounithei ;D
  16. Po po arxizw kai kolaw eleos :D
  17. Ta paidia o Michael ta frontise. Exoun vgei posoi kai lene oti itan athoows, autos o anthropos pote dn tha evlepe ta paidia pou toso agapouse. Oloi oi anthropoi kritikaroun, kai parpaoioun kapoia pragmata, ala os ekei. O Anthropos itan Innocent. ! http://www.youtube.com/watch?v=CAomy_KKF58
  18. 2012 or no @@
  19. 2k Pages yea.. :D
  20. Pooo re gamw, Min xanamilisei kaneis gia ton MJ aman :S
×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..