IkileHarmonia.lua 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. --[[
  2. Script Name : SpawnScripts/GreaterFaydark/IkileHarmonia.lua
  3. Script Purpose : Ikile Harmonia <Tradeskill Tutorial>
  4. Script Author : John Adams
  5. Script Date : 2009.03.01
  6. Script Notes : Auto-Generated Conversation from PacketParser Data
  7. --]]
  8. function spawn(NPC)
  9. SetPlayerProximityFunction(NPC, 10, "InRange", "LeaveRange")
  10. end
  11. function respawn(NPC)
  12. spawn(NPC)
  13. end
  14. function InRange(NPC, Spawn)
  15. end
  16. function LeaveRange(NPC, Spawn)
  17. end
  18. function hailed(NPC, Spawn)
  19. FaceTarget(NPC, Spawn)
  20. conversation = CreateConversation()
  21. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_1_1005.mp3", "", "", 0, 0, Spawn)
  22. AddConversationOption(conversation, "Yes please, I don't know much about that stuff.", "dlg_77_1")
  23. AddConversationOption(conversation, "Sure, I think I'm pretty comfortable with it all but I can always use a memory refresher.")
  24. AddConversationOption(conversation, "No thanks, I have other things to do right now.")
  25. StartConversation(conversation, NPC, Spawn, "Hello, friend! I'm here to teach interested people a little bit about how to harvest crafting materials, and how to craft tradeskilled items. Are you interested?")
  26. if convo==78 then
  27. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_1_1005.mp3", "", "", 0, 0, Spawn)
  28. AddConversationOption(conversation, "Yes please, I don't know much about that stuff.", "dlg_78_1")
  29. AddConversationOption(conversation, "Sure, I think I'm pretty comfortable with it all but I can always use a memory refresher.")
  30. AddConversationOption(conversation, "No thanks, I have other things to do right now.")
  31. StartConversation(conversation, NPC, Spawn, "Hello, friend! I'm here to teach interested people a little bit about how to harvest crafting materials, and how to craft tradeskilled items. Are you interested?")
  32. end
  33. end
  34. function dlg_77_1(NPC, Spawn)
  35. FaceTarget(NPC, Spawn)
  36. conversation = CreateConversation()
  37. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  38. AddConversationOption(conversation, "Let's start from the beginning with the harvesting.", "dlg_77_2")
  39. AddConversationOption(conversation, "I've already done some harvesting, tell me what I can do with it all.")
  40. AddConversationOption(conversation, "Whoops, look at the time, got to go.")
  41. StartConversation(conversation, NPC, Spawn, "Would you like to learn about harvesting, or skip straight to the crafting process? ")
  42. end
  43. function dlg_78_1(NPC, Spawn)
  44. FaceTarget(NPC, Spawn)
  45. conversation = CreateConversation()
  46. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  47. AddConversationOption(conversation, "Let's start from the beginning with the harvesting.")
  48. AddConversationOption(conversation, "I've already done some harvesting, tell me what I can do with it all.", "dlg_78_2")
  49. AddConversationOption(conversation, "Whoops, look at the time, got to go.")
  50. StartConversation(conversation, NPC, Spawn, "Would you like to learn about harvesting, or skip straight to the crafting process? ")
  51. end
  52. function dlg_78_2(NPC, Spawn)
  53. FaceTarget(NPC, Spawn)
  54. conversation = CreateConversation()
  55. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  56. AddConversationOption(conversation, "I'll get right on it.", "dlg_78_3")
  57. StartConversation(conversation, NPC, Spawn, "Harvesting resources tend to be segregated by areas - for example, you'll be able to harvest items (often also called nodes) for making equipment for level 1-9 adventurers, in the same areas where you'll find level 1-9 adventurers hunting. There are seven types of harvestable item: wood, roots, ore, soft metal, animal dens, shrubs, and fish. I'd like you to get a few harvests from each type of harvestable item.")
  58. end