9
3

RalaEurocarry.lua 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. --[[
  2. Script Name : SpawnScripts/Baubbleshire/RalaEurocarry.lua
  3. Script Purpose : Rala Eurocarry <Crafting Trainer>
  4. Script Author : Scatman
  5. Script Date : 2009.09.27
  6. Script Notes :
  7. --]]
  8. dofile("SpawnScripts/Generic/GenericVoiceOvers.lua")
  9. -- Item ID's
  10. local ARTISAN_ESSENTIALS_VOLUME_2 = 31373
  11. function spawn(NPC)
  12. end
  13. function respawn(NPC)
  14. spawn(NPC)
  15. end
  16. function hailed(NPC, Spawn)
  17. FaceTarget(NPC, Spawn)
  18. conversation = CreateConversation()
  19. GenericHail(NPC, Spawn)
  20. if not HasItem(Spawn, ARTISAN_ESSENTIALS_VOLUME_2, 1) then
  21. AddConversationOption(conversation, "Yes, please teach me.", "dlg_39_1")
  22. AddConversationOption(conversation, "No, not at the moment.")
  23. 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?")
  24. else
  25. 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)
  26. end
  27. end
  28. function dlg_39_1(NPC, Spawn)
  29. FaceTarget(NPC, Spawn)
  30. conversation = CreateConversation()
  31. -- artisan essentials volume 2
  32. SummonItem(Spawn, ARTISAN_ESSENTIALS_VOLUME_2, 1)
  33. AddConversationOption(conversation, "I will start on that now.", "dlg_39_2")
  34. 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.")
  35. end