Jump to content
  • 0

Siege Day Time


costismaros

Question

Kalispera sas .

 

Gnorizo pos mporo na alakso tin proti imera tou siege.

Thelo omos to Giran Siege na ginete kathe treis imeres kai i epilogi oras apo tous Owner na ginete mesa se ena euros oron (14:00 eos 22:00) .

 

Iparxei kapoios tropos na to epitixo auto ?

 

Euxaristo

 

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

To vrika se ena allo site kai to metafero .

Den einai diko mou .

 

   1. Index: java/com/l2jserver/gameserver/model/entity/Siege.java
   2. ===================================================================
   3. --- java/com/l2jserver/gameserver/model/entity/Siege.java   (revision 3770)
   4. +++ java/com/l2jserver/gameserver/model/entity/Siege.java   (working copy)
   5. @@ -26,7 +26,6 @@
   6. import com.l2jserver.Config;
   7. import com.l2jserver.L2DatabaseFactory;
   8. import com.l2jserver.gameserver.Announcements;
   9. -import com.l2jserver.gameserver.SevenSigns;
  10. import com.l2jserver.gameserver.ThreadPoolManager;
  11. import com.l2jserver.gameserver.datatables.ClanTable;
  12. import com.l2jserver.gameserver.datatables.MapRegionTable;
  13. @@ -1113,14 +1112,6 @@
  14.          setNextSiegeDate();
  15.       }
  16.  
  17. -      if (!SevenSigns.getInstance().isDateInSealValidPeriod(getCastle().getSiegeDate()))
  18. -      {
  19. -         // no sieges in Quest period! reschedule it to the next SealValidationPeriod
  20. -         // This is usually caused by server being down
  21. -         corrected = true;
  22. -         setNextSiegeDate();
  23. -      }
  24. -
  25.       if (corrected)
  26.          saveSiegeDate();
  27.    }
  28. @@ -1406,19 +1397,9 @@
  29.    {
  30.       while (getCastle().getSiegeDate().getTimeInMillis() < Calendar.getInstance().getTimeInMillis())
  31.       {
  32. -         if (getCastle().getSiegeDate().get(Calendar.DAY_OF_WEEK) != Calendar.SATURDAY && getCastle().getSiegeDate().get(Calendar.DAY_OF_WEEK) != Calendar.SUNDAY)
  33. -            getCastle().getSiegeDate().set(Calendar.DAY_OF_WEEK, Calendar.SATURDAY);
  34. -         // from CT2.3 Castle sieges are on Sunday, but if server admins allow to set day of the siege
  35. -         // than sieges can occur on Saturdays as well
  36. -         if (getCastle().getSiegeDate().get(Calendar.DAY_OF_WEEK) == Calendar.SATURDAY && !Config.CL_SET_SIEGE_TIME_LIST.contains("day"))
  37. -            getCastle().getSiegeDate().set(Calendar.DAY_OF_WEEK, Calendar.SUNDAY);
  38. -         // set the next siege day to the next weekend
  39. -         getCastle().getSiegeDate().add(Calendar.DAY_OF_MONTH, 7);
  40. +         getCastle().getSiegeDate().setTimeInMillis(getCastle().getSiegeDate().getTimeInMillis() + 604800000L);
  41.       }
  42.  
  43. -      if (!SevenSigns.getInstance().isDateInSealValidPeriod(getCastle().getSiegeDate()))
  44. -         getCastle().getSiegeDate().add(Calendar.DAY_OF_MONTH, 7);
  45. -
  46.       SystemMessage sm = new SystemMessage(SystemMessageId.S1_ANNOUNCED_SIEGE_TIME);
  47.       sm.addString(getCastle().getName());
  48.       Announcements.getInstance().announceToAll(sm);

 

Parakalo opos metakinithei to topic an einai se lathos section .

Aplos prospatho na kliso ta topic pou anoiksa

Link to comment
Share on other sites

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.



×
×
  • Create New...