Welcome to MaxCheaters.com

Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads

Code Open Any Url To The Player's Pc


Recommended Posts

Pretty self explanatory. This is a new Packet in order to open any url that you want to the user's pc.

 

Can be used in vote rewards and shit like that. It is for Interlude.

package net.sf.l2j.gameserver.network.serverpackets;

/**
 * @author Elfocrash
 *
 */
public class OpenUrl extends L2GameServerPacket
{
	private final String _url;
	
	public OpenUrl(String url)
	{
		_url = url;
	}
	
	@Override
	protected final void writeImpl()
	{
		writeC(0x70);
		writeS(_url);
	}
}

Usage: 

activeChar.sendPacket(new OpenUrl("https://www.google.co.uk/"));

Client side: entry.dll

Engine.dll in case just the entry file doens't work: engine.dll

If the two things above don't work either here is the whole vanilla system: system

 

Thanks to Szaka for helping me understand how this shit works btw.

Edited by .Elfocrash
  • Upvote 1

Share this post


Link to post
Share on other sites

It won't work, you also need to give them engine.dll

It will work if they have the box standard engine dll which 99% of the users have, and if they don't its because they played in a server that has smartguard or any other client protecting which nullifies this anyway.

Share this post


Link to post
Share on other sites

It will work if they have the box standard engine dll which 99% of the users have, and if they don't its because they played in a server that has smartguard or any other client protecting which nullifies this anyway.

 

Not really, there are a few different engine.dll arround each with unique RVAs I suppose, or someone uses packed engine.dll that won't work aswell, so you better make a more complete share since most people won't be able to implement this.

 

Also, your DLL is dynamically linked to the CRT, that will cause incompatibility mess, re-compile with static linking on CRT through Multi-Threading MT

Share this post


Link to post
Share on other sites

Not really, there are a few different engine.dll arround each with unique RVAs I suppose, or someone uses packed engine.dll that won't work aswell, so you better make a more complete share since most people won't be able to implement this.

 

Also, your DLL is dynamically linked to the CRT, that will cause incompatibility mess, re-compile with static linking on CRT through Multi-Threading MT

Fair enough. Engine.dll added.

Share this post


Link to post
Share on other sites

Put it as a static packet, like ActionFailed, if the only argument is always the same and not based on any external parameter.

Like a give a shit about how they'll use it. I just wanted them to understand how it should work.

I hate static things anyway.

Share this post


Link to post
Share on other sites

More like lack of it rather than incompatibilites. Compiled in vs2015 it requires nothing more but proper redistributables

 

why not just static linking on it, never rely on redistributes for production work

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

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.