[Release] /web

02/12/2010 06:28 .Ocularis#1
Hello, This is a funny little command I made using Korvacs' finding of how the client is able to open web sites.

This code will open a website through the client of everyone logged in to your server.

Here it is, happy Rick Rolling.
Code:
                        if (Cmd[0] == "/web")
                        {
                            Game.World.SendMsgToAll("SYSTEM", (Cmd[1]), 2105, 0);
                        }
Usage:
Code:
/web www.yougotrickrolled.com
/web www.google.com
/web www.your web address here.com

Edit:

If someone would like to find out if it's possible to make a link visible and click-able that would be awesome :)
02/12/2010 06:34 Arcо#2
Quote:
Originally Posted by Mentalis View Post
Hello, This is a funny little command I made using Korvacs' finding of how the client is able to open web sites.

This code will open a website through the client of everyone logged in to your server.

Here it is, happy Rick Rolling.
Code:
                        if (Cmd[0] == "/web")
                        {
                            Game.World.SendMsgToAll("SYSTEM", (Cmd[1]), 2105, 0);
                        }
Usage:
Code:
/web www.yougotrickrolled.com
/web www.google.com
/web www.your web address here.com
Just curious, can the link be clicked in game?
02/12/2010 06:36 .Ocularis#3
No, but you can use a npc to open a link for only 1 client.


Edit:
I believe it's possible. I just haven't seen much need for something like that, so I haven't looked in to it.
02/12/2010 06:36 shadow8994#4
If it can then Great Release =)
02/12/2010 06:38 .Ocularis#5
I think it's great just cause you can rickroll people :)
02/12/2010 06:53 Arcо#6
Quote:
Originally Posted by Mentalis View Post
I think it's great just cause you can rickroll people :)
Lol but if you rickroll people then people aren't gonna like your server cause they'll get peeved off at you.
02/12/2010 06:56 .Ocularis#7
Then let em use the command themselves. Then they can peeve you off. :)

It would create a massive peeving circle
02/12/2010 13:17 Decker_#8
This is not really useful.
02/12/2010 15:36 .Ocularis#9
I'm sorry... It was a contribution for others to make NPCs which can open browser windows for things like help desks. It would be a good experience for you to try to figure out how to do that yourself.
02/12/2010 21:49 andyd123#10
Well, the only thing I advise very heavily for this is that nobody but a trusted few can have access to it.

If you let anyone access it, next thing you know, you'll have a flurry of problems (legally) coming your way, in regards to virus websites being opened, etc.
02/12/2010 23:20 Arcо#11
Quote:
Originally Posted by _Decker View Post
This is not really useful.
Decker this is useful, you have no clue what it does so do not say it is not useful. People would like to be able to open a webpage via talking to an npc.
02/12/2010 23:22 pro4never#12
Yahh personally I have had something like this implimented since korv was good enough to release how it's done. I'm the only one who can use it though and just incase someone WERE to get gm, I coded it to only go to the voting page for my server that way they can't fuck with it.

Easiest way is just make a function for opening a webpage, then just implement it in w/e npc you want (such as voting)
02/18/2010 01:20 HardNotTo#13
Quote:
Originally Posted by .Arco View Post
Just curious, can the link be clicked in game?
There is a way to make clickable links ingame. Remember the "How to get CPS" button in the inventory window? Im sure it would most likely be in the client somewhere. But if you can click that to open a webpage, it should be possible to make clickable links, maybe using something like the system you done with the PKT npc.