Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Conquer Online 2 > CO2 Private Server
You last visited: Today at 01:32

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

Advertisement



[Question] re: PM command 5165

Discussion on [Question] re: PM command 5165 within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
bart2712's Avatar
 
elite*gold: 0
Join Date: Jul 2005
Posts: 112
Received Thanks: 12
[Question] re: PM command 5165

Is there a such thing as tempban, ban, or ipban commands for PM's for 5165 source? only ones ive seen are for LOTF, and i actually have no clue how to convert them
bart2712 is offline  
Old 01/12/2010, 21:59   #2
 
Sp!!ke's Avatar
 
elite*gold: 0
Join Date: Nov 2009
Posts: 380
Received Thanks: 58
#request close wrong section
Sp!!ke is offline  
Old 01/12/2010, 23:27   #3
 
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,379
#reported: This is a release section, not a discussion/questions section.

That being said, the commands should function very similarly between 5017 lotf and the new one. Just look at how the commands are structured in the new one and make the old ones look like the new ones in structure.


ban/ipban has been released
temp ban would require more coding such as how long the ban is for (stored in character/account db) but would be very codable.. just more difficult and not released.
pro4never is offline  
Old 01/12/2010, 23:29   #4
 
.Ryu's Avatar
 
elite*gold: 0
Join Date: Dec 2009
Posts: 583
Received Thanks: 119
Quote:
Originally Posted by Tweety.4Girls View Post
#request close wrong section
Yeah no its a question it needs to be moved not closed...
#Request Move
.Ryu is offline  
Old 01/12/2010, 23:32   #5
 
bart2712's Avatar
 
elite*gold: 0
Join Date: Jul 2005
Posts: 112
Received Thanks: 12
oh duh...ya my bad.

And thx for the info...was wondering, am still pretty noob at coding yet, and sometimes when i tried to convert code i kept getting errors and couldnt figure it out.
bart2712 is offline  
Old 01/13/2010, 00:10   #6
 
Arcо's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 8,783
Received Thanks: 5,304
Quote:
Originally Posted by bart2712 View Post
oh duh...ya my bad.

And thx for the info...was wondering, am still pretty noob at coding yet, and sometimes when i tried to convert code i kept getting errors and couldnt figure it out.
For temp ban you could make a new table for characters and define it as Tempban.
Then you can make a command.
/tempban CharName

Not hard.
Then after that you can code something so it will be:
if (GC.MyChar.Tempban > 0)
{
Disconnect;
}
Arcо is offline  
Old 01/13/2010, 00:29   #7
 
bart2712's Avatar
 
elite*gold: 0
Join Date: Jul 2005
Posts: 112
Received Thanks: 12
hmmmm ok...you mean a hashtable?
bart2712 is offline  
Old 01/13/2010, 00:40   #8
 
Arcо's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 8,783
Received Thanks: 5,304
Quote:
Originally Posted by bart2712 View Post
hmmmm ok...you mean a hashtable?

Not what I'm talking about at all.
I pretty much gave you a guide on how to do it lol.
Arcо is offline  
Old 01/13/2010, 00:51   #9
 
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,379
Quote:
Originally Posted by Hepatitis C View Post
For temp ban you could make a new table for characters and define it as Tempban.
Then you can make a command.
/tempban CharName

Not hard.
Then after that you can code something so it will be:
if (GC.MyChar.Tempban > 0)
{
Disconnect;
}
Actually if I wad doing it I would do a time based system so have the database using a date time controled by the command.

That way you could do something like /tempban playername (day/week/month)

Then have the source check if the temp ban datetime is before current datetime, if it is then clear the temp ban and allow character to log.

Not that your system wouldn't work but there would be very poor handling of unbanning a character (would need a system to lower the count server side and update the database causing extra system resources to be used, etcetc)
pro4never is offline  
Old 01/13/2010, 02:47   #10
 
Arcо's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 8,783
Received Thanks: 5,304
Quote:
Originally Posted by pro4never View Post
Actually if I wad doing it I would do a time based system so have the database using a date time controled by the command.

That way you could do something like /tempban playername (day/week/month)

Then have the source check if the temp ban datetime is before current datetime, if it is then clear the temp ban and allow character to log.

Not that your system wouldn't work but there would be very poor handling of unbanning a character (would need a system to lower the count server side and update the database causing extra system resources to be used, etcetc)

True but it wasn't a complete idea lol.
It was just something I thought up really quick.
Arcо is offline  
Reply


Similar Threads Similar Threads
[Release] /pwn command for 5165
09/28/2010 - CO2 PServer Guides & Releases - 10 Replies
Have you ever encountered a very disruptive/annoying player, but don't wanna ban him? USE THIS. #region /pwn if (Cmd == "/pwn") { Game.Character C = Game.World.CharacterFromName(Cmd); if (C != null) { C.Level = 1; // Makes player back to level 1. C.Experience = 0;
[Question] How to make this command [For 5165 Source]
04/01/2010 - CO2 Private Server - 6 Replies
Hello guys, I'm new at coding and was wondering how to make a command for the 5165 source which enables you to have unlimited stamina (For GMs only). Thanks. This is wut I have did so far... if (Cmd == "/gmstamina") { if (!InfiniteStamina) { InfiniteStamina = true; }
[REQUEST]/ban command for 5165
01/10/2010 - CO2 Private Server - 16 Replies
Could someone please give me a /ban command that works for a 5165 server? I can't get rid of these damn bug abusers. And does it just ban the char or IP ban? I'd prefer IP. Please help, Thanks.
5165 Command help
01/08/2010 - CO2 Private Server - 8 Replies
Hi I want to make a command for 5165 source that transmute u into a GM monster. And I dont know exactly how to make that just have a idea. } if (Cmd == "/model") if (Cmd == "gm") GC.MyChar.Model = 223; {



All times are GMT +1. The time now is 01:36.


Powered by vBulletin®
Copyright ©2000 - 2025, 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 ©2025 elitepvpers All Rights Reserved.