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.