Register for your free account! | Forgot your password?

You last visited: Today at 00:32

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

Advertisement



My Problem in 5165

Discussion on My Problem in 5165 within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
Electro51's Avatar
 
elite*gold: 0
Join Date: Aug 2009
Posts: 46
Received Thanks: 5
My Problem in 5165

Hi, I have problems
Need help for a npc coded

The npc : What can I put in the place of itemtosee it's my problem..
#region npc request
case 51200:
{
if (Control == 0)
{
GC.AddSend(Packets.NPCSay("you lost an item?"));
GC.AddSend(Packets.NPCLink("Yeah", 1));
GC.AddSend(Packets.NPCLink("No, no", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
if (Control == 1)
itemtosee = "";
GC.AddSend(Packets.NPCSay("What item ?"));
GC.AddSend(Packets.NPCLink2("Item :", 2));
GC.AddSend(Packets.NPCSetFace(1));
GC.AddSend(Packets.NPCFinish());
}
if (Control == 2)
{
for (int i = 14; i < 14 + Data[13]; i++)
{
itemtosee += Convert.ToChar(Data[i]);
}
GC.AddSend(Packets.NPCSay("you lost '" + itemtosee + "' is correct?"));
GC.AddSend(Packets.NPCLink("Yes.", 3));
GC.AddSend(Packets.NPCLink("Exit", 255));
GC.AddSend(Packets.NPCSetFace(1));
GC.AddSend(Packets.NPCFinish());
}
if (Control == 3)
{
System.IO.StreamWriter ts = new System.IO.StreamWriter("./ItemReq/Requests.txt", true);
ts.WriteLine(itemtosee + " - lose a : " + GC.MyChar.Name + " the time : " + DateTime.Now);
ts.Flush();
GC.AddSend(Packets.NPCSay("Overview ''" + itemtosee + "'' complet!"));
GC.AddSend(Packets.NPCLink("Cool.", 255));
GC.AddSend(Packets.NPCSetFace(1));
GC.AddSend(Packets.NPCFinish());
}
#endregion
Electro51 is offline  
Old 12/16/2009, 13:10   #2
 
Arcо's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 8,765
Received Thanks: 5,291
Quote:
Originally Posted by Electro51 View Post
Hi, I have problems
1. Guard - attack in capture
2. Warehouse can not regain what was taken within
3. Need help for a npc coded

The npc : What can I put in the place of itemtosee it's my problem..
#region npc request
case 51200:
{
if (Control == 0)
{
GC.AddSend(Packets.NPCSay("you lost an item?"));
GC.AddSend(Packets.NPCLink("Yeah", 1));
GC.AddSend(Packets.NPCLink("No, no", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
if (Control == 1)
itemtosee = "";
GC.AddSend(Packets.NPCSay("What item ?"));
GC.AddSend(Packets.NPCLink2("Item :", 2));
GC.AddSend(Packets.NPCSetFace(1));
GC.AddSend(Packets.NPCFinish());
}
if (Control == 2)
{
for (int i = 14; i < 14 + Data[13]; i++)
{
itemtosee += Convert.ToChar(Data[i]);
}
GC.AddSend(Packets.NPCSay("you lost '" + itemtosee + "' is correct?"));
GC.AddSend(Packets.NPCLink("Yes.", 3));
GC.AddSend(Packets.NPCLink("Exit", 255));
GC.AddSend(Packets.NPCSetFace(1));
GC.AddSend(Packets.NPCFinish());
}
if (Control == 3)
{
System.IO.StreamWriter ts = new System.IO.StreamWriter("./ItemReq/Requests.txt", true);
ts.WriteLine(itemtosee + " - lose a : " + GC.MyChar.Name + " the time : " + DateTime.Now);
ts.Flush();
GC.AddSend(Packets.NPCSay("Overview ''" + itemtosee + "'' complet!"));
GC.AddSend(Packets.NPCLink("Cool.", 255));
GC.AddSend(Packets.NPCSetFace(1));
GC.AddSend(Packets.NPCFinish());
}
#endregion

Where did you get this code from?
Arcо is offline  
Old 12/16/2009, 13:15   #3
 
Electro51's Avatar
 
elite*gold: 0
Join Date: Aug 2009
Posts: 46
Received Thanks: 5
a source 5017 and I edit

Just need help for my npc, problem 1 2 fixed
Electro51 is offline  
Reply


Similar Threads Similar Threads
problem in atk & def in 5165
06/24/2010 - CO2 Private Server - 0 Replies
i have 5165 source,so the problem is a -fire tao +15(i have itemadd.ini) make 1k dmg to a troj +8 - GM (with gm robe= 30k def 30katk) and +15 dead with 1hit from troj +12 and kill a troj +12 with 3hits - "terato dragon" hit 6k hp to a trojan +15/+16 and hit 1k hp to a trojan +12 the +15/+16 has the bonus, to there is the violet thing who add atk/def/dodge
Help 5165 Problem
05/01/2010 - CO2 Private Server - 5 Replies
Weird thing I was able to create a private server on my laptop worked nicely simple to set one of these up but I decided to make one on my cpu. Last resort was to ask for help but I can't think of anything else. Problem Im getting is opening NewestCOServer i get cant find database cannot start the server. I know your supose to put the source in the c drive so why it's doing that I have no clue. Im using windows vista with net framework 2.0. If anyone has any ideas please share I will...
i have problem in 5165
04/10/2010 - CO2 Private Server - 1 Replies
hello all i have problem in 5165 ivrey think has been save aotumatek anly the items in the pag and the stuuf has plz help me
[Help]5165 Problem
03/17/2010 - CO2 Private Server - 3 Replies
After some time without using my source, i found some stange bug.... The gears were in the wrong place :S Here is the Screenshot: http://img443.imageshack.us/img443/7758/21249528. jpg Does anyone know how to fix this? Thanks in advance
[HELP] 5165 Problem
12/07/2009 - CO2 Private Server - 7 Replies
Ok, I have filled out config and everything, but then when I run "NewestCOServer", this happens: http://img18.imageshack.us/img18/4520/problemxq.j pg What did I do wrong?



All times are GMT +2. The time now is 00:32.


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.