Register for your free account! | Forgot your password?

Go Back   elitepvpers › MMORPGs › Conquer Online 2 › CO2 Private Server
You last visited: Today at 07:11

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

Advertisement



[HELP] NPC box will not close, new to this style of lotf.

Discussion on [HELP] NPC box will not close, new to this style of lotf. within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
CompacticCo's Avatar
 
elite*gold: 0
Join Date: Aug 2009
Posts: 424
Received Thanks: 108
[HELP] NPC box will not close, new to this style of lotf.

Hey guys I love you all, can you help me? I'm new this style of npc coding, when the npc is ingame, you can't close it unless you DC.


How can I fix this?
Code:
if (NPCID == 55566)
                {
                    Say("We give out free max level gears, the only hard part now is leveling/ upgrading.");
                    Say("I only give out max gears for Warriors and Trojans, because this is also a pvp server.");
                    Say("If you want, you can still hunt/make gear for your other class.");
                    
                    Link("Warrior gear lowest level", 1);
                    Link("Trojan gear lowest level", 2);
                    
                    
                    Finish();
                }

                if (NPCID == 55566)
                
                {
                    if (Control == 1)
                    {
                        Say("You sure you want this crap?");
                        Link("Yes", 4);
                        Link("No", 255);
                        Face(30);
                        Finish();
                    }
                    if (Control == 2)
                    {
                        Say("You sure you want this crap?");
                        Link("Yes", 3);
                        Link("No", 255);
                        Face(30);
                        Finish();
                    }
                    if (Control == 3)
                    {
                        Char.AddItem("160019-12-7-255-13-13", 0, (uint)General.Rand.Next(57458353));
                        Char.AddItem("120009-12-7-255-13-13", 0, (uint)General.Rand.Next(57458353));
                        Char.AddItem("150019-12-7-255-13-13", 0, (uint)General.Rand.Next(57458353));
                        Char.AddItem("118909-12-7-255-13-13", 0, (uint)General.Rand.Next(57458353));
                        Char.AddItem("130209-12-7-255-13-13", 0, (uint)General.Rand.Next(57458353));
                        Char.AddItem("117309-12-7-255-13-13", 0, (uint)General.Rand.Next(57458353));
                        Char.AddItem("410009-12-7-255-13-13", 0, (uint)General.Rand.Next(57458353));
                        Char.AddItem("410009-12-7-255-13-13", 0, (uint)General.Rand.Next(57458353));
                        Char.AddItem("420009-12-7-255-13-13", 0, (uint)General.Rand.Next(57458353));
                        Char.AddItem("420009-12-7-255-13-13", 0, (uint)General.Rand.Next(57458353));
                        Char.AddItem("480009-12-7-255-13-13", 0, (uint)General.Rand.Next(57458353));
                        Char.AddItem("480009-12-7-255-13-13", 0, (uint)General.Rand.Next(57458353));
                    } if (Control == 4)
                    {

                        Char.AddItem("131209-12-7-255-13-13", 0, (uint)General.Rand.Next(57458353));
                        Char.AddItem("160019-12-7-255-13-13", 0, (uint)General.Rand.Next(57458353));
                        Char.AddItem("120009-12-7-255-13-13", 0, (uint)General.Rand.Next(57458353));
                        Char.AddItem("150019-12-7-255-13-13", 0, (uint)General.Rand.Next(57458353));
                        Char.AddItem("111909-12-7-255-13-13", 0, (uint)General.Rand.Next(57458353));
                        Char.AddItem("117309-12-7-255-13-13", 0, (uint)General.Rand.Next(57458353));
                        Char.AddItem("410009-12-7-255-13-13", 0, (uint)General.Rand.Next(57458353));
                        Char.AddItem("410009-12-7-255-13-13", 0, (uint)General.Rand.Next(57458353));
                        Char.AddItem("420009-12-7-255-13-13", 0, (uint)General.Rand.Next(57458353));
                        Char.AddItem("420009-12-7-255-13-13", 0, (uint)General.Rand.Next(57458353));
                        Char.AddItem("480009-12-7-255-13-13", 0, (uint)General.Rand.Next(57458353));
                        Char.AddItem("480009-12-7-255-13-13", 0, (uint)General.Rand.Next(57458353));
                    }
                }
CompacticCo is offline  
Old   #2
 
Arcо's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 8,789
Received Thanks: 5,310
Code:
if (NPCID == 55566)
                {
if (Control == 0)
{
                    Say("We give out free max level gears, the only hard part now is leveling/ upgrading.");
                    Say("I only give out max gears for Warriors and Trojans, because this is also a pvp server.");
                    Say("If you want, you can still hunt/make gear for your other class.");
                    
                    Link("Warrior gear lowest level", 1);
                    Link("Trojan gear lowest level", 2);
                    
                    
                    Finish();
                }
}

                if (NPCID == 55566)
                
                {
                    if (Control == 1)
                    {
                        Say("You sure you want this crap?");
                        Link("Yes", 4);
                        Link("No", 255);
                        Face(30);
                        Finish();
                    }
                    if (Control == 2)
                    {
                        Say("You sure you want this crap?");
                        Link("Yes", 3);
                        Link("No", 255);
                        Face(30);
                        Finish();
                    }
                    if (Control == 3)
                    {
                        Char.AddItem("160019-12-7-255-13-13", 0, (uint)General.Rand.Next(57458353));
                        Char.AddItem("120009-12-7-255-13-13", 0, (uint)General.Rand.Next(57458353));
                        Char.AddItem("150019-12-7-255-13-13", 0, (uint)General.Rand.Next(57458353));
                        Char.AddItem("118909-12-7-255-13-13", 0, (uint)General.Rand.Next(57458353));
                        Char.AddItem("130209-12-7-255-13-13", 0, (uint)General.Rand.Next(57458353));
                        Char.AddItem("117309-12-7-255-13-13", 0, (uint)General.Rand.Next(57458353));
                        Char.AddItem("410009-12-7-255-13-13", 0, (uint)General.Rand.Next(57458353));
                        Char.AddItem("410009-12-7-255-13-13", 0, (uint)General.Rand.Next(57458353));
                        Char.AddItem("420009-12-7-255-13-13", 0, (uint)General.Rand.Next(57458353));
                        Char.AddItem("420009-12-7-255-13-13", 0, (uint)General.Rand.Next(57458353));
                        Char.AddItem("480009-12-7-255-13-13", 0, (uint)General.Rand.Next(57458353));
                        Char.AddItem("480009-12-7-255-13-13", 0, (uint)General.Rand.Next(57458353));
                    } if (Control == 4)
                    {

                        Char.AddItem("131209-12-7-255-13-13", 0, (uint)General.Rand.Next(57458353));
                        Char.AddItem("160019-12-7-255-13-13", 0, (uint)General.Rand.Next(57458353));
                        Char.AddItem("120009-12-7-255-13-13", 0, (uint)General.Rand.Next(57458353));
                        Char.AddItem("150019-12-7-255-13-13", 0, (uint)General.Rand.Next(57458353));
                        Char.AddItem("111909-12-7-255-13-13", 0, (uint)General.Rand.Next(57458353));
                        Char.AddItem("117309-12-7-255-13-13", 0, (uint)General.Rand.Next(57458353));
                        Char.AddItem("410009-12-7-255-13-13", 0, (uint)General.Rand.Next(57458353));
                        Char.AddItem("410009-12-7-255-13-13", 0, (uint)General.Rand.Next(57458353));
                        Char.AddItem("420009-12-7-255-13-13", 0, (uint)General.Rand.Next(57458353));
                        Char.AddItem("420009-12-7-255-13-13", 0, (uint)General.Rand.Next(57458353));
                        Char.AddItem("480009-12-7-255-13-13", 0, (uint)General.Rand.Next(57458353));
                        Char.AddItem("480009-12-7-255-13-13", 0, (uint)General.Rand.Next(57458353));
                    }
                }
But this is in the wrong section.
Please remember this is a release/guide section.
If you are going to ask for help please post here.


Thanks :]
Arcо is offline  
Thanks
1 User
Old   #3
 
CompacticCo's Avatar
 
elite*gold: 0
Join Date: Aug 2009
Posts: 424
Received Thanks: 108
Quote:
Originally Posted by .Arco View Post
Code:
if (NPCID == 55566)
                {
if (Control == 0)
{
                    Say("We give out free max level gears, the only hard part now is leveling/ upgrading.");
                    Say("I only give out max gears for Warriors and Trojans, because this is also a pvp server.");
                    Say("If you want, you can still hunt/make gear for your other class.");
                    
                    Link("Warrior gear lowest level", 1);
                    Link("Trojan gear lowest level", 2);
                    
                    
                    Finish();
                }
}

                if (NPCID == 55566)
                
                {
                    if (Control == 1)
                    {
                        Say("You sure you want this crap?");
                        Link("Yes", 4);
                        Link("No", 255);
                        Face(30);
                        Finish();
                    }
                    if (Control == 2)
                    {
                        Say("You sure you want this crap?");
                        Link("Yes", 3);
                        Link("No", 255);
                        Face(30);
                        Finish();
                    }
                    if (Control == 3)
                    {
                        Char.AddItem("160019-12-7-255-13-13", 0, (uint)General.Rand.Next(57458353));
                        Char.AddItem("120009-12-7-255-13-13", 0, (uint)General.Rand.Next(57458353));
                        Char.AddItem("150019-12-7-255-13-13", 0, (uint)General.Rand.Next(57458353));
                        Char.AddItem("118909-12-7-255-13-13", 0, (uint)General.Rand.Next(57458353));
                        Char.AddItem("130209-12-7-255-13-13", 0, (uint)General.Rand.Next(57458353));
                        Char.AddItem("117309-12-7-255-13-13", 0, (uint)General.Rand.Next(57458353));
                        Char.AddItem("410009-12-7-255-13-13", 0, (uint)General.Rand.Next(57458353));
                        Char.AddItem("410009-12-7-255-13-13", 0, (uint)General.Rand.Next(57458353));
                        Char.AddItem("420009-12-7-255-13-13", 0, (uint)General.Rand.Next(57458353));
                        Char.AddItem("420009-12-7-255-13-13", 0, (uint)General.Rand.Next(57458353));
                        Char.AddItem("480009-12-7-255-13-13", 0, (uint)General.Rand.Next(57458353));
                        Char.AddItem("480009-12-7-255-13-13", 0, (uint)General.Rand.Next(57458353));
                    } if (Control == 4)
                    {

                        Char.AddItem("131209-12-7-255-13-13", 0, (uint)General.Rand.Next(57458353));
                        Char.AddItem("160019-12-7-255-13-13", 0, (uint)General.Rand.Next(57458353));
                        Char.AddItem("120009-12-7-255-13-13", 0, (uint)General.Rand.Next(57458353));
                        Char.AddItem("150019-12-7-255-13-13", 0, (uint)General.Rand.Next(57458353));
                        Char.AddItem("111909-12-7-255-13-13", 0, (uint)General.Rand.Next(57458353));
                        Char.AddItem("117309-12-7-255-13-13", 0, (uint)General.Rand.Next(57458353));
                        Char.AddItem("410009-12-7-255-13-13", 0, (uint)General.Rand.Next(57458353));
                        Char.AddItem("410009-12-7-255-13-13", 0, (uint)General.Rand.Next(57458353));
                        Char.AddItem("420009-12-7-255-13-13", 0, (uint)General.Rand.Next(57458353));
                        Char.AddItem("420009-12-7-255-13-13", 0, (uint)General.Rand.Next(57458353));
                        Char.AddItem("480009-12-7-255-13-13", 0, (uint)General.Rand.Next(57458353));
                        Char.AddItem("480009-12-7-255-13-13", 0, (uint)General.Rand.Next(57458353));
                    }
                }
But this is in the wrong section.
Please remember this is a release/guide section.
If you are going to ask for help please post here.


Thanks :]


Thank you tons, you also just showed me how to code npcs in this type, <3
CompacticCo is offline  
Old   #4
 
Arcо's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 8,789
Received Thanks: 5,310
Quote:
Originally Posted by CompacticCo View Post
Thank you tons, you also just showed me how to code npcs in this type, <3
No problem (:
Need anymore help feel free to ask.
Arcо is offline  
Reply


Similar Threads Similar Threads
Your Style
12/08/2009 - Mabinogi - 14 Replies
Hello, I would like to know what Fighting-Style your using. Post Details/Tips.
[HELP] Compile error with LOTF(i know LOTF sucks but just help)
06/19/2009 - CO2 Private Server - 3 Replies
It says: Loaded 254 portals. Loaded 1027 NPCs. Loaded 37 mobs. Loaded 11147 items. Loaded 172 mob spawns. System.ArgumentOutOfRangeException: 'minValue' cannot be greater then mxValue. Parameter name : minValue at System.Random.Next<Int32 minValue, Int32 maxValue> at COServer_Project.Mobs.SpawnAllMobs<> in C:\Documents and Settings\Admin\My Documents\COServerProject1\COServerProject\Entitie s.cs:line 207
New Style
04/02/2009 - CO2 Private Server - 12 Replies
http://www2.0zz0.com/2009/03/29/19/144017737.jpg http://www10.0zz0.com/2009/03/29/17/404919250.jpg MediaFire: Nice Themes Sorry for big pics Themes Creat By MeGaMaX



All times are GMT +2. The time now is 07:12.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.