9
3

SigbrithMacInnes.lua 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. --[[
  2. Script Name : SpawnScripts/FrostfangSea/SigbrithMacInnes.lua
  3. Script Purpose : Sigbrith MacInnes <Mender>
  4. Script Author : Foof
  5. Script Date : 2013.05.21
  6. Script Notes :
  7. --]]
  8. local LostFroglok = 26
  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. if GetQuestStep(Spawn, LostFroglok) == 1 then
  22. conversation = CreateConversation()
  23. PlayFlavor(NPC, "sigbrith_macinnes/halas/gwenevyns_cove/sigbrith_macinnes/sigbrith_macinnes_001.mp3", "", "", 3335073691, 1240095725, Spawn)
  24. AddConversationOption(conversation, "Excuse me, Sigbrith MacInnes?", "Quest1Chat_2")
  25. StartConversation(conversation, NPC, Spawn, "Yes?")
  26. end
  27. end
  28. function Quest1Chat_2(NPC, Spawn)
  29. FaceTarget(NPC, Spawn)
  30. conversation = CreateConversation()
  31. PlayFlavor(NPC, "sigbrith_macinnes/halas/gwenevyns_cove/sigbrith_macinnes/sigbrith_macinnes_003.mp3", "", "", 4092947662, 401427635, Spawn)
  32. AddConversationOption(conversation, "That's where the grizzlies are!", "Quest1Chat_3")
  33. StartConversation(conversation, NPC, Spawn, "I saw little Splorpy run off and play with the other children. They went over the hill, to the southwest.")
  34. end
  35. function Quest1Chat_3(NPC, Spawn)
  36. SetStepComplete(Spawn, LostFroglok, 1)
  37. FaceTarget(NPC, Spawn)
  38. conversation = CreateConversation()
  39. PlayFlavor(NPC, "sigbrith_macinnes/halas/gwenevyns_cove/sigbrith_macinnes/sigbrith_macinnes_004.mp3", "", "", 3124673910, 3802002199, Spawn)
  40. AddConversationOption(conversation, "Thank you for the information. I must now go and search for Splorpy.")
  41. StartConversation(conversation, NPC, Spawn, "Yes, and if the children were chased by them they may have run even further away from our camp. I'm sure Splorpy is fine, but it's nice for you to have concern for these poor pilgrims.")
  42. end