Jump to content

Recommended Posts

Posted (edited)

You should not using this npc on live server.. But at least we can segregate crappy servers by vote manager ^_^

Edited by SweeTs
Posted

i use this on my server and works like i want...all works fine 

here is the fix for topzone 

use this link but change id https://l2topzone.com/tv.php?id=12609

public static int getTopZoneVotes()
	{
		int votes = -1;
		try
		{
			final URL obj = new URL(Config.VOTES_SITE_TOPZONE_URL);
			final HttpURLConnection con = (HttpURLConnection) obj.openConnection();
			con.addRequestProperty("User-Agent", "L2TopZone");
			con.setConnectTimeout(5000);
			
			final int responseCode = con.getResponseCode();
			if (responseCode == 200)
			{
				try (BufferedReader in = new BufferedReader(new InputStreamReader(con.getInputStream())))
				{
					String inputLine;
					while ((inputLine = in.readLine()) != null)
					{
						votes = Integer.valueOf(inputLine);
						break;
					}
				}
			}
		}
		catch (Exception e)
		{
			e.printStackTrace();
			System.out.println("TOPZONE is offline. We will check reward as it will be online again.");
		}
		
		return votes;
	}
Posted (edited)
 C:\Users\root\Desktop\NeWorksplace\L2Interlude\gameserver\head-src\com\l2jfrozen\gameserver\handler\voicedcommandhandlers\VoteHandler.java:259: error: cannot find symbol

    [javac] try (Connection con = L2DatabaseFactory.getInstance().getConnection())

    [javac]                      ^

    [javac]   symbol:   variable L2DatabaseFactory

    [javac]   location: class VoteHandler  

any idea??

Edited by xSko0tosX
Posted

Frozen is so old that it's using 'old school' way of db connection and the imports are another. You don't need "259 line", as the warning/error said what the issue is..

 

 

        Connection con = null;
        try
        {
            con = L2DatabaseFactory.getInstance().getConnection(false);
Posted

thanks Fixed.  now one more problem i have, i compilled all . all works  (i think) but.. 

i create the npc with  Type L2VoteManager1  and i cant spawn this npc ? X_X dunno what.s wrong ;x

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

    • Website: https://l2aurum.com/ Discord: https://discord.gg/ngaD9DJRjE   Dear Players, We are excited to announce that the x300 Summer Season Beta server will open on 19‑06‑2026 at 20:00 GMT+2. As previously mentioned, there will be no wipe and no account deletion. All accounts, characters, items, and progress from Season 1 will remain completely safe. To ensure a fair and competitive start for new players, all Season 1 accounts will be temporarily locked. The official Summer Season launch will take place on 26‑06‑2026 at 20:00 GMT+2. A few weeks after the official launch, Season 1 accounts will be unlocked so previous players can access their characters and continue their journey. This approach allows new players to enjoy a fresh start while preserving the progress and achievements of our long-term community. Thank you for your continued support, and we look forward to welcoming everyone to the new Summer Season. L2Aurum Team   Explore L2 Aurum Features Discover the Enhancements that set us apart!   Information Server Version: Interlude - PvP Server Client Interface: Unique Interface   Rates     Additional Features and changes When you create a new character, you will start in Giran Harbor at Level 1, equipped with full No-Grade items. Auto Farm is available for free for 2 hour daily without VIP. VIP players receive 4 hours of Auto Farm per day. The Auto Farm time resets with the server restart at 5:30 AM. Status Noblesse: Last hit Barakiel. Player Spawn Protection: 7 seconds. Geodata + Pathnodes: Enabled. All commands are available in the Community Board. Maximum 3 Bishops Per Party: Enabled. Boss Protect - Anti-Zerg: Enabled. Shift + click on monsters to see the droplist. Offline shop. Mana Potion Restores 1000 MP with a cooldown of 8 seconds. Inventory Slots: 250.   Weapon Information Lv1 Black Chaotic Weapons. Lv2 Aurum Weapons.   Armor Information Lv1 Blue Apella Armor. Lv2 Aurum Apella Armor. Misc additions Accessories +50 and +150 pdef|mdef. Tattoos: Resolve | Soul | Avadon. Agathions: Cosmetic only (no stats).   Buffs / Dances / Songs / Prophecies Duration: 2 hours. Total Buff Slots: 32 + 4 (Divine Inspiration). Vote Buff: You must vote on 3 of 6 vote sites to get the vote buff blessing. Castle Reward Every clan that captures a castle receives the castle owner clan blessing buff. To receive it, the clan leader must be online.   Events   Raid Bosses Epic Bosses Final Bosses     For full server information please visit website PvP: Server Features   Website: https://l2aurum.com/ Discord: https://discord.gg/ngaD9DJRjE      
    • ⭐ L2Dexter.eu – Interlude x200 The Ultimate PvP Experience 🔥 RATES XP/SP x200 Adena x60 Drop x30 – Spoil x20 Safe Enchant +3 / +4 Armor Max Enchant +16   ⚔️ GAMEPLAY Main Town: Giran NPC Buffer: 3h buffs Auto Loot • Offline Shop • Anti‑Bot Max 5 clients per HWID Unique PvP Zones with rewards Upgraded Armor System Auto Learn Skills • 30+4 Buff Slots Subclass: Free Nobless: Quest or alternative path Shift+Click drop info Global Shout: 7 sec   🏆 OLYMPIAD Cycle: 14 days Hours: 18:00–00:00 GMT+2 Classed & Non‑Classed 1 char per PC   🐉 EPIC BOSSES Baium: 120h Antharas: 192h Valakas: 264h Zaken: 48h AQ: 24h Frintezza: 48h Anakim/Lilith: 56–84h   💠 SOUL CRYSTALS 10→12: Baium/Zaken/Anakim/Lilith 100% 12→13: Valakas/Antharas/Frintezza 100%   🏰 CLAN SYSTEM Max players in epics: 72 Alliances: 3 clans Clan penalty: 1 day Alliance penalty: 2 days Sieges: Clan lvl 6 + rewards   💰 CURRENCIES Vote Coins – Voting Rune +6% P.Def/M.Def, +4% Speed Event Medals – Events, streaming, RB kills Premium Account – Donate, RBs, Top10 NPC Donate Coins – Donate, RBs, competitions
  • 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..