Jump to content

KOZANE

Members
  • Posts

    167
  • Credits

  • Joined

  • Last visited

    Never
  • Feedback

    0%

Everything posted by KOZANE

  1. Someone give here the RIGHT svn for L2J Freya . i had one , build success but fucking errors in GS without reason(some scripts events i think). Thanks ???
  2. Buildfile: D:\works\L2J_Server_BETA\build.xml clean: checkRequirements: getChangelogDateVersion: BUILD FAILED D:\works\L2J_Server_BETA\build.xml:183: Execute failed: java.io.IOException: Cannot run program "svn": CreateProcess error=2, ??? ????? ?????? ? ?????? ??? ???????????? ??????? ??? ?? ??????? Total time: 584 milliseconds Kathe fora pou trexw to build freya kai HI5 bgenei auto to error, prwti fora vlepw kati tetio, WTF?
  3. Every time i try to build freya or HI5 i get this fucking error(first time i see something like this, never had problems with compile) Buildfile: D:\works\L2J_Server_BETA\build.xml clean: checkRequirements: getChangelogDateVersion: BUILD FAILED D:\works\L2J_Server_BETA\build.xml:183: Execute failed: java.io.IOException: Cannot run program "svn": CreateProcess error=2, ??? ????? ?????? ? ?????? ??? ???????????? ??????? ??? ?? ??????? Total time: 584 milliseconds What i do now? WTF
  4. yes but for example , it's so simple to put buttons in C# just click and put it on the form. but in java you need to use Swing class and make new objects , etc. Isn't that bad?
  5. yes but don't they have some differences ? for example you can use messageboxes in applications, so actually i mean different syntax in some things
  6. what you suggest, C# consoles aplication ? or C# forms aplication? or both?
  7. actually everything, except .. you know programms , anything for windows. (no web development)
  8. hello can u tell me what would be a nice choice to begin? Java , C or something else for begin? And for example if i start learning the C language, what will i be able to do in the end? ps: i already know the basics of java(basic syntax)
  9. Καλησπερα, αυτο που θα ηθελα ειναι το εξής . Οσοι γνωριζετε πως γινεται , καλυτερα να μου κανατε αυτο το παραδειγμα. void heroForSomeHours(L2PcInstance player) {} Για παραδειγμα πως κανουμε αυτην την μεθοδο να κανει το αντικειμενο player hero gia 24 ωρες?Καντε μου ενα παραδειγμα.Πιο γενικα θελω να μαθω πως κανω πραγματα που κρατανε καποια περιοδο και μετα αυτοματα φευγουν, αλλα μενουν οταν ο server κανει restart κλπ
  10. Well ok, that's true , i liked it a lot :D (huh) Ok then :S , although it would be very serious and important for me an example that it would help me...ok i will see what i will do :( Waiting ..
  11. can you make one example? for example hero a player for 24 hours , it will help me , cause i don't understand :P edit: oups sorry for this, wanna change it? didn't know you had the same
  12. Hello all, the last 2 days i was practising in SQL connections and Threads. So today i was wondering: How can something happen for a period? For example: to make a character hero for 24 hours and then it leaves automatically(that's an example).But not to leave with server's restart or character's restart. Just 24 hours. Can anyone explain with examples? It will help me :)
  13. an kai den to epiasa poli to event, den einai anagi na paei o gm ekei. mporei na to kanei kai automato :) Loipon absolute, exeis 2 events na kaneis pros to paron :)
  14. problem solved , actually update was required finally , but and i have to change the scheduleGeneral. Thanks you :)
  15. if you want a pack with full fixes as you say, you must work on it's core too :)
  16. γενικα ενοει, λογικα θα θελει να κανει εξασκηση στην Java
  17. thanks, i catch you. Check your pms for my msn and infos. That's true,especially when the "bad kids" have time and they really want to learn smth.
  18. Hello, is it possible for example to write a donate system(all the setdonator , isdonator, admin command handlers ,etc ) system that needs database connections without them? And to not to use database connections, but fastlists, or at restart they will lose the status?
  19. the 1 was by mistake, the other is in greek section, LOL
  20. Den doulevei, ti exw lathos? Thelw px na sinvenei ana 1 ora gia paradigma , giati de litourgei? Kapios help PS: NO ERRORS. ### Eclipse Workspace Patch 1.0 #P testGameserver Index: java/net/sf/l2j/gameserver/GameServer.java =================================================================== --- java/net/sf/l2j/gameserver/GameServer.java (revision 5117) +++ java/net/sf/l2j/gameserver/GameServer.java (working copy) @@ -217,6 +217,7 @@ import net.sf.l2j.gameserver.instancemanager.RaidBossSpawnManager; import net.sf.l2j.gameserver.instancemanager.SiegeManager; import net.sf.l2j.gameserver.model.AutoChatHandler; +import net.sf.l2j.gameserver.model.entity.AutoRewardLords; import net.sf.l2j.gameserver.model.AutoSpawnHandler; import net.sf.l2j.gameserver.model.L2Manor; import net.sf.l2j.gameserver.model.L2PetDataTable; @@ -343,6 +344,7 @@ RecipeController.getInstance(); + AutoRewardLords.getInstance(); SkillTreeTable.getInstance(); ArmorSetsTable.getInstance(); FishTable.getInstance(); Index: java/net/sf/l2j/gameserver/model/entity/AutoRewardLords.java =================================================================== --- java/net/sf/l2j/gameserver/model/entity/AutoRewardLords.java (revision 0) +++ java/net/sf/l2j/gameserver/model/entity/AutoRewardLords.java (revision 0) @@ -0,0 +1,69 @@ +/* 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 2, 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, write to the Free Software + * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA + * 02111-1307, USA. + * + * http://www.gnu.org/copyleft/gpl.html + */ +package net.sf.l2j.gameserver.model.entity; + +import java.util.Collection; + +import net.sf.l2j.gameserver.Announcements; +import net.sf.l2j.gameserver.ThreadPoolManager; +import net.sf.l2j.gameserver.model.L2World; +import net.sf.l2j.gameserver.model.actor.instance.L2PcInstance; + +/** + * + * @author Cafr + */ +public class AutoRewardLords +{ + Collection<L2PcInstance> players = L2World.getInstance().getAllPlayers(); + + class AutoRewardTask implements Runnable + { + public void run() + { + for(L2PcInstance player : players) + { + if(player != null) if(player.getClan() != null) + if(player.getClan().getHasCastle() > 0 && player.isClanLeader()) + { + player.getInventory().addAdena(null, 25000000, player, null); + player.sendMessage("Auto rewarding castle lords activated,look your inventory."); + } + } + Announcements.getInstance().announceToAll("All online castle lords rewarded."); + System.out.println("Auto Castle Lords Reward Activated"); + } + } + + private AutoRewardLords() + { + ThreadPoolManager.getInstance().scheduleGeneral(new AutoRewardTask(), 60000); + } + + + public static AutoRewardLords getInstance() + { + return SingletonHolder._instance; + } + + private static class SingletonHolder + { + @SuppressWarnings("synthetic-access") + protected static final AutoRewardLords _instance = new AutoRewardLords(); + } +}
  21. I WANT TO HAPPEN EVERY 1 HOUR FOR EXAMPLE, IT DOES NOT WORK :sssss HOW CAN I MAKE IT TO WORK? CAN ANYONE HELP ME :/ ### Eclipse Workspace Patch 1.0 #P testGameserver Index: java/net/sf/l2j/gameserver/GameServer.java =================================================================== --- java/net/sf/l2j/gameserver/GameServer.java (revision 5117) +++ java/net/sf/l2j/gameserver/GameServer.java (working copy) @@ -217,6 +217,7 @@ import net.sf.l2j.gameserver.instancemanager.RaidBossSpawnManager; import net.sf.l2j.gameserver.instancemanager.SiegeManager; import net.sf.l2j.gameserver.model.AutoChatHandler; +import net.sf.l2j.gameserver.model.entity.AutoRewardLords; import net.sf.l2j.gameserver.model.AutoSpawnHandler; import net.sf.l2j.gameserver.model.L2Manor; import net.sf.l2j.gameserver.model.L2PetDataTable; @@ -343,6 +344,7 @@ RecipeController.getInstance(); + AutoRewardLords.getInstance(); SkillTreeTable.getInstance(); ArmorSetsTable.getInstance(); FishTable.getInstance(); Index: java/net/sf/l2j/gameserver/model/entity/AutoRewardLords.java =================================================================== --- java/net/sf/l2j/gameserver/model/entity/AutoRewardLords.java (revision 0) +++ java/net/sf/l2j/gameserver/model/entity/AutoRewardLords.java (revision 0) @@ -0,0 +1,69 @@ +/* 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 2, 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, write to the Free Software + * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA + * 02111-1307, USA. + * + * http://www.gnu.org/copyleft/gpl.html + */ +package net.sf.l2j.gameserver.model.entity; + +import java.util.Collection; + +import net.sf.l2j.gameserver.Announcements; +import net.sf.l2j.gameserver.ThreadPoolManager; +import net.sf.l2j.gameserver.model.L2World; +import net.sf.l2j.gameserver.model.actor.instance.L2PcInstance; + +/** + * + * @author Cafr + */ +public class AutoRewardLords +{ + Collection<L2PcInstance> players = L2World.getInstance().getAllPlayers(); + + class AutoRewardTask implements Runnable + { + public void run() + { + for(L2PcInstance player : players) + { + if(player != null) if(player.getClan() != null) + if(player.getClan().getHasCastle() > 0 && player.isClanLeader()) + { + player.getInventory().addAdena(null, 25000000, player, null); + player.sendMessage("Auto rewarding castle lords activated,look your inventory."); + } + } + Announcements.getInstance().announceToAll("All online castle lords rewarded."); + System.out.println("Auto Castle Lords Reward Activated"); + } + } + + private AutoRewardLords() + { + ThreadPoolManager.getInstance().scheduleGeneral(new AutoRewardTask(), 60000); + } + + + public static AutoRewardLords getInstance() + { + return SingletonHolder._instance; + } + + private static class SingletonHolder + { + @SuppressWarnings("synthetic-access") + protected static final AutoRewardLords _instance = new AutoRewardLords(); + } +} \ No newline at end of file
×
×
  • Create New...