9
3

ZeldikilGiSok.lua 1.2 KB

1234567891011121314151617181920212223242526272829303132333435
  1. --[[
  2. Script Name : SpawnScripts/TimorousDeep/ZeldikilGiSok.lua
  3. Script Purpose : Zeldikil Gi'Sok <Mender>
  4. Script Author : John Adams
  5. Script Date : 2009.02.06
  6. Script Notes : Auto-Generated Conversation from PacketParser Data
  7. --]]
  8. function spawn(NPC)
  9. SetPlayerProximityFunction(NPC, 10, "InRange")
  10. end
  11. function respawn(NPC)
  12. spawn(NPC)
  13. end
  14. function InRange(NPC, Spawn)
  15. Choice = math.random(1, 3)
  16. if Choice == 1 then
  17. PlayFlavor(NPC, "", "Repair your armor for coin!", "", 1689589577, 4560189, Spawn)
  18. elseif Choice == 2 then
  19. PlayFlavor(NPC, "", "I repair all types of armor!", "", 1689589577, 4560189, Spawn)
  20. else
  21. PlayFlavor(NPC, "", "Come to me for the fastest repairs this side of Gorowyn!", "", 1689589577, 4560189, Spawn)
  22. end
  23. end
  24. function hailed(NPC, Spawn)
  25. FaceTarget(NPC, Spawn)
  26. conversation = CreateConversation()
  27. AddConversationOption(conversation, "Thank you.")
  28. StartConversation(NPC, Spawn, conversation, "Your armor and weapons wear down when you die during combat. When they are down to zero durability, you no longer receive any benefit from them. You can visit myself or any mender to get them repaired.")
  29. end