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.
Edit:I put it as an attachment.
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;
}
}
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.Quote:
Did you press F5 and F6 to debug/build?
Also case 111110: = ID
Make sure the spawn for it have same id.
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?Quote:
Isn't this Impulse source? I think his is mysql.
Tried already,still can't find any mistakes in the coding.Quote:
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.