Jump to content
  • 0

[help] oly ka8e 15 toy mhna


Question

6 answers to this question

Recommended Posts

  • 0
Posted

oriste file mou

 

Index: java/com/l2jserver/Config.java

===================================================================

--- java/com/l2jserver/Config.java   (revision 3799)
+++ java/com/l2jserver/Config.java   (working copy)
@@ -469,6 +469,8 @@

   public static long ALT_OLY_BATTLE;
   public static long ALT_OLY_WPERIOD;
   public static long ALT_OLY_VPERIOD;
+   public static int[] ALT_OLY_END_DATE;
+   public static int[] ALT_OLY_END_HOUR = new int[3];
   public static int ALT_OLY_CLASSED;
   public static int ALT_OLY_NONCLASSED;
   public static int ALT_OLY_REG_DISPLAY;
@@ -2197,6 +2199,17 @@
               ALT_OLY_BATTLE = Long.parseLong(olympiad.getProperty("AltOlyBattle","360000"));
               ALT_OLY_WPERIOD = Long.parseLong(olympiad.getProperty("AltOlyWPeriod","604800000"));
               ALT_OLY_VPERIOD = Long.parseLong(olympiad.getProperty("AltOlyVPeriod","86400000"));
+               String[] propertySplit = olympiad.getProperty("AltOlyEndDate","1").split(",");
+               ALT_OLY_END_DATE = new int[propertySplit.length];
+               for (int i = 0; i < propertySplit.length; i++)
+               {
+                  ALT_OLY_END_DATE[i] = Integer.parseInt(propertySplit[i]);
+               }
+               propertySplit = olympiad.getProperty("AltOlyEndHour","12:00:00").split(":");
+               for (int i = 0; i < 3; i++)
+               {
+                  ALT_OLY_END_HOUR[i] = Integer.parseInt(propertySplit[i]);
+               }
               ALT_OLY_CLASSED = Integer.parseInt(olympiad.getProperty("AltOlyClassedParticipants","5"));
               ALT_OLY_NONCLASSED = Integer.parseInt(olympiad.getProperty("AltOlyNonClassedParticipants","9"));
               ALT_OLY_REG_DISPLAY = Integer.parseInt(olympiad.getProperty("AltOlyRegistrationDisplayNumber","100"));
Index: java/com/l2jserver/gameserver/model/olympiad/Olympiad.java
===================================================================
--- java/com/l2jserver/gameserver/model/olympiad/Olympiad.java   (revision 3799)
+++ java/com/l2jserver/gameserver/model/olympiad/Olympiad.java   (working copy)
@@ -872,14 +872,25 @@
      Announcements.getInstance().announceToAll(sm);

      Calendar currentTime = Calendar.getInstance();
-      currentTime.add(Calendar.MONTH, 1);
-      currentTime.set(Calendar.DAY_OF_MONTH, 1);
-      currentTime.set(Calendar.AM_PM, Calendar.AM);
-      currentTime.set(Calendar.HOUR, 12);
-      currentTime.set(Calendar.MINUTE, 0);
-      currentTime.set(Calendar.SECOND, 0);
-      _olympiadEnd = currentTime.getTimeInMillis();
+      int nearest = 0;



+      Calendar[] cals = new Calendar[Config.ALT_OLY_END_DATE.length];
+      for (int i = 0; i < cals.length; i++)
+      {
+         cals[i] = Calendar.getInstance();
+         cals[i].set(Calendar.DAY_OF_MONTH, Config.ALT_OLY_END_DATE[i]);
+         if (cals[i].before(currentTime))
+            cals[i].add(Calendar.MONTH, 1);
+         
+         if (cals[i].before(cals[nearest]))
+            nearest = i;
+      }
+      
+      cals[nearest].set(Calendar.HOUR_OF_DAY, Config.ALT_OLY_END_HOUR[0]);
+      cals[nearest].set(Calendar.MINUTE, Config.ALT_OLY_END_HOUR[1]);
+      cals[nearest].set(Calendar.SECOND, Config.ALT_OLY_END_HOUR[2]);
+      _olympiadEnd = cals[nearest].getTimeInMillis();
+      
      Calendar nextChange = Calendar.getInstance();
      _nextWeeklyChange = nextChange.getTimeInMillis() + WEEKLY_PERIOD;
      scheduleWeeklyChange();
Index: java/config/olympiad.properties
===================================================================
--- java/config/olympiad.properties   (revision 3799)
+++ java/config/olympiad.properties   (working copy)
@@ -33,6 +33,17 @@
# Default: 86400000
AltOlyVPeriod = 86400000

+# Olympiad End Period Date - day(s) of month
+# (e.g. 1 would mean oly period ends every 1st day of month)
+# (e.g. 1,15 would mean oly period ends every 1st and 15th day of month)
+# <b><font color=red>CAUTION: You should set the AltOlyWPeriod and AltOlyVPeriod according to the changes done here!</font></b>
+# Default: 1
+AltOlyEndDate = 1          <------------- // Sakretsu - So there you should write 1,15 (days of every month)
+
+# Olympiad End Period Time - in format hh:mm:ss (24 hours format)
+# Default: 12:00:00
+AltOlyEndHour = 12:00:00
+
# Required number of participants for Classed and Non-Classed matches, Default 5 & 9
# Default: 5
AltOlyClassedParticipants = 5

  • 0
Posted

eyxarhstw poy!!! testarismeno?

[edit]

edw ti na balw??

# Olympiad Weekly Period, Default 1 week

AltOlyWPeriod = 604800000 <<

 

# Olympiad Validation Period, Default 24 Hours.

AltOlyVPeriod = 86400000 <<

 

ty btw

  • 0
Posted

tpt den tha valeis ekei mono ekei pou einai + tha ta kaneis edit sto config kai meta oti theleis tha baleis anti 1 bale 15 tou minos

 

h etsi 15,1,15

  • 0
Posted

File mou ayto edw  einai gia tin ora tha ginei locked i olympiad

# Olympiad End Period Time - in format hh:mm:ss (24 hours format)
# Default: 12:00:00
AltOlyEndHour = 12:00:00

 

 

se ayto epile3eis  pote tha bgoun i hero

 

# Olympiad End Period Date - day(s) of month
# (e.g. 1 would mean oly period ends every 1st day of month)
# (e.g. 1,15 would mean oly period ends every 1st and 15th day of month)
# <b><font color=red>CAUTION: You should set the AltOlyWPeriod and AltOlyVPeriod according to the changes done here!</font></b>
# Default: 1
AltOlyEndDate = 1  

 


diladi ekei pou exei  to 1 bazeis to diko sou..

 

px

 

AltOlyEndDate =15

 


 

ama theleis omws n bgenoun diladi kathe ebdomada kaneis to e3eis..

 

AltOlyEndDate =15,30

diladi bazeis mia  akoma imerominia pou thelei na bgeoun.

 

alla  prepei na kanei ena rr panta otan teleiwnei i olympiad stis 12 to bradu i analoga pote to exeis balei esu kai meta  perimeneis aytomata na bgoun i hero den tous  bgazeis esu..

i hero bgenoun to prwi ama 8umamai kala  alla den 8umamai kati  ti ora bgenoun panta  hero..

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



  • Posts

    • We remind you that right now you can create a new character and get the benefits of the bonus-start, which will begin on April 19th. These advantages include: — 10 sets of buff scrolls (phys or mage, depending on class), — 10 packs of +50% Drop/Spoil runes (2 hours each), — 10 packs of +50% Exp runes (2 hours each). Moreover, characters between level 21 and 30 will receive upon login: — 6 sets of buff scrolls, — 6 packs of +50% Drop/Spoil runes (2h each), — 6 packs of +50% Exp runes (2h each). Don't miss the chance to start your adventure on Airin!
    • We are certainly not an ambulance, but we will definitely cure you of blacklists and empty pockets. Live freely with SX! Each of you will receive a trial version of SX to familiarize yourself with the product, all you have to do is post in this thread
    • It's also the players' fault, because there have been decent servers implementing some of the things you said plus some other 'innovations', plus many QOL things for newbies (ingame bestiary, with drops searchers, etc). In the end, it's the players who decide to feed into that shit and play the most garbage servers simply because the owners of the servers gave their clan leaders 100 euros, or they insta quit the server because they didn't win the first QA, etc, etc, etc.   In the end, if a server is garbage or great it doesn't really matter if the players don't wanna stay in there.   Players are no better than the devs themselves, in the end it seems there are abusive devs who will milk the shit out of their willingly milkable players, or there are none, goes both ways.
    • In my opinion, L2 is dead because the people who make servers didn’t adapt to today’s reality. People are getting older, life moves faster, there are more responsibilities, and less free time. And I’m not even talking about newcomers—how can you expect someone new to this game to learn by Googling every drop location or quest requirement? These things should’ve been integrated into the game, made accessible with just a few clicks through the interface. Instead, so much time was wasted trying to recreate retail-like features that no one asked for. Everyone hates autofarm, but why? Because admins never found a smart way to implement it. You could have made it available only in specific zones, with reduced drops, working like Adrenaline, or auto-teleporting to farm for a limited time per day—just enough to help people with limited time stay relevant in-game. There should also be zones with better drops, where active farming actually matters. Other features feel pointless—like the Life Stone system. Spamming LS to get a skill? Instead, you could create a system where you level up the skill with low chances per level, something that feels progressive and fair. Crafting should be simpler too. Right-click a recipe, and the required materials should show up right there. As for sieges, why not create daily clan war events at peak hours—one for Europeans, one for Latinos? You could spawn crystals inside or outside castles that give points and trigger PvP. Add a boss during the event that gives even more points, and let the top clan in the ranking take the castle. I could go on forever, but what’s the point? The community died because the people who had the knowledge to improve the game just took the easy way out, copying the same server formula over and over until no one could enjoy playing it anymore.
    • It's not because I'm an admin that he treated me differently. I actually gave him several clients from my side without him even knowing they came from me, and most of them had no issues. I was also waiting 3–4 weeks at times for things I bought from AvE, even when I was in a rush. He still delivered in the end. That said, I'm not defending him blindly. I'm just saying it's unlikely he’d risk scamming someone over 60–100€, especially knowing how quickly word spreads here.
  • Topics

×
×
  • Create New...