Was just wondering if its possible to use the npc dialog options code outside of the Npc file, and how you would go about it? For instance if i had a quest running where at a certain point a dialog box would show giving you multiple options to choose from but not by clicking an npc, I was trying something like this:
I was trying something like the above code to make it think ur using an activenpc but it dosent seem to work.
Code:
client.ActiveNpc = 123456;
switch (client.ActiveNpc)
{
case 123456:
{
switch (npcRequest.OptionID)
{
case 0:
{
dialog.Text("Dialog goes here.");
dialog.Option("Option1.", 1);
dialog.Option("Option2.", 2);
dialog.Option("Option3.", 3);
dialog.Option("Exit.", 255);
dialog.Send();
break;
}
case 1:
{
dialog.Text("More speech.");
dialog.Option("Option4.", 4);
dialog.Option("Option5.", 5);
dialog.Option("Option6.", 6);
dialog.Option("Exit.", 255);
dialog.Send();
break;
}
} break;
}
}