Unuesh.lua 1.4 KB

123456789101112131415161718192021222324252627282930313233
  1. --[[
  2. Script Name : SpawnScripts/Starcrest/Unuesh.lua
  3. Script Purpose : Unuesh <Tailor>
  4. Script Author : John Adams
  5. Script Date : 2008.09.23
  6. Script Notes : Auto-Generated Conversation from PacketParser Data
  7. --]]
  8. function hailed(NPC, Spawn)
  9. FaceTarget(NPC, Spawn)
  10. if GetFactionAmount(Spawn,11)<0 then
  11. PlayFlavor(NPC, "", "", "heckno", 0, 0, Spawn)
  12. else
  13. Talk(NPC, Spawn)
  14. end
  15. end
  16. function spawn(NPC)
  17. SetInfoStructString(NPC, "action_state", "tailoring_idle")
  18. end
  19. function Talk(NPC, Spawn)
  20. FaceTarget(NPC, Spawn)
  21. choice = math.random(1,3)
  22. if choice == 1 then
  23. PlayFlavor(NPC, "voiceover/english/optional2/erudite_eco_good_2/ft/service/merchant/erudite_merchant_service_good_2_hail_gm_45d92a75.mp3", "Welcome! What can I help you with?", "bow", 4271285862, 1774320762, Spawn)
  24. elseif choice == 2 then
  25. PlayFlavor(NPC, "voiceover/english/optional2/erudite_eco_good_2/ft/service/merchant/erudite_merchant_service_good_2_hail_gm_24322c5d.mp3", "Greetings, friend traveler! We have the finest supplies to fill your adventuring needs.", "smile", 857840270, 941389485, Spawn)
  26. elseif choice == 3 then
  27. PlayFlavor(NPC, "voiceover/english/optional2/erudite_eco_good_2/ft/service/merchant/erudite_merchant_service_good_2_hail_gm_ae84abf9.mp3", "Go on, take a look at the stock. You'll never beat this price in the city. I guarantee it!", "wink", 2447200130, 2600666744, Spawn)
  28. end
  29. end