Jump to content

Recommended Posts

Posted

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

Posted

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.

 

Posted

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

Posted

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

Posted

Your topic has been reported twice.

L2J mods will decide about it.

Matim or Setekh.

Posted

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

Posted

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.

 

Posted

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

do you want screenshot or something?

Posted

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.

Posted

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 ?

Guest
This topic is now closed to further replies.


  • Posts

    • 🛡 GoldRush — High Five x20   A fresh High Five server focused on active progression, fair competition, and a healthy player-driven economy.   GoldRush is built for players who want a fresh spin on our beloved game that is connected to today's world via Web3 marketplace.   🌍 Server Info   Chronicle: High Five Type: Mid Rate / PvP Craft Community: International Location: Europe Time Zone: GMT+3   ⚙️ Rates   EXP: x20 SP: x20 Adena: x10 Drop: x8 Spoil: x12 Raid Boss: x3 Quest Items: x5 Quest EXP / SP: x10 Quest Adena: x5   👑 Class Progression   1st Class: Free 2nd Class: Free 3rd Class: 5,000,000 Adena   1st and 2nd class transfers reward Shadow Weapons.   ✨ Main Features   No P2W as there is no donation currency in the game Web3 Marketplace Events with real rewards Rotating accessories shop Weekly Olympiad Clean and active mid-rate progression   🧩 Community Board Features   Buffer GM Shop Gatekeeper Drop Search Rankings   🔨 Enchant Info   Max Weapon Enchant: +16 Max Armor Enchant: +12 Olympiad Max Enchant: +6   Safe Enchant: Weapons / Armor: safe to +3 Full Body Armor: safe to +4   Enchant Chance: +4 to +6: 66% +7 to +9: 60% +10 to +12: 54% +13 to +14: 48% +15 to +16: 42%   🏪 GM Shop / Gear Progression   C-grade through Dynasty gear is available through the GM Shop.   Moirai+ progression is farm, craft and raid based.   There is no admin-created endgame gear selling.   🥇 Gold Rush Economy   GoldRush includes a server-wide Adena sink system.   Players contribute Adena to the Gold Rush Collector. When the server goal is reached, limited Gold Bar stock unlocks through the Gold Merchant.   Daily Gold Rush missions also allow active players to earn Gold Bars through gameplay.   🌐 Website Player-to-Player Marketplace   GoldRush includes a website-based Web3 marketplace where players can list and trade items with each other.   Items come from real players.   The marketplace is player-to-player only.   🏛 Olympiad   Weekly Olympiad cycle. Olympiad starts at 18:00 GMT+3. Olympiad max enchant: +6.   🏰 Sieges   Castle sieges take place on Sundays at 16:00 and 20:00 GMT+3.   The first siege will happen 2 weeks after launch.   🐉 Grand Boss Respawn   Queen Ant: 24h + 2h random Core: 30h + 2h random Orfen: 48h + 2h random Baium: 120h + 3h random Antharas: 120h + 24h random Valakas: 120h + 24h random Beleth: 120h + 24h random   🎉 Events   Manual GM events with real token or gold bar rewards.   ⚔️ Fair Play   Bots are strictly forbidden and will result in a ban without warning.   Dualbox is limited to 1 box.   GoldRush is built around a healthy player-to-player economy.   🚀 What to Expect   Active farming Meaningful PvP Meaningul Farming Player-driven economy No donation currency     🔗 Join Us   Website: www.goldrushpvp.xyz Discord: https://discord.gg/kg9WXxcAY   🏁 Expected Launch: July 18 2026     If you are looking for a fresh High Five x20 server with clean structure and strong long-term potential, GoldRush is almost ready.   See you in game.
    • Collisions is from client are no way to bypass from server. Can be done from client modification need to be moded a .dll I can do the work you can contact me by DM  P.D: I already have this job done on the past
    • I believe this can be achieved with a client mod actually. What client are you using?  
  • 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..