Everything posted by KOZANE
-
[HELP]Freya RIGHT SVN
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 ???
-
[HELP]Freya-HI5 compiling problem WTFff
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?
-
[HELP]Freya-HI5 compiling problem WTF
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
-
[help]programming languages to start
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?
-
[help]programming languages to start
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
-
[help]programming languages to start
what you suggest, C# consoles aplication ? or C# forms aplication? or both?
-
[help]programming languages to start
actually everything, except .. you know programms , anything for windows. (no web development)
-
[help]programming languages to start
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)
-
[HELP]Java- Time Periods
up
-
Outdated from L2J
ofc he worked.
-
[HELP]Java- Time Periods
Καλησπερα, αυτο που θα ηθελα ειναι το εξής . Οσοι γνωριζετε πως γινεται , καλυτερα να μου κανατε αυτο το παραδειγμα. void heroForSomeHours(L2PcInstance player) {} Για παραδειγμα πως κανουμε αυτην την μεθοδο να κανει το αντικειμενο player hero gia 24 ωρες?Καντε μου ενα παραδειγμα.Πιο γενικα θελω να μαθω πως κανω πραγματα που κρατανε καποια περιοδο και μετα αυτοματα φευγουν, αλλα μενουν οταν ο server κανει restart κλπ
-
[HELP]Java- Time Periods
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 ..
-
[HELP]Java- Time Periods
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
-
[HELP]Java- Time Periods
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 :)
-
[Exchange] Paysafe to Paypal
Trusted , just traded 50 euros!
-
Ιδέες για Events
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 :)
-
[HELP]ONE CODE I MADE DOESN'T WORK-JAVA
problem solved , actually update was required finally , but and i have to change the scheduleGeneral. Thanks you :)
-
Outdated from L2J
if you want a pack with full fixes as you say, you must work on it's core too :)
-
Ιδέες για Events
γενικα ενοει, λογικα θα θελει να κανει εξασκηση στην Java
-
[HELP]ONE CODE I MADE DOESN'T WORK-JAVA
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.
-
[help]fastlists and no database connections
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?
-
[HELP]ONE CODE I MADE DOESN'T WORK-JAVA
the 1 was by mistake, the other is in greek section, LOL
-
[help]Threads , ena java code pou ekana
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(); + } +}
-
[HELP]ONE CODE I MADE DOESN'T WORK-JAVA
up
-
[HELP]ONE CODE I MADE DOESN'T WORK-JAVA
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