Can you make a guide on how to add an NPC in Visual C# for lotf. I want to know how to make a simple NPC that teleports you and simple NPC that gives you a +12 item. =p
MyChar.AddItem("1088001-0-0-0-0-0", 0, (uint)General.Rand.Next(36457836));
MyChar.Teleport(MAP, X, Y);
AddItem("ID, 9, 2, 12, 7, 255 , 3, 0, 0, CSocket);
Teleport("MAP, X, Y, INSTANCE, CSocket);
That was just to make him Talk Ok Now look at the NPC UID that you added that one on top of So if its 200 You Search if (CurrentNPC == 200) and it should take you to the controls wich are hes actionsQuote:
if (CurrentNPC == 20)
{
Sendpacket(General.MyPackets.NPCSay("Hey there I Can Send You to A Location A Secret Plaace [:"));
SendPacket(General.myPackets.NPCLink("Ok Take me there", 1));
SendPacket(General.MyPackets.MPCLink("Nah I Dont Trust You", 255));
SendPacket(General.MyPackets.NPCSetFace(154));
SendPacket(General.MyPackets.NPCFinish());
Well It should work just fix my Mistakes i know theres alot did it verry quick was doing something ;)[Quote:
if (CurrentNPC == 20)
{
if (Control == 1)
{
MyChar.Teleport(1036, 211, 196);
}
}