DigginDiggs.lua 1.0 KB

12345678910111213141516171819202122232425262728293031323334
  1. --[[
  2. Script Name : SpawnScripts/qeynos_combined02/DigginDiggs.lua
  3. Script Author : Rylec
  4. Script Date : 2021.09.06 11:09:01
  5. Script Purpose :
  6. :
  7. --]]
  8. function spawn(NPC)
  9. end
  10. function hailed(NPC, Spawn)
  11. SpawnSet(NPC, "visual_state", 0)
  12. FaceTarget(NPC, Spawn)
  13. local choice = MakeRandomInt(1, 3)
  14. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_"..choice.."_1020.mp3", "", "", 0, 0, Spawn)
  15. conversation = CreateConversation()
  16. AddConversationOption(conversation, "Sorry. Just passing by.")
  17. StartConversation(conversation, NPC, Spawn, "You're looking a might shabby there. You look like you can use some repair work. My partner here, Steelguard, can mend any damaged piece of armor or weapons you might have, all for an outrageously low, low price! We live for the community!")
  18. AddTimer(NPC, 40000, "ResetState", 1, Spawn)
  19. end
  20. function ResetState(NPC)
  21. SpawnSet(NPC, "visual_state", 11812)
  22. end
  23. function respawn(NPC)
  24. spawn(NPC)
  25. end