Jump to content

Versus

Legendary Member
  • Posts

    3,947
  • Credits

  • Joined

  • Last visited

  • Feedback

    0%

Everything posted by Versus

  1. Lol. To me it takes arround 5 seconds.
  2. Ta dika s les? Afou s leei o an8rwpos dn exei privs gia edit.
  3. I added Sao Paulo without fixing the hour, but now i'm too lazy to add it. Anyway i added a warning there for the people who will use this, so they will fix it. Thanks for reminding.
  4. You can't get posts at this section.
  5. Member is banned, topic locked.
  6. Please add it to more languages, lol. Welcome.
  7. Well it's the same but the code is different so i'm gonna let both and let the choice to the members.
  8. Sigourepsou oti exeis ta teleutaia drivers tis kartas hxou s k ta exeis katebasei apo to official site tis.
  9. Lol, even if i agree that PS1 was awesome, the games and stuff the games that are released now are MUCH better. Take a look at the graphics.
  10. Preconfigured packs με 0 προστασία και με το μόνο πλεονέκτημα κάποια πολύ εύκολα στην εγκατάσταση NPC's θα διαγράφονται για να εμποδίσουμε την ύπαρξη των χωρίς καθόλου προστασία και "hostarismenous" σε σπίτια servers. Sto topic "Diabase prin postareis" t ellinikou dev section
  11. Ram kingston dagkoto! Oses ram exw alla3ei panta kingston, pote dn m dimiourgisan problima k sta games einai gg ola ta upostirizei. An 8es ti gnwmi m mi pareis panw apo 4gb ram gt meta pas se 64bito OS k merika progs/games ktlp dn einai simbata me 64bita H karta grafikwn einai top an k protimw nvidia. O epe3ergasths s dn m aresei, enas intel i7 8a itan i korufaia epilogi, alla opws 8es.
  12. Tote 8a t to bgalw to karma se 2 wres p 8a mporw toulaxiston krima pantws :(
  13. Epitelous kapios to ekane.. +1 karma ta colors p briskoume sta diafora pages sto internet dn einai idia me t game. Wraios!
  14. No, he didn't but he should include credits since it's not his.
  15. Thanks for ALL your comments guys.. Hotman i pmed you. And yeah Calendar is a really usefull tool, if you get familiar with it you'll love it. Too bad it's not used that much on l2j. Bandwidth reached at photobucket. Will be back soon ;D
  16. Yeah i mentioned that on my first post "Something else you should keep in mind, the clock sets itself from the calendar of your computer.", but you are right, who has wrong time on pc? ;D
  17. Hello everyone, it's been a while since i shared something, that's because i didn't have any nice ideas to do something. While i was bored today i made a script which will show the time from the country you choose. Example: .Greece It's a voicedcommand and the defaults i've put are Greece, China, Moscow, India, New York, Chicago, Mexico, Los Angeles, Paris, London, Sao Paulo. Of course you can add more. I took the idea from here and i thought why to use a client mod when it can easily be done through java. Something else you should keep in mind, the clock sets itself from the calendar of your computer. It is setted to work at GMT+2, if your clock is different than that then you'll have to change the added hours. Made on latest l2jfree core, of course can work on other aswell. The author is me, fakoykas. Index: I:/workspace/l2jfree-core/src/main/java/com/l2jfree/gameserver/handler/VoicedCommandHandler.java =================================================================== --- I:/workspace/l2jfree-core/src/main/java/com/l2jfree/gameserver/handler/VoicedCommandHandler.java (revision 8052) +++ I:/workspace/l2jfree-core/src/main/java/com/l2jfree/gameserver/handler/VoicedCommandHandler.java (working copy) @@ -22,6 +22,7 @@ import com.l2jfree.gameserver.handler.voicedcommandhandlers.Hellbound; import com.l2jfree.gameserver.handler.voicedcommandhandlers.Mail; import com.l2jfree.gameserver.handler.voicedcommandhandlers.Offline; +import com.l2jfree.gameserver.handler.voicedcommandhandlers.RealTime; import com.l2jfree.gameserver.handler.voicedcommandhandlers.Report; import com.l2jfree.gameserver.handler.voicedcommandhandlers.VersionInfo; import com.l2jfree.gameserver.handler.voicedcommandhandlers.Wedding; @@ -49,6 +50,7 @@ registerVoicedCommandHandler(new Hellbound()); registerVoicedCommandHandler(new Mail()); registerVoicedCommandHandler(new Offline()); + registerVoicedCommandHandler(new RealTime()); registerVoicedCommandHandler(new Report()); registerVoicedCommandHandler(new VersionInfo()); registerVoicedCommandHandler(new Wedding()); Index: I:/workspace/l2jfree-core/src/main/java/com/l2jfree/gameserver/handler/voicedcommandhandlers/RealTime.java =================================================================== --- I:/workspace/l2jfree-core/src/main/java/com/l2jfree/gameserver/handler/voicedcommandhandlers/RealTime.java (revision 0) +++ I:/workspace/l2jfree-core/src/main/java/com/l2jfree/gameserver/handler/voicedcommandhandlers/RealTime.java (revision 0) @@ -0,0 +1,39 @@ +/* +* 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 com.l2jfree.gameserver.handler.voicedcommandhandlers; + +import java.util.Calendar; + +import com.l2jfree.gameserver.handler.IVoicedCommandHandler; +import com.l2jfree.gameserver.model.actor.instance.L2PcInstance; + +/** + * @author fakoykas + * + * this class... + * shows the time of the country the caller chooses + */ + +public class RealTime implements IVoicedCommandHandler +{ + private static final String[] VOICED_COMMANDS = + { "Greece", "China", "Moscow", "India", "New_York", "Chicago", "Mexico", "Los_Angeles", "Paris", "London", "Sao_Paulo"}; + + public boolean useVoicedCommand(String command, L2PcInstance activeChar, String text) + { + Calendar time = Calendar.getInstance(); + if (command.startsWith("Greece")) + activeChar.sendMessage("The current time at "+command+" is "+ time.getTime()); + + if (command.startsWith("China")) + { + time.add(Calendar.HOUR, 6); + activeChar.sendMessage("The current time at "+command+" is "+ time.getTime()); + } + + if (command.startsWith("Moscow")) + { + time.add(Calendar.HOUR, 1); + activeChar.sendMessage("The current time at "+command+" is "+ time.getTime()); + } + + if (command.startsWith("India")) + { + time.add(Calendar.HOUR, 3); + time.add(Calendar.MINUTE, 30); + activeChar.sendMessage("The current time at "+command+" is "+ time.getTime()); + } + + if (command.startsWith("New_York")) + { + time.add(Calendar.HOUR, -10); + activeChar.sendMessage("The current time at New York is "+ time.getTime()); + } + + if (command.startsWith("Chicago") || command.startsWith("Mexico")) + { + time.add(Calendar.HOUR, -9); + activeChar.sendMessage("The current time at "+command+" is "+ time.getTime()); + } + + if (command.startsWith("Los_Angeles")) + { + time.add(Calendar.HOUR, -7); + activeChar.sendMessage("The current time at Los Angeles is "+ time.getTime()); + } + + if (command.startsWith("Paris")) + { + time.add(Calendar.HOUR, -1); + activeChar.sendMessage("The current time at "+command+" is "+ time.getTime()); + } + + if (command.startsWith("London")) + { + time.add(Calendar.HOUR, -2); + activeChar.sendMessage("The current time at "+command+" is "+ time.getTime()); + } + + if (command.startsWith("Sao_Paulo")) + { + // the time of Sao Paulo is wrong and i'm too lazy to find the correct one. Do it yourself :D + time.add(Calendar.HOUR, -12); + activeChar.sendMessage("The current time at Sao Paulo is "+ time.getTime()); + } + + return true; + } + + public String[] getVoicedCommandList() + { + return VOICED_COMMANDS; + } +} Best Regards.
  18. Spam more cps lol >.< Anyway, you pwned them ;D
  19. E3eretiko! Osoi servers exoun prostasia einai mia wraia enallaktiki lusi. Eixa skeftei k egw kati paromoio all adn eixa tin upomoni na katsw na to psa3w ;p 8a s edina karma alla pires hdh apo to aggliko topic :D
  20. This question has already been answered a bunch of times, anyway. Go at altsettings.properties and search for this # Weight Limit multiplier - default 1 AltWeightLimit = 1. change the value to something like 9999
  21. Lol, don't try to run games at Notebooks! My laptop with almost similar specs with your notebook runs Dota with a lil lag and dota is a really low game compared to others. About your tower.. it shouldn't lag, try updating your graphic card drivers, trust me you'll see much improvement, it might solve all your problems. Now if the drivers are up-to-date i don't know what could go wrong, i have tried a LOT of games (ask GrisoM :P) never had a problem besides that graphic card thing.
  22. +1 i got bored after 1 day of playing it more comments can be found here
×
×
  • Create New...