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

    • Server mid rate craft PvP   CLIENTE INTERLUDE Website server Discord olympus x25  server 🇧🇷🇦🇷🇨🇱🇬🇷🇲🇽🇵🇪🇸🇰🇪🇸🇺🇾 Server mid rate craft PvP 🔱CLIENTE INTERLUDE🔱 🔅xpx25 🔅Sp x25 🔅Adena x15 🔅Droop x2 🔅Spoil x2 🔅Raidboss xp x2 🔅Raidboss sp x2 🔅Raidboss droop x1 🔅All Rate quest reward  x1 ⚠️All Quest drop reward. x1 🔅Manor x 3 🔅Seal stone x1 🛡️🗡️INFO GRADO S🗡️🛡️ ⚠️Inicia desabilitado drop/spoil/quest. 🔱PROFESIONES/SUBCLASS🔱 🛡️1st profession - 50medal 🛡️2nd profession - 500 medal 🛡️3rd profession - 1k medal +30kk adena 🛡️Sub class - Quest. No necesita matar raids. ⚙️Configuraciones⚙️ 🛡️Gmshop  grade - B. 🛡️Grade A-S Craft - yes x1 chance 🛡️Globlal teleport - yes 🛡️Buffer 1hora. 🛡️Buffer slot 24(+4divine)+12 dances-song 🛡️Auto learn skils - yes 🛡️Autoloot - yes 🛡️Mana potion recarga 1000 ,9segundos delay. 🛡️Champions system:     ▫️lvl 30 - 76     ▫️chance respawn 0.5%.     ▫️adena x20 🛡️Max lvl party 14 lvl. 🛡️Festive sweeper on. 🛡️Max client pc 2. 🛡️Raid boss respawn retail. 🛡️Nobleza quest - yes. 🛡️Barakiel respawn 6 horas + -30 min. 🛡️Olimpiada duracion 14 dias. 🛡️Olimpiada de 18:00 a 00:00 🛡️Safe enchant +3 🛡️Normal enchant scroll 50% ⚠️+11-16 chance 30% 🛡️Bleesed enchant scroll 55% ⚠️+11-16 chance 35% 🛡️Rate dinamico x1 lvl 77-80   🛡️🗡️CLANES INFO🗡️🛡️ 🔅Crear clan min. level 20 🔅Max Alianzas 1 🔅Duracion penalidades clan / alianzas 8 horas. 🔅Cambio de lider 24 horas. 🛡️⚔️ ASEDIOS ⚔️🛡️ 🔅Cada 2 semanas. 🔅Proteccion hwid 1 pc. 🔅Clanes registrados. acceden a zona de asedio. 🔅Castillo asediable Aden. 🔅Reward 1000 FA 🔅Horario 16:00 GMT-3 🎊PACK DE INICIO🎊 🔅Start set - armor\weapon no grade. 🔅Level 20  - 5 shadow cuppon grado D 🔅Level 40 - 5 shadow cuppon grado C 🔅Free Autofarm 24 horas. 💰 INFO PREMIUM 💰 🔅Free autofarm. 🔅xp x30 🔅sp x30 🔅adena x17 🔅drop x4 🔅spoil x4 🔅enchant +2% 🔅seal stone x1 🔅Altb Gk-Gmshop/buffe ⚔️ RAID  BOSS INFO ⚔️ 🔅Raid boss 70 ++ respawn 5 días despues. 🔅Raid boss 75 ++ respawn 15 días despues 🔅Drop LETTER L2DAY para tradear en GMshop. ⚔️ INFO SEVEN SING ⚔️ 🔅Inicio del drop Seal stones dia 5 de iniciado el server. 🎊 EPIC RAID INFO 🎊 🔅Queen Ant (lvl 40)respawn Lunes a Viernes 22:00 GMT-3 drop chance 30%. 🔅Core (lvl 80)respawn Martes-miercoles 20:20 GMT-3 drop chance 100%. 🔅Orfen (lvl 80)respawn Martes-miercoles 21:00 GMT-3 drop chance 100%. 🔅Zaken (lvl 80)respawn Jueves 23:00 GMT-3 drop chance 100%. 🔅Frintezza (lvl 80)respawn Viernes 23:00 GMT-3 drop chance 100%. 🔅Baium (lvl 80)respawn Sabado 22:00 GMT-3 drop chance 100%. 🔅Valakas (lvl 80)respawn Domingo 20:00 GMT-3 drop chance 100%. 🔅Antharas (lvl 80)respawn Domingo 22:00 GMT-3 drop chance 100%.
    • The server is running in l2house.com.ar with C4 mode and in L2Tekila within the same login you can also test it in C5, if you want me to raise another chronicle to test, just let me know.
    • video nice song TopGear  gaming 1990    ....  
    • I have a system where Accounts are saved on login screen for fast login. I am playing a server where this feature is not on the logic screen. How I can try to add this feature to the system? I don't know what files I would have to touch.   Thanks!!
  • Topics

×
×
  • Create New...