You last visited: Today at 07:11
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.
01/27/2010, 06:54
#1
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));
}
}
01/27/2010, 08:26
#2
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 :]
01/28/2010, 21:48
#3
elite*gold: 0
Join Date: Aug 2009
Posts: 424
Received Thanks: 108
Quote:
Originally Posted by
.Arco
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
01/30/2010, 08:25
#4
elite*gold: 0
Join Date: Oct 2009
Posts: 8,789
Received Thanks: 5,310
Quote:
Originally Posted by
CompacticCo
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.
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 .