9
3

RalaEurocarry.lua 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  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. require "SpawnScripts/Generic/DialogModule"
  9. dofile("SpawnScripts/Generic/GenericVoiceOvers.lua")
  10. -- Item ID's
  11. local ARTISAN_ESSENTIALS_VOLUME_2 = 31373
  12. function spawn(NPC)
  13. end
  14. function respawn(NPC)
  15. spawn(NPC)
  16. end
  17. function hailed(NPC, Spawn)
  18. FaceTarget(NPC, Spawn)
  19. if HasQuest(Spawn,5760) and GetQuestStep(Spawn,5760) == 8 then
  20. Dialog1(NPC,Spawn)
  21. else
  22. conversation = CreateConversation()
  23. GenericHail(NPC, Spawn)
  24. if not HasItem(Spawn, ARTISAN_ESSENTIALS_VOLUME_2, 1) then
  25. AddConversationOption(conversation, "Yes, please teach me.", "dlg_39_1")
  26. AddConversationOption(conversation, "No, not at the moment.")
  27. 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?")
  28. else
  29. 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)
  30. end
  31. end
  32. end
  33. function dlg_39_1(NPC, Spawn)
  34. FaceTarget(NPC, Spawn)
  35. conversation = CreateConversation()
  36. -- artisan essentials volume 2
  37. SummonItem(Spawn, ARTISAN_ESSENTIALS_VOLUME_2, 1)
  38. AddConversationOption(conversation, "I will start on that now.", "dlg_39_2")
  39. 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.")
  40. end
  41. function Dialog1(NPC,Spawn)
  42. SetStepComplete(Spawn,5760,8)
  43. FaceTarget(NPC, Spawn)
  44. Dialog.New(NPC, Spawn)
  45. PlayFlavor(NPC, "", "", "hello", 0, 0, Spawn)
  46. Dialog.AddDialog("I think you'd fit in well here at The Deductive Directory. Do you want to join our emporium?")
  47. Dialog.AddVoiceover("voiceover/english/rala_eurocarry/qey_village06/100_trd_rala_eurocarry_joining_c5398ce0.mp3", 3547578723, 290909129)
  48. Dialog.AddOption("I'm just saying hello!")
  49. Dialog.AddOption("What can I do here?", "CanDo")
  50. if GetTradeskillLevel(Spawn)<2 then
  51. Dialog.AddOption("I'm rather new at crafting. Can you help me?", "HelpMe")
  52. end
  53. Dialog.Start()
  54. end
  55. function CanDo(NPC,Spawn)
  56. FaceTarget(NPC, Spawn)
  57. Dialog.New(NPC, Spawn)
  58. PlayFlavor(NPC, "", "", "orate", 0, 0, Spawn)
  59. Dialog.AddDialog("Many things can be done at a tradeskill society and there are many in the city... but ours is obviously the best! Each is equipped with quality crafting stations and fuels needed to become proficient at any tradeskill class you might desire.")
  60. Dialog.AddOption("Anything else I should know?", "CanDo2")
  61. if GetTradeskillLevel(Spawn)<2 then
  62. Dialog.AddOption("I'm rather new at crafting. Can you help me?", "HelpMe")
  63. end
  64. Dialog.Start()
  65. end
  66. function CanDo2(NPC,Spawn)
  67. FaceTarget(NPC, Spawn)
  68. Dialog.New(NPC, Spawn)
  69. PlayFlavor(NPC, "", "", "nod", 0, 0, Spawn)
  70. Dialog.AddDialog("Our society also has our very own Broker, who you can talk to in order to buy and sell items from other players. A very handy connection, indeed!")
  71. Dialog.AddOption("Thank you for all the information!")
  72. if GetTradeskillLevel(Spawn)<2 then
  73. Dialog.AddOption("I'm rather new at crafting. Can you help me?", "HelpMe")
  74. end
  75. Dialog.Start()
  76. end
  77. function HelpMe(NPC,Spawn)
  78. FaceTarget(NPC, Spawn)
  79. Dialog.New(NPC, Spawn)
  80. PlayFlavor(NPC, "", "", "nod", 0, 0, Spawn)
  81. Dialog.AddDialog("Lets see... here are the basics to get you going on your path to becoming an Artisan. Scribe these recipies to learn the basics. If you are needing more information, step inside and there will be others that can help you.")
  82. Dialog.AddOption("What can I do here?", "CanDo")
  83. Dialog.AddOption("Thank you for all the information!")
  84. if GetTradeskillLevel(Spawn) <2 then
  85. SummonItem(Spawn,1030001,1)
  86. SetTradeskillLevel(Spawn,2)
  87. SetTradeskillClass(Spawn,1)
  88. SendMessage(Spawn, "You are now an Artisan!")
  89. SendPopUpMessage(Spawn, "You are now an Artisan!", 200, 200, 200)
  90. end
  91. Dialog.Start()
  92. end