9
3

YanariCyellann.lua 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. --[[
  2. Script Name : SpawnScripts/Castleview/YanariCyellann.lua
  3. Script Purpose : Yanari Cyellann
  4. Script Author : Scatman
  5. Script Date : 2009.10.03
  6. Script Notes :
  7. --]]
  8. function spawn(NPC)
  9. --ProvidesQuest(NPC, 1)
  10. end
  11. function respawn(NPC)
  12. spawn(NPC)
  13. end
  14. function hailed(NPC, Spawn)
  15. FaceTarget(NPC, Spawn)
  16. conversation = CreateConversation()
  17. local choice = math.random(1,2)
  18. if choice == 1 then
  19. PlayFlavor(NPC, "voiceover/english/yanari_cyellann/qey_village04/100_researcher_yanari_multhail1_ba125732.mp3", "I'm very busy and don't want you getting hurt. Please leave me to my work.", "", 2153034813, 3927600348)
  20. elseif choice == 2 then
  21. PlayFlavor(NPC, "voiceover/english/yanari_cyellann/qey_village04/100_researcher_yanari_multhail5_d4faf799.mp3", "Don't touch anything! You could turn yourself into a goo or destroy the entire building! I'm very busy and don't want you getting hurt. On your way, now!", "", 3857840792, 1030063822)
  22. end
  23. --[[
  24. if HasCompletedQuest(Spawn, 1) then
  25. else
  26. PlayFlavor(NPC, "voiceover/english/yanari_cyellann/qey_village04/yanaricyellan.mp3", "", "", 3613336528, 1736617695)
  27. AddConversationOption(conversation, "I brought the claws that you asked for.", "dlg_26_1")
  28. AddConversationOption(conversation, "You seem to be a bit busy at the moment. I'll leave you alone. ")
  29. StartConversation(conversation, NPC, Spawn, "Do not touch anything! You could turn yourself into a goo or destroy the entire building. What do you need?")
  30. end
  31. --]]
  32. end
  33. function dlg_26_1(NPC, Spawn)
  34. FaceTarget(NPC, Spawn)
  35. conversation = CreateConversation()
  36. PlayFlavor(NPC, "voiceover/english/yanari_cyellann/qey_village04/yanaricyellan002.mp3", "", "", 3385634498, 2633500192)
  37. AddConversationOption(conversation, "I'll just be under this very thick table.", "dlg_26_2")
  38. StartConversation(conversation, NPC, Spawn, "Marvelous! I shall use one of the claws to imbue a wand for you. Um ... just take a few steps back, safety and all.")
  39. end
  40. function dlg_26_2(NPC, Spawn)
  41. FaceTarget(NPC, Spawn)
  42. conversation = CreateConversation()
  43. PlayFlavor(NPC, "voiceover/english/yanari_cyellann/qey_village04/yanaricyellan003.mp3", "", "", 3490869984, 2394433819)
  44. AddConversationOption(conversation, "I plan to be very careful with it.", "dlg_26_3")
  45. StartConversation(conversation, NPC, Spawn, "It worked! I mean ... here is a wand for you. Use it well.")
  46. end