Advertisement
Guest User

Untitled

a guest
Nov 16th, 2019
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 3.37 KB | None | 0 0
  1.         [NpcAttribute(NpcID.TravellingKing)]
  2.         public static void TravellingKing(Client.GameClient client, ServerSockets.Packet stream, byte Option, string Input, uint id)
  3.         {
  4.             Dialog data = new Dialog(client, stream);
  5.             switch (Option)
  6.             {
  7.                 case 0:
  8.                     {
  9.                         data.AddText("Hey there" + client.Player.Name + " Would you like to exit this room?");
  10.  
  11.                         data.AddOption("Yes.", 1);
  12.                         data.AddOption("No.", 255);
  13.                         data.AddAvatar(1).FinalizeDialog();
  14.                         break;
  15.                     }
  16.                 case 1:
  17.                     {
  18.                         client.Teleport(300, 294, 1002);
  19.                         break;
  20.                     }
  21.             }
  22.         }
  23.         [NpcAttribute(NpcID.TravellingPrince)]
  24.         public static void TravellingPrince(Client.GameClient client, ServerSockets.Packet stream, byte Option, string Input, uint id)
  25.         {
  26.             Dialog data = new Dialog(client, stream);
  27.             switch (Option)
  28.             {
  29.                 case 0:
  30.                     {
  31.                         data.AddText("Hey there" + client.Player.Name + " Would you like to exit this room?");
  32.  
  33.                         data.AddOption("Yes.", 1);
  34.                         data.AddOption("No.", 255);
  35.                         data.AddAvatar(1).FinalizeDialog();
  36.                         break;
  37.                     }
  38.                 case 1:
  39.                     {
  40.                         client.Teleport(300, 294, 1002);
  41.                         break;
  42.                     }
  43.             }
  44.         }
  45.         [NpcAttribute(NpcID.TravellingDuke)]
  46.         public static void TravellingDuke(Client.GameClient client, ServerSockets.Packet stream, byte Option, string Input, uint id)
  47.         {
  48.             Dialog data = new Dialog(client, stream);
  49.             switch (Option)
  50.             {
  51.                 case 0:
  52.                     {
  53.                         data.AddText("Hey there" + client.Player.Name + " Would you like to exit this room?");
  54.  
  55.                         data.AddOption("Yes.", 1);
  56.                         data.AddOption("No.", 255);
  57.                         data.AddAvatar(1).FinalizeDialog();
  58.                         break;
  59.                     }
  60.                 case 1:
  61.                     {
  62.                         client.Teleport(300, 294, 1002);
  63.                         break;
  64.                     }
  65.             }
  66.         }
  67.         [NpcAttribute(NpcID.TravellingEarl)]
  68.         public static void TravellingEarl(Client.GameClient client, ServerSockets.Packet stream, byte Option, string Input, uint id)
  69.         {
  70.             Dialog data = new Dialog(client, stream);
  71.             switch (Option)
  72.             {
  73.                 case 0:
  74.                     {
  75.                         data.AddText("Hey there" + client.Player.Name + " Would you like to exit this room?");
  76.  
  77.                         data.AddOption("Yes.", 1);
  78.                         data.AddOption("No.", 255);
  79.                         data.AddAvatar(1).FinalizeDialog();
  80.                         break;
  81.                     }
  82.                 case 1:
  83.                     {
  84.                         client.Teleport(300, 294, 1002);
  85.                         break;
  86.                     }
  87.             }
  88.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement