first of all, I'm just a very noob coder and I learn everyday how to code in C#, and now I have a little problem with adding an NPC. Also, my English isn't perfect so don't pay attention to my mistakes.
Because the sources are made by different people and different ways, adding a NPC isn't the same on every sources. I can't even remember where I get mine si I uploaded the source again. I think that you don't need a guide for making the server so, here's the
. It is a 5375 source so you need a client, I think that you've got one already .My problem is, I correctly added the NPC but I can't even change his name. Let me show you how my code added is and the modified tables are right now.
Quote:
Originally Posted by Dialog.csCode:#region MyNewNPC case 7685: { switch (npcRequest.OptionID) { case 0: { dialog.Text("Yop mec, j'peux que te parler pour le moment, mais on va faire des choses plus intéressantes ŕ l'avenir !"); dialog.Link("Ouais ouais...", 255); dialog.Avatar(55); dialog.Send(); break; } } break; } #endregion
I tried also with "npc" table but gives the same result. The two tables modifed also. I really don't know how to add my NPC because when I try "CTRL+F" on "cq_npc", "npc" or in the entire solution and I search "Wolfe", I don't have any results...Quote:
Originally Posted by cq_npcid | ownerid | name | type | lookface |mapid | cellx | celly | direction | action
7685 | 0 | MyNewNPC | 2 | 4450 | 1002 | 436 | 384 | 0 | 0
I have seen a gui, "Manager.cs" and it looks like we can add NPC by that GUI, but she doesn't appear when I generate the executable file. I really don't have any idea on my problem, I hope that someone will get interesting in my problem.
Photo :

Uploaded with






