Jump to content

SySt3MGaM3RFr3aKs

Members
  • Posts

    838
  • Joined

  • Last visited

    Never
  • Feedback

    0%

Everything posted by SySt3MGaM3RFr3aKs

  1. Heh, actually this is a really useful Share. ./And btw, Nice choice & :D
  2. Updated * With some protections. to make this i have to modify L2Attackable, like the real Away system. This is something else ^^. You just informing the players that you are away, and if someone haven't seen the announcement then he can see obviously a different color Title with text *Away*. btw, i can show you many shares " Commands " That they don't have protections at all, and they need them ! So why you don't go and say the others to do the same. This thing shows that you have something with me ??... I don't have but you..
  3. I think this is the first time i can PROVE YOU Wrong. The author made many modifications in L2Attackble etc. I Haven't stole a line from his code. I made everything by my self. I was thinking what to add and then i was seaching the code from other Java files.. And Bum. And i think is Kinda useful ! Players can farm and apart from custom armors etc. They can buy the item this command wants.
  4. as i said before, if you use for this command a rare item. One server with 300 Players online will have 1-2 Announcements per minute.
  5. You ***, read the code first. ~! AND BTW. Announcements is one Line. You can delete them !. Although theres something you can do, you can use one item for this command that is rare, only " PROS " can use it.
  6. New Away + Back Command System. Is really simple and nice. How it works: Version 1: When you type .away: You get a Green title " *Away * ", this commands also informs the players that you are away ( See in the Screenshots below ), also it costs 500Milion. Version 2: Added Some useful protections. Changed Announcements text + Message to player. Version 1: When you type .back: Away title is removed, also this command " .back " informs the players that you are back ( See in the Screenshots below ), .back is free. Version 2: Added Some useful protections. Changed Announcements text + Message to player. Screenshots: Note: Screen is from Version 1, there have been some typos in Announcements and and. in Ver 2. Patch: Version 2. ### Eclipse Workspace Patch 1.0 #P L2JEclipse-Private Index: trunk/Eclipse-Game/java/net/sf/l2j/gameserver/handler/voicedcommandhandlers/away.java =================================================================== --- trunk/Eclipse-Game/java/net/sf/l2j/gameserver/handler/voicedcommandhandlers/away.java (revision 0) +++ trunk/Eclipse-Game/java/net/sf/l2j/gameserver/handler/voicedcommandhandlers/away.java (revision 0) @@ -0,0 +1,114 @@ +package net.sf.l2j.gameserver.handler.voicedcommandhandlers; + +import net.sf.l2j.gameserver.handler.IVoicedCommandHandler; +import net.sf.l2j.gameserver.Announcements; +import net.sf.l2j.gameserver.model.actor.instance.L2PcInstance; + +public class away implements IVoicedCommandHandler +{ + private static final String[] VOICED_COMMANDS = { "away", "back" }; + + public boolean useVoicedCommand(String command, L2PcInstance activeChar, String target) + { + if (command.equalsIgnoreCase("away")) + { + else if(activeChar.isInJail()) + { + activeChar.sendMessage("You cannot use this command while you are in Jail!"); + return false; + } + else if(activeChar.isInOlympiadMode()) + { + activeChar.sendMessage("You cannot use this command while you are in the Olympiad now."); + return false; + } + else if(activeChar.atEvent) + { + activeChar.sendMessage("You cannot use this command while you are in an event."); + return false; + } + else if (activeChar.isInDuel()) + { + activeChar.sendMessage("You cannot use this command while you are in a duel!"); + return false; + } + else if (activeChar.inObserverMode()) + { + activeChar.sendMessage("You cannot use this command while you are in Observer Mode."); + } + else if (activeChar.isFestivalParticipant()) + { + activeChar.sendMessage("You cannot use this command while you are in a festival."); + return false; + } + else if (activeChar.isInParty() && activeChar.getParty().isInDimensionalRift()) + { + activeChar.sendMessage("You cannot use this command while you are in the dimensional rift."); + return false; + } + + if(activeChar.getInventory().getItemByItemId(57) != null && activeChar.getInventory().getItemByItemId(57).getCount() >= 500000000) + { + activeChar.getInventory().destroyItemByItemId("Away", 57, 500000000, activeChar, activeChar.getTarget()); + Announcements.getInstance().announceToAll("AWAY: " + activeChar + " is away"); + activeChar.sendMessage("You are away from keyboard, 500Milion adena dissapeared, players informed."); + activeChar.getAppearance().setTitleColor(0xFF000); + activeChar.setTitle("*Away*"); // Title text when somebody is away. + activeChar.broadcastUserInfo(); + } + } + + else + + if (command.equalsIgnoreCase("back")) + { + else if(activeChar.isInJail()) + { + activeChar.sendMessage("You cannot use this command while you are in Jail!"); + return false; + } + else if(activeChar.isInOlympiadMode()) + { + activeChar.sendMessage("You cannot use this command while you are in the Olympiad now."); + return false; + } + else if(activeChar.atEvent) + { + activeChar.sendMessage("You cannot use this command while you are in an event."); + return false; + } + else if (activeChar.isInDuel()) + { + activeChar.sendMessage("You cannot use this command while you are in a duel!"); + return false; + } + else if (activeChar.inObserverMode()) + { + activeChar.sendMessage("You cannot use this command while you are in Observer Mode."); + } + else if (activeChar.isFestivalParticipant()) + { + activeChar.sendMessage("You cannot use this command while you are in a festival."); + return false; + } + else if (activeChar.isInParty() && activeChar.getParty().isInDimensionalRift()) + { + activeChar.sendMessage("You cannot use this command while you are in the dimensional rift."); + return false; + } + + Announcements.getInstance().announceToAll("BACK: " + activeChar + " is back."); + activeChar.sendMessage("You are back. Players informed."); + activeChar.setTitle(" "); + activeChar.broadcastUserInfo(); + } + return true; + + } + + public String[] getVoicedCommandList() + { + return VOICED_COMMANDS; + } + +} \ No newline at end of file Index: trunk/Eclipse-Game/java/net/sf/l2j/gameserver/GameServer.java =================================================================== --- trunk/Eclipse-Game/java/net/sf/l2j/gameserver/GameServer.java (revision 223) +++ trunk/Eclipse-Game/java/net/sf/l2j/gameserver/GameServer.java (working copy) @@ -199,6 +199,7 @@ import net.sf.l2j.gameserver.handler.voicedcommandhandlers.TvT; import net.sf.l2j.gameserver.handler.voicedcommandhandlers.trade; import net.sf.l2j.gameserver.handler.voicedcommandhandlers.pm; +import net.sf.l2j.gameserver.handler.voicedcommandhandlers.away; import net.sf.l2j.gameserver.handler.voicedcommandhandlers.Info; import net.sf.l2j.gameserver.handler.voicedcommandhandlers.Cl; import net.sf.l2j.gameserver.handler.voicedcommandhandlers.karma; @@ -616,6 +617,7 @@ _voicedCommandHandler.registerVoicedCommandHandler(new karma()); + _voicedCommandHandler.registerVoicedCommandHandler(new away()); _log.config("VoicedCommandHandler: Loaded " + _voicedCommandHandler.size() + " handlers."); Credits: ehh me.
  7. Posts: 32 (0,136 per day) ' As i read in the rules. users with -4 Have to be banned ? So :D
  8. 2012, American pie(s), Avatar, Twilight and Newmoon **, Dunno what else For Music Movies: Michael Jackson - This is it ********.
  9. Hmm i think he updated everything to the latest rev. If is that nice i will join :S EDIT: pff i'm waiting 3 Hours to download the PATCH, rapidshare sucks hard. Someone Upload it 4Shared or something.
  10. Sorry, but something happened ? :S I haven't pressed the post button Twice.
  11. I am not admin i am not gm i am haven't ever log this server. I know the admin, the server is not as bad as you think it is ! and BTW, 95% of the servers have sites wich are shared here. soz for double post. Something caused it ?S
  12. I am not admin i am not gm i am haven't ever log this server. I know the admin, the server is not as bad as you think it is ! and BTW, 95% of the servers have sites wich are shared here.
  13. What not again ? @ONTopic Good Luck !
  14. First of all, is not mine is my Friend's Server. Server is hosted here: www.hostyourdream.net Is Gracia Final, i think he haven't done with the Webpage.
  15. L2DarkMirror Gracia Epilogue Server! Website: WWW.L2DARKMIRROR.COM .:: Game Specs ::. Interlude skills: 100% Kamael skills: 100% Hellbound skills: 100% Gracia skills: 98% Clan skills: 100% Olympiad: 100% working Nobless: 100% working Wedding: 100% working NPC Walkers: 100% working Cursed weapons: 100% working CT1 Clan lvl 10 system: 100% working Ultimate-Buffer With 9hour - Buffs, Songs, Dances, Chants And Servitor Buffs. Cubics, CP/MP/HP Recovery, 1-Click Buffing and Debuffing Option. LightSpeed Teleporter With Almost All Areas,etc ..:: Server's Rates ::.. XP: 5000x SP: 5000x Party XP: 2500 Party SP: 2500 Adena: 5000x Items: 1x ..:: Enchant Rates ::.. Max: +30 Safe: +7 Rates : 80% ..:: Other Infos ::.. Custom lvl Area Auto Learn Skills Max Subclasses: 4 Max Subclass Lvl: 85! PvP Color Mod (your name changes color depenting on your pvp points ) TvT Event Every 30mins - 30000 Ancient Adenas To Buy Blessed Scrolls You Can Use .away if you are not in your pc and next .back to change your status! Any player to take any sub-class without any restriction. Including Warsmith and Overlord. Custom Starting Color Name Do PvP and Win 1Gold Bar To Buy Vesper Etc... Use .password Into The Game To Change Your Password And More If You Login To Server :P ..:: Server Machine ::.. CPU: AMD Phenom Quad 940 3.0Ghz Ram: 8 GB DDR3 Hard Dics: 2 x 750 GB SATA-II HDD (Software-RAID 1) Operating System: Windows Server 2003 Connection Speed: 1000mbit uplink NOTE: The server is not mine, i am just advertising it Here.
  16. http://trac6.assembla.com/L2j-dreams/changeset/18 - > This oly fix is not working. You have much work to do! Good Luck.
  17. You can make the skill, passive so he won't see the skill !
  18. -1 Karma For spam. He is obviously going to spam in other topics too. ! GTFSSGF.
  19. Agree, L2Justice is a Great and unique Server. This is a . Server with . and . But... pff i kinda like the Website :D Despite the fact that is a ucoz one. :D
  20. "same" Like GvE, not that advanced. But you can make Events or Olympiad. Between Factions. Not like Normal GvE.
  21. This is not a greek Section, This is already shared x10000 Times. We are looking for new things in Contest ! Jeez.
  22. Hmm, this code is not working correctly, as i tested it. It doesn't take the item you give for the buff. ! And if you don't have enough money theres a Bypass error, in your GS. The problem is obviously in Amount < ItemAmound lines. I will fix it and update my share :D.
  23. I Accept your answers, sorry. And about Fakoykas it would be better like Fakoylas, that's why i wrote it :D:D:D: :D
×
×
  • 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