Jump to content

Recommended Posts

Posted

Geia se olous.

Se diafora Project kai pack pou  uparxoun kai einai l2j.

Uparxei ena  problima panta to Time ton Siege pou pou einai stis 1

Ayto to Code einai kati aplos  to eftia3a oste na to diorthwsw kapws..

Tha pate sto config Feature  kai tha orisete tis wres  opws to blepete poio katw

sta perisotera project ayto to config den epikoinwnh  giati den to exoun ftia3ei.

 

Config

# Which hours can change Castle Lords
# Default: 16,20
SiegeHourList = 16,15,18,20

 

Index: java/com/l2jserver/gameserver/model/entity/Siege.java
===================================================================
--- java/com/l2jserver/gameserver/model/entity/Siege.java	(revision 349)
+++ java/com/l2jserver/gameserver/model/entity/Siege.java	(working copy)
@@ -1440,27 +1440,44 @@
	/** Set the date for the next siege. */
	private void setNextSiegeDate()
	{
-		while (getCastle().getSiegeDate().getTimeInMillis() < Calendar.getInstance().getTimeInMillis())
+		Calendar siegeDate = getCastle().getSiegeDate();
+		if (siegeDate == null)
		{
-			if ((getCastle().getSiegeDate().get(Calendar.DAY_OF_WEEK) != Calendar.SATURDAY) && (getCastle().getSiegeDate().get(Calendar.DAY_OF_WEEK) != Calendar.SUNDAY))
+			return;
+		}
+		while (siegeDate.getTimeInMillis() < Calendar.getInstance().getTimeInMillis())
+		{
+			// set the next siege day to the next weekend
+			siegeDate.add(Calendar.DAY_OF_MONTH, 7);
+		}
+		
+		if (!SevenSigns.getInstance().isDateInSealValidPeriod(siegeDate))
+		{
+			siegeDate.add(Calendar.DAY_OF_MONTH, 7);
+		}
+		
+		// If siege time is not in the allowed list, set first available hour.
+		if (Config.CL_SET_SIEGE_TIME_LIST.contains("hour") && !(Config.SIEGE_HOUR_LIST_AFTERNOON.contains(siegeDate.get(Calendar.HOUR_OF_DAY) - 12) || Config.SIEGE_HOUR_LIST_MORNING.contains(siegeDate.get(Calendar.HOUR_OF_DAY))))
+		{
+			/*
+			 * this assume that we have at least 2 time choice for period (morning or afternoon) one time choice for period (morning or afternoon) is no more allowed default value are 4pm and 8pm so only afternoon is used
+			 */
+			int time = 0;
+			if ((getCastle().getCastleId() == 1) || (getCastle().getCastleId() == 2) || (getCastle().getCastleId() == 3) || (getCastle().getCastleId() == 7))
			{
-				getCastle().getSiegeDate().set(Calendar.DAY_OF_WEEK, Calendar.SATURDAY);
+				time = 1;
			}
-			// from CT2.3 Castle sieges are on Sunday, but if server admins allow to set day of the siege
-			// than sieges can occur on Saturdays as well
-			if ((getCastle().getSiegeDate().get(Calendar.DAY_OF_WEEK) == Calendar.SATURDAY) && !Config.CL_SET_SIEGE_TIME_LIST.contains("day"))
+			
+			if (!Config.SIEGE_HOUR_LIST_MORNING.isEmpty())
			{
-				getCastle().getSiegeDate().set(Calendar.DAY_OF_WEEK, Calendar.SUNDAY);
+				siegeDate.set(Calendar.HOUR_OF_DAY, Config.SIEGE_HOUR_LIST_MORNING.get(time));
			}
-			// set the next siege day to the next weekend
-			getCastle().getSiegeDate().add(Calendar.DAY_OF_MONTH, 7);
+			else if (!Config.SIEGE_HOUR_LIST_AFTERNOON.isEmpty())
+			{
+				siegeDate.set(Calendar.HOUR_OF_DAY, Config.SIEGE_HOUR_LIST_AFTERNOON.get(time) + 12);
+			}
		}

-		if (!SevenSigns.getInstance().isDateInSealValidPeriod(getCastle().getSiegeDate()))
-		{
-			getCastle().getSiegeDate().add(Calendar.DAY_OF_MONTH, 7);
-		}
-		
		SystemMessage sm = SystemMessage.getSystemMessage(SystemMessageId.S1_ANNOUNCED_SIEGE_TIME);
		sm.addCastleId(getCastle().getCastleId());
		Announcements.getInstance().announceToAll(sm);

 

 


Siege of Gludio: Thu May 02 15:00:00 EEST 2013
Siege of Dion: Thu May 02 15:00:00 EEST 2013
Siege of Giran: Thu May 02 15:00:00 EEST 2013
Siege of Oren: Thu May 02 16:00:00 EEST 2013
Siege of Aden: Thu May 02 16:00:00 EEST 2013
Siege of Innadril: Thu May 02 16:00:00 EEST 2013
Siege of Goddard: Thu May 02 15:00:00 EEST 2013
Siege of Rune: Thu May 02 16:00:00 EEST 2013
Siege of Schuttgart: Thu May 02 16:00:00 EEST 2013

Posted

Kalo to share alla credits tha dwseis.?

 

http://pastebin.com/vmNvCtMS

 

:dat:

 

File mou ama blepeis to idio me to  link pou dineis kaneis  lathos..

to link pou dineis to idio exw  kanei upload kai egw logika einai  to diko mou pou exw deis ...

pera apo ayto ama pas na deis sto code tis l2j den uparxei poia to L2CastleChamberlainInstance.java  to meteferan stin data kai ayto to problima  poia einai kathara apo to core poia

giati stin data den orizete  time....

kai to code  to ekana egw

Posted

Afou einai diko sou o code gia pio logo de ton ekanes oloklhro kai ekanes ena copy paste apo ekei.. ?

 

File mou  to blepeis to code na einai se rwtaw pali....

diladi eleos.....

des ti leei to ena code me to allo kai meta ela pes to mou 3ana  ayto pou les...

 

alla  ti na diavaseis  einai kai ayto to 8ema...

 

ama deis to  link pou dineis agorina mou ta config  ginontai delete edw  to  config  uparxei kai  einai poly diaforetiko...

diladi otan theleis na kaneis ena spam  oste na pareis post kanto sosta se ayto pou tha 3ereis..

Posted

Egw vlepw file oti einai oloidio me poli liges allages pou exoun kanei panw tou :/

 

:dat:

 

Koita tha sou to apo  allh mia fora kai ama theleis to katalaveneis...

den tha kanw to post mou spam giati aplos ena atomw den 3erei ti einai  to ena kai allo...

 

To link pou mou  ekanes post einai  me tin  palia version tis l2j pou tin eixa steile  se ena filo mou na to kanei test.

meta apo to update tis l2j pou metaferan to  L2CastleChamberlainInstance.java  stin Data den dinete apo ekei poia to time  ton siege.....

Apo ekei kai pera anti na akuroseis kai to config  prepei na to  kaneis  na douleyei  kai me ayto sosta xwris kanena problima etsi  eftia3a ayto pou ekana  post...

pera apo ayto teleiwnei to 8ema den tha kanei sou lew spam post .....

Alla gi ayto den uparxei poia kanenas na sas boi8isei sto mxc giati barethikan oloi na asxolounte me atoma pou pera  oti den 3eroun alla den ma8enoun....

na mou di3eis post pou exw  kanei kai den exw  dosei credits... 

File mou poia uparxoun eidh sto mxc kai to 3eroume oloi ayto kai exw edw einai perisotera xronia apo oti eisai esu kai oso exw asxolithei se ayto to forum esu den tha to kaneis pote...

gi ayto telos to 8ema...

Posted

Signwmh diladi paei kairos pou to exeis steilei auto?

Ama mou peis 9a stamatisw na milaw.!

 

File mou pane 13 me  12 meres  otan to ekana upload ayto to code...

To Update tis l2j  egine http://trac.l2jserver.com/changeset/5928  12/04/2013

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

    • THE CAMERA DISTORTS – AND THAT CAN EXPOSE YOU ▪ You look at the photo: “looks fine.” But the sensor has already altered it – and without that, the shot doesn’t exist. ▪ Rolling shutter. The frame is read line by line objects slightly “drift”, geometry isn’t perfect that’s not a bug – that’s the baseline. ▪ Sensor noise. Even in good lighting there’s still grain every sensor has its own signature too clean = unnatural. ▪ Aberrations. Color shifts appear near the edges lenses aren’t perfect, and it shows perfect edges with no shift are rare. ▪ Reality ≠ what the camera records. It always adds distortion. ▪ Want to know where your file is “too perfect”? Send it over – we’ll break it down for you. › TG: @mustang_service ( https:// t.me/ mustang_service ) › Channel: Mustang Service ( https:// t.me/ +JPpJCETg-xM1NjNl ) #editing #photoshop #distortion #verification #camera
    • We’re not trying to be “Reborn” or anyone else and you have copy the server concept,the reborn website,the reborn logo,the reborn community board html,lol trash
    • SOCNET is a universal service that combines a digital goods store, an SMM panel, a Telegram bot for purchasing Telegram Stars and a Telegram bot for renting virtual numbers. Here you will find accounts for TikTok, Instagram, Reddit, Twitter, Telegram, Facebook, LinkedIn, WhatsApp, SnapChat, YouTube, Google, Discord, email (Outlook, Hotmail, Gmail, Rambler, Firstmail and others), proxies, virtual servers, advertising accounts, access to ChatGPT 5, gift cards and premium subscriptions to numerous services — and all this at the best prices!   SOCNET STARS is a service that helps you quickly and profitably purchase Telegram Stars and subscribe to Telegram Premium. Using our Telegram bot you can buy Telegram Stars at the lowest prices on the market and use them to pay for gifts, reactions, donations and other features inside Telegram.   Our bot also features a NEW gaming feature — gift slots, where users can win valuable prizes: Telegram gifts, bonuses from our partners and the SOCNET company, stars and premium subscriptions. The game mechanics are completely transparent: no tricks, only real luck decides. You can try it at any time — bets start from just 1 ruble. We also provide the opportunity for a one-time free spin!   Available payment methods: LOLZTEAM, Crypto Bot, Cryptocurrency, Bank cards and SBP ⭐ Our online store ⭐ SOCNET.STORE ⭐ Telegram store ⭐ SOCNET.SHOP ⭐ Our SMM Panel for social media promotion ⭐ SOCNET.PRO ⭐ Our Telegram bot for purchasing Telegram Stars ⭐ SOCNET.CC ⭐ Our SMS Service ⭐ SOCNET.APP ✅ News resources: ➡ Telegram channel ➡ WhatsApp channel ➡ Discord server ✅ Contacts and support: ➡ Telegram support ➡ WhatsApp support ➡ Discord support: socnet_support ➡ Email support: help@socnet.pro We have been operating for a long time and have gathered a huge list of reviews about our work! Our huge list of positive and honest reviews is presented on our website! ⭐We invite you to COOPERATE and EARN with us ⭐ Want to sell your product or service in our stores and make money? Become our partner or suggest mutually beneficial cooperation? You can contact us via the CONTACTS listed in this topic. If you have any questions or problems, our fast customer support is ready to respond to your requests! Refunds for a service that does not fully meet the requirements or quality are issued only if a guarantee and warranty period were specified in the product description. In all other cases, refunds for the service will not be fully processed or issued! By purchasing such a service, you automatically agree to our refund policy for non-provided services! We currently accept Any type of cryptocurrency (Cryptomus, Binance Pay, CryptoBot), any bank cards (VISA, Mastercard, MIR Pay, SBP), LolzTeam Market, Wise, Revolut, Paypal Friends&Families. We value every customer and provide replacements for invalid accounts and services through our contact methods!
    • SOCNET is a universal service that combines a digital goods store, an SMM panel, a Telegram bot for purchasing Telegram Stars and a Telegram bot for renting virtual numbers. Here you will find accounts for TikTok, Instagram, Reddit, Twitter, Telegram, Facebook, LinkedIn, WhatsApp, SnapChat, YouTube, Google, Discord, email (Outlook, Hotmail, Gmail, Rambler, Firstmail and others), proxies, virtual servers, advertising accounts, access to ChatGPT 5, gift cards and premium subscriptions to numerous services — and all this at the best prices!   SOCNET STARS is a service that helps you quickly and profitably purchase Telegram Stars and subscribe to Telegram Premium. Using our Telegram bot you can buy Telegram Stars at the lowest prices on the market and use them to pay for gifts, reactions, donations and other features inside Telegram.   Our bot also features a NEW gaming feature — gift slots, where users can win valuable prizes: Telegram gifts, bonuses from our partners and the SOCNET company, stars and premium subscriptions. The game mechanics are completely transparent: no tricks, only real luck decides. You can try it at any time — bets start from just 1 ruble. We also provide the opportunity for a one-time free spin!   Available payment methods: LOLZTEAM, Crypto Bot, Cryptocurrency, Bank cards and SBP ⭐ Our online store ⭐ SOCNET.STORE ⭐ Telegram store ⭐ SOCNET.SHOP ⭐ Our SMM Panel for social media promotion ⭐ SOCNET.PRO ⭐ Our Telegram bot for purchasing Telegram Stars ⭐ SOCNET.CC ⭐ Our SMS Service ⭐ SOCNET.APP ✅ News resources: ➡ Telegram channel ➡ WhatsApp channel ➡ Discord server ✅ Contacts and support: ➡ Telegram support ➡ WhatsApp support ➡ Discord support: socnet_support ➡ Email support: help@socnet.pro We have been operating for a long time and have gathered a huge list of reviews about our work! Our huge list of positive and honest reviews is presented on our website! ⭐We invite you to COOPERATE and EARN with us ⭐ Want to sell your product or service in our stores and make money? Become our partner or suggest mutually beneficial cooperation? You can contact us via the CONTACTS listed in this topic. If you have any questions or problems, our fast customer support is ready to respond to your requests! Refunds for a service that does not fully meet the requirements or quality are issued only if a guarantee and warranty period were specified in the product description. In all other cases, refunds for the service will not be fully processed or issued! By purchasing such a service, you automatically agree to our refund policy for non-provided services! We currently accept Any type of cryptocurrency (Cryptomus, Binance Pay, CryptoBot), any bank cards (VISA, Mastercard, MIR Pay, SBP), LolzTeam Market, Wise, Revolut, Paypal Friends&Families. We value every customer and provide replacements for invalid accounts and services through our contact methods!
    • SOCNET is a universal service that combines a digital goods store, an SMM panel, a Telegram bot for purchasing Telegram Stars and a Telegram bot for renting virtual numbers. Here you will find accounts for TikTok, Instagram, Reddit, Twitter, Telegram, Facebook, LinkedIn, WhatsApp, SnapChat, YouTube, Google, Discord, email (Outlook, Hotmail, Gmail, Rambler, Firstmail and others), proxies, virtual servers, advertising accounts, access to ChatGPT 5, gift cards and premium subscriptions to numerous services — and all this at the best prices!   SOCNET STARS is a service that helps you quickly and profitably purchase Telegram Stars and subscribe to Telegram Premium. Using our Telegram bot you can buy Telegram Stars at the lowest prices on the market and use them to pay for gifts, reactions, donations and other features inside Telegram.   Our bot also features a NEW gaming feature — gift slots, where users can win valuable prizes: Telegram gifts, bonuses from our partners and the SOCNET company, stars and premium subscriptions. The game mechanics are completely transparent: no tricks, only real luck decides. You can try it at any time — bets start from just 1 ruble. We also provide the opportunity for a one-time free spin!   Available payment methods: LOLZTEAM, Crypto Bot, Cryptocurrency, Bank cards and SBP ⭐ Our online store ⭐ SOCNET.STORE ⭐ Telegram store ⭐ SOCNET.SHOP ⭐ Our SMM Panel for social media promotion ⭐ SOCNET.PRO ⭐ Our Telegram bot for purchasing Telegram Stars ⭐ SOCNET.CC ⭐ Our SMS Service ⭐ SOCNET.APP ✅ News resources: ➡ Telegram channel ➡ WhatsApp channel ➡ Discord server ✅ Contacts and support: ➡ Telegram support ➡ WhatsApp support ➡ Discord support: socnet_support ➡ Email support: help@socnet.pro We have been operating for a long time and have gathered a huge list of reviews about our work! Our huge list of positive and honest reviews is presented on our website! ⭐We invite you to COOPERATE and EARN with us ⭐ Want to sell your product or service in our stores and make money? Become our partner or suggest mutually beneficial cooperation? You can contact us via the CONTACTS listed in this topic. If you have any questions or problems, our fast customer support is ready to respond to your requests! Refunds for a service that does not fully meet the requirements or quality are issued only if a guarantee and warranty period were specified in the product description. In all other cases, refunds for the service will not be fully processed or issued! By purchasing such a service, you automatically agree to our refund policy for non-provided services! We currently accept Any type of cryptocurrency (Cryptomus, Binance Pay, CryptoBot), any bank cards (VISA, Mastercard, MIR Pay, SBP), LolzTeam Market, Wise, Revolut, Paypal Friends&Families. We value every customer and provide replacements for invalid accounts and services through our contact methods!
  • 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..