Create a new folder and call it NPC.
Make a class inside the folder called NPCDialog, it should look like this once you have done it.
Code:
public class NPCDialog
{
public static void ProcessNpc(GameClient Client, byte OptionID, string Input)
{
switch (Client.ActiveNpcID)
{
default: break;
}
}
}
Code:
public static void ProcessNpc(GameClient Client, byte OptionID, string Input)
Code:
public static void ProcessNpc(GameClient Client, byte OptionID, string Input)
{
try
{
NPC.NPCDialog.ProcessNpc(Client, OptionID, Input);
}
catch (Exception e)
{
Kernel.NotifyDebugMsg(string.Format("[Npc Processor Error - {0}, {1}, {2}]", Client.ActiveNpcID, OptionID, Input),
e.ToString(), true);
}
}
Code:
public static int Dialog(INpcPlayer Player, string[] Dlg)
Code:
public static int Dialog(GameClient Player, string[] Dlg)
Example on Conductress:
Code:
#region Conductress
case 10050:
{
switch (OptionID)
{
case 0:
{
ConquerScriptEngine.Dialog(Client, new string[] {
"AVATAR 120",
"TEXT Where are you heading for?",
"OPTION1 Phoenix Castle",
"OPTION2 Ape City",
"OPTION3 Desert City",
"OPTION4 Bird Island",
"OPTION5 Mine Cave",
"OPTION6 Market",
"OPTION-1 I will stay"
});
break;
}
case 1: Client.Teleport(1002, 958, 555); break;
case 2: Client.Teleport(1002, 555, 957); break;
case 3: Client.Teleport(1002, 69, 473); break;
case 4: Client.Teleport(1002, 232, 190); break;
case 5: Client.Teleport(1002, 53, 399); break;
case 6: Client.Teleport(1036, 211, 196); break;
}
break;
}
#endregion
Code:
PacketProcessor.ProcessServerCommand(Client, "@level 130", false);//Makes u level 130.






