MayorWoodbridge.lua 1.2 KB

12345678910111213141516171819202122232425262728293031323334
  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. function spawn(NPC)
  10. dmgMod = GetStr(NPC)/10
  11. SetInfoStructUInt(NPC, "override_primary_weapon", 1)
  12. SetInfoStructUInt(NPC, "primary_weapon_damage_low", math.floor(45 + dmgMod))
  13. SetInfoStructUInt(NPC, "primary_weapon_damage_high", math.floor(85 + dmgMod))
  14. end
  15. function hailed(NPC, Spawn)
  16. FaceTarget(NPC, Spawn)
  17. SendMessage(Spawn,"Mayor Woodbridge looks at you cautiously. He appears to be sizing you up.")
  18. PlayFlavor(NPC,"","","ponder",0,0,Spawn)
  19. end
  20. function respawn(NPC)
  21. spawn(NPC)
  22. end
  23. function casted_on(NPC, Spawn, Message)
  24. if Message == "listen" and IsInCombat(NPC) == false then
  25. PlayFlavor(NPC,"","","glare",0,0,Spawn)
  26. AddConversationOption(conversation, "All right, consider me gone.")
  27. 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!")
  28. end
  29. end