Elfo Posted February 2, 2017 Posted February 2, 2017 (edited) 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 February 2, 2017 by .Elfocrash 1 Quote
xxdem Posted February 2, 2017 Posted February 2, 2017 It won't work, you also need to give them engine.dll Quote
Elfo Posted February 2, 2017 Author Posted February 2, 2017 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. Quote
Szakalaka Posted February 2, 2017 Posted February 2, 2017 It would be best to give entire system folder tho. Quote
xxdem Posted February 2, 2017 Posted February 2, 2017 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 Quote
Elfo Posted February 2, 2017 Author Posted February 2, 2017 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. Quote
Szakalaka Posted February 2, 2017 Posted February 2, 2017 btw, you can just hook the AddNetworkQueue function. It is exported by every engine.dll, thus its universal Quote
xxdem Posted February 2, 2017 Posted February 2, 2017 Don't forget to remove this DLL and include a new compiled one, this one won't work to 95% of players due to incompatibilities of the CRT Quote
Szakalaka Posted February 2, 2017 Posted February 2, 2017 More like lack of it rather than incompatibilites. Compiled in vs2015 it requires nothing more but proper redistributables Quote
Tryskell Posted February 2, 2017 Posted February 2, 2017 Put it as a static packet, like ActionFailed, if the only argument is always the same and not based on any external parameter. Quote
Elfo Posted February 2, 2017 Author Posted February 2, 2017 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. Quote
xxdem Posted February 2, 2017 Posted February 2, 2017 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 Quote
Szakalaka Posted February 2, 2017 Posted February 2, 2017 why not just static linking on it, never rely on redistributes for production work Yes, thats the proper solution :) Quote
Recommended Posts
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.