Register for your free account! | Forgot your password?

You last visited: Today at 10:35

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

Advertisement



Interesting problem

Discussion on Interesting problem within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Aug 2007
Posts: 22
Received Thanks: 0
Interesting problem

I modified my database.cs the other day (Don't remember exactly what I did but it was some guide i was using not just me ******** around lol). So anyways now most of my chat commands don't work how they should. For example if I say /gw (guildwar won't start) but if i do /gw *insert any letter here* it will start even if i just put a space after the w which i completely don't understand how its working like that. Any help would be appreciated. where as a simple command such as /bi where teleports me somewhere I don't have that problem.
liljon50 is offline  
Old 08/11/2010, 08:31   #2
 
elite*gold: 0
Join Date: Feb 2009
Posts: 1,765
Received Thanks: 382
check ur chat.cs
for extra Cmd space check
Fish* is offline  
Old 08/11/2010, 14:24   #3
 
elite*gold: 0
Join Date: Aug 2007
Posts: 22
Received Thanks: 0
Hmm. Can you explain a little bit more in depth what you are talking about? I don't exactly understand.
liljon50 is offline  
Old 08/11/2010, 23:54   #4
 
_Emme_'s Avatar
 
elite*gold: 1142
Join Date: Aug 2006
Posts: 2,464
Received Thanks: 1,162
Quote:
Originally Posted by liljon50 View Post
Hmm. Can you explain a little bit more in depth what you are talking about? I don't exactly understand.
See if there's any lenght check, such as "if (Cmd.Lenght > 1)"
_Emme_ is offline  
Old 08/12/2010, 00:43   #5
 
elite*gold: 0
Join Date: Aug 2007
Posts: 22
Received Thanks: 0
Indeed that would be solution if it was only the problem with gw. It is not just gw it is half of my chat.cs commands. the more advanced ones such as

if (Cmd[0] == "/gw" && !Features.GuildWars.War)
Features.GuildWars.StartWar();

Compared to

if (Cmd[0] == "/bi")
{
GC.MyChar.Teleport(1015, 717, 576);
}

Basically any command that has && or ! in it isn't functioning right. It is an error in my database.cs as i said i was modifying the database.cs not chat.cs. chat.cs was completely fine until the database.cs was modified.
liljon50 is offline  
Old 08/12/2010, 03:59   #6
 
_Emme_'s Avatar
 
elite*gold: 1142
Join Date: Aug 2006
Posts: 2,464
Received Thanks: 1,162
Upload your entire Chat.cs here in order for us to have any idea of how to guide you.
_Emme_ is offline  
Old 08/12/2010, 06:13   #7
 
elite*gold: 0
Join Date: Aug 2007
Posts: 22
Received Thanks: 0
I appreciate all your enthusiasm to try and help me but I can assure it is not my chat.cs as before my chat.cs worked fine. Until i added ban and checkban **** into my database.cs After that is when my chat commands got messed up by a space. I didn't change anything in the chat.cs and same chat.cs is working with a different source.

It is either with database.cs or DMap.cs as those are the two i changed before it stopped working.
liljon50 is offline  
Old 08/12/2010, 14:01   #8
 
_Emme_'s Avatar
 
elite*gold: 1142
Join Date: Aug 2006
Posts: 2,464
Received Thanks: 1,162
Then don't accept help, lol. In order for us to help you, we need to see the code, right? We don't know what you changed or whatnot.
_Emme_ is offline  
Old 08/13/2010, 06:37   #9
 
elite*gold: 0
Join Date: Aug 2007
Posts: 22
Received Thanks: 0
add me on msn at please. I will send you my chat.cs there
liljon50 is offline  
Old 08/13/2010, 10:00   #10
 
_Emme_'s Avatar
 
elite*gold: 1142
Join Date: Aug 2006
Posts: 2,464
Received Thanks: 1,162
It's not like your source have anything special, trust me. If you want help from my part, upload it here.
_Emme_ is offline  
Old 08/14/2010, 02:26   #11
 
elite*gold: 0
Join Date: Aug 2007
Posts: 22
Received Thanks: 0
Here
Attached Files
File Type: rar Chat.rar (10.6 KB, 6 views)
liljon50 is offline  
Old 08/14/2010, 02:57   #12
 
bone-you's Avatar
 
elite*gold: 20
Join Date: Mar 2006
Posts: 1,491
Received Thanks: 536
Quote:
Originally Posted by liljon50 View Post
Indeed that would be solution if it was only the problem with gw. It is not just gw it is half of my chat.cs commands. the more advanced ones such as

if (Cmd[0] == "/gw" && !Features.GuildWars.War)
Features.GuildWars.StartWar();

Compared to

if (Cmd[0] == "/bi")
{
GC.MyChar.Teleport(1015, 717, 576);
}

Basically any command that has && or ! in it isn't functioning right. It is an error in my database.cs as i said i was modifying the database.cs not chat.cs. chat.cs was completely fine until the database.cs was modified.
Are you absolutely 100% sure that Features.GuildWars.War is false when executing that command? If you debug and put a breakpoint there, is it false when it runs?
bone-you is offline  
Old 08/15/2010, 17:40   #13
 
elite*gold: 0
Join Date: Aug 2007
Posts: 22
Received Thanks: 0
Yes it is false. The actual problem isn't with gw itself it is with other commands as well that typically involve the C.MyChar or !C or &&... Gw was just the example i used. /gw still works but i just need a space after the w for some odd reason if i am a PM. If I am a GM it works fine just typing it as it and hitting enter without the extra space after the w. It is something in my database or my dmaps. Most likely my database I'm thinking. I am highly doubting the actual issue is with the chat.cs but since he wanted me to upload it I did.
liljon50 is offline  
Old 08/16/2010, 11:49   #14
 
elite*gold: 0
Join Date: Feb 2009
Posts: 1,765
Received Thanks: 382
one thing u can do, is trying reset it for the changes u did.
Fish* is offline  
Old 08/17/2010, 18:31   #15
 
killersub's Avatar
 
elite*gold: 0
Join Date: May 2009
Posts: 884
Received Thanks: 211
check if this
Code:
string[] Cmd = Message.Split(' ');
is in your chat.cs just AS I put it here...if it is make sure it has 1 SPACE and not 2 spaces or together...
killersub is offline  
Reply


Similar Threads Similar Threads
Interesting l2walker problem
11/01/2009 - Lineage 2 - 0 Replies
Hi guys, thirst I would like to say that i have been botting for over 2 years in different server and have never came up to this problem! Wich is: My boxed prp/se/ee refuses to buff 1 char, but it does great with anything else, it seem's like it just doesn't see it or some. It buffes my wolf but not main char, if in full pt it buffs all party members I sett it to buff but no buff/heal for this one char :) it kinda funny and also anoyng any help would be very apretiated
Something interesting
10/10/2009 - Aion - 0 Replies
If you're like me and many other people that play Aion, you notice that there is some pretty serious lag & rubber banding at times. A friend and I, while writing the base stage for our proxy bot, came to realize something. Just to test out the socket system, I logged into Aion via proxy(which was just acting to catch all incoming data via a local socket, then forward it onto the Aion servers) and figured I would get stuck at the server select screen because all I did was connect to the...



All times are GMT +2. The time now is 10:35.


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.