Register for your free account! | Forgot your password?

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

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

Advertisement



[Question]problem with a comand

Discussion on [Question]problem with a comand within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
thesamuraivega's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 125
Received Thanks: 21
[Question]problem with a comand

Hi
I create my commands
I have problem here:

Code:
ushort _screen;
          _screen = ushort.Parse(Data[1]);                                          client.Entity.AddFlag(Network.GamePackets.Update.Flags.[COLOR="Red"]([/COLOR]uint.Parse(Data[1])));
why?

and in this npc have error:

Code:
                                        case 1:
                                            {
                                                if (client.Inventory.Contains(711214, 1) && client.Inventory.Contains(711215, 1) && client.Inventory.Contains(711216, 1) && client.Inventory.Contains(711217, 1) && client.Inventory.Contains(711218, 1) && client.Inventory.Contains(711219, 1) && client.Inventory.Contains(711220, 1))
                                                {
                                                    client.Inventory.Remove(711214, 1);
                                                    client.Inventory.Remove(721255, 1);
                                                    client.Inventory.Remove(721256, 1);
                                                    client.Inventory.Remove(721257, 1);
                                                    client.Inventory.Remove(721258, 1);
                                                    client.Inventory.Remove(721259, 1);
                                                    client.Inventory.Remove(721220, 1);
                                                    dialog.Text("Good select you prize gratz");
                                                    dialog.Option("Stone +5!.", 3);
                                                    dialog.Option("SandRaider Garment!.", 4);
                                                    dialog.Option("PenitenceAmulet!.", 5);
                                                    dialog.Option("Item Super!.", 6);
                                                    dialog.Send();
                                                    break;
                                                }
                                                else
                                                {
                                                    dialog.Text("You no have the letters C O N Q U E R!");
                                                    dialog.Option("OK ty!.", 255);
                                                    dialog.Send();
                                                    break;
                                                }
                                            }
Always says "You no have the letters C O N Q U E R!" ... why?


ty
thesamuraivega is offline  
Old 05/26/2011, 18:56   #2
 
_DreadNought_'s Avatar
 
elite*gold: 28
Join Date: Jun 2010
Posts: 2,225
Received Thanks: 868
client.Entity.AddFlag(Network.GamePackets.Update.F lags.(uint.Parse(Data[1])));
..
Doesnt work as simple as that, You can try compare it to an enum and have it select it.
_DreadNought_ is offline  
Thanks
1 User
Old 05/26/2011, 20:32   #3
 
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,380
You could enum.tryParse though to pull it via string xD
pro4never is offline  
Thanks
1 User
Old 05/26/2011, 21:56   #4
 
_DreadNought_'s Avatar
 
elite*gold: 28
Join Date: Jun 2010
Posts: 2,225
Received Thanks: 868
or TryDefine.
_DreadNought_ is offline  
Old 05/27/2011, 00:58   #5
 
thesamuraivega's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 125
Received Thanks: 21
and in the npc? pliz help and more thanks!!!!
thesamuraivega is offline  
Old 05/27/2011, 20:33   #6
 
elite*gold: 0
Join Date: May 2011
Posts: 168
Received Thanks: 33
You forgot a break;

else
{
dialog.Text("You no have the letters C O N Q U E R!");
dialog.Option("OK ty!.", 255);
dialog.Send();
break;
}
break;
}
zTek is offline  
Old 05/27/2011, 20:47   #7
 
thesamuraivega's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 125
Received Thanks: 21
Quote:
Originally Posted by zTek View Post
You forgot a break;

else
{
dialog.Text("You no have the letters C O N Q U E R!");
dialog.Option("OK ty!.", 255);
dialog.Send();
break;
}
break;
}
lolz is unreachable code
thesamuraivega is offline  
Reply


Similar Threads Similar Threads
Comand´s minecraft
03/03/2011 - Minecraft - 12 Replies
Hey leute wie füg ich comad hinzu ? z.b.w jumpto oder so? hat wer ne anleitung wäre nett
Need Comand SSea
09/10/2010 - SRO Private Server - 1 Replies
need the following commands Invisible Berserk The Strongest Of Running
help with a comand
04/14/2010 - Dekaron - 1 Replies
is there a comand for blocking incoming pm's?cuz my friends told me it is but they dont know it,plss help me tell it 2 me:D
[HELP] GW end Comand
12/30/2009 - CO2 Private Server - 16 Replies
how make comand for end gw? I try this but dont work, what do wrong? if (Cmd == "/gwend" && !Features.GuildWars.War) Features.GuildWars.EndWar();



All times are GMT +1. The time now is 05:26.


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.