Register for your free account! | Forgot your password?

You last visited: Today at 13:42

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[Release] /web

Discussion on [Release] /web within the CO2 PServer Guides & Releases forum part of the CO2 Private Server category.

Reply
 
Old   #1
 
.Ocularis's Avatar
 
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
.Ocularis is offline  
Thanks
3 Users
Old 02/12/2010, 06:34   #2
 
Arcо's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 8,765
Received Thanks: 5,291
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?
Arcо is offline  
Old 02/12/2010, 06:36   #3
 
.Ocularis's Avatar
 
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.
.Ocularis is offline  
Old 02/12/2010, 06:36   #4
 
shadow8994's Avatar
 
elite*gold: 0
Join Date: Apr 2008
Posts: 124
Received Thanks: 16
If it can then Great Release =)
shadow8994 is offline  
Old 02/12/2010, 06:38   #5
 
.Ocularis's Avatar
 
elite*gold: 0
Join Date: Mar 2008
Posts: 309
Received Thanks: 208
I think it's great just cause you can rickroll people
.Ocularis is offline  
Old 02/12/2010, 06:53   #6
 
Arcо's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 8,765
Received Thanks: 5,291
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.
Arcо is offline  
Old 02/12/2010, 06:56   #7
 
.Ocularis's Avatar
 
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
.Ocularis is offline  
Old 02/12/2010, 13:17   #8
 
elite*gold: 0
Join Date: Feb 2010
Posts: 480
Received Thanks: 207
This is not really useful.
Decker_ is offline  
Old 02/12/2010, 15:36   #9
 
.Ocularis's Avatar
 
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.
.Ocularis is offline  
Old 02/12/2010, 21:49   #10
 
andyd123's Avatar
 
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.
andyd123 is offline  
Thanks
1 User
Old 02/12/2010, 23:20   #11
 
Arcо's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 8,765
Received Thanks: 5,291
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.
Arcо is offline  
Old 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)
pro4never is offline  
Old 02/18/2010, 01:20   #13
 
elite*gold: 0
Join Date: Aug 2005
Posts: 96
Received Thanks: 25
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.
HardNotTo is offline  
Reply




All times are GMT +2. The time now is 13:42.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.