Jump to content
  • 0

Olympiad Period For Acis


Question

Posted (edited)

someone would have this code for ACIS? because I got a topic here in mxc but it does not work to the place: / if someone has could share? thank you.

http://www.maxcheaters.com/topic/177158-olympiad-period-end-time-when-char-login/

 

 

Attached Thumbnails

  • post-135130-0-19927400-1395168174_thumb.
Edited by кααy

5 answers to this question

Recommended Posts

  • 0
Posted (edited)

 

someone would have this code for ACIS? because I got a topic here in mxc but it does not work to the place: / if someone has could share? thank you.

 

Honey you mean this code:

public void olympiadEnd(L2PcInstance player)
{
		long milliToEnd;
		if(_period == 0)
		{
			milliToEnd = getMillisToOlympiadEnd();
		}
		else
		{
			milliToEnd = getMillisToValidationEnd();
		}

		double numSecs = milliToEnd / 1000 % 60;
		double countDown = (milliToEnd / 1000 - numSecs) / 60;
		int numMins = (int) Math.floor(countDown % 60);
		countDown = (countDown - numMins) / 60;
		int numHours = (int) Math.floor(countDown % 24);
		int numDays = (int) Math.floor((countDown - numHours) / 24);

		CreatureSay cs = new CreatureSay(0, Say2.ANNOUNCEMENT, "", "Olympiad period ends in " + numDays + " days, " + numHours + " hours and " + numMins + " mins.");
		player.sendPacket(cs);
}

No working?

Edited by AccessDenied
  • 0
Posted (edited)

enterworld.java

private static final String LOAD_PLAYER_QUESTS = "SELECT name,var,value FROM character_quests WHERE charId=?";
+ protected static int _period;

activeChar.sendPacket(SystemMessageId.PAYMENT_FOR_YOUR_CLAN_HALL_HAS_NOT_BEEN

+if(Config.OLYMPIAD_END_ANNOUNE && activeChar.isNoble()) 
+ { 
+ long milliToEnd; 
+ if(_period == 0) 
+ { 
+ milliToEnd = Olympiad.getMillisToOlympiadEnd(); 
+ } 
+ else 
+ { 
+ milliToEnd = Olympiad.getMillisToValidationEnd(); 
+ } 
+ 
+ double numSecs = milliToEnd / 1000 % 60; 
+ double countDown = (milliToEnd / 1000 - numSecs) / 60; 
+ int numMins = (int) Math.floor(countDown % 60); 
+ countDown = (countDown - numMins) / 60; 
+ int numHours = (int) Math.floor(countDown % 24); 
+ int numDays = (int) Math.floor((countDown - numHours) / 24); 
+ 
+ activeChar.sendPacket(new CreatureSay(0, Say2.ANNOUNCEMENT, "", "Olympiad period ends in " + numDays + " days, " + numHours + " hours and " + numMins + " mins.")); 
+
+ }

Olympiad.java

	-protected long _olympiadEnd;
	-protected long _validationEnd;

	+protected static long _olympiadEnd;
	+protected static long _validationEnd;


	-public long getMillisToOlympiadEnd()
	-{
	-	return (_olympiadEnd - Calendar.getInstance().getTimeInMillis());
	-}

	+public static long getMillisToOlympiadEnd()
	+{
	+	return (_olympiadEnd - Calendar.getInstance().getTimeInMillis());
	+}

	-public long getMillisToValidationEnd()
	-{
	-	if (_validationEnd > Calendar.getInstance().getTimeInMillis())
	-		return (_validationEnd - Calendar.getInstance().getTimeInMillis());
	-	
	-	return 10L;
	-}

	+public static long getMillisToValidationEnd()
	+{
	+	if (_validationEnd > Calendar.getInstance().getTimeInMillis())
	+		return (_validationEnd - Calendar.getInstance().getTimeInMillis());
	+	
	+	return 10L;
	+}
Edited by tazerman2
  • 0
Posted

Honey you mean this code:

public void olympiadEnd(L2PcInstance player)
{
		long milliToEnd;
		if(_period == 0)
		{
			milliToEnd = getMillisToOlympiadEnd();
		}
		else
		{
			milliToEnd = getMillisToValidationEnd();
		}

		double numSecs = milliToEnd / 1000 % 60;
		double countDown = (milliToEnd / 1000 - numSecs) / 60;
		int numMins = (int) Math.floor(countDown % 60);
		countDown = (countDown - numMins) / 60;
		int numHours = (int) Math.floor(countDown % 24);
		int numDays = (int) Math.floor((countDown - numHours) / 24);

		CreatureSay cs = new CreatureSay(0, Say2.ANNOUNCEMENT, "", "Olympiad period ends in " + numDays + " days, " + numHours + " hours and " + numMins + " mins.");
		player.sendPacket(cs);
}

No working?

thx u

Guest
This topic is now closed to further replies.


  • Posts

    • Yes, but it also includes extra features like autofarm, autofarm interface button, dressme, many bug fixes from rusacis and premium geodata aswell.
    • discord mass dm service, discord bulk dm, discord dm service, discord mass messaging, discord dm bot, discord dm tool, discord mass dm bot, discord dm automation, discord bulk messaging, discord dm blast, discord mass dm tool, discord dm campaign, discord direct message service, discord dm software, discord mass dm advertising, discord dm marketing, discord bulk dm service, discord dm spammer, discord mass dm script, discord dm sender, discord automated dm, discord dm outreach, discord mass messaging service, discord dm promotion, discord bulk dm bot, discord dm advertising service, discord mass dm platform, discord dm marketing tool, discord bulk messaging bot, discord dm automation tool, discord mass dm sender, discord dm blast service, discord bulk dm tool, discord dm marketing service, discord mass dm system, discord dm advertising bot, discord bulk messaging service, discord dm promotion service, discord mass dm automation, discord dm outreach tool, discord bulk dm automation, discord dm marketing platform, discord mass dm software, discord dm advertising tool, discord bulk messaging platform, discord dm campaign service, discord mass dm marketing, discord dm blast tool, discord bulk dm marketing, discord dm automation service   discord mass dm service, discord bulk dm, discord dm service, discord mass messaging, discord dm bot, discord dm tool, discord mass dm bot, discord dm automation, discord bulk messaging, discord dm blast, discord mass dm tool, discord dm campaign, discord direct message service, discord dm software, discord mass dm advertising, discord dm marketing, discord bulk dm service, discord dm spammer, discord mass dm script, discord dm sender, discord automated dm, discord dm outreach, discord mass messaging service, discord dm promotion, discord bulk dm bot, discord dm advertising service, discord mass dm platform, discord dm marketing tool, discord bulk messaging bot, discord dm automation tool, discord mass dm sender, discord dm blast service, discord bulk dm tool, discord dm marketing service, discord mass dm system, discord dm advertising bot, discord bulk messaging service, discord dm promotion service, discord mass dm automation, discord dm outreach tool, discord bulk dm automation, discord dm marketing platform, discord mass dm software, discord dm advertising tool, discord bulk messaging platform, discord dm campaign service, discord mass dm marketing, discord dm blast tool, discord bulk dm marketing, discord dm automation service  
    • buy discord accounts, discord accounts for sale, buy discord accounts bulk, cheap discord accounts, aged discord accounts, discord account marketplace, buy aged discord accounts, discord accounts cheap, wholesale discord accounts, buy bulk discord accounts, discord account shop, verified discord accounts, discord pva accounts, discord accounts online, phone verified discord accounts, email verified discord accounts, discord account vendor, discord accounts wholesale, buy old discord accounts, discord account supplier, fresh discord accounts, discord account store, discord account service, buy discord account online, discord accounts bulk buy, discord account seller, discord accounts package, discord account bundle, premium discord accounts, discord account provider, discord accounts instant delivery, discord accounts fast delivery, discord account generator, discord account creator, multiple discord accounts, discord accounts ready, discord accounts quality, discord account dealer, buy discord tokens, discord early supporter accounts, discord nitro accounts for sale, discord 2015 accounts, discord 2016 accounts, discord accounts with badges, discord server accounts, buy discord accounts secure, discord accounts reliable, discord account trading, discord accounts inventory, discord account collection, discord accounts stock  
    • Buying & Selling WOW Gold
    • Buying & Selling POE & POE2 Divine-Mirrors
  • 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