Jump to content

[Abuse] Karma


BruT

Recommended Posts

someone decreased my karma for no reason and i expect the one who did it to be punished

Who  Whom  What  For What  Where  When

Coolis® (+15/-3) brut (+5/-6) - reshare my Topic... In topic Today at 04:32:50 PM

 

and you reshare it again lol

Link to comment
Share on other sites

your previous topic's subject was deleted by a l2mod and you re-made another topic like that. -> for this reason i won't fix your karma.

 

@Coolis: you already reported that topic, a l2mod fixed the problem, there was no need to dekarme him, beside it is consider as an action which should be took by a mod.

 

In conclusion: karma is fine. Only if you need to delete the dekarma of coolis and get a dekarma by staff.

 

Link to comment
Share on other sites

and who locked my latest share ? which contains an another and different file? lol i didnt saw a rule to lock ppls shares..

it is same omfg

Link to comment
Share on other sites

then he copied my code or you cant read java codes

his file is 4,28 KB (4 392 bytes), mine is 6,91 KB (7 080 bytes) and the files are same ? LOL

 

thats the second version

package com.l2jserver.gameserver.model;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.net.URL;
import java.util.Collection;

import com.l2jserver.gameserver.Announcements;
import com.l2jserver.gameserver.ThreadPoolManager;
import com.l2jserver.gameserver.model.actor.instance.L2PcInstance;

public class AutoVoteRewardHandler
{
private final String	HOPZONE					= "http://l2.hopzone.net/lineage2/moreinfo/LineageFort/82167.html";
// 60 * 1000(1000milliseconds = 1 second) = 60seconds
private final int		initialCheck			= 60 * 1000;
// 1800 * 1000(1000milliseconds = 1 second) = 1800seconds = 30minutes
private final int		delayForCheck			= 1800 * 1000;
private final int[]		itemId					=
												{
	3500,
	5000,
	6500
												};
private final int[]		itemCount				=
												{
	1,
	5,
	4
												};
private final int[]		maxStack				=
												{
	1,
	1,
	1
												};
private final int		votesRequiredForReward	= 10;
// do not change
private int				lastVoteCount			= 0;

private AutoVoteRewardHandler()
{
	System.out.println("Vote Reward System Initiated.");
	ThreadPoolManager.getInstance().scheduleGeneralAtFixedRate(new AutoReward(), initialCheck, delayForCheck);
}

private class AutoReward implements Runnable
{
	public void run()
	{
		int votes = getVotes();
		System.out.println("Server Votes: " + votes);
		if (votes != 0 && getLastVoteCount() != 0 && votes >= getLastVoteCount() + votesRequiredForReward)
		{
			Collection<L2PcInstance> pls = L2World.getInstance().getAllPlayers().values();
			L2ItemInstance item;
			for (L2PcInstance player : pls)
			{
				if (player != null)
				{
					for (int i = 0; i < itemId.length; i++)
					{
						item = player.getInventory().getItemByItemId(itemId[i]);
						if (item == null || item.getCount() < maxStack[i])
						{
							player.addItem("reward", itemId[i], itemCount[i], player, true);
						}
					}
				}
			}
			setLastVoteCount(getLastVoteCount() + votesRequiredForReward);
		}
		Announcements.getInstance().announceToAll("Server Votes: " + votes + " | Next Reward on " + (getLastVoteCount() + votesRequiredForReward) + " Votes.");
		if (getLastVoteCount() == 0)
		{
			setLastVoteCount(votes);
		}
	}
}

private int getVotes()
{
	URL url = null;
	InputStreamReader isr = null;
	BufferedReader in = null;
	try
	{
		url = new URL(HOPZONE);
		isr = new InputStreamReader(url.openStream());
		in = new BufferedReader(isr);
		String inputLine;
		while ((inputLine = in.readLine()) != null)
		{
			if (inputLine.contains("moreinfo_total_rank_text"))
			{
				return Integer.valueOf(inputLine.split(">")[2].replace("</div", ""));
			}
		}
	}
	catch (IOException e)
	{
		e.printStackTrace();
	}
	finally
	{
		try
		{
			in.close();
		}
		catch (IOException e)
		{}
		try
		{
			isr.close();
		}
		catch (IOException e)
		{}
	}
	return 0;
}

private void setLastVoteCount(int voteCount)
{
	lastVoteCount = voteCount;
}

private int getLastVoteCount()
{
	return lastVoteCount;
}

public static AutoVoteRewardHandler getInstance()
{
	return SingletonHolder._instance;
}

@SuppressWarnings("synthetic-access")
private static class SingletonHolder
{
	protected static final AutoVoteRewardHandler	_instance	= new AutoVoteRewardHandler();
}
}

 

thats the first version

 

package com.l2jserver.gameserver.model;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.net.URL;
import java.util.Collection;

import com.l2jserver.gameserver.Announcements;
import com.l2jserver.gameserver.GmListTable;
import com.l2jserver.gameserver.ThreadPoolManager;
import com.l2jserver.gameserver.model.actor.instance.L2PcInstance;
import com.l2jserver.gameserver.model.L2World;

public class AutoVoteRewardHandler
{
private String	HTML			= "http://l2.hopzone.net/lineage2/moreinfo/LineageFort/82167.html";
private int		lastVoteCount	= 0;
private int		initialCheck	= 60 * 1000;														// 60 seconds = 1 minutes
private int		delayForCheck	= 300 * 1000;														// 300 seconds = 10 minutes
private int		reward1Id		= 6577;
private int		reward1Count	= 1;
private int		reward2Id		= 6578;
private int		reward2Count	= 1;
private int		votesForReward	= 5;
private int		maxRewardStack	= 2;

private AutoVoteRewardHandler()
{
	System.out.println("Vote Reward System activated.");
	ThreadPoolManager.getInstance().scheduleGeneralAtFixedRate(new AutoReward(), initialCheck, delayForCheck);
}

private class AutoReward implements Runnable
{
	public void run()
	{
		System.out.println("Vote Count Check.");
		if (reward1Id == 0 || reward1Count == 0 || reward2Id == 0 || reward2Count == 0)
		{
			GmListTable.broadcastMessageToGMs("The rewards aren't Identified. Please take a look.");
			return;
		}
		int newVoteCount = getVotes(HTML);
		System.out.println("newVoteCount:" + newVoteCount);
		System.out.println("getLastVoteCount:" + getLastVoteCount());
		if (newVoteCount != 0 && getLastVoteCount() != 0 && newVoteCount >= getLastVoteCount() + votesForReward)
		{
			Collection<L2PcInstance> pls = L2World.getInstance().getAllPlayers().values();
			for (L2PcInstance player : pls)
			{
				if (player != null)
				{
					L2ItemInstance item1 = player.getInventory().getItemByItemId(reward1Id);
					if (item1 == null || item1.getCount() < maxRewardStack)
					{
						player.addItem("reward", reward1Id, reward1Count, player, true);
					}
					L2ItemInstance item2 = player.getInventory().getItemByItemId(reward2Id);
					if (item2 == null || item2.getCount() < maxRewardStack)
					{
						player.addItem("reward", reward2Id, reward2Count, player, true);
					}
				}
			}
			setLastVoteCount(getLastVoteCount()+votesForReward);
		}
		Announcements.getInstance().announceToAll("La2Fort's Current vote count is: " + newVoteCount);
		Announcements.getInstance().announceToAll("The next reward will be given at " + (getLastVoteCount()+votesForReward) + " Votes.");
		if (getLastVoteCount() == 0)
		{
			setLastVoteCount(newVoteCount);
		}
	}
}

private int getVotes(String urlString)
{
	InputStreamReader isr = null;
	BufferedReader in = null;
	try
	{
		URL url = new URL(urlString);
		isr = new InputStreamReader(url.openStream());
		in = new BufferedReader(isr);
		String inputLine;
		int voteCount = 0;
		while ((inputLine = in.readLine()) != null)
		{
			if (inputLine.contains("moreinfo_total_rank_text"))
			{
				int Sub = 12;// 1-9
				switch (inputLine.length())
				{
					case 116:
						Sub = 13; // 10+
						break;
					case 117:
						Sub = 14; // 100+
						break;
					case 118:
						Sub = 15; // 1000+
						break;
					case 119:
						Sub = 16; // 10000+
						break;
				}
				voteCount = Integer.parseInt(inputLine.substring(inputLine.length() - Sub, inputLine.length() - 11));
				break;
			}
		}
		return voteCount;
	}
	catch (IOException e)
	{
		e.printStackTrace();
		return 0;
	}
	finally
	{
		try
		{
			in.close();
		}
		catch (IOException e)
		{}
		try
		{
			isr.close();
		}
		catch (IOException e)
		{}
	}
}

private void setLastVoteCount(int voteCount)
{
	lastVoteCount = voteCount;
}

private int getLastVoteCount()
{
	return lastVoteCount;
}

public static AutoVoteRewardHandler getInstance()
{
	return SingletonHolder._instance;
}

@SuppressWarnings("synthetic-access")
private static class SingletonHolder
{
	protected static final AutoVoteRewardHandler	_instance	= new AutoVoteRewardHandler();
}
}

 

the codes are same right? there isnt difference.. OH yes from your view point they does the same but they doesnt work the same way

Link to comment
Share on other sites

there are tons of differences first of all the way it works is different the contain check is different the way it starts to reward the ppl is different the arrays are added to make easly confirable etc and etc even the coding style is different and you guys tell that the code is not different ? lol ofc isnt it may do the same as the other one but is improved one and you guys cant prevent me from sharing my own codes.. its called corruption why didnt u even lock/remove topics from the ppl who posted 50bilion pvp color systems or some kind of retarded codes that are coded differently every time

Link to comment
Share on other sites

why didnt u even lock/remove topics from the ppl who posted 50bilion pvp color systems or some kind of retarded codes that are coded differently every time

we did OMFG

 

your code is same

 

you just used other methods but same shit with this: http://www.maxcheaters.com/forum/index.php?topic=167517.0

 

this start because Coolis shared this code which has been selled by you and rain for moneys. http://www.maxcheaters.com/forum/index.php?topic=165496.0 and here http://www.maxcheaters.com/forum/index.php?topic=157387.0

And now you got mad and jelous with Coolis coz he shared and hide it.

you shared it once (not hided) and your topic subject was delete by l2mod.

after that that you re-open eclipse and made some changes to look like another code and you post it for second time.

 

Link to comment
Share on other sites

oh god you guys are insane.. the file(new code) was made 15 days ago " 20 July 2010 y., 12:51:16 "

do you want screenshot or something?

yessssss you were selling it for your own business

and Coolis shareddddd it for mxc

is too late now to make the good and helpful guy.

 

if you are so good in java go prove us wrong and make smth good for mxc.

Link to comment
Share on other sites

thats what i am doing, sharing better version of the shitty one.. his code doesnt have future or will not have improved one cuz he doesnt know coding.. since someone shared it i just decided to share my improved one too! whats wrong ?

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.


×
×
  • Create New...