Jump to content

Recommended Posts

Posted

With this code you will be able to open users Default Browser with one or more URLs you choose, for example you dont need anymore to send the URL via text message which must be copied and paste to browser letter by letter BUT it will automatically open the browser with the URLs you choose, the code works on JAVA6+

String URLs[]=
{
	"www.maxcheaters.com",//Delete or add more
	"www.maxcheaters.com/forum/index.php",
};
try 
{
    if (Desktop.isDesktopSupported()) 
	{
        Desktop desktop = Desktop.getDesktop();
        if (desktop.isSupported(Desktop.Action.BROWSE)) 
        {
        	for (int i=0; i!=URLs.length; i++)
				desktop.browse(new URI(URLs[i]));
        }
    }
} 
catch (Exception e) 
{
	e.printStackTrace();
}		

You can put this code in any command or in any action, even in enterworld.java!

 

For example I created a /vote command so you can test(which AUTOMATICALLY redirects you to your vote web page), you add your URLs or a single URL into the String border and the command opens those URLs automatically, so lets start...

Download the command http://www.4shared.com/file/bMDkyi-u/Vote.html? and paste it on your scripts\handlers\usercommandhandlers, then add the imports on your MasterHandler.java,

and make it:

import handlers.usercommandhandlers.Time;
+import handlers.usercommandhandlers.Vote;

 

AND on same file MasterHandler.java

		Time.class,
		+Vote.class,
		OlympiadStat.class,

 

 

Also for the command to work you must add this line to your CommandName-e located in your System file (if you get errors open it reply here) i opened mine with ct2.4 file edit

133	109	a,Olympiad Score\0
+134	133	a,vote\0

 

Credits me for both of the code and vote, and OFC google books for help:)

Posted

okey, but this command isn't opening the URLs on the computer where server runs? I don't see any player/client related thing that would use the requestor of command, but correct me if I am wrong.

Posted

okey, but this command isn't opening the URLs on the computer where server runs? I don't see any player/client related thing that would use the requestor of command, but correct me if I am wrong.

it will open the URL from the default broswer of the pc where the player is logged in ! So it will work 100 %!
Posted

it will open the URL from the default broswer of the pc where the player is logged in ! So it will work 100 %!

okey, but what sets it to "player" ? parameter activeChar isn't used

Posted

okey, but what sets it to "player" ? parameter activeChar isn't used

who can try this? I dont have live server

Posted

i mean for interlude freya h5?

its for all clients man, but not for all packs, each pack depending on release date has diffrent java version, for example freya/H5 use java7

Guest Elfocrash
Posted

Guys I don't wanna disappoint you but this won't work. First it is really bad coded and second it will only open the browser at the server pc and not the character's/user's pc.

 

I tried this months ago and I know. The only way of getting it work is to decompile or add a dll file that will link the client with this browser usage (pretty much how it works on freya++ from retail).

 

There is also another way but it is a bit mind-beep- to get it working.

 

So just so you know there is no way something like that will ever work without client modification.

 

 

it will open the URL from the default broswer of the pc where the player is logged in ! So it will work 100 %!

There are really many things you have to learn and consider about coding. It is better that someone should not have an opinion when his knowledge is poor.

Posted

Guys I don't wanna disappoint you but this won't work. First it is really bad coded and second it will only open the browser at the server pc and not the character's/user's pc.

 

I tried this months ago and I know. The only way of getting it work is to decompile or add a dll file that will link the client with this browser usage (pretty much how it works on freya++ from retail).

 

There is also another way but it is a bit mind-beep- to get it working.

 

So just so you know there is no way something like that will ever work without client modification.

 

Ok lock it then

Posted

Guys I don't wanna disappoint you but this won't work. First it is really bad coded and second it will only open the browser at the server pc and not the character's/user's pc.

 

I tried this months ago and I know. The only way of getting it work is to decompile or add a dll file that will link the client with this browser usage (pretty much how it works on freya++ from retail).

 

There is also another way but it is a bit mind-beep- to get it working.

 

So just so you know there is no way something like that will ever work without client modification.

 

There are really many things you have to learn and consider about coding. It is better that someone should not have an opinion when his knowledge is poor.

It seems that your knowledge  is poor ! There is a way to make it work without any kind of client modification. I got it working on my server files but i not gonna share it here ...

Actualy the method xdem shared here it can work as i said if you know how to do it !

 

 

Guest Elfocrash
Posted

It seems that your knowledge  is poor ! There is a way to make it work without any kind of client modification. I got it working on my server files but i not gonna share it here ...

Actualy the method xdem shared here it can work as i said if you know how to do it !

 

 

Yeah sure it does. You are definatelly wrong but i won't continue it here.

 

PS: Even Issle said i was right. Nvm.

Guest
This topic is now closed to further replies.


  • Posts

    • Introducing: Cloud Hosting and Stream Rewards!   Hey everyone, I'm excited to share something big on top of the recent NimeraCP V2 update I announced a few days ago. We're introducing Cloud Hosting and Stream Rewards!   Starting at 30 euros per month, subscribing to NimeraCP will give you access to deploy your own instance directly through your dashboard on nimeracp.com. This is a huge upgrade for our ecosystem, offering a much more affordable option than self-hosting and simplifying the entire installation process. No more wasting hours setting things up, buying separate dedicated hosts or VPSs, just deploy on our infrastructure and relax.     Currently these packs are available for Cloud Hosting:   aCis r382 aCis r401 aCis r409 L2Scripts Vanguard   More are coming soon as development progresses. If you need your pack to be added, please reach out to us.   On top of that, we've rolled out an update that introduces Stream Rewards. Now, players can link their Kick, Twitch or Trovo accounts to NimeraCP, stream, and earn rewards. Admins can create reward campaigns, set a required streaming time, and when a streamer meets the requirements, they can instantly transfer the reward to their game character.     As I mentioned in our last update, big things are coming, and this is just the beginning.   Best, Splicho
    • There were a few minor hiccups along the way, but the problem was eventually resolved. Overall, he is a very experienced, skilled, and trustworthy developer, and I will definitely continue to use his services in the future. thank yuo .   this topic can be locked please . thank you  
    • 99.99% of the people you 'sell' this to will not see any meaning on any sort of code, as simple or complicated as it may be, so i suggest the video. would be much better for practical reasons. good luck though
    • I've completely decompiled, replicated, and devirtualized the Gamear DLL file. You can see it there; otherwise, wait a day or two and I'll make a video myself. Best regards. static int __fastcall hkAEmitter_Tick_Impl(void* this_, void* /*edx*/, float dt, int levelTick) {     // Ares: if (IsA(this, AEmitter))     if (this_ && g_UClass_Emitter && GX_IsA(this_, g_UClass_Emitter))     {         // Ares: v7 = sub_1300CAA0()         void* v7 = g_localPawn;         if (v7)         {             // Ares: if IsA(v7, APawn) && lvl in (0,8)             if (g_UClass_APawn && GX_IsA(v7, g_UClass_APawn))             {                 const int lvl = (int)InterlockedCompareExchange((volatile LONG*)&g_skipLevel, 0, 0);                 if (lvl > 0 && lvl < 😎                 {                     // Ares: v6 = sub_13026800(this, v7)                     const float v6 = GX_Distance3D(this_, v7);                     // Live-tuning (debug): aplica overrides en runtime                     GX_LiveApply_Tick(this_, v6); Today I'll see how the classic client works on the Eris server. If it works well, I'll proceed to decompile the dll for classic as well. GG.. 🙂
  • 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..