Jump to content

Recommended Posts

Posted

Questions:

1. Does 4 hours in real life equals in 1 Day in Lineage 2? 

2. Do game broadcast SunRise and SunSet upon night and day? 

3. L2J set to broadcast sunset every 10 minute (using sleep thread), is that ok? Or should be done instant with a threadpool Ex. 21:00 Broadcast night until 6:00 morning e.t.c ?

 

Posted
On 1/12/2017 at 5:10 PM, GamePsychology said:

Questions:

1. Does 4 hours in real life equals in 1 Day in Lineage 2? 

2. Do game broadcast SunRise and SunSet upon night and day? 

3. L2J set to broadcast sunset every 10 minute (using sleep thread), is that ok? Or should be done instant with a threadpool Ex. 21:00 Broadcast night until 6:00 morning e.t.c ?

 

 

1) yes

2) I think yes,but they last short

3) I think should be done instantly

Posted
38 minutes ago, HarryHoudini said:

 

1) yes

2) I think yes,but they last short

3) I think should be done instantly

 

Have u played official? What u mean short? Ex. If is night upon  login night packet is sended to player? Have u seen that on Official?

Posted
3 minutes ago, GamePsychology said:

 

Have u played official? What u mean short? Ex. If is night upon  login night packet is sended to player? Have u seen that on Official?

 

Nope. Just asked it from someone else who did though. By short i mean the duration of. As for example,it depends on server's time settings. I think yes, if server configured time is fitted real one, if not it would show day/night depends on what time it is in game.

Posted
36 minutes ago, HarryHoudini said:

 

Nope. Just asked it from someone else who did though. By short i mean the duration of. As for example,it depends on server's time settings. I think yes, if server configured time is fitted real one, if not it would show day/night depends on what time it is in game.

Ok thanks a lot, ill send you a cookie for your time, give me ur mail to mail it! 

Posted
3 minutes ago, GamePsychology said:

Ok thanks a lot, ill send you a cookie for your time, give me ur mail to mail it! 

 

Np mate. 

 

Hahaha okay, i'll wait for it. Please and some piece of chocolate on it. 

Posted (edited)

Hi, in l2off (at least in leaked Gracia Final) it works this way:

  1. there's class CL2Time that manages this, game time runs 6 times faster than real time so each game day is 3 hours long and night 1 hour long
  2. it runs a timer each 10 seconds and checks whether day or night started, day starts at 6:00 game time, night starts at 0:00 game time
  3. when that 10 second timer expires and night changes to day or vice versa, server broadcasts SunRise packet (0x12) or SunSet packet (0x13)
  4. these packets are sent to player upon login as well
Edited by eressea
Posted
9 hours ago, eressea said:

Hi, in l2off (at least in leaked Gracia Final) it works this way:

  1. there's class CL2Time that manages this, game time runs 6 times faster than real time so each game day is 3 hours long and night 1 hour long
  2. it runs a timer each 10 seconds and checks whether day or night started, day starts at 6:00 game time, night starts at 0:00 game time
  3. when that 10 second timer expires and night changes to day or vice versa, server broadcasts SunRise packet (0x12) or SunSet packet (0x13)
  4. these packets are sent to player upon login as well

 

ok thanks, very informative.

So the 4 hours is perfectly. And i also added the broadcast upon login if is night only cause i believe broadcast SunRise when is day is not good since the default weather is day and the sunrise looks redish. So ill just broadcast sunrise upon day change only and new login players will just see blue sky.

 

The other question is whats the best option to broadcast the dark elf skill upon change. Currently i simply did a for and just re-add the skill to those who have it to get the new effect. I havent try if getEffects work. Any other proper way?

Posted

It's quite easy actually, p_hit_a_night pump is protected by a pump conditions which checks on server if it's night or not, and revalidated every stats recalculations.

Posted
11 minutes ago, GamePsychology said:

 

ok thanks, very informative.

So the 4 hours is perfectly. And i also added the broadcast upon login if is night only cause i believe broadcast SunRise when is day is not good since the default weather is day and the sunrise looks redish. So ill just broadcast sunrise upon day change only and new login players will just see blue sky.

 

The other question is whats the best option to broadcast the dark elf skill upon change. Currently i simply did a for and just re-add the skill to those who have it to get the new effect. I havent try if getEffects work. Any other proper way?

 

Sorry, I wrote it wrong, time info is sent on login (not sunset/sunrise), it's part of CharSelected packet

Posted
3 hours ago, Sdw said:

It's quite easy actually, p_hit_a_night pump is protected by a pump conditions which checks on server if it's night or not, and revalidated every stats recalculations.

 

Well yes u can do this or do the shit-way as aCis did to re-add :D

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Posts

    • We will help you pass verification on any service or application you need! Fast, reliable, and secure. Pay for the first verification and get a 10% discount on the second one. Learn more: Go to
    • We will help you pass verification on any service or application you need! Fast, reliable, and secure. Pay for the first verification and get a 10% discount on the second one. Learn more: Go to
    • Long-term rental of virtual numbers — maximum control and convenience. No need to change numbers every time or worry about losing access anymore. Now you can rent virtual numbers for hours, days, or months and use them as permanent ones: — stable SMS reception from popular services — permanent access to accounts — an ideal solution for registration, verification, and repeated logins — one number — full control for the entire rental period This is the choice for those who value reliability, uninterrupted access, and predictable results. Important: even many top SMS services are unable to offer such an exclusive long-term rental option. Go to the SMS service
    • We are looking for partners and account suppliers for cooperation We are open to partnerships with reliable account suppliers for the following dating services: ➡ Tinder ➡ Badoo ➡ Bumble ➡ Hinge ➡ Happn ➡ Meetic ➡ VK Dating We are considering long-term cooperation, stable volumes, and mutually beneficial terms. If you have any offers, we will be glad to discuss the details. Contact us using the details below. ➡ Telegram: https://t.me/socnet_support ➡ WhatsApp: https://wa.me/79051904467 ➡ Discord: socnet_support ➡ ✉ Email: solomonbog@socnet.store
    • We are looking for partners and account suppliers for cooperation We are open to partnerships with reliable account suppliers for the following dating services: ➡ Tinder ➡ Badoo ➡ Bumble ➡ Hinge ➡ Happn ➡ Meetic ➡ VK Dating We are considering long-term cooperation, stable volumes, and mutually beneficial terms. If you have any offers, we will be glad to discuss the details. Contact us using the details below. ➡ Telegram: https://t.me/socnet_support ➡ WhatsApp: https://wa.me/79051904467 ➡ Discord: socnet_support ➡ ✉ Email: solomonbog@socnet.store
  • Topics

×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock