I have been trying to call another NPCs dialog from within the current NPC. i.e
NPC1
NPC2
So for examples sake, I want the first NPC (001) to call the second NPC (002) when case 1 is initiated.
Now the namespace of the file is NpcDialogs and the class is Dialogs. The method which gets the dialogs is called GetDialog which has two variables, NpcRequest npcRequest and GameState client.
I have tried switching the active NPC to the new NPC, i.e client.ActiveNPC = 002;
Any help would be much appreciated as I have less time to work on the source since University has started.
NPC1
Code:
case 001:
{
switch (npcRequest.OptionID)
{
case 0:
{
dialog.Text("Hello, I can teleport you to the market for free. Would you like me to?");
dialog.Option("Yes Please", 1);
dialog.Option("No Thanks", 255);
dialog.Send();
break;
}
case 1:
{
// Calls the NPC 002
}
}
break;
}
Code:
case 002:
{
switch (npcRequest.OptionID)
{
case 0:
{
client.Entity.teleport(1036, 500, 500);
break;
}
}
break;
}
Now the namespace of the file is NpcDialogs and the class is Dialogs. The method which gets the dialogs is called GetDialog which has two variables, NpcRequest npcRequest and GameState client.
I have tried switching the active NPC to the new NPC, i.e client.ActiveNPC = 002;
Any help would be much appreciated as I have less time to work on the source since University has started.