Advertisement
zed_isJayTheLionJR

Untitled

Feb 6th, 2018
232
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2.  
  3. public class LornaScript : NpcScript
  4. {
  5. public override void Load()
  6. {
  7. SetRace(10001);
  8. SetName("_tutorial_lorna");
  9. SetBody(height: 0.4f);
  10. SetFace(skinColor: 16, eyeType: 27, eyeColor: 43, mouthType: 89);
  11.  
  12.  
  13. if (IsEventActive("aura_thanksgiving_event"))
  14. SetLocation(14, 35436, 34343, 29);
  15.  
  16. EquipItem(Pocket.Face, 3936, 0x00770000, 0x003C61AC, 0x00DCEFE4);
  17. EquipItem(Pocket.Hair, 3022, 0x004070A0, 0x004070A0, 0x004070A0);
  18. EquipItem(Pocket.Armor, 15026, 0x00B0C0FF, 0x00FFFFFF, 0x00103080);
  19. EquipItem(Pocket.Shoe, 17002, 0x003F463E, 0x00FFD912, 0x00D7E584);
  20. EquipItem(Pocket.Head, 18016, 0x00103080, 0x007E4D01, 0x00FAB757);
  21. EquipItem(Pocket.RightHand1, 40393, 0x00808080, 0x00808080, 0x00808080);
  22. EquipItem(Pocket.RightHand2, 40004, 0x00000000, 0x00000000, 0x00A09030);
  23. EquipItem(Pocket.LeftHand1, 40394, 0x00808080, 0x00808080, 0x00808080);
  24.  
  25.  
  26. AddPhrase("WHAT DID YOU SAY?!");
  27. AddPhrase("I think I ate too much turkey...");
  28. AddPhrase("Lets make a feast for all of Uladh.");
  29. AddPhrase("Hello, I'm Lorna Rissa.");
  30. AddPhrase("Ahaha, he he, Haah..");
  31. AddPhrase("My heart is pounding.");
  32. AddPhrase("Inhale. Exhale.");
  33. }
  34.  
  35. protected override async Task Talk()
  36. {
  37. SetBgm("NPC_LornaPan.mp3");
  38.  
  39. await Intro(L("A petite girl in a long, flowing skirt.<br/>She has lively blue eyes and straightforward expression.<br/>Her face lights up when your gaze meets hers, and she approaches."));
  40.  
  41. Msg("<npcportrait name='lorna'/>Hello, <username/>. How are you?", Button("Coupon Exchange", "@coupon"), Button("End Conversation","@EndChat"));
  42.  
  43. switch (await Select())
  44. {
  45. case "@coupon":
  46. Msg("<npcportrait name='lorna'/>Would you like to exchange coupons?", Button("Sturdy ToolBox x5", "@SturdyToolbox"), Button("Thanksgiving Giftbox x10", "@ThanksgivingBox"), Button("Lorna && Pan Giftbox x15","@LornaPanBox"), Button("End Conversation", "@EndChat"));
  47.  
  48. switch (await Select())
  49. {
  50. case "@SturdyToolbox":
  51. if (HasItem(70295, 5))
  52. {
  53. RemoveItem(70295, 5);
  54. GiveItem(92653);
  55. Msg("<npcportrait name='lorna'/>All right here you go, one Participation Commemoration Box, containing sturdy tools.");
  56. break;
  57. }
  58. else
  59. {
  60. Msg("<npcportrait name='lorna'/>You don't have enough Thanksgiving Coupons. Come back when you have enough.");
  61. break;
  62. }
  63.  
  64. case "@ThanksgivingBox":
  65. if (HasItem(70295, 10))
  66. {
  67. RemoveItem(70295, 10);
  68. GiveItem(91431);
  69. Msg("<npcportrait name='lorna'/>All right here you go, one Thanksgiving Bust Gift Box.");
  70. break;
  71. }
  72. else
  73. {
  74. Msg("<npcportrait name='lorna'/>You don't have enough Thanksgiving Coupons. Come back when you have enough.");
  75. break;
  76. }
  77.  
  78. case "@LornaPanBox":
  79. if (HasItem(70295, 15))
  80. {
  81. RemoveItem(70295, 15);
  82. GiveItem(91264);
  83. Msg("<npcportrait name='lorna'/>All right here you go, a special gift from Pan and I.");
  84. break;
  85. }
  86. else
  87. {
  88. Msg("<npcportrait name='lorna'/>You don't have enough Thanksgiving Coupons. Come back when you have enough.");
  89. break;
  90. }
  91.  
  92. case "@EndChat":
  93. break;
  94.  
  95. }
  96. break;
  97.  
  98. case "@EndChat":
  99. break;
  100. }
  101.  
  102. End();
  103. }
  104. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement