Jump to content

Question

Posted

Hello MaxCheaters!

 

I have lameguard and need to add restriction in olympiad, register only 1pj per Pc(hwid).

 

Can any help whit this please

 

 

Thanks! :)

4 answers to this question

Recommended Posts

  • 0
Posted

Hello MaxCheaters!

 

I have lameguard and need to add restriction in olympiad, register only 1pj per Pc(hwid).

 

Can any help whit this please

 

 

Thanks! :)

Lameguard have nothing to do with it

just check your olympiad config files

  • 0
Posted

Lameguard send me this, can any help me to adapt on last acis rev, i need make register only 1pj per PC 1xHWID

 

Thanks a lot guys! 

 

I can pay whit paypal if you want.

Heya.

I will give you code to get hwid in gameserver, and you can use it as you wish.

Add in L2GameClient:
implements com.lameguard.session.LameClientV195


private String _hwid;
private int instances;
private int patch;
private boolean isProtected;

@Override
public String getHWID() {
return _hwid;
}

@Override
public int getInstanceCount() {
return instances;
}

@Override
public int getPatchVersion() {
return patch;
}

@Override
public boolean isProtected() {
return isProtected;
}

@Override
public void setHWID(String hwid) {
this._hwid = hwid;
}

@Override
public void setInstanceCount(int instances) {
this.instances = instances;
}

@Override
public void setPatchVersion(int patch) {
this.patch = patch;
}

@Override
public void setProtected(boolean isProtected) {
this.isProtected = isProtected;
}


Then you can get hwid with getClient().getHWID()
HWID structure:
/**
* The Hardware ID has the following format:
*
* aaaabbbbbbbbccccccccddddddddeeee
*
* Where:
*
* aaaa = CPU ID
* bbbbbbbb = BIOS ID
* cccccccc = HDD ID
* dddddddd = MAC ID
* eeee = internal value
*/

So you shouldn't use it in full. By default it's only first 20 symbols
of hwid compared.

And you can use methods of LG to compare:
com.lameguard.HWID.equals(String hwid1, String hwid2, int mask)
Mask:
public static int HWID_CPU = 8;
public static int HWID_BIOS = 4;
public static int HWID_HDD = 2;
public static int HWID_MAC = 1;

Lameguard support.

  • 0
Posted

All you have to do is:

1. add "implements LameClientV195" to L2GameClient

2. add somewhere at the end of the L2GameClient:

private String _hwid;
private int instances;
private int patch;
private boolean isProtected;

@Override
public String getHWID() {
return _hwid;
}

@Override
public int getInstanceCount() {
return instances;
}

@Override
public int getPatchVersion() {
return patch;
}

@Override
public boolean isProtected() {
return isProtected;
}

@Override
public void setHWID(String hwid) {
this._hwid = hwid;
}

@Override
public void setInstanceCount(int instances) {
this.instances = instances;
}

@Override
public void setPatchVersion(int patch) {
this.patch = patch;
}

@Override
public void setProtected(boolean isProtected) {
this.isProtected = isProtected;
}

Then each L2GameClient will have its own HWID(set during passage from Selecting Server > Character Selection Screen).

 

If you want to make some HWID restriction later, you do something like that:

public static boolean containsSameHWID(Collection<L2PcInstance> groupOfPlayers, L2PcInstance newPlayer)
{
	String newPlayerHWID = newPlayer.getGameClient().getHWID();//I am pretty sure getGameClient() will be wrong in your Pack, you should find what method returns L2GameClient)
	for(L2PcInstance playerInGroup : groupOfPlayers)
	{
		if(playerInGroup.getGameClient().getHWID().equals(newPlayerHWID))
		{
			return true;
		}
	}
	return false;
}

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

    • NEW SEASON GRAND OPENING FROM - 10/07/2026, FRIDAY, 20:00 +3 GMT !
    • System folder is indeed missing @eMommy
    • No complicated KYC, instant setup after purchase!  Boost your connection speed and secure your privacy today!  Official Website: https://novproxy.com?kwd=tt-max
    • I don't know this guy and I don't care about him or the server. What I want to say I already do it. And yes, it does seem like he has some mental problems to make up these stories. 
    • L2JForge Edition Update Revision: V1.0.119  Update: 15 June – 1 July 2026  Fixes & Improvements Fixed PawnShop pagination and inactive Community Board actions. Added thread-safe caching to the PawnShop system. Fixed MMOTopVote vote tracking. Fixed PvP Event participant cleanup. Restored the missing PvP Ranking broadcast. Improved CTF flag handling and zone validation. Added Try Skin / Hat Preview handlers to the Community Board. Improved character skin appearance refreshes without requiring a restart. Improved NPC positioning to reduce train and collision abuse. Fixed Seal of Ruler casting from invalid artifact positions. Added stricter castle artifact, range and height validation. Fixed character restoration stability during Enter World. Reworked Community Board Home, Shop, Bosses and Events sections. Added live Raid/Epic Boss status and respawn information. Added upcoming PvP and GvG event schedules. Integrated character services, settings and statistics into the Community Board. Moved Vote Rewards from a voiced command into the Character Menu in Community Board. Removed the obsolete Achievements / .rewards system.  Removed unused multilingual resources and simplified datapack loading. Improved datapack startup and HTML cache stability. Added automatic build revision and build-date metadata. Reorganized runtime libraries and standardized generated server jars. Refined the Player, Creature, GameClient, Clan and Frintezza systems. Performed extensive source cleanup and reliability improvements. Updated build configuration and repository exclusions.  Work in Progress Development continues with additional gameplay fixes, performance improvements, system cleanup and more upgrades already in progress..
  • 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..