Jump to content
  • 0

Event remaining time


Virusgr

Question

Hello.I try to make a timer that holds the time until the TvT event ends.I don't want the announcement timer(5 minutes until event finish bla bla).I want something like below

5:35 minutes remain until event finish.

How can i do that?

Link to comment
Share on other sites

12 answers to this question

Recommended Posts

  • 0

Hello.I try to make a timer that holds the time until the TvT event ends.I don't want the announcement timer(5 minutes until event finish bla bla).I want something like below

5:35 minutes remain until event finish.

How can i do that?

u mean like a clock that countdowns on chat?

Link to comment
Share on other sites

  • 0

i need something like a clock.I found out how to make it count event time in MM:SS (MM=Minutes SS=Seconds) format but i cannot refresh it properly and put it in html/player's screen.So i'm asking for a proper implementation.How and where to put it

Link to comment
Share on other sites

  • 0

Simple way, on event start get current system miliseconds.

 

System - class documentation.

 

System.currentTimeMillis();

 

and then compare it with current whenever you want to show how many left.

 

To display how many hours/minutes left, you will have to convert it aswell.

 

But its really simple and fast to do, so you should not have any problems.

Link to comment
Share on other sites

  • 0

i dont think that that is his problem, if i understood well, he is asking have to show it on the screen, and that can be done with exShowScreenMessage but i wouldnt chose that, cos it may make a lot of spam calc  and sending the time each sec. You could seek for the Nevit's Blessing system and try to change it

Link to comment
Share on other sites

  • 0

ExVoteSystemInfo.java is where data are passed to nevit's blessing window.But i don't think there is a way to make a new window without the original heading "Nevit's Blessing".But adenaman you got right what i want.A no-spam packet message with the event time.

Link to comment
Share on other sites

  • 0

you could do it by using ExShowScreenMessage, but i dont see fine from the server performance's point of view.

The handy block checker event has a clock, but you will need to modify it a bit to fit the tvt data.

At this momment i dont remember if there was any other packet that could trigger a clock in the client

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.


  • Posts

    • CLIENT: CLASSIC INTERLUDE - P110  Gameplay   "Unleash Your Potential"     • Birth Of A New Character A new character spawns in the basement of Ivory Tower and starts with full NO Grade gear and a newbie supply box. There, you can buff yourself via AIO buffer and then teleport to a low level zone for xp. • AIO NPC Buffer There are AIO npc Buffers spawned in every town. The buffs’ duration is 1hour and are free of charge. The only buffs that are not included in the list are summoner’s buffs, third class dances, third class songs, Noblesse Blessing and resists. • Class Transfer When you hit level 20, 40 and 76, you can seek for the Class Changer Carola in Aden or Castle Town in order to perform your 1st , 2nd and 3rd class change. There are no further quests required. • Boosted Buffers & Summoners In order to boost Prophets, Bladedancers and Swordsingers for PvP action and Olympiad games, they have been given special self-buffs. All of these classes are gifted with higher level buffs which they can be casted on themselves only. Also, summoner classes are boosted since they can buff their pets with more than usual servitor’s buffs. Server Rates   "Balanced Progression"   Experience: x45 Skill Points: x45 Adena: x1 Drop: x1 Spoil: x1 Quest: x1 Enchant Rates   "Fortune and Power"   Safe Enchant: +3 Max Enchant: +21 Normal Scroll: 70% Blessed Scroll: 70% Refine   "Perfect Your Gear"   • Refining S grade Armors / Jewels Any S grade armor can be refined via Mantra Manager Wilbrand. S grade armors and Tateossian jewels start at 55% and they can both be upgraded all the way up to 100% in order to gain extra P.def or M.def. Once your armor reach 100%, you can transform it into Apella and gain extra stats (Jewels cannot be further refined). In addition, Apella armors start at 55% and can be upgraded up to 100% too. Then, you can transform your Apella into Dynasty Armor (which can also be refined up to 100%). • Refining Epic Jewels (Core and Orfen) There is an option to refine Ring of Core and Earring of Orfen via Mantra Manager Wilbert. If you have two Rings of Core, you can combine them and receive an Enchanted Ring of Core. Then, you can combine two Enchanted Rings of Core in order to create a Refined Ring of Core (4 Rings of Core in total). The same procedure can be applied to Earring of Orfen, in order to create Enchanted Earring of Orfen or Refined Earring of Orfen. In this case, the enchantment of the ring/earring will be reset, so do not enchant those epic jewels before refining. Weapons & Shields   "Arsenal of Power" L2Halcyon weapons are S grade weapons with a unique SA. There are also three unique L2Halcyon shields. Both of them can be dropped only by Raid Bosses. Remember you can check the possible drops of any Raid Boss by pressing Shift+left click. Find bellow more details regarding L2Halcyon items. Duals: - Crokian blade*Crokian blade: Increases Critical Attack by 95 and Accuracy by 6 - Doll knife*Doll knife: Increases Atk. speed by 7% and Accuracy by 6 Swords: - Crokian Blade: Increases Atk. speed by 7% and Accuracy by 6 - Sword of Apostle: Increases Accuracy by 6 and maximum HP by 25% Mage Weapons: - Lady’s Fan: Increases Casting Spd. by 17.5% - Dusk Staff: Increases Casting Spd. by 17.5% - Dusk Sword: Increases M. Atk. by 15% Polearms: - Dreadbane: 360° hit rate, increases hit number from 4 to 8 and Accuracy by 6 - Axe of Ketra: Increases Accuracy by 6 and P. Atk. by 265 during a critical attack Daggers: - Doll Knife: Increases Critical Attack by 95 and P. Atk. by 265 during a critical attack - Giant Trident: Increases Evasion by 3 and P. Atk. by 265 during a critical attack 2-Handed Sword: - Sword of Vampire: Increases Critical Attack by 95 and maximum HP by 25% Blunt: - Cudgel: Increases Critical Attack by 95 and Atk. speed by 7% Bow: - Bow of Halisha: Increases Critical Attack by 95 and Accuracy by 6 Shields: - Shield of Reflect: Reflect magic debuffs and shield damage reflect - Shield of Evasion: No evasion penalty and Speed +7 - Dusk Shield: Bow resistance Ancient Weapons   "Relics of the Past" Ancient L2Halcyon weapons can be obtained by killing Raid Bosses and Grand B osses. Raidboss Jewels "Gems of Glory"   Necklace of Hekaton: MP +42 and +15% max CP Necklace of Brakki: MP +42 and +60% resistance to most of the debuffs Necklace of Naga: MP +42 and +15% max HP Ring of Horuth: MP +21 and +10% P.Def. Ring of Mos: MP +21 and +10% M.Def. Ring of Shadith: MP +31, +10% bow resistance and +7 speed Ring of Tayr: MP +21 and +100 Bow Range Earring of Garacsia: MP +31, +10% bow resistance and +7 speed Earring of Ipos: MP +31, +10% dagger resistance and +7 speed Earring of Kandra: MP +31, +20% wind resistance and +7 speed Earring of Von Helman: MP +31, +20% dark resistance and +7 speed Earring of Vermilion: MP +31, +20% fire resistance and +7 speed Earring of Falston: MP +31, +20% water resistance and +7 speed   [Top Tier Armors are Dynasty (100%) , in case you got bored of it for some extra Enrias you can obtain Ancient Apella , has the exact same amounts just visually is changed.   [Events] Good vs Evil TvT Siege TvT Squash Watermelon Unbearable Heat Dark Invasion Hight Rate   ** ALL EVENTS ARE AUTO**     Grand Opening Date: 21 December 2024, 19:00 GMT +2 Website <-   Discord <-
    • Hello! Sorry for the wait, delivered the code in DM!
    • Hello I had an invitation problem. works again discord : https://discord.gg/EXhScSUG3h
    • hahaha you are big mate !!! 😄 i really appriciate 
  • Topics

×
×
  • Create New...