Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [NpcAttribute(NpcID.TravellingKing)]
- public static void TravellingKing(Client.GameClient client, ServerSockets.Packet stream, byte Option, string Input, uint id)
- {
- Dialog data = new Dialog(client, stream);
- switch (Option)
- {
- case 0:
- {
- data.AddText("Hey there" + client.Player.Name + " Would you like to exit this room?");
- data.AddOption("Yes.", 1);
- data.AddOption("No.", 255);
- data.AddAvatar(1).FinalizeDialog();
- break;
- }
- case 1:
- {
- client.Teleport(300, 294, 1002);
- break;
- }
- }
- }
- [NpcAttribute(NpcID.TravellingPrince)]
- public static void TravellingPrince(Client.GameClient client, ServerSockets.Packet stream, byte Option, string Input, uint id)
- {
- Dialog data = new Dialog(client, stream);
- switch (Option)
- {
- case 0:
- {
- data.AddText("Hey there" + client.Player.Name + " Would you like to exit this room?");
- data.AddOption("Yes.", 1);
- data.AddOption("No.", 255);
- data.AddAvatar(1).FinalizeDialog();
- break;
- }
- case 1:
- {
- client.Teleport(300, 294, 1002);
- break;
- }
- }
- }
- [NpcAttribute(NpcID.TravellingDuke)]
- public static void TravellingDuke(Client.GameClient client, ServerSockets.Packet stream, byte Option, string Input, uint id)
- {
- Dialog data = new Dialog(client, stream);
- switch (Option)
- {
- case 0:
- {
- data.AddText("Hey there" + client.Player.Name + " Would you like to exit this room?");
- data.AddOption("Yes.", 1);
- data.AddOption("No.", 255);
- data.AddAvatar(1).FinalizeDialog();
- break;
- }
- case 1:
- {
- client.Teleport(300, 294, 1002);
- break;
- }
- }
- }
- [NpcAttribute(NpcID.TravellingEarl)]
- public static void TravellingEarl(Client.GameClient client, ServerSockets.Packet stream, byte Option, string Input, uint id)
- {
- Dialog data = new Dialog(client, stream);
- switch (Option)
- {
- case 0:
- {
- data.AddText("Hey there" + client.Player.Name + " Would you like to exit this room?");
- data.AddOption("Yes.", 1);
- data.AddOption("No.", 255);
- data.AddAvatar(1).FinalizeDialog();
- break;
- }
- case 1:
- {
- client.Teleport(300, 294, 1002);
- break;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement