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

    • We remind you that right now you can create a new character and get the benefits of the bonus-start, which will begin on April 19th. These advantages include: — 10 sets of buff scrolls (phys or mage, depending on class), — 10 packs of +50% Drop/Spoil runes (2 hours each), — 10 packs of +50% Exp runes (2 hours each). Moreover, characters between level 21 and 30 will receive upon login: — 6 sets of buff scrolls, — 6 packs of +50% Drop/Spoil runes (2h each), — 6 packs of +50% Exp runes (2h each). Don't miss the chance to start your adventure on Airin!
    • We are certainly not an ambulance, but we will definitely cure you of blacklists and empty pockets. Live freely with SX! Each of you will receive a trial version of SX to familiarize yourself with the product, all you have to do is post in this thread
    • It's also the players' fault, because there have been decent servers implementing some of the things you said plus some other 'innovations', plus many QOL things for newbies (ingame bestiary, with drops searchers, etc). In the end, it's the players who decide to feed into that shit and play the most garbage servers simply because the owners of the servers gave their clan leaders 100 euros, or they insta quit the server because they didn't win the first QA, etc, etc, etc.   In the end, if a server is garbage or great it doesn't really matter if the players don't wanna stay in there.   Players are no better than the devs themselves, in the end it seems there are abusive devs who will milk the shit out of their willingly milkable players, or there are none, goes both ways.
    • In my opinion, L2 is dead because the people who make servers didn’t adapt to today’s reality. People are getting older, life moves faster, there are more responsibilities, and less free time. And I’m not even talking about newcomers—how can you expect someone new to this game to learn by Googling every drop location or quest requirement? These things should’ve been integrated into the game, made accessible with just a few clicks through the interface. Instead, so much time was wasted trying to recreate retail-like features that no one asked for. Everyone hates autofarm, but why? Because admins never found a smart way to implement it. You could have made it available only in specific zones, with reduced drops, working like Adrenaline, or auto-teleporting to farm for a limited time per day—just enough to help people with limited time stay relevant in-game. There should also be zones with better drops, where active farming actually matters. Other features feel pointless—like the Life Stone system. Spamming LS to get a skill? Instead, you could create a system where you level up the skill with low chances per level, something that feels progressive and fair. Crafting should be simpler too. Right-click a recipe, and the required materials should show up right there. As for sieges, why not create daily clan war events at peak hours—one for Europeans, one for Latinos? You could spawn crystals inside or outside castles that give points and trigger PvP. Add a boss during the event that gives even more points, and let the top clan in the ranking take the castle. I could go on forever, but what’s the point? The community died because the people who had the knowledge to improve the game just took the easy way out, copying the same server formula over and over until no one could enjoy playing it anymore.
    • It's not because I'm an admin that he treated me differently. I actually gave him several clients from my side without him even knowing they came from me, and most of them had no issues. I was also waiting 3–4 weeks at times for things I bought from AvE, even when I was in a rush. He still delivered in the end. That said, I'm not defending him blindly. I'm just saying it's unlikely he’d risk scamming someone over 60–100€, especially knowing how quickly word spreads here.
  • Topics

×
×
  • Create New...