Register for your free account! | Forgot your password?

You last visited: Today at 12:08

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

Advertisement



5165 source problem

Discussion on 5165 source problem within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Dec 2007
Posts: 12
Received Thanks: 1
5165 source problem

I have a problem with Impulse's source and don't know how to solve it.I would really appreciate if any of you guys could help me.Thanks.


Edit:I put it as an attachment.
Attached Images
File Type: jpg 5165.JPG (175.6 KB, 36 views)
vladradu2007 is offline  
Old 03/05/2011, 09:26   #2
 
elite*gold: 0
Join Date: Dec 2010
Posts: 97
Received Thanks: 11
i can't see the picture, please put it in attachement
Pro4Never2 is offline  
Old 03/05/2011, 10:56   #3
 
elite*gold: 0
Join Date: Nov 2010
Posts: 1,162
Received Thanks: 370
It looks like your characters UID is null.

Assign an UID to it.
Syst3m_W1z4rd is offline  
Thanks
1 User
Old 03/05/2011, 11:34   #4
 
elite*gold: 0
Join Date: Dec 2007
Posts: 12
Received Thanks: 1
Quote:
Originally Posted by Syst3m_W1z4rd View Post
It looks like your characters UID is null.

Assign an UID to it.
The problem is i can't create a char.When i try i get an error.The account in my db looks like this:
username:blabla
password:blabla
state:3
enitityid:0
What should i change entity id with?
vladradu2007 is offline  
Old 03/05/2011, 11:50   #5
 
elite*gold: 0
Join Date: Nov 2010
Posts: 1,162
Received Thanks: 370
change entityid to 1.
Mkae sure the id is not in use already
Syst3m_W1z4rd is offline  
Thanks
1 User
Old 03/05/2011, 13:25   #6
 
elite*gold: 0
Join Date: Dec 2007
Posts: 12
Received Thanks: 1
I don't want to make a new thread so what is wrong with this code?
The npc still shows "The npc doesn't have a text added blabla..".

Code:
switch (client.ActiveNpc)
            {
                #region BirthVillage
                #region Gateman
                case 111110://Village gateman

                    {
                        switch (npcRequest.OptionID)
                        {
                            case 0:
                                {
                                    dialog.Text("Teleport to TwinCity?");
                                    dialog.Option("Yes", 1);
                                    dialog.Option("No.", 255);
                                    dialog.Send();
                                    break;
                                }
                            case 1:
                                
                                {
                                    client.Entity.Teleport(1002, 439, 390);
                                }
                                break;

                        }
                        break;
                    }
                #endregion
                #endregion

                default:
                    {
                        dialog.Text("This npc doesn't have a text added. It's ID is " + client.ActiveNpc);
                        dialog.Option("Alright.", 255);
                        dialog.Send();
                        break;
                    }
            }
vladradu2007 is offline  
Old 03/05/2011, 13:32   #7
 
elite*gold: 0
Join Date: Nov 2010
Posts: 1,162
Received Thanks: 370
Did you press F5 and F6 to debug/build?
Also case 111110: = ID
Make sure the spawn for it have same id.
Syst3m_W1z4rd is offline  
Thanks
1 User
Old 03/05/2011, 13:39   #8
 
elite*gold: 0
Join Date: Dec 2007
Posts: 12
Received Thanks: 1
Quote:
Originally Posted by Syst3m_W1z4rd View Post
Did you press F5 and F6 to debug/build?
Also case 111110: = ID
Make sure the spawn for it have same id.
Yes,it has the same ID as the spawn i made sure of that,it's the same id as the npcs.txt in the database.I also debugged it before but still the same.It's very weird.
vladradu2007 is offline  
Old 03/05/2011, 14:06   #9
 
elite*gold: 0
Join Date: Nov 2010
Posts: 1,162
Received Thanks: 370
Isn't this Impulse source? I think his is mysql.
Syst3m_W1z4rd is offline  
Thanks
1 User
Old 03/05/2011, 14:46   #10
 
elite*gold: 0
Join Date: Dec 2007
Posts: 12
Received Thanks: 1
Quote:
Originally Posted by Syst3m_W1z4rd View Post
Isn't this Impulse source? I think his is mysql.
Yes,it is Impulse's source.If it's mysql how come it uses the txt files in the database folder and not the ones from the sql file?Should i add the npcs in the entities table in the mysql database?
The entities table is like this:
Name:
UID:
Hairstyle:
Class:
Money:
ConquerPoints:
Body:
if it's for the money,cps,rebirth and etc let's say i leave it to 0 but what about hairstyle,body,class how will i know the wright id's?
vladradu2007 is offline  
Old 03/05/2011, 15:24   #11
 
elite*gold: 0
Join Date: Nov 2010
Posts: 1,162
Received Thanks: 370
Ahhh. I didn't know he loaded npcs from txt. I thought they were in mysql also.
Well you could try run with breakpoints and check where it doesn't continue.
Syst3m_W1z4rd is offline  
Thanks
1 User
Old 03/05/2011, 15:55   #12
 
elite*gold: 0
Join Date: Dec 2007
Posts: 12
Received Thanks: 1
Quote:
Originally Posted by Syst3m_W1z4rd View Post
Ahhh. I didn't know he loaded npcs from txt. I thought they were in mysql also.
Well you could try run with breakpoints and check where it doesn't continue.
Tried already,still can't find any mistakes in the coding.
client.ActiveNpc does return the id of the npc,but why does it choose the default switch instead of case 111110,that i can't figure.
vladradu2007 is offline  
Reply


Similar Threads Similar Threads
5165 Source FB / SS Problem
05/07/2011 - CO2 Private Server - 11 Replies
I have a problem with my SS / FB on my Server ... The Characters can FB/SS while they jump ... Anyone know how to fix it ?
I have a little problem with 5165 Source..Can anyone help me?!
07/13/2010 - CO2 Private Server - 2 Replies
I have a little problem with 5165 Source..Can anyone help me?! Add me : [email protected] and we will talk there about that! Thanks!
[HELP/PROBLEM] 5165 source
01/03/2010 - CO2 Private Server - 0 Replies
ok, ive got the 5165 source and a 5165 client and still everytime i try to log in, it goes to the loading screen then just exits out. i use the source from the "Official 5165 thread" since i cant find anymore, so if anyone knows how to fix this problem, please help. By the way, i have tried not puting or any special characters when i make the character.
[HELP/PROBLEM] source 5165 !
12/25/2009 - CO2 Private Server - 13 Replies
heya everyone well somehow i tried to restart my server it doesn't let meh i debugged it then dat thing come up http://i45.tinypic.com/2wnzj7m.jpg so any solution please?
[Problem]5165 Source
11/26/2009 - CO2 Private Server - 3 Replies
Hey guys i been coding soem shit in the 5165 source that has been released But every time i code a NPC and stuff and debug it and stuff It never does it right i coded Alex 2nd reborn NPC But for some reason it wonr work =\ Can any one tell me why it wont save?



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


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.