Jump to content

Recommended Posts

Posted (edited)

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
Posted

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..
  • 2 weeks later...
  • 5 months later...
Posted
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

 

Posted
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?

Posted
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..

Posted

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)

 

Posted
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

  • 1 month later...
Posted (edited)

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
  • 3 months later...
Posted

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 ? :(

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.




×
×
  • Create New...