VelderothMalraen.lua 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. --[[
  2. Script Name : SpawnScripts/Starcrest/VelderothMalraen.lua
  3. Script Purpose : Velderoth Malraen
  4. Script Author : John Adams
  5. Script Date : 2008.09.23
  6. Script Notes : Auto-Generated Conversation from PacketParser Data
  7. --]]
  8. -- Quest ID's
  9. local CONFRONTATION = 321
  10. function spawn(NPC)
  11. AddTimer(NPC, 5000, "EmoteLoop")
  12. SetRequiredQuest(NPC, 321, 2, 1)
  13. SetRequiredQuest(NPC, 321, 3, 1)
  14. end
  15. function respawn(NPC)
  16. spawn(NPC)
  17. end
  18. function hailed(NPC, Spawn)
  19. FaceTarget(NPC, Spawn)
  20. conversation = CreateConversation()
  21. if HasQuest(Spawn, CONFRONTATION) and GetQuestStep(Spawn, CONFRONTATION) == 3 then
  22. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/velderoth_malraen/qey_village02/quests/velderoth/velderoth000.mp3", "", "", 602755801, 4204317404, Spawn,4)
  23. AddConversationOption(conversation, "Believe it, heretic.", "dlg_55_3")
  24. StartConversation(conversation, NPC, Spawn, "I cannot believe you would destroy such knowledge!")
  25. else
  26. PlayFlavor(NPC, "", "", "no", 0, 0, Spawn)
  27. end
  28. end
  29. function dlg_55_3(NPC, Spawn)
  30. FaceTarget(NPC, Spawn)
  31. conversation = CreateConversation()
  32. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/velderoth_malraen/qey_village02/quests/velderoth/velderoth001.mp3", "", "scold", 4272504042, 2021431254, Spawn,4)
  33. AddConversationOption(conversation, "We know that it was meant for you, Velderoth.", "dlg_55_4")
  34. StartConversation(conversation, NPC, Spawn, "Hold your tongue, child. Insults will only serve to anger me.")
  35. end
  36. function dlg_55_4(NPC, Spawn)
  37. FaceTarget(NPC, Spawn)
  38. conversation = CreateConversation()
  39. AddConversationOption(conversation, "Except at this moment.")
  40. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/velderoth_malraen/qey_village02/quests/velderoth/velderoth002.mp3", "", "", 4026578070, 2833635069, Spawn,4)
  41. StartConversation(conversation, NPC, Spawn, "Simpleton! If you don't seek knowledge then you are no Erudite! My power is greater than you know.")
  42. end
  43. --[[ raw_conversations
  44. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/velderoth_malraen/qey_village02/qst_velderoth_howcould_ea37cf7d.mp3", "NO!!! How could you do such a thing?", "", 4138921089, 741301826, Spawn)
  45. --]]
  46. function EmoteLoop(NPC)
  47. local emoteChoice = MakeRandomInt(1,3)
  48. if emoteChoice == 1 then
  49. -- ponder
  50. PlayAnimation(NPC, 12030)
  51. AddTimer(NPC, MakeRandomInt(15000,18000), "EmoteLoop")
  52. elseif emoteChoice == 2 then
  53. -- sniff
  54. PlayAnimation(NPC, 12329)
  55. AddTimer(NPC, MakeRandomInt(6000,9000), "EmoteLoop")
  56. else
  57. -- tapfoot
  58. PlayAnimation(NPC, 13056)
  59. AddTimer(NPC, MakeRandomInt(15000,18000), "EmoteLoop")
  60. end
  61. end