9
3

CaptainBeltho.lua 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. --[[
  2. Script Name : SpawnScripts/Antonica/CaptainBeltho.lua
  3. Script Purpose : Captain Beltho
  4. Script Author : geordie0511
  5. Script Date : 2019.03.19
  6. Script Notes : Auto-Generated Conversation from PacketParser Data
  7. --]]
  8. local Gnoll = 471
  9. function spawn(NPC)
  10. SetPlayerProximityFunction(NPC, 10, "InRange", "LeaveRange")
  11. end
  12. function respawn(NPC)
  13. spawn(NPC)
  14. end
  15. function InRange(NPC, Spawn)
  16. end
  17. function LeaveRange(NPC, Spawn)
  18. end
  19. function hailed(NPC, Spawn)
  20. FaceTarget(NPC, Spawn)
  21. conversation = CreateConversation()
  22. PlayFlavor(NPC, "voiceover/english/captain_beltho/antonica/captainbeltho000.mp3", "", "", 3094633969, 1366545559, Spawn)
  23. if GetQuestStep(Spawn, Gnoll) == 1 then
  24. PlayFlavor(NPC, "voiceover/english/captain_beltho/antonica/captainbeltho001.mp3", "", "", 637123636, 1668683266, Spawn)
  25. AddConversationOption(conversation, "I don't want to go back to Eitoa empty-handed. ", "dlg_9_2")
  26. AddConversationOption(conversation, "Fine. I'll do whatever it takes.", "dlg_9_2")
  27. StartConversation(conversation, NPC, Spawn, "I have no report, because there's nothing to report. We've had no luck finding the hidden entrance to the gnolls' lair. I need more time and more men to track them down.")
  28. SetStepComplete(Spawn, Gnoll, 1)
  29. elseif GetQuestStep(Spawn, Gnoll) == 3 then
  30. AddConversationOption(conversation, "It seems the gnolls do indeed have a lair where you mentioned.", "dlg_0_1")
  31. AddConversationOption(conversation, "I'm not on official business.")
  32. StartConversation(conversation, NPC, Spawn, "On your way -- unless you're here on official business. I've got enough work here for ten men, and only two at my disposal!")
  33. SetStepComplete(Spawn, Gnoll, 3)
  34. end
  35. end
  36. function dlg_0_1(NPC, Spawn)
  37. FaceTarget(NPC, Spawn)
  38. conversation = CreateConversation()
  39. PlayFlavor(NPC, "voiceover/english/captain_beltho/antonica/captainbeltho003.mp3", "", "", 4118902248, 2953766683, Spawn)
  40. AddConversationOption(conversation, "Thank you for the report. I will return it to Eitoa at once.")
  41. StartConversation(conversation, NPC, Spawn, "Well done indeed! I'll finish the report, along with your description of the area, and you may take it to Captain Eitoa. ")
  42. end
  43. function dlg_9_2(NPC, Spawn)
  44. FaceTarget(NPC, Spawn)
  45. conversation = CreateConversation()
  46. PlayFlavor(NPC, "voiceover/english/captain_beltho/antonica/captainbeltho002.mp3", "", "", 1781496850, 130411923, Spawn)
  47. AddConversationOption(conversation, "I'll have the place searched out as quickly as possible.")
  48. StartConversation(conversation, NPC, Spawn, "I appreciate your help. I'd like you to search the most southern lands. One of our scouts mentioned seeing gnolls in the area, and another scout mentioned a number of bridges connecting the islands. It's probably another dead end, but if you do find the gnoll lair, return to me and I'll finish the report.")
  49. end