-
Posts
285 -
Joined
-
Last visited
-
Feedback
0%
Content Type
Articles
Profiles
Forums
Store
Everything posted by Ke$ha
-
look here! he gave credits to his self on a Japanese project o.O http://www.maxcheaters.com/forum/index.php?topic=138062.0
-
lol u can just open l2phx write something on chat! find the packet , use it on send it every 100ms
-
ok tell me where to give the credits
-
yeah its kinda stupid
-
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."); credits: s
-
np :)
-
Index: java/config/other.properties =================================================================== --- java/config/other.properties (revision 1780) +++ java/config/other.properties (working copy) @@ -133,6 +136,9 @@ # Color to use for Admin names, if enabled. (access level 100+). # (Must be in hex BGR format: eg. 00FF00 = Green) AdminNameColor = 00FF00 +# Color to use for Admin titles , if access level 100+ +# Retail : ffff77 +AdminTitleColor = ffff77 # Color to use for GM names, if enabled. (access level 75+). # (Must be in hex BGR format: eg. FFFF00 = Yellow) GMNameColor = FFFF00 Index: java/net/sf/l2j/Config.java =================================================================== --- java/net/sf/l2j/Config.java (revision 1780) +++ java/net/sf/l2j/Config.java (working copy) @@ -266,6 +266,7 @@ public static int ALT_PRIVILEGES_DEFAULT_LEVEL; public static boolean GM_NAME_COLOR_ENABLED; public static int ADMIN_NAME_COLOR; + public static int ADMIN_TITLE_COLOR; public static int GM_NAME_COLOR; public static boolean GM_HERO_AURA; public static boolean GM_STARTUP_INVULNERABLE; @@ -1259,6 +1269,7 @@ GM_NAME_COLOR_ENABLED = Boolean.parseBoolean(otherSettings.getProperty("GMNameColorEnabled", "False")); GM_NAME_COLOR = Integer.decode("0x" + otherSettings.getProperty("GMNameColor", "FFFF00")); ADMIN_NAME_COLOR = Integer.decode("0x" + otherSettings.getProperty("AdminNameColor", "00FF00")); + ADMIN_TITLE_COLOR = Integer.decode("0x" + otherSettings.getProperty("AdminTitleColor", "00FF00")); GM_HERO_AURA = Boolean.parseBoolean(otherSettings.getProperty("GMHeroAura", "True")); GM_STARTUP_INVULNERABLE = Boolean.parseBoolean(otherSettings.getProperty("GMStartupInvulnerable", "True")); GM_STARTUP_INVISIBLE = Boolean.parseBoolean(otherSettings.getProperty("GMStartupInvisible", "True")); Index: java/net/sf/l2j/gameserver/clientpackets/EnterWorld.java =================================================================== --- java/net/sf/l2j/gameserver/clientpackets/EnterWorld.java (revision 1780) +++ java/net/sf/l2j/gameserver/clientpackets/EnterWorld.java (working copy) @@ -167,7 +167,10 @@ { if (activeChar.getAccessLevel() >= 100) // if gm have more than 100 access + { activeChar.getAppearance().setNameColor(Config.ADMIN_NAME_COLOR); + activeChar.getAppearance().setTitleColor(Config.ADMIN_TITLE_COLOR); + } else if (activeChar.getAccessLevel() >= 75) activeChar.getAppearance().setNameColor(Config.GM_NAME_COLOR); } } credits: L2jServer Team
-
in witch project is based your server?
-
afto dn einai otan beni kapoios me phx na trwei critical error! an dn kanw lathos einai to fix gia to script to opoio s skaei critical error
-
{HELP}game server prob
Ke$ha replied to PonyR1der's question in Request Server Development Help [Greek]
prwta apo ola pes mas ti pack xrisimopoihs -
how many adena?
-
you can make the same and with l2phx
-
mpourdelo - spiti tis julia alexandratou
-
server may be good but your website sux hard :/
-
[Share]Japanish epilogue Project
Ke$ha replied to DeViTo's topic in Server Development Discussion [L2J]
lol retard credits to you? im going to report you -
[L2J Contest - Share]Advanced 3ple Faction Engine
Ke$ha replied to Escordia's topic in Server Shares & Files [L2J]
i will test it and feed you back! -
can u made this?
-
file mia paratirisi ekei p les Anti-Helapex System diorthoseto einai Hlapex
-
Flaming Dark Knight Armor[Interlude]
Ke$ha replied to Devangell™'s topic in Client Development Discussion
sry for double posting! ok it was my wrong! this works fine :D thnx again -
WTS [WTS] modded lineageeffect.u
Ke$ha replied to 3lackheart's topic in Marketplace [L2Packs & Files]
ok im w8ting for your pm -
WTS [WTS] modded lineageeffect.u
Ke$ha replied to 3lackheart's topic in Marketplace [L2Packs & Files]
what ever you want! -
WTS [WTS] modded lineageeffect.u
Ke$ha replied to 3lackheart's topic in Marketplace [L2Packs & Files]
team viewer lag with l2! open a test server on your pc and give me ip -
prota apo ola katevase to foxy proxy! meta ani3e ton server! mpes me ton prwto sou char! afu mpeis ala3e tin ip sou me to prxy kai ani3e grigora to deftero parathiro! k eisai etimos! na fadasto pezi bnb xD
