|
You last visited: Today at 13:42
Advertisement
[Release] /web
Discussion on [Release] /web within the CO2 PServer Guides & Releases forum part of the CO2 Private Server category.
02/12/2010, 06:28
|
#1
|
elite*gold: 0
Join Date: Mar 2008
Posts: 309
Received Thanks: 208
|
[Release] /web
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
|
#2
|
elite*gold: 0
Join Date: Oct 2009
Posts: 8,765
Received Thanks: 5,291
|
Quote:
Originally Posted by Mentalis
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
|
#3
|
elite*gold: 0
Join Date: Mar 2008
Posts: 309
Received Thanks: 208
|
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
|
#4
|
elite*gold: 0
Join Date: Apr 2008
Posts: 124
Received Thanks: 16
|
If it can then Great Release =)
|
|
|
02/12/2010, 06:38
|
#5
|
elite*gold: 0
Join Date: Mar 2008
Posts: 309
Received Thanks: 208
|
I think it's great just cause you can rickroll people
|
|
|
02/12/2010, 06:53
|
#6
|
elite*gold: 0
Join Date: Oct 2009
Posts: 8,765
Received Thanks: 5,291
|
Quote:
Originally Posted by Mentalis
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
|
#7
|
elite*gold: 0
Join Date: Mar 2008
Posts: 309
Received Thanks: 208
|
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
|
#8
|
elite*gold: 0
Join Date: Feb 2010
Posts: 480
Received Thanks: 207
|
This is not really useful.
|
|
|
02/12/2010, 15:36
|
#9
|
elite*gold: 0
Join Date: Mar 2008
Posts: 309
Received Thanks: 208
|
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
|
#10
|
elite*gold: 20
Join Date: Apr 2006
Posts: 1,341
Received Thanks: 886
|
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
|
#11
|
elite*gold: 0
Join Date: Oct 2009
Posts: 8,765
Received Thanks: 5,291
|
Quote:
Originally Posted by _Decker
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
|
#12
|
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,376
|
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 **** 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
|
#13
|
elite*gold: 0
Join Date: Aug 2005
Posts: 96
Received Thanks: 25
|
Quote:
Originally Posted by .Arco
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.
|
|
|
All times are GMT +2. The time now is 13:42.
|
|