9
3

AssistantTillheel.lua 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. --[[
  2. Script Name : SpawnScripts/Graystone/AssistantTillheel.lua
  3. Script Purpose : Assistant Tillheel <Alchemist>
  4. Script Author : John Adams/Scatman
  5. Script Date : 2008.09.21
  6. Script Notes : Auto-Generated Conversation from PacketParser Data
  7. --]]
  8. function spawn(NPC)
  9. SetPlayerProximityFunction(NPC, 10, "RandomTalk", "LeaveRange")
  10. end
  11. function respawn(NPC)
  12. spawn(NPC)
  13. end
  14. function hailed(NPC, Spawn)
  15. RandomTalk(NPC, Spawn, false)
  16. end
  17. function RandomTalk(NPC, Spawn, Option)
  18. local choice = 0
  19. if Option == nil then
  20. choice = math.random(1, 100)
  21. end
  22. if choice < 25 then
  23. FaceTarget(NPC, Spawn)
  24. local choice = math.random(1, 4)
  25. if choice == 1 then
  26. PlayFlavor(NPC, "voiceover/english/optional2/halfling_eco_good_1/ft/service/alchemist/halfling_alchemist_service_good_1_hail_gm_a8ed74c7.mp3", "There are no refunds for caster error at this shop! Oh ... hello you're not here about a refund.", "no", 2075394375, 630243730, Spawn)
  27. elseif choice == 2 then
  28. PlayFlavor(NPC, "voiceover/english/optional2/halfling_eco_good_1/ft/service/alchemist/halfling_alchemist_service_good_1_hail_gm_ec533e4c.mp3", "Are you wounded? I just made up a fresh batch of healing potions an hour ago.", "hello", 2688473405, 4089604259, Spawn)
  29. elseif choice == 3 then
  30. PlayFlavor(NPC, "", "I'm sorry, afraid I'm unable to help you now. That dolt Mr. Clark mixed up the formulas again! Now... Let's see... Which one is the super corrosive acid?", "", 0, 0, Spawn)
  31. else
  32. PlayFlavor(NPC, "voiceover/english/optional2/halfling_eco_good_1/ft/service/alchemist/halfling_alchemist_service_good_1_hail_gm_efd903ba.mp3", "Hello, adventurer! Are you looking for a specific potion or ingredient?", "agree", 1413906559, 1372883990, Spawn)
  33. end
  34. end
  35. end
  36. function LeaveRange(NPC, Spawn)
  37. end