Advertisement
Guest User

Untitled

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