9
3

Unuesh.lua 1.3 KB

123456789101112131415161718192021222324252627282930
  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 Talk(NPC, Spawn)
  17. FaceTarget(NPC, Spawn)
  18. choice = math.random(1,3)
  19. if choice == 1 then
  20. 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)
  21. elseif choice == 2 then
  22. 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)
  23. elseif choice == 3 then
  24. 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)
  25. end
  26. end