5165 source problem

03/05/2011 07:26 vladradu2007#1
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.
03/05/2011 09:26 Pro4Never2#2
i can't see the picture, please put it in attachement
03/05/2011 10:56 Syst3m_W1z4rd#3
It looks like your characters UID is null.

Assign an UID to it.
03/05/2011 11:34 vladradu2007#4
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?
03/05/2011 11:50 Syst3m_W1z4rd#5
change entityid to 1.
Mkae sure the id is not in use already :)
03/05/2011 13:25 vladradu2007#6
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;
                    }
            }
03/05/2011 13:32 Syst3m_W1z4rd#7
Did you press F5 and F6 to debug/build?
Also case 111110: = ID
Make sure the spawn for it have same id.
03/05/2011 13:39 vladradu2007#8
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.
03/05/2011 14:06 Syst3m_W1z4rd#9
Isn't this Impulse source? I think his is mysql.
03/05/2011 14:46 vladradu2007#10
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?
03/05/2011 15:24 Syst3m_W1z4rd#11
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.
03/05/2011 15:55 vladradu2007#12
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.