DylanIronforge.lua 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. --[[
  2. Script Name : Quests/QeynosNorth/DylanIronforge.lua
  3. Script Purpose : Dylan Ironforge Dialog
  4. Script Author : premierio015
  5. Script Date : 03.05.2020
  6. Script Notes :
  7. --]]
  8. local CalcifiedBoneOfTheTortured = 527
  9. function spawn (NPC)
  10. SetInfoStructString(NPC, "action_state", "metalworking_idle")
  11. end
  12. function respawn(NPC)
  13. spawn(NPC)
  14. end
  15. function hailed(NPC, Spawn)
  16. FaceTarget(NPC, Spawn)
  17. conversation = CreateConversation()
  18. PlayFlavor(NPC, "voiceover/english/dylan_ironforge/qey_north/dylanironforge001.mp3", "", "", 1912505605, 686002494, Spawn)
  19. AddConversationOption(conversation, "I agree.")
  20. AddConversationOption(conversation, "I don't think so.")
  21. if HasQuest(Spawn, CalcifiedBoneOfTheTortured) and GetQuestStep(Spawn, CalcifiedBoneOfTheTortured) == 2 then
  22. AddConversationOption(conversation, "Brawler Bently said to bring this bone to you.", "Bone")
  23. else
  24. end
  25. StartConversation(conversation, NPC, Spawn, "Nothing's cozier than a nice hot forge!")
  26. end
  27. function Bone(NPC, Spawn)
  28. FaceTarget(NPC, Spawn)
  29. conversation = CreateConversation()
  30. PlayFlavor(NPC, "voiceover/english/dylan_ironforge/qey_north/dylanironforge002.mp3", "", "", 1305798957, 3393168774, Spawn)
  31. AddConversationOption(conversation, "Can you make it into a weapon?", "Weapon")
  32. StartConversation(conversation, NPC, Spawn, "He did, did he? I suppose he means to collect on that favor, eh? Let me see that bone. Hmm ... I've never worked with bone before, but this is incredibly strong. Yes ... I can make something out of it. What would you like?")
  33. end
  34. function Weapon(NPC, Spawn)
  35. FaceTarget(NPC, Spawn)
  36. conversation = CreateConversation()
  37. PlayFlavor(NPC, "voiceover/english/dylan_ironforge/qey_north/dylanironforge003.mp3", "", "", 2500945418, 3245432018, Spawn)
  38. AddConversationOption(conversation, "Thank you Dylan.", "Reward")
  39. StartConversation(conversation, NPC, Spawn, "All right, this shouldn't take long. A little carving here ... a little shaping there ... and ... voila! Not too bad for one of my first works of bone, if I do say so myself. Now Bently can stop bugging me about that favor. HAHA!")
  40. end
  41. function Reward(NPC, Spawn)
  42. FaceTarget(NPC, Spawn)
  43. SetStepComplete(Spawn, CalcifiedBoneOfTheTortured, 2)
  44. end