9
3

Gunta.lua 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. --[[
  2. Script Name : SpawnScripts/Nettleville/Gunta.lua
  3. Script Purpose : Gunta <Assistant Alchemist>
  4. Script Author : Scatman
  5. Script Date : 2009.08.21
  6. Script Notes :
  7. --]]
  8. -- Quest ID's
  9. local CURIOUS_FINDINGS = 301
  10. function spawn(NPC)
  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, CURIOUS_FINDINGS) then
  19. Say(NPC, "I'm sorry but I'm still too busy to help.")
  20. elseif HasQuest(Spawn, CURIOUS_FINDINGS) then
  21. if GetQuestStep(Spawn, CURIOUS_FINDINGS) == 2 then
  22. INeedHelp(NPC, Spawn)
  23. else
  24. Say(NPC, "I'm sorry but I'm still too busy to help.")
  25. end
  26. else
  27. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/gunta/qey_village01/qst_assistant_gunta_notonquest_8aefe111.mp3", "I am very, very busy.", "", 3535297404, 3189268893, Spawn)
  28. end
  29. end
  30. function INeedHelp(NPC, Spawn)
  31. FaceTarget(NPC, Spawn)
  32. conversation = CreateConversation()
  33. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/gunta/qey_village01/quests/assistant_gunta/assistant_gunta001.mp3", "", "", 1890824744, 2425957227, Spawn)
  34. AddConversationOption(conversation, "I need your help identifying a substance.", "dlg_21_1")
  35. StartConversation(conversation, NPC, Spawn, "I'm very busy right now.")
  36. end
  37. function dlg_21_1(NPC, Spawn)
  38. FaceTarget(NPC, Spawn)
  39. conversation = CreateConversation()
  40. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/gunta/qey_village01/quests/assistant_gunta/assistant_gunta002.mp3", "", "", 3053564610, 3469356584, Spawn)
  41. AddConversationOption(conversation, "But this is very important.", "dlg_21_2")
  42. StartConversation(conversation, NPC, Spawn, "I'm very busy sorting and labeling, sorry.")
  43. end
  44. function dlg_21_2(NPC, Spawn)
  45. FaceTarget(NPC, Spawn)
  46. conversation = CreateConversation()
  47. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/gunta/qey_village01/quests/assistant_gunta/assistant_gunta003.mp3", "", "", 1473302109, 3079393007, Spawn)
  48. AddConversationOption(conversation, "Is there nothing you can do to help me?", "dlg_21_3")
  49. StartConversation(conversation, NPC, Spawn, "So is this. If I don't get this done soon I may not be an assistant anymore!")
  50. end
  51. function dlg_21_3(NPC, Spawn)
  52. FaceTarget(NPC, Spawn)
  53. conversation = CreateConversation()
  54. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/gunta/qey_village01/quests/assistant_gunta/assistant_gunta004.mp3", "", "", 1009574595, 614031457, Spawn)
  55. AddConversationOption(conversation, "What about the Alchemist?", "dlg_21_4")
  56. StartConversation(conversation, NPC, Spawn, "Sorry, no!")
  57. end
  58. function dlg_21_4(NPC, Spawn)
  59. SetStepComplete(Spawn, CURIOUS_FINDINGS, 2)
  60. FaceTarget(NPC, Spawn)
  61. conversation = CreateConversation()
  62. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/gunta/qey_village01/quests/assistant_gunta/assistant_gunta005.mp3", "", "", 4103083518, 610136263, Spawn)
  63. AddConversationOption(conversation, "Well... thanks, I guess.")
  64. StartConversation(conversation, NPC, Spawn, "I wouldn't bother talking to him. He has problems of his own to worry about.")
  65. end