Jump to content

Vote Manager Npc V3


Recommended Posts

Thank You! 

 

TopZone is OK!

 

A very good manager... only this stupid API links... I tried everything, obviously my knowledge is not enough ...

Edited by genata75
Link to comment
Share on other sites

Thank You! 

 

TopZone is OK!

 

A very good manager... only this stupid API links... I tried everything, obviously my knowledge is not enough ...

You should try the manager like it is in txt for hopzone it must work..
Link to comment
Share on other sites

  • 2 weeks later...
  • 5 months later...
34 minutes ago, Runfoldas said:

I'm added this code to l2jfrozen, but for me every time write i'm not voted for l2topzone. What i do wrong? Mhm, no errors in eclipse.. hopzone and network work fine.

You can fix topzone from this page

https://maxcheaters.com/topic/201882-vote-manager-npc-v3/?page=4

 

Link to comment
Share on other sites

If it's ip based, you have to hard-code your ip if you test on local, as it's taking local ip - result, you didn't vote. 

Link to comment
Share on other sites

2 hours ago, Reborn12 said:
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;
	}

Is that from your vote manager npc? In with java file need change it?

Link to comment
Share on other sites

2 hours ago, Runfoldas said:

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;
	}

Is that from your vote manager npc? In with java file need change it?

VoteHandler.java all the gettopzonevotes() method to be easier for you..

Link to comment
Share on other sites

Reborn12, can you tell me, about what this error is? 

 

WARN  
java.lang.ClassCastException: com.l2jfrozen.gameserver.model.actor.instance.L2RaidBossInstance cannot be cast to com.l2jfrozen.gameserver.model.actor.instance.L2PcInstance
    at com.l2jfrozen.gameserver.handler.skillhandlers.Disablers.useSkill(Disablers.java:590)
    at com.l2jfrozen.gameserver.model.L2Character.callSkill(L2Character.java:9285)
    at com.l2jfrozen.gameserver.model.L2Character.onMagicHitTimer(L2Character.java:8542)
    at com.l2jfrozen.gameserver.model.L2Character.onMagicLaunchedTimer(L2Character.java:8364)
    at com.l2jfrozen.gameserver.model.L2Character.doCast(L2Character.java:2124)
    at com.l2jfrozen.gameserver.model.L2Character$AIAccessor.doCast(L2Character.java:4970)
    at com.l2jfrozen.gameserver.ai.L2AttackableAI.thinkAttack(L2AttackableAI.java:966)
    at com.l2jfrozen.gameserver.ai.L2AttackableAI.onEvtThink(L2AttackableAI.java:1005)
    at com.l2jfrozen.gameserver.ai.L2CharacterAI.onEvtReadyToAct(L2CharacterAI.java:712)
    at com.l2jfrozen.gameserver.ai.AbstractAI.notifyEvent(AbstractAI.java:363)
    at com.l2jfrozen.gameserver.ai.AbstractAI.notifyEvent(AbstractAI.java:314)
    at com.l2jfrozen.gameserver.model.L2Character$NotifyAITask.run(L2Character.java:3445)
    at com.l2jfrozen.gameserver.thread.ThreadPoolManager$RunnableWrapper.run(ThreadPoolManager.java:95)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
    at java.lang.Thread.run(Thread.java:748)

 

Link to comment
Share on other sites

2 hours ago, Runfoldas said:

Reborn12, can you tell me, about what this error is? 

 


WARN  
java.lang.ClassCastException: com.l2jfrozen.gameserver.model.actor.instance.L2RaidBossInstance cannot be cast to com.l2jfrozen.gameserver.model.actor.instance.L2PcInstance
    at com.l2jfrozen.gameserver.handler.skillhandlers.Disablers.useSkill(Disablers.java:590)
    at com.l2jfrozen.gameserver.model.L2Character.callSkill(L2Character.java:9285)
    at com.l2jfrozen.gameserver.model.L2Character.onMagicHitTimer(L2Character.java:8542)
    at com.l2jfrozen.gameserver.model.L2Character.onMagicLaunchedTimer(L2Character.java:8364)
    at com.l2jfrozen.gameserver.model.L2Character.doCast(L2Character.java:2124)
    at com.l2jfrozen.gameserver.model.L2Character$AIAccessor.doCast(L2Character.java:4970)
    at com.l2jfrozen.gameserver.ai.L2AttackableAI.thinkAttack(L2AttackableAI.java:966)
    at com.l2jfrozen.gameserver.ai.L2AttackableAI.onEvtThink(L2AttackableAI.java:1005)
    at com.l2jfrozen.gameserver.ai.L2CharacterAI.onEvtReadyToAct(L2CharacterAI.java:712)
    at com.l2jfrozen.gameserver.ai.AbstractAI.notifyEvent(AbstractAI.java:363)
    at com.l2jfrozen.gameserver.ai.AbstractAI.notifyEvent(AbstractAI.java:314)
    at com.l2jfrozen.gameserver.model.L2Character$NotifyAITask.run(L2Character.java:3445)
    at com.l2jfrozen.gameserver.thread.ThreadPoolManager$RunnableWrapper.run(ThreadPoolManager.java:95)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
    at java.lang.Thread.run(Thread.java:748)

 

this is a frozen problem to fix this search at

Disablers.java:590

line 590 its propably some skill that used by rb on a player possible fix is to skip something in the for loop i have no idea what frozen has there

Link to comment
Share on other sites

  • 1 month later...

5u0XzLA.jpg

hmm what is going wrong ? i used the update that you say but does not work any solution ?

i did  vote at this links
TopzoneUrl = http://l2topzone.com/totalvotes.php?id=6150
NetworkUrl = http://l2network.eu/details/l2gamers/
HopzoneUrl = http://l2.hopzone.net/gr/lineage2/details/91106/L2-Gamers

Edited by cyta5
Link to comment
Share on other sites

  • 3 months later...

java.net.MalformedURLException: no protocol:
        at java.net.URL.<init>(Unknown Source)
        at java.net.URL.<init>(Unknown Source)
        at java.net.URL.<init>(Unknown Source)
        at com.l2jfrozen.gameserver.handler.VoteHandler.getL2NetworkVotes(VoteHandler.java:323)
        at com.l2jfrozen.gameserver.handler.VoteHandler$1nzvotetask.run(VoteHandler.java:375)
        at com.l2jfrozen.gameserver.thread.ThreadPoolManager$RunnableWrapper.run(ThreadPoolManager.java:95)
        at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
        at java.util.concurrent.FutureTask.run(Unknown Source)
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(Unknown Source)
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)
NetWork is offline. We will check reward as it will be online again.

 

My link: https://l2network.eu/?a=details&amp;u=xxx

 

VoteHandler line 323:

final HttpURLConnection con = (HttpURLConnection) obj. openConnection();

Whats wrong ? :(

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now



  • Posts

    • Someone ask me for this, it should work on any client that has Kamael race, preview:     Installation - there are two ways to install depending on how you want to use it:   Method 1: If you want to completely replace the original, do:   Copy all lines from your armorgrp to Notepad++, press Ctrl+H, check the "match whole word" option and replace:   kamael.Mkamael_m000_w_ad00   by:   AvengersKamaelWings.Avengers_MKamael_m001_w_ad00   Then replace:   MKamael.Mkamael_m000_t00_w   by:   AvengersKamaelWings.MKamael_m001_t00_w   Now repeat the same process with the female, replace:   kamael.Fkamael_m000_w_ad00   by:   AvengersKamaelWings.Avengers_FKamael_m001_w_ad00   Then replace:   FKamael.Fkamael_m000_t00_w   by:   AvengersKamaelWings.FKamael_m001_t00_w   You're done, paste everything back into File Edit and save!   Method 2: If you only want to replace in specific sets, execute the above process only on the armorgrp of those sets.   Repack by: AvengersTeamBr Password: LadrãoDeFrango      
    • 用于解密、加密和编辑 .u 文件的工具。
    • It's always awesome when you find someone who not only delivers great quality but also does it way ahead of schedule. Makes you feel like you hit the jackpot, right? I'm new around here, just stumbled upon this forum, and seeing posts like yours really gives me hope that there are some real pros hanging out in this community.
    • Dear friends! We have good news to announce that the server that will open in June 1 will be the Main server and every 4 months we will make another season server and integrate ( merge ) it into the main that will always be open..  
  • Topics

×
×
  • Create New...