VarionSmitelin.lua 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. --[[
  2. Script Name : SpawnScripts/Nettleville/VarionSmitelin.lua
  3. Script Purpose : Varion Smitelin <Spell Scrolls>
  4. Script Author : Scatman
  5. Script Date : 2009.08.12
  6. Script Notes :
  7. --]]
  8. local QUEST_1 = 311
  9. local REFILL_THE_OAKMYST_SPIDER_SILK_JARS = 312
  10. function spawn(NPC)
  11. ProvidesQuest(NPC, QUEST_1)
  12. end
  13. function respawn(NPC)
  14. spawn(NPC)
  15. end
  16. function hailed(NPC, Spawn)
  17. FaceTarget(NPC, Spawn)
  18. conversation = CreateConversation()
  19. if not HasCompletedQuest(Spawn, QUEST_1) then
  20. if HasQuest(Spawn, QUEST_1) and GetQuestStep(Spawn, QUEST_1) == 2 then
  21. AddConversationOption(conversation, "I'm back with the wings as you requested.", "dlg_12_1")
  22. elseif GetLevel(Spawn) >= 3 then
  23. AddConversationOption(conversation, "Oh, very much so.", "dlg_11_1")
  24. end
  25. end
  26. if HasQuest(Spawn, REFILL_THE_OAKMYST_SPIDER_SILK_JARS) and GetQuestStep(Spawn, REFILL_THE_OAKMYST_SPIDER_SILK_JARS) == 2 then
  27. AddConversationOption(conversation, "I refilled your spider silk jars.", "dlg_13_1")
  28. end
  29. AddConversationOption(conversation, "Me? No, I don't care for that finger waggling stuff. ")
  30. PlayFlavor(NPC, "voiceover/english/scribe_varion_smitelin/qey_village01/varionsmitelin.mp3", "", "", 1851450511, 1137101449, Spawn)
  31. StartConversation(conversation, NPC, Spawn, "Interested in the magical arts, are you?")
  32. end
  33. function dlg_11_1(NPC, Spawn)
  34. FaceTarget(NPC, Spawn)
  35. conversation = CreateConversation()
  36. PlayFlavor(NPC, "voiceover/english/scribe_varion_smitelin/qey_village01/varionsmitelin003.mp3", "", "", 426969291, 1829151300, Spawn)
  37. AddConversationOption(conversation, "I don't mind getting a little dirty. I'll take the job.", "OfferQuest1")
  38. AddConversationOption(conversation, "Out into the bog? No thanks, I like to keep my clothes clean. ")
  39. StartConversation(conversation, NPC, Spawn, "Good. That's what I like to hear! I'm working on a levitation spell, but I'm running low on Bog Faeries. If you go to the Peat Bog and round up some of the wings, I'll gladly pay you for this deed.")
  40. end
  41. function OfferQuest1(NPC, Spawn)
  42. FaceTarget(NPC, Spawn)
  43. OfferQuest(NPC, Spawn, QUEST_1)
  44. end
  45. function dlg_12_1(NPC, Spawn)
  46. SetStepComplete(Spawn, QUEST_1, 2)
  47. FaceTarget(NPC, Spawn)
  48. conversation = CreateConversation()
  49. AddConversationOption(conversation, "Difficult? Of course not! The Bog Faeries practically handed them to me.")
  50. StartConversation(conversation, NPC, Spawn, "Excellent! These will do most nicely! I hope getting the wings wasn't too difficult. As promised, here's your reward.")
  51. end
  52. function dlg_13_1(NPC, Spawn)
  53. SetStepComplete(Spawn, REFILL_THE_OAKMYST_SPIDER_SILK_JARS, 2)
  54. FaceTarget(NPC, Spawn)
  55. conversation = CreateConversation()
  56. PlayFlavor(NPC, "voiceover/english/scribe_varion_smitelin/qey_village01/varionsmitelin006.mp3", "", "", 3827990998, 3891374789, Spawn)
  57. AddConversationOption(conversation, "Thank you.")
  58. StartConversation(conversation, NPC, Spawn, "Thank you for refilling my jars. I knew they were empty, but could not find the time to make the trip to Oakmyst Forest. Please take this payment as a reward for your good deed.")
  59. end