9
3

LordBennet.lua 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. --[[
  2. Script Name : SpawnScripts/antonica/LordBennet.lua
  3. Script Author : Premierio015
  4. Script Date : 2021.06.26 07:06:23
  5. Script Purpose :
  6. :
  7. --]]
  8. local DoorToDoorDelivery = 5346
  9. function spawn(NPC)
  10. end
  11. function hailed(NPC, Spawn)
  12. FaceTarget(NPC, Spawn)
  13. if GetQuestStep(Spawn, DoorToDoorDelivery) == 1 then
  14. RugsFromHartok(NPC, Spawn)
  15. else
  16. PlayFlavor(NPC, "", "Welcome to the Keep of the Gnollslayers. We try to keep the roads and area clear from gnoll incursions.", "", 1689589577, 4560189, Spawn)
  17. end
  18. end
  19. function RugsFromHartok(NPC, Spawn)
  20. FaceTarget(NPC, Spawn)
  21. local conversation = CreateConversation()
  22. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_1_1004.mp3", "", "", 0, 0, Spawn)
  23. AddConversationOption(conversation, "I have some rugs from Hartok.", "Option1")
  24. StartConversation(conversation, NPC, Spawn, "Hello there. What is it that you need?")
  25. end
  26. function Option1(NPC, Spawn)
  27. FaceTarget(NPC, Spawn)
  28. local conversation = CreateConversation()
  29. AddConversationOption(conversation, "He has been busy working hard, and says he won't make it by this week.", "Option2")
  30. StartConversation(conversation, NPC, Spawn, "Great, thanks. How has he been? I have not seen him in a while.")
  31. end
  32. function Option2(NPC, Spawn)
  33. SetStepComplete(Spawn, DoorToDoorDelivery, 1)
  34. FaceTarget(NPC, Spawn)
  35. local conversation = CreateConversation()
  36. AddConversationOption(conversation, "Alright.")
  37. StartConversation(conversation, NPC, Spawn, "That doesn't sound like Hartok. He never works hard! Hah! In that case, tell him I'll see him next week.")
  38. end
  39. function respawn(NPC)
  40. spawn(NPC)
  41. end