9
3

GalenusFulvianus.lua 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. --[[
  2. Script Name : SpawnScripts/BigBend/GalenusFulvianus.lua
  3. Script Purpose : Galenus Fulvianus
  4. Script Author : torsten
  5. Script Date : 2022.07.11
  6. Script Notes :
  7. --]]
  8. local PayingTheTab = 5625
  9. local HobsForGalenus = 5626
  10. function spawn(NPC)
  11. ProvidesQuest(NPC, PayingTheTab)
  12. ProvidesQuest(NPC, HobsForGalenus)
  13. end
  14. function respawn(NPC)
  15. spawn(NPC)
  16. end
  17. function hailed(NPC, Spawn)
  18. if not HasQuest(Spawn, PayingTheTab) and not HasCompletedQuest(Spawn, PayingTheTab) then
  19. OfferQuest(NPC, Spawn, PayingTheTab)
  20. end
  21. if HasCompletedQuest(Spawn, PayingTheTab) then
  22. if not HasQuest(Spawn, HobsForGalenus) and not HasCompletedQuest(Spawn, HobsForGalenus) then
  23. OfferQuest(NPC, Spawn, HobsForGalenus)
  24. end
  25. end
  26. if GetQuestStep(Spawn, PayingTheTab) == 2 then
  27. SetStepComplete(Spawn, PayingTheTab, 2)
  28. end
  29. if GetQuestStep(Spawn, HobsForGalenus) == 2 then
  30. SetStepComplete(Spawn, HobsForGalenus, 2)
  31. end
  32. FaceTarget(NPC, Spawn)
  33. RandomGreeting(NPC, Spawn)
  34. end
  35. function RandomGreeting(NPC, Spawn)
  36. local choice = MakeRandomInt(1,3)
  37. if choice == 1 then
  38. PlayFlavor(NPC, "voiceover/english/optional2/human_eco_evil_3/ft/service/bartender/human_bartender_service_evil_3_hail_gm_c5b9c7c2.mp3", "You want to talk? If you want us to be friends all you need to do is buy a drink!", "stare", 449345966, 4157533401, Spawn, 0)
  39. elseif choice == 2 then
  40. PlayFlavor(NPC, "voiceover/english/optional2/human_eco_evil_3/ft/service/bartender/human_bartender_service_evil_3_hail_gm_4b169ed.mp3", "I do believe a gratuity is in order.", "glare", 3876231044, 2766008796, Spawn, 0)
  41. elseif choice == 3 then
  42. PlayFlavor(NPC, "voiceover/english/optional2/human_eco_evil_3/ft/service/bartender/human_bartender_service_evil_3_hail_gm_e79db99d.mp3", "So tell me, what's your poison?", "hello", 1333275744, 2244181784, Spawn, 0)
  43. end
  44. end