PDA

View Full Version : How to open internet with a command



unic rain
October 18th, 2010, 22:03
Is there a way, that i can open some1's internet with a command? like ::votenow, that i open the link to my forums or the voting site?
need help plz. i know corruption x has this, so i hope someone can help me.

greetz buglu

Malik
October 18th, 2010, 22:08
l2code .

L2notspamnoob.People like you make this community worse, if you don't stay out of this thread.

DDS
October 18th, 2010, 22:08
l2code .

Why do people have to be so mean he asked a question no need to troll.
And I think I do but idrk

Steve
October 19th, 2010, 00:21
Only the registered members can see the link.
Torward the end of the post.

Redcen1
October 19th, 2010, 00:22
L2notspamnoob.People like you make this community worse, if you don't stay out of this thread.
Take a joke Noob.

Why do people have to be so mean he asked a question no need to troll.
And I think I do but idrk

Noob


Second let me see ill make you one dear..

kevin
October 19th, 2010, 01:31
Only the registered members can see the link.
Torward the end of the post.

thats for 508-525 lmfao.

Steve
October 19th, 2010, 03:06
thats for 508-525 lmfao.

"lmfao" how about you actually read it, and you'll see it's for 562 too

pk master
October 19th, 2010, 03:11
l2 noobs. owner of bugslug you say you can code to your players lawl! fail

Relapse
October 19th, 2010, 03:14
Either try to help him or don't post its not that hard... but take a look at Steve's thread, that should work.

kevin
October 19th, 2010, 03:58
"lmfao" how about you actually read it, and you'll see it's for 562 too

why dont you l2 try to actually do it yourself? notice there is no RSString.java in 562 clients.

Divine
October 19th, 2010, 04:10
Jesus CHRIST all of you shut the fuck up you're all spamming the fuck out of this. If you know the answer, post. If not, stay the bloody fuck out of it. For god's sake!!!
yes, i b mad because you guys freakin' spam 24/7 and I'm starting 2 get ticked.
OT: If it is possible, than it should be something like this:
[Pardon my syntax, I don't remember the correct format lawll but you get my point]

if(command.equals"vote"){
sM("Opening voting site...");
start Only the registered members can see the link.
}

Steve
October 19th, 2010, 04:19
why dont you l2 try to actually do it yourself? notice there is no RSString.java in 562 clients.
Lol i wrote the tutorial, and go to the bottom of the first post. rofl. Oh and use this now...

Only the registered members can see the link.

@Divine, that would open a browser on the hosters computer xD

reserved
October 19th, 2010, 04:47
this thread is fucking pathetic (not the question, the answers):

import this shit (add it under the other imports)


import java.net.URI;
import java.awt.Desktop;


and add this command: (I'm not very sure for 508+ coding the exact command sytax but I think its what I put)


if(cmd[0].equalsIgnoreCase("COMMAND") {
String site = "Only the registered members can see the link.";
java.awt.Desktop browser = java.awt.Desktop.getDesktop();
java.net.URI website = new java.net.URI( site);
browser.browse( website );
}


again, i'm not exactly sure if its cmd[0]. so change if necessary and if you get errors, that means you didn't import.
just replace Only the registered members can see the link. with your desired web page

samuraiblood2
October 19th, 2010, 07:37
The ignorance in this thread is making my eyes bleed, so before I go blind ill throw in my two cents. First off, such a thing as opening a URL in a browser is client side meaning




if(cmd[0].equalsIgnoreCase("COMMAND") {
String site = "Only the registered members can see the link.";
java.awt.Desktop browser = java.awt.Desktop.getDesktop();
java.net.URI website = new java.net.URI( site);
browser.browse( website );
}


and

if(command.equals"vote"){
sM("Opening voting site...");
start Only the registered members can see the link.
} will only open it up server side (second one wouldn't even compile); so only the person hosting the server will see the browser randomly open up (as I believe someone previously stated). Now that brings to my second point; if you don't know know the answer, simply don't post. Posting code your not even sure will work will just make you look like an idiot, and pointless trolls will just make you hated.

Ficho
October 19th, 2010, 07:42
I demand this thread get closed... All they do in this thread is getting posts up.. 4 of them helped, all others are spamming.. like divine said..

unic rain
October 19th, 2010, 21:45
to the people who helped thank you, and special thanks to steve for posting a tut on did, changed from 317 (2 years ago) to 562 so yea, im kinda "new" to coding.

nazal12
November 2nd, 2010, 07:45
if(cmd[0].equalsIgnoreCase("COMMAND") {
String site = "Only the registered members can see the link.";
java.awt.Desktop browser = java.awt.Desktop.getDesktop();
java.net.URI website = new java.net.URI( site);
browser.browse( website );
}

This is a correct code but where it says desktop replace it with the directory... eg... put the url file in ur client and put that directory in it.... so... reupload the file.

battlezone
November 2nd, 2010, 09:52
to the people who helped thank you, and special thanks to steve for posting a tut on did, changed from 317 (2 years ago) to 562 so yea, im kinda "new" to coding.

2 years ago. i can tell thats a lie right there.

not to be mean but ive been on your server its a runeslay leech. 2 years? youve been doing 562s for about 2 weeks now. if it was 2 years you would have started on a blank source like me. why lie?

bwuk
November 2nd, 2010, 10:09
How would we be able to give you the right answer when u dont give us details, What source, What revision?

samuraiblood2
November 2nd, 2010, 14:56
This is a correct code but where it says desktop replace it with the directory... eg... put the url file in ur client and put that directory in it.... so... reupload the file.

What the hell are you talking about?

SecretMe
January 8th, 2011, 22:04
This is a correct code but where it says desktop replace it with the directory... eg... put the url file in ur client and put that directory in it.... so... reupload the file.

It's something,
But it only opens the page for the hoster of the server, doesn't matter who does it, always opens for the hoster.

Someone post a working code please? ^^

Steve
January 9th, 2011, 14:24
It's something,
But it only opens the page for the hoster of the server, doesn't matter who does it, always opens for the hoster.

Someone post a working code please? ^^

I already did.

master15
January 26th, 2011, 13:44
i got it working for my 562 just with 1 method and few things