9
3

NawalTahri.lua 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. --[[
  2. Script Name : SpawnScripts/Nettleville/NawalTahri.lua
  3. Script Purpose : Nawal Tahri <Crafting Trainer>
  4. Script Author : scatman
  5. Script Date : 2009.08.12
  6. Script Notes : Auto-Generated Conversation from PacketParser Data
  7. --]]
  8. -- Item ID's
  9. local ARTISAN_ESSENTIALS_VOLUME_2 = 31373
  10. function spawn(NPC)
  11. end
  12. function respawn(NPC)
  13. spawn(NPC)
  14. end
  15. function hailed(NPC, Spawn)
  16. FaceTarget(NPC, Spawn)
  17. conversation = CreateConversation()
  18. RandomVoiceOver(NPC, Spawn)
  19. -- artisan essentials volume 2
  20. if HasItem(Spawn, ARTISAN_ESSENTIALS_VOLUME_2) then
  21. Say(NPC, "I have nothing else to teach you for the moment. Please return to me when you have earned enough experience to choose your profession.", Spawn)
  22. else
  23. AddConversationOption(conversation, "Yes, please teach me.", "dlg_8_1")
  24. AddConversationOption(conversation, "No, not at the moment.")
  25. StartConversation(conversation, NPC, Spawn, "You show interest in the crafting trade, good. We can always use talented artisans. I can help you get started, would you be interested?")
  26. end
  27. end
  28. function RandomVoiceOver(NPC, Spawn)
  29. local choice = math.random(1, 3)
  30. if choice == 1 then
  31. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_1_1047.mp3", "", "", 0, 0, Spawn)
  32. elseif choice == 2 then
  33. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_2_1047.mp3", "", "", 0, 0, Spawn)
  34. elseif choice == 3 then
  35. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_3_1047.mp3", "", "", 0, 0, Spawn)
  36. end
  37. end
  38. function dlg_8_1(NPC, Spawn)
  39. FaceTarget(NPC, Spawn)
  40. conversation = CreateConversation()
  41. -- artisan essentials volume 2
  42. SendMessage(Spawn, "You receive [artisan essentials volume 2].")
  43. SendPopUpMessage(Spawn, "You receive artisan essentials volume 2", "yellow")
  44. SummonItem(Spawn, ARTISAN_ESSENTIALS_VOLUME_2)
  45. PlayFlavor(NPC, "", "", "point", 0, 0, Spawn)
  46. AddConversationOption(conversation, "I will start on that now.")
  47. StartConversation(conversation, NPC, Spawn, "There, you now have knowledge required to begin crafting. Speak to the Tradeskill Tutor for more detailed guidance on learning to craft, if you are interested in more information. Return to me when you are ready to select a crafting specialty.")
  48. end