9
3

OseofCrestryder.lua 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. --[[
  2. Script Name : SpawnScripts/WillowWood/OseofCrestryder.lua
  3. Script Purpose : Oseof Crestryder <Crafting Trainer>
  4. Script Author : Scatman
  5. Script Date : 2009.09.15
  6. Script Notes :
  7. --]]
  8. function spawn(NPC)
  9. end
  10. function respawn(NPC)
  11. spawn(NPC)
  12. end
  13. function hailed(NPC, Spawn)
  14. FaceTarget(NPC, Spawn)
  15. conversation = CreateConversation()
  16. -- artisan essentials volume 2
  17. if not HasItem(Spawn, 31373, 1) then
  18. AddConversationOption(conversation, "Yes, please teach me.", "dlg_14_1")
  19. end
  20. AddConversationOption(conversation, "No, not at the moment.")
  21. 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?")
  22. end
  23. function dlg_14_1(NPC, Spawn)
  24. FaceTarget(NPC, Spawn)
  25. conversation = CreateConversation()
  26. -- artisan essentials volume 2
  27. SummonItem(Spawn, 31373, 1)
  28. if GetTradeskillLevel(Spawn) < 2 then
  29. SetTradeskillLevel(Spawn, 2)
  30. end
  31. AddConversationOption(conversation, "I will start on that now.")
  32. 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.")
  33. end