Register for your free account! | Forgot your password?

You last visited: Today at 20:30

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

Advertisement



C# Help 5165

Discussion on C# Help 5165 within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
xScott's Avatar
 
elite*gold: 0
Join Date: Nov 2009
Posts: 322
Received Thanks: 63
C# Help 5165

After alot of trail an error, i still cant find a solution, and getting realy annoyed, LOL.

im using this:

Code:
           if (File.Exists(@"C:\OldCODB\Questions.txt"))
           {
               
               string[] Lines = File.ReadAllLines(@"C:\OldCODB\Questions.txt");
               List<string> Words = new List<string>();
               foreach (string line in Lines)
               {
                   foreach (string s in line.Split('\n'))
                       Words.Add(s);
               }
               string[] WordsArray = new string[Words.Count];
               Words.CopyTo(WordsArray);
               Random Rnd = new Random();
               int RandomLine = Rnd.Next(0,12);
               string LineToConvert = WordsArray[RandomLine];
               string[] ConvertedString =  LineToConvert.Split(' ');
               string Question = ConvertedString[0].Replace("~", " ");
               string Answer = ConvertedString[1];

           }
           else 
           {
               Console.WriteLine("Questions.txt doesnt exist.");
           }
I want to use the string variables "Question & Answer" So the NPC displays the random question and answer to compare it to the input, but i dont know how to implement it into the NPC.

if someone could help me with this id be realy grateful.
xScott is offline  
Old 02/28/2010, 21:04   #2
 
elite*gold: 0
Join Date: Jan 2009
Posts: 1,922
Received Thanks: 491
makes ur questions be put in a array or list or w.e but on a global array or list..
PeTe Ninja is offline  
Old 03/01/2010, 00:07   #3
 
xScott's Avatar
 
elite*gold: 0
Join Date: Nov 2009
Posts: 322
Received Thanks: 63
I have no clue where :s
xScott is offline  
Old 03/01/2010, 01:51   #4
 
elite*gold: 0
Join Date: Jan 2009
Posts: 1,922
Received Thanks: 491
does the 5165 have liek


AllPlayers ?
PeTe Ninja is offline  
Old 03/01/2010, 08:19   #5
 
xScott's Avatar
 
elite*gold: 0
Join Date: Nov 2009
Posts: 322
Received Thanks: 63
ermmm, thats what i dont know, it has, Character.cs but i dont know how to tell what one applies to all players. could it be World.cs? im not sure :/
xScott is offline  
Reply


Similar Threads Similar Threads
Hi I need 5165 source act like Real Co 5165
09/15/2010 - CO2 Private Server - 4 Replies
I need a A source 5165 that all skills is available specially rb char like nin-nin-nin counterKill and nin-war-nin reflect and more, and also the attack rates should be fair not like +8 set can 1 hit +12 set, and also maybe the client, I need to study to make it in 5200+ source. I love to trade it with my cofarmer account VIP i have use it for 5 days only. PM or contact me in skype :marlyandedsel
5165 GUI.ini
06/30/2010 - CO2 Private Server - 3 Replies
i was just wondering if anyone can decrypt the titles in it. I'm really no good at decryption.
5165 on sql
05/18/2010 - CO2 PServer Guides & Releases - 27 Replies
Here source: MEGAUPLOAD - The leading online storage and file delivery service How you instal? Go bin\OldCODB\config dbSql
HELP 5165
01/20/2010 - CO2 Private Server - 1 Replies
I have found a source 5165 from this wounderfull forum i have 1 problem with it. When i have killed mobs or monsters they are adding cps in to my bag also sliver. just wounding what .cs file to find and edit it in or what to look for ? This has had me puzzled now for some time and ive turned for help.
[Help] 5165
12/15/2009 - CO2 Private Server - 5 Replies
Fixed



All times are GMT +1. The time now is 20:30.


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