MerchantZiraak.lua 1.6 KB

1234567891011121314151617181920212223242526272829303132
  1. --[[
  2. Script Name : SpawnScripts/ScaleYard/MerchantZiraak.lua
  3. Script Purpose : Merchant Ziraak <Armorsmith>
  4. Script Author : John Adams
  5. Script Date : 2008.10.01
  6. Script Notes : Auto-Generated Conversation from PacketParser Data
  7. --]]
  8. function spawn(NPC)
  9. SetPlayerProximityFunction(NPC, 10, "InRange", "LeavingRange")
  10. end
  11. function InRange(NPC, Player)
  12. FaceTarget(NPC, Spawn)
  13. PlayFlavor(NPC, "voiceover/english/iksar_eco_evil_1/ft/service/merchant/iksar_merchant_service_evil_1_aoi_gm_b9dbd27d.mp3", "Only traitors to the Overlord would pass up a bargain like this. You're not a traitor are you?", "scold", 3019943489, 1406568446, Spawn)
  14. end
  15. function Leaverange(NPC, Spawn)
  16. end
  17. function hailed(NPC, Spawn)
  18. FaceTarget(NPC, Spawn)
  19. choice = math.random(1,3)
  20. if choice == 1 then
  21. PlayFlavor(NPC, "voiceover/english/iksar_eco_evil_1/ft/service/housing/iksar_housing_service_evil_1_hail_gm_38e75dfb.mp3", "We don't sell contraband furnishings in our shop. We sell only pieces approved by the Overlord!", "salute_freeport", 4143141876, 487272335, Spawn)
  22. elseif choice == 2 then
  23. PlayFlavor(NPC, "voiceover/english/iksar_eco_evil_1/ft/service/housing/iksar_housing_service_evil_1_hail_gm_b7e3bdf0.mp3", "Welcome friend of the Overlord, please look around. We have several pieces from the Citadel itself! ", "bow", 2808701640, 2743721690, Spawn)
  24. elseif choice == 3 then
  25. PlayFlavor(NPC, "voiceover/english/iksar_eco_evil_1/ft/service/housing/iksar_housing_service_evil_1_hail_gm_33fe2ae6.mp3", "Don't be ashamed, friend. We have pieces that even ratongas can afford!", "wink", 1796157639, 1208855084, Spawn)
  26. end
  27. end