GerwenDiKi.lua 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. --[[
  2. Script Name : SpawnScripts/TimorousDeep/GerwenDiKi.lua
  3. Script Purpose : Gerwen Di'Ki <Chrykori Standard>
  4. Script Author : John Adams
  5. Script Date : 2009.03.10
  6. Script Notes : Auto-Generated Conversation from PacketParser Data
  7. --]]
  8. QUEST_1 = 138
  9. function spawn(NPC)
  10. ProvidesQuest(NPC, QUEST_1)
  11. end
  12. function respawn(NPC)
  13. spawn(NPC)
  14. end
  15. function hailed(NPC, Spawn)
  16. FaceTarget(NPC, Spawn)
  17. conversation = CreateConversation()
  18. if HasCompletedQuest(Spawn, QUEST_1) then
  19. PlayFlavor(NPC, "voiceover/english/rok_questvo/gerwen_di_ki/_exp04/exp04_rgn_timorous_deep/chrykori_tie/qst_diki_done_f06d90c4.mp3", "Thanks for the help.", "", 1995916608, 2179905765, Spawn)
  20. elseif HasQuest(Spawn, QUEST_1) then
  21. DidYouRustTheirWeapons(NPC, Spawn, conversation)
  22. else
  23. GerwenDiKi(NPC, Spawn, conversation)
  24. end
  25. end
  26. function GerwenDiKi(NPC, Spawn, conversation)
  27. PlayFlavor(NPC, "voiceover/english/rok_questvo/gerwen_di_ki/_exp04/exp04_rgn_timorous_deep/chrykori_tie/diki/diki000.mp3", "", "", 2027611006, 3835995279, Spawn)
  28. AddConversationOption(conversation, "Ok.", "OfferQuest1")
  29. StartConversation(conversation, NPC, Spawn, "Gerwen Di'Ki, Chrykori Standard. Bezok and myself have been tasked with keeping Pyrrin Roost 'busy' during the assault on Thulwun Station. I have something now that I think will help set them back considerably. It's a compound that will rust metal instantly. I'd like you to travel down into Pyrrin Roost and use it on the spears the spirocs leave around.")
  30. end
  31. function OfferQuest1(NPC, Spawn)
  32. FaceTarget(NPC, Spawn)
  33. OfferQuest(NPC, Spawn, QUEST_1)
  34. end
  35. function DidYouRustTheirWeapons(NPC, Spawn, conversation)
  36. PlayFlavor(NPC, "voiceover/english/rok_questvo/gerwen_di_ki/_exp04/exp04_rgn_timorous_deep/chrykori_tie/diki/diki002.mp3", "", "", 2536611298, 3200621556, Spawn)
  37. if GetQuestStep(Spawn, QUEST_1) == 2 then
  38. AddConversationOption(conversation, "Yes I did.", "dlg_15_1")
  39. else
  40. AddConversationOption(conversation, "Not yet.")
  41. end
  42. StartConversation(conversation, NPC, Spawn, "Did you rust their weapons?")
  43. end
  44. function dlg_15_1(NPC, Spawn)
  45. SetStepComplete(Spawn, QUEST_1, 2)
  46. FaceTarget(NPC, Spawn)
  47. conversation = CreateConversation()
  48. PlayFlavor(NPC, "voiceover/english/rok_questvo/gerwen_di_ki/_exp04/exp04_rgn_timorous_deep/chrykori_tie/diki/diki003.mp3", "", "", 595835432, 1064103179, Spawn)
  49. AddConversationOption(conversation, "You're welcome.")
  50. StartConversation(conversation, NPC, Spawn, "Great work! That alone will set them back a great deal, I am certain! Thank you.")
  51. end