9
3

AntiusVedrix.lua 966 B

1234567891011121314151617181920212223242526272829303132333435
  1. --[[
  2. Script Name : SpawnScripts/BeggarsCourt/AntiusVedrix.lua
  3. Script Purpose : Antius Vedrix
  4. Script Author : torsten
  5. Script Date : 2022.07.15
  6. Script Notes :
  7. --]]
  8. local AntiusPackage = 5651
  9. function spawn(NPC)
  10. ProvidesQuest(NPC, AntiusPackage)
  11. end
  12. function respawn(NPC)
  13. spawn(NPC)
  14. end
  15. function hailed(NPC, Spawn)
  16. if not HasQuest(Spawn, AntiusPackage) and not HasCompletedQuest(Spawn, AntiusPackage) then
  17. OfferQuest(NPC, Spawn, AntiusPackage)
  18. end
  19. if GetQuestStep(Spawn, AntiusPackage) == 2 then
  20. SetStepComplete(Spawn, AntiusPackage, 2)
  21. end
  22. RandomGreeting(NPC, Spawn)
  23. end
  24. function RandomGreeting(NPC, Spawn)
  25. local choice = MakeRandomInt(1,1)
  26. if choice == 1 then
  27. PlayFlavor(NPC, "voiceover/english/antius_vedrix/fprt_hood04/100_std_antius_vedrix_hum_m_multhail1_cd2636f5.mp3", "Who are you? You're not the new guy! Get out of here!", "", 3883094832, 1572266881, Spawn, 0)
  28. end
  29. end