9
3

Steelvein.lua 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. --[[
  2. Script Name : SpawnScripts/Graystone/Steelvein.lua
  3. Script Purpose : Steelvein <Shieldsmith>
  4. Script Author : John Adams
  5. Script Date : 2008.09.21
  6. Script Notes : Auto-Generated Conversation from PacketParser Data
  7. --]]
  8. function spawn(NPC)
  9. end
  10. function respawn(NPC)
  11. spawn(NPC)
  12. end
  13. function hailed(NPC, Spawn)
  14. RandomTalk(NPC, Spawn, false)
  15. end
  16. function RandomTalk(NPC, Spawn, Option)
  17. local choice = 0
  18. if Option == nil then
  19. choice = math.random(1, 100)
  20. end
  21. if choice < 25 then
  22. FaceTarget(NPC, Spawn)
  23. local choice = math.random(1, 3)
  24. if choice == 1 then
  25. PlayFlavor(NPC, "voiceover/english/dwarf_eco_good_1/ft/service/merchant/dwarf_merchant_service_good_1_hail_gf_45d92a75.mp3", "Welcome! What is it I can help you with?", "bow", 578929529, 647853, Spawn)
  26. elseif choice == 2 then
  27. PlayFlavor(NPC, "voiceover/english/dwarf_eco_good_1/ft/service/merchant/dwarf_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", 2476632966, 344262300, Spawn)
  28. else
  29. PlayFlavor(NPC, "voiceover/english/dwarf_eco_good_1/ft/service/merchant/dwarf_merchant_service_good_1_hail_gf_24322c5d.mp3", "Greetings, friend traveler! We have the finest supplies to fill your adventuring needs.", "smile", 2158784304, 1517987989, Spawn)
  30. end
  31. end
  32. end