Harstead.lua 983 B

12345678910111213141516171819202122
  1. --[[
  2. Script Name : SpawnScripts/Starcrest/Harstead.lua
  3. Script Purpose : Harstead <Shieldsmith>
  4. Script Author : John Adams
  5. Script Date : 2008.09.23
  6. Script Notes : Auto-Generated Conversation from PacketParser Data
  7. --]]
  8. function spawn(NPC)
  9. SetInfoStructString(NPC, "action_state", "woodworking_idle")
  10. end
  11. function hailed(NPC, Spawn)
  12. FaceTarget(NPC, Spawn)
  13. choice = math.random(1,2)
  14. if choice == 1 then
  15. PlayFlavor(NPC, "voiceover/english/human_eco_good_1/ft/service/merchant/human_merchant_service_good_1_hail_gf_e4fa2bd8.mp3", "Confound it! Where did I put that ledger? It must be around here somewhere!", "confused", 2588954321, 88153469, Spawn)
  16. elseif choice == 2 then
  17. PlayFlavor(NPC, "voiceover/english/human_eco_good_1/ft/service/merchant/human_merchant_service_good_1_hail_gf_ae84abf9.mp3", "Go on, take a look at the stock. You'll never beat this price in the city. I guarantee it!", "wink", 1667555721, 2696093362, Spawn)
  18. end
  19. end