k heres where we start
Code:
if (CurrentNPC == [COLOR="SeaGreen"]NPCID[/COLOR])
{
SendPacket(General.MyPackets.NPCSay("[COLOR="DarkOrchid"]Here's where you put the NPC dialog[/COLOR]"));
SendPacket(General.MyPackets.NPCLink("[COLOR="Red"]BlahBlah[/COLOR]", [COLOR="Blue"]1[/COLOR]));
SendPacket(General.MyPackets.NPCLink("[COLOR="Red"]BlahBlah[/COLOR]", [COLOR="Magenta"]255[/COLOR]));
SendPacket(General.MyPackets.NPCSetFace(30));
SendPacket(General.MyPackets.NPCFinish());
}
The Magenta is the exit control. Control 255 is always the exit NPC dialog.
The Green is where you choose the NPC Id, make sure the ID isn't taken.
The Purple is the NPC Dialog. You choose the dialog.
The Red is an option.
The Blue is a Control Option.
Right here is gonna be based on what you want the NPC to do.
For this example the Npc is gonna teleport you to a random spot of TC.
Code:
if (CurrentNPC == [COLOR="SeaGreen"]NPCID[/COLOR])
{
if (Control == 1)
MyChar.Teleport([COLOR="Navy"]1002, 430, 380[/COLOR]);
}
This is the activation of Control 1 which if you look back in the NPC setup is BlahBlah and these are what would pop up after you click the 1st option.
Navy is the coordinates. 1002 is the Map ID, 430 is the X coordinate and 380 is the Y coordinate.
This is how to make a basic way of making an NPC but it would be different depending on what you want the NPC to do.
This is kinda nooby but its really basic.
Well hope this helps somebody.






