Jump to content
  • 0

A little help about l2j siege hours and days.


Question

Posted

The tragedy is that I made a guide about how to change the sieges to other packs.. >:(

 

Anyway I found a guide about l2j how to change siege dates,which is in miliseconds.

 

1. from 1/1/1970 to 1/1/2007 = 37 years

2. 37 years x 365 days = 13505 days

3. 13505 days x 24 hours = 324120 hours

4. 324120 hours x 60 minutes = 19447200 minutes

5. 19447200 minutes x 60 seconds = 1166832000 seconds

6. 1166832000 seconds x 1000 miliseconds = 1166832000000 miliseconds

 

I can't understand this guide.If someone can explain it to me.I don't know how to start.

 

id          name  taxpercent treasury    SiegeDate          regtimeover      regtimeend

1 Gludio 0 0 1244919000000 false 1244358850656

 

My table castle.This is Gludio and I want to put it Friday at 21:00 and end 23:00

 

4 answers to this question

Recommended Posts

  • 0
Posted

Or if there's another way to change them?I've also found this but where must I put it?

 

Index: java/net/sf/l2j/gameserver/model/entity/Siege.java

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

--- java/net/sf/l2j/gameserver/model/entity/Siege.java  (revision 2968)

+++ java/net/sf/l2j/gameserver/model/entity/Siege.java  (working copy)

@@ -27,7 +27,6 @@

import javolution.util.FastList;

import net.sf.l2j.L2DatabaseFactory;

import net.sf.l2j.gameserver.Announcements;

-import net.sf.l2j.gameserver.SevenSigns;

import net.sf.l2j.gameserver.ThreadPoolManager;

import net.sf.l2j.gameserver.datatables.ClanTable;

import net.sf.l2j.gameserver.datatables.MapRegionTable;

@@ -1024,14 +1023,6 @@

            setNextSiegeDate();

        }

       

-      if (!SevenSigns.getInstance().isDateInSealValidPeriod(getCastle().getSiegeDate()))

-      {

-          // no sieges in Quest period! reschedule it to the next SealValidationPeriod

-          // This is usually caused by server being down

-          corrected = true;

-          setNextSiegeDate();

-      }

-     

        if (corrected)

            saveSiegeDate();

    }

@@ -1268,12 +1259,9 @@

            if (getCastle().getSiegeDate().get(Calendar.DAY_OF_WEEK) != Calendar.SATURDAY && getCastle().getSiegeDate().get(Calendar.DAY_OF_WEEK) != Calendar.SUNDAY)

                getCastle().getSiegeDate().set(Calendar.DAY_OF_WEEK, Calendar.SATURDAY);

            // set the next siege day to the next weekend

-          getCastle().getSiegeDate().add(Calendar.DAY_OF_MONTH, 7);

+          getCastle().getSiegeDate().setTimeInMillis(getCastle().getSiegeDate().getTimeInMillis() + 1209600000L);

        }

       

-      if (!SevenSigns.getInstance().isDateInSealValidPeriod(getCastle().getSiegeDate()))

-          getCastle().getSiegeDate().add(Calendar.DAY_OF_MONTH, 7);

-     

        _isRegistrationOver = false; // Allow registration for next siege

    }

   

 

 

  • 0
Posted

The tragedy is that I made a guide about how to change the sieges to other packs.. >:(

 

Anyway I found a guide about l2j how to change siege dates,which is in miliseconds.

 

1. from 1/1/1970 to 1/1/2007 = 37 years

2. 37 years x 365 days = 13505 days

3. 13505 days x 24 hours = 324120 hours

4. 324120 hours x 60 minutes = 19447200 minutes

5. 19447200 minutes x 60 seconds = 1166832000 seconds

6. 1166832000 seconds x 1000 miliseconds = 1166832000000 miliseconds

 

I can't understand this guide.If someone can explain it to me.I don't know how to start.

 

id           name  taxpercent treasury     SiegeDate          regtimeover      regtimeend

1 Gludio 0 0 1244919000000 false 1244358850656

 

My table castle.This is Gludio and I want to put it Friday at 21:00 and end 23:00

 

 

I truly am having great difficulty understanding this concept? !

On my server all castles siege dates are Sat at 18:00:00 hour and last for 120 minutes.  Below are the stats for Goddard Castle:

 

Id |  name    | taxPercent | treasure |   siegeDate        | RegularTimeOver |   regTimeEnd      |   

5 | Goddard |              0 |           0| 1251586800000   |             false     | 1250463600015  |

 

Could someone simply give me the numbers to change the siegeDate to Sunday at 1:00 PM CST and the same information to change the above date and time to Saturday 1:00 PM CST ?

 

Thank you

WildAmos@hotmail.com

 

 

 

Guest
This topic is now closed to further replies.


  • Posts

    • I usually stick to legit ways to tweak my setup, since cheats can tank accounts fast. If you’re just looking to freshen up the game or try new builds without headaches, grabbing cheap keys or DLC from places I’ve used before, like https://www.cdkeysforgames.com/seller/, has been an easy win. Kept my runs smooth without putting my profile at risk.
    • If anyone needs coding services, such as community boards, buffers, auto-farm systems, or daily/weekly/monthly task systems, feel free to get in touch with me on Discord: gerardas1816   Please find attached examples of my work.
    • you cant add cloaks on interlude client if im not mistaken,the image you show us on login screen is from another chronicle and not interlude.
    • Hello!  I need help with two things if any one is willing to help! Im making an interlude server using l2jmobius interlude server pack. First i need help with adding viewable cloaks how can i  do that ??  Also i found this client https://www.gildor.org/smf/index.php?topic=8525.0 and when i launch it it logins and when im in the server selection phase i select my server and i click ok but it doesnt get in the game any possible solution ???  Thanks for helping!!! <3
    • Join the growing L2Genesis community: https://discord.gg/mcuHsQzNCm Also check our website: https://l2genesis.com/   Since the Genesis community is still very small, I decided to ask a larger Lineage 2 community for advice — so here I am, Redditors.   I’m coming back to you with the second version of the proposed changes regarding Destroyer balance in Interlude. You can read about the first proposal here: https://www.reddit.com/r/Lineage2/comments/1rb9da7/l2genesiscom_seek_for_feedback_destro_balance/   User DanPWN3D suggested a pretty interesting idea that we managed to implement for testing with our testers, but we’d like to get some outside opinions as well.     Do you think a Destroyer nerf in Interlude is needed to bring it in line with Warlord in AoE farming?   If yes, which approach would be better?   Option 1 – Frenzy + Guts blocked when using Polearms The skills would still work normally with all other weapons, so Destroyer wouldn’t lose its strength in PvP or single-target PvE farming. https://www.youtube.com/watch?v=tedOGNOeHQY     Option 2 – Splash damage nerf All mobs (except the main target) receive reduced damage by a percentage. (The exact value could be anything from 1 to 99 and would need to be defined.) https://www.youtube.com/watch?v=FDf4fdZ6Ik0
  • Topics

×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..