9
3

CaptainBeltho.lua 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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. require "SpawnScripts/Generic/PlayerHistory"
  9. local Gnoll = 471
  10. function spawn(NPC)
  11. SetPlayerProximityFunction(NPC, 10, "InRange", "LeaveRange")
  12. end
  13. function respawn(NPC)
  14. spawn(NPC)
  15. end
  16. function InRange(NPC, Spawn)
  17. end
  18. function LeaveRange(NPC, Spawn)
  19. end
  20. function hailed(NPC, Spawn)
  21. SetPlayerHistory(Spawn, 8, 0)
  22. if GetPlayerHistory(Spawn, 8) == nil then
  23. Say(Spawn, "ur player history is nil")
  24. elseif GetPlayerHistory(Spawn, 8) then
  25. Say(Spawn, "ur player history is not nil")
  26. end
  27. FaceTarget(NPC, Spawn)
  28. conversation = CreateConversation()
  29. PlayFlavor(NPC, "voiceover/english/captain_beltho/antonica/captainbeltho000.mp3", "", "", 3094633969, 1366545559, Spawn)
  30. if GetQuestStep(Spawn, Gnoll) == 1 then
  31. PlayFlavor(NPC, "voiceover/english/captain_beltho/antonica/captainbeltho001.mp3", "", "", 637123636, 1668683266, Spawn)
  32. AddConversationOption(conversation, "I don't want to go back to Eitoa empty-handed. ", "dlg_9_2")
  33. AddConversationOption(conversation, "Fine. I'll do whatever it takes.", "dlg_9_2")
  34. 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.")
  35. SetStepComplete(Spawn, Gnoll, 1)
  36. elseif GetQuestStep(Spawn, Gnoll) == 3 then
  37. AddConversationOption(conversation, "It seems the gnolls do indeed have a lair where you mentioned.", "dlg_0_1")
  38. AddConversationOption(conversation, "I'm not on official business.")
  39. 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!")
  40. SetStepComplete(Spawn, Gnoll, 3)
  41. end
  42. end
  43. function dlg_0_1(NPC, Spawn)
  44. FaceTarget(NPC, Spawn)
  45. conversation = CreateConversation()
  46. PlayFlavor(NPC, "voiceover/english/captain_beltho/antonica/captainbeltho003.mp3", "", "", 4118902248, 2953766683, Spawn)
  47. AddConversationOption(conversation, "Thank you for the report. I will return it to Eitoa at once.")
  48. 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. ")
  49. end
  50. function dlg_9_2(NPC, Spawn)
  51. FaceTarget(NPC, Spawn)
  52. conversation = CreateConversation()
  53. PlayFlavor(NPC, "voiceover/english/captain_beltho/antonica/captainbeltho002.mp3", "", "", 1781496850, 130411923, Spawn)
  54. AddConversationOption(conversation, "I'll have the place searched out as quickly as possible.")
  55. 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.")
  56. end