Quote:
Originally Posted by chester6
When i open that folder,i should make new Folder or text document?
|
Here is an example of a NPC, these goes in NPCDialog.cs:
Code:
#region Leave GA
case 7000:
{
if (Control == 0)
{
GC.AddSend(Packets.NPCSay("Want to leave?"));
GC.AddSend(Packets.NPCLink("Yes.", 1));
GC.AddSend(Packets.NPCLink("Just passing by.", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
else if (Control == 1)
GC.MyChar.Teleport(1002, 355, 337);
break;
}
#endregion
And in the NPCs.txt you will find in OldCODB:
Code:
7000 1131 2 7 1038 354 345
7000=Case
1131=NPC ID
u always put 2 0 after npc id
1038=map ID
354=X Coordinate
345=Y Coordinate
Press thanks if I helped