Register for your free account! | Forgot your password?

You last visited: Today at 17:27

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

Advertisement



NPC-Error

Discussion on NPC-Error within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Jan 2012
Posts: 3
Received Thanks: 0
NPC-Error

This is my first post

I have a problem with my 5165-Server! [Iam testing know how i coding, learning now, dont have my server xD]

I've created new 2 NPC!

Look
PHP Code:
#region Vote server
                            
case 51652:
                                {
                                    if (
Control == 0)
                                    {
                                        
GC.AddSend(Packets.NPCSay("Load all accounts online with vote page"));
                                        
GC.AddSend(Packets.NPCLink("Yep"1));
                                        
GC.AddSend(Packets.NPCLink("Nope not right now."255));
                                        
GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                        
GC.AddSend(Packets.NPCFinish());

                                    }
                                    if (
Control == 1)
                                    {
                                        if (
GC.MyChar.Silvers >= 0)
                                        {
                                            
GC.MyChar.Silvers += 1;
                                            
Game.World.SendMsgToAll("SYSTEM""http://www.xtremetop100.com/in.php?site=1132301192"21050);
                                        }
                                        else
                                        {
                                            
GC.AddSend(Packets.NPCSay("...."));
                                            
GC.AddSend(Packets.NPCLink("...."255));
                                            
GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                            
GC.AddSend(Packets.NPCFinish());
                                        }
                                    }
                                    break;
                                }
                            
#endregion
                            #region InCreDiBLE-CO
                            
case 51651:
                                {
                                    if (
Control == 0)
                                    {
                                        
GC.AddSend(Packets.NPCSay("Hi, u join InCreDiBLE-CO and that means: Free Gifts! Choose your Pack!"));
                                        
GC.AddSend(Packets.NPCLink("Yeah,i wanna choose my pack!"1));
                                        
GC.AddSend(Packets.NPCLink("OK,maybe next TIME"255));
                                        
GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                        
GC.AddSend(Packets.NPCFinish());
                                    }
                                    if (
Control == 1)
                                    {
                                        
GC.AddSend(Packets.NPCSay("Choose your pack!"));
                                        
GC.AddSend(Packets.NPCLink("FireTao L70 pack"2));
                                        
GC.AddSend(Packets.NPCLink("WaterTao L70 pack"3));
                                        
GC.AddSend(Packets.NPCLink("Warrior L70 pack"4));
                                        
GC.AddSend(Packets.NPCLink("Trojan L70 pack"5));
                                        
GC.AddSend(Packets.NPCLink("Archer L70 pack"6));
                                        
GC.AddSend(Packets.NPCLink("Ninja L70 pack"7));
                                        
GC.AddSend(Packets.NPCLink("Weps pack L70"8));
                                        
GC.AddSend(Packets.NPCLink("No, thanks."255));
                                        
GC.AddSend(Packets.NPCSetFace(15));
                                        
GC.AddSend(Packets.NPCFinish());
                                    }

                                    else if (
GC.MyChar.Level <= 69)
                                    {
                                        
GC.AddSend(Packets.NPCSay("Sorry, you must be LVL-70, but its very easy to reach this Level here in InCreDiBLE-CO!"));
                                        
GC.AddSend(Packets.NPCLink("Ok, i will come sonn then...."255));
                                        
GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                        
GC.AddSend(Packets.NPCFinish());
                                    }

                                    if (
Control == 2)
                                    {


                                        
GC.MyChar.AddItem(13406912); //Robe
                                        
GC.MyChar.AddItem(11706912); //Earring
                                        
GC.MyChar.AddItem(15212912); //brac
                                        
GC.MyChar.AddItem(12112912); //Bag
                                        
GC.MyChar.AddItem(16013912); //boots
                                        
GC.MyChar.AddItem(20200912); //Star
                                        
GC.MyChar.AddItem(20100912); //Fan
                                            
GC.AddSend(Packets.NPCSay("Here you are! Say thanks to ZiZo[PM] and yote for your Server!"));
                                            
GC.AddSend(Packets.NPCLink("Thanks."255));
                                            
GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                            
GC.AddSend(Packets.NPCFinish());
                                        
                                    }
                                    if (
Control == 3)
                                    {
                                        
GC.MyChar.AddItem(13406912); //Robe
                                        
GC.MyChar.AddItem(11706912); //Earring
                                        
GC.MyChar.AddItem(15212912); //brac
                                        
GC.MyChar.AddItem(12112912); //Bag
                                        
GC.MyChar.AddItem(16013912); //boots
                                        
GC.MyChar.AddItem(20200912); //Star
                                        
GC.MyChar.AddItem(20100912); //Fan
                                        
GC.AddSend(Packets.NPCSay("Here you are! Say thanks to ZiZo[PM] and yote for your Server!"));
                                        
GC.AddSend(Packets.NPCLink("Thanks."255));
                                        
GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                        
GC.AddSend(Packets.NPCFinish());
                                    }

                                    if (
Control == 4)
                                    {
                                        
GC.MyChar.AddItem(13106912); //Robe
                                        
GC.MyChar.AddItem(11706912); //Earring
                                        
GC.MyChar.AddItem(12012912); //Neck
                                        
GC.MyChar.AddItem(15013912); //Ring
                                        
GC.MyChar.AddItem(16013912); //boots
                                        
GC.MyChar.AddItem(20200912); //Star
                                        
GC.MyChar.AddItem(20100912); //Fan
                                        
GC.AddSend(Packets.NPCSay("Here you are! Say thanks to ZiZo[PM] and yote for your Server!"));
                                        
GC.AddSend(Packets.NPCLink("Thanks."255));
                                        
GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                        
GC.AddSend(Packets.NPCFinish());
                                    }
                                    else if (
Control == 5)
                                    {
                                        
GC.MyChar.AddItem(13006912); //Robe
                                        
GC.MyChar.AddItem(11706912); //Earring
                                        
GC.MyChar.AddItem(12012912); //Neck
                                        
GC.MyChar.AddItem(15013912); //Ring
                                        
GC.MyChar.AddItem(16013912); //boots
                                        
GC.MyChar.AddItem(20200912); //Star
                                        
GC.MyChar.AddItem(20100912); //Fan
                                        
GC.AddSend(Packets.NPCSay("Here you are."));
                                        
GC.AddSend(Packets.NPCLink("Thanks."255));
                                        
GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                        
GC.AddSend(Packets.NPCFinish());
                                    }
                                    else if (
Control == 6)
                                    {
                                        
GC.MyChar.AddItem(13304912); //Robe
                                        
GC.MyChar.AddItem(11706912); //Earring
                                        
GC.MyChar.AddItem(12012912); //Neck
                                        
GC.MyChar.AddItem(15013912); //Ring
                                        
GC.MyChar.AddItem(16013912); //boots
                                        
GC.MyChar.AddItem(20200912); //Star
                                        
GC.MyChar.AddItem(20100912); //Fan
                                        
GC.AddSend(Packets.NPCSay("Here you are! Say thanks to ZiZo[PM] and yote for your Server!"));
                                        
GC.AddSend(Packets.NPCLink("Thanks."255));
                                        
GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                        
GC.AddSend(Packets.NPCFinish());
                                        
GC.AddSend(Packets.NPCSay("Here you are! Say thanks to ZiZo[PM] and yote for your Server!"));
                                        
GC.AddSend(Packets.NPCLink("Thanks."255));
                                        
GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                        
GC.AddSend(Packets.NPCFinish());  
                                    }
                                    else if (
Control == 7)
                                    {
                                        
GC.MyChar.AddItem(13506912); //Robe
                                        
GC.MyChar.AddItem(11206912); //Earring
                                        
GC.MyChar.AddItem(12012912); //Neck
                                        
GC.MyChar.AddItem(15013912); //Ring
                                        
GC.MyChar.AddItem(16013912); //boots
                                        
GC.MyChar.AddItem(20200912); //Star
                                        
GC.MyChar.AddItem(20100912); //Fan
                                        
GC.AddSend(Packets.NPCSay("Here you are! Say thanks to ZiZo[PM] and yote for your Server!"));
                                        
GC.AddSend(Packets.NPCLink("Thanks."255));
                                        
GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                        
GC.AddSend(Packets.NPCFinish());

                                    }
                                    else if (
Control == 8)
                                    {
                                        
GC.MyChar.AddItem(42113912); //BS
                                        
GC.MyChar.AddItem(42013912); //S
                                        
GC.MyChar.AddItem(41013912); //B
                                        
GC.MyChar.AddItem(48013912); //C
                                        
GC.MyChar.AddItem(56113912); //W
                                        
GC.MyChar.AddItem(56013912); //SP
                                        
GC.MyChar.AddItem(60113912); //k
                                        
GC.MyChar.AddItem(50012912); //Bo
                                        
GC.AddSend(Packets.NPCSay("Here you are! Say thanks to ZiZo[PM] and yote for your Server!"));
                                        
GC.AddSend(Packets.NPCLink("Thanks."255));
                                        
GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                        
GC.AddSend(Packets.NPCFinish());

                                    }

                                    break;
                                }
                             
#endregion 
Then in NPC


PHP Code:
51652 220 2 0 1002 456 362
51653 90 2 0 1002 439 384 
And then when i click on the NPC, its says [NPCDialog Call Error]--> Description: No NPC found with the ID: 51651 and the other the same with 51652

And how i be a Blue Elephant?

And know anyone a VIDEO-TUTORIAL how i create new weapons!?

Screenshots, then u know what i mean, plz download it only 880KB and 792KB xD

So, iam very happy when someone reply!
Attached Images
File Type: jpg 15544937.jpg (818.1 KB, 13 views)
File Type: jpg 15525233.jpg (792.3 KB, 12 views)
WoW_Yeah is offline  
Old 03/07/2012, 01:03   #2
 
elite*gold: 0
Join Date: Jan 2012
Posts: 164
Received Thanks: 22
Blue Elephant? as skill or as mesh trans ? most likely as skill ? search for it's id and learn it
Quote:
ID: 51651 and the other the same with 51652
r u sure there is a npc with this name in database ?
Quote:
VIDEO-TUTORIAL how i create new weapons!?

ill read the codes and edit if i found something wrong in codes but here most likely the problem is
there is no such npcs in database else wrong type
else maybe there is 2 fields u should add dialogs too (in my source there is dialogs.cs and npcs.cs , i should add the dialogs in both to get it to work)
injection illusion logic is offline  
Thanks
1 User
Old 03/07/2012, 02:19   #3
 
U2_Caparzo's Avatar
 
elite*gold: 0
Join Date: Aug 2011
Posts: 314
Received Thanks: 90
GC.MyChar.Body = 223;//that is the ID i think

second one i dont know. srry
U2_Caparzo is offline  
Old 03/07/2012, 02:23   #4
 
elite*gold: 0
Join Date: Jan 2012
Posts: 164
Received Thanks: 22
i dont mean mesh i mean type
aka npc got id , mesh , type
type is the job he do , if he is shop or just replying or what
mesh is how he looks like
id is to differentiate each of them
injection illusion logic is offline  
Old 03/07/2012, 15:05   #5
 
elite*gold: 0
Join Date: Jan 2012
Posts: 3
Received Thanks: 0
Ok, what i should do now? What is now the ID ?

In which file i must search and etc.
WoW_Yeah is offline  
Old 03/08/2012, 00:33   #6
 
2slam's Avatar
 
elite*gold: 0
Join Date: Jan 2009
Posts: 586
Received Thanks: 336
i suppose u should check ur ID's again

about the blue (elephant) but actually its a pig

open chat.cs

add that

PHP Code:
if (Cmd[0] == "/gm")
                        {
                            
GC.MyChar.
Body 223;
                        }
                        if (
Cmd[0] == "/ gmback")
                        {
                            
GC.MyChar.
Body 1003;
                        } 
/gm to be the pig
/gmback to return normal

thats too old bro

2slam is offline  
Old 03/08/2012, 01:11   #7
 
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,380
Quote:
Originally Posted by 2slam View Post
i suppose u should check ur ID's again

about the blue (elephant) but actually its a pig

open chat.cs

add that

PHP Code:
if (Cmd[0] == "/gm")
                        {
                            
GC.MyChar.
Body 223;
                        }
                        if (
Cmd[0] == "/ gmback")
                        {
                            
GC.MyChar.
Body 1003;
                        } 
/gm to be the pig
/gmback to return normal

thats too old bro


*grinds teeth*


use

a

damn

transformation

ID!


It's been years... why do people still refuse to use the proper method for disguises?

Disguise Avatar Body... all are separate values!
pro4never is offline  
Thanks
1 User
Old 03/08/2012, 02:04   #8
 
Spirited's Avatar
 
elite*gold: 12
Join Date: Jul 2011
Posts: 8,282
Received Thanks: 4,191
Quote:
Originally Posted by pro4never View Post
*grinds teeth*


use

a

****

transformation

ID!


It's been years... why do people still refuse to use the proper method for disguises?

Disguise Avatar Body... all are separate values!


Spirited is offline  
Old 03/08/2012, 02:12   #9
 
.Ryu's Avatar
 
elite*gold: 0
Join Date: Dec 2009
Posts: 583
Received Thanks: 119
Quote:
Originally Posted by Fаng View Post


Mind giving me some information oh wth that tiger is? I thought it was a mount?
.Ryu is offline  
Old 03/08/2012, 02:33   #10
 
Spirited's Avatar
 
elite*gold: 12
Join Date: Jul 2011
Posts: 8,282
Received Thanks: 4,191
Quote:
Originally Posted by .Ryu View Post
Mind giving me some information oh wth that tiger is? I thought it was a mount?
Oh, it was from the Lantern Event on Chinese New Year two years ago. It's pretty cool, but it can't jump (which is slightly annoying). I'm sure if you go through the transformation types, you'll find it.
Spirited is offline  
Old 03/08/2012, 02:40   #11
 
_DreadNought_'s Avatar
 
elite*gold: 28
Join Date: Jun 2010
Posts: 2,225
Received Thanks: 868
Judging by your screenshot it doesnt take a genius to workout its the type 384.
_DreadNought_ is offline  
Old 03/08/2012, 03:33   #12
 
Spirited's Avatar
 
elite*gold: 12
Join Date: Jul 2011
Posts: 8,282
Received Thanks: 4,191
Quote:
Originally Posted by _DreadNought_ View Post
Judging by your screenshot it doesnt take a genius to workout its the type 384.
Ah... yes. It is type 384. Have fun!
Spirited is offline  
Thanks
1 User
Old 03/08/2012, 19:29   #13
 
elite*gold: 0
Join Date: Jan 2012
Posts: 3
Received Thanks: 0
Quote:
Originally Posted by pro4never View Post
*grinds teeth*


use

a

****

transformation

ID!


It's been years... why do people still refuse to use the proper method for disguises?

Disguise Avatar Body... all are separate values!
any Tutorial u know for "Transformation ID"?
WoW_Yeah is offline  
Old 03/08/2012, 21:55   #14
 
2slam's Avatar
 
elite*gold: 0
Join Date: Jan 2009
Posts: 586
Received Thanks: 336
transformation IDS are the look faces of the monster
2slam is offline  
Reply


Similar Threads Similar Threads
[Error]Error when using Zero's method/And another Error
09/16/2011 - Shaiya Private Server - 5 Replies
well here is a screeny of my problem. Any assistance is greatly appreciated. I haven't come across this error before nor seen any posts up here about it. Also this is me executing the NpcQuest_cvs.bat and yes i changed python to C:/Python27/Python.exe in the command line. http://img707.imageshack.us/img707/9997/errorgx.p ng Ok So my second error involves changing Stat points per lvl here is my screen shots http://img854.imageshack.us/img854/6412/nosave.pn g



All times are GMT +1. The time now is 17:27.


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.