MatstyrAlesmith.lua 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. --[[
  2. Script Name : SpawnScripts/GreaterFaydark/MatstyrAlesmith.lua
  3. Script Purpose : Matstyr Alesmith <Mender>
  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, "matstyr_alesmith/_exp03/exp03_rgn_greater_faydark/matstyr_alesmith/matstyr_001.mp3", "", "", 1937953293, 2767488861, Spawn)
  22. AddConversationOption(conversation, "I was wondering if I could do anything for you.", "dlg_23_1")
  23. AddConversationOption(conversation, "Not right now.")
  24. StartConversation(conversation, NPC, Spawn, "Hail and good to meet ya. I am Matstyr, Your traveling Smith and all around do anything you need Dwarf. Is there anything I can do for you?")
  25. end
  26. function dlg_23_1(NPC, Spawn)
  27. FaceTarget(NPC, Spawn)
  28. conversation = CreateConversation()
  29. PlayFlavor(NPC, "matstyr_alesmith/_exp03/exp03_rgn_greater_faydark/matstyr_alesmith/matstyr_002.mp3", "", "", 2958360418, 2661137078, Spawn)
  30. AddConversationOption(conversation, "Sounds good, where can I start.", "dlg_23_2")
  31. AddConversationOption(conversation, "I change my mind, I don’t have time.")
  32. StartConversation(conversation, NPC, Spawn, "Well I am a bit back logged on my list of things to help people with. I guess I could hire you to help me out for a bit. No long term contract mind you. ")
  33. end
  34. function dlg_23_2(NPC, Spawn)
  35. FaceTarget(NPC, Spawn)
  36. conversation = CreateConversation()
  37. PlayFlavor(NPC, "matstyr_alesmith/_exp03/exp03_rgn_greater_faydark/matstyr_alesmith/matstyr_003.mp3", "", "", 1881646035, 610210479, Spawn)
  38. AddConversationOption(conversation, "I will return with the pelts.", "dlg_23_3")
  39. AddConversationOption(conversation, "I don’t want to kill any wolves.")
  40. StartConversation(conversation, NPC, Spawn, "Well I have an order to fill from one of those tree hugging elves. They need some wolf pelts to make leather armor for their young warriors. I told them it would be no problem, but it seems I underestimated how much they would need. If you could bring me a bundle of pelts it would help quite a bit.")
  41. end