MayorWoodbridge.lua 1.2 KB

123456789101112131415161718192021222324252627282930313233343536
  1. --[[
  2. Script Name : SpawnScripts/Antonica/MayorWoodbridge.lua
  3. Script Author : Dorbin
  4. Script Date : 2023.04.30 01:04:47
  5. Script Purpose :
  6. :
  7. --]]
  8. dofile("SpawnScripts/Generic/MonsterCallouts/Windstalkers.lua")
  9. require "SpawnScripts/Generic/NPCModule"
  10. function spawn(NPC, Spawn)
  11. dmgMod = GetStr(NPC)/10
  12. Named(NPC)
  13. SetInfoStructUInt(NPC, "override_primary_weapon", 1)
  14. SetInfoStructUInt(NPC, "primary_weapon_damage_low", math.floor(45 + dmgMod))
  15. SetInfoStructUInt(NPC, "primary_weapon_damage_high", math.floor(85 + dmgMod))
  16. end
  17. function hailed(NPC, Spawn)
  18. FaceTarget(NPC, Spawn)
  19. SendMessage(Spawn,"Mayor Woodbridge looks at you cautiously. He appears to be sizing you up.")
  20. PlayFlavor(NPC,"","","ponder",0,0,Spawn)
  21. end
  22. function respawn(NPC)
  23. spawn(NPC)
  24. end
  25. function casted_on(NPC, Spawn, Message)
  26. if Message == "listen" and IsInCombat(NPC) == false then
  27. PlayFlavor(NPC,"","","glare",0,0,Spawn)
  28. AddConversationOption(conversation, "All right, consider me gone.")
  29. StartConversation(conversation, NPC, Spawn, "Well, since you're going to listen in you may as well join the conversation. Ahhh, get out of here before it gets rough for ya!")
  30. end
  31. end