make your npc like this example
this for switch (npcRequest.NpcID)
Code:
#region Test
case 50051:
{
switch (npcRequest.OptionID)
{
case 0:
{
dialog.Text("Test");
dialog.Option("Test", 1);
dialog.Option("Test", 255);
dialog.Send();
break;
}
case 1:
{
{
client.Send(new Message("Test", Color.Red, Message.TopLeft));
}
break;
}
}
break;
}
#endregion
and this for switch (client.Entity.MapID)
Code:
#region Test
case 1515:
{
switch (client.ActiveNpc)
{
#region Test
case 50051:
{
switch (npcRequest.OptionID)
{
case 0:
{
dialog.Text("Test");
dialog.Option("Test", 1);
dialog.Option("Test", 255);
dialog.Send();
break;
}
case 1:
{
{
client.Send(new Message("Test", Color.Red, Message.TopLeft));
}
break;
}
}
break;
}
#endregion
}
break;
}
#endregion
and this pic to explane