KregnokLegbreaker.lua 3.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. --[[
  2. Script Name : SpawnScripts/Commonlands/KregnokLegbreaker.lua
  3. Script Author : Premierio015
  4. Script Date : 2021.06.04 06:06:46
  5. Script Purpose :
  6. :
  7. --]]
  8. local HelpTheTrollGetAhead = 5253
  9. function spawn(NPC)
  10. ProvidesQuest(NPC, HelpTheTrollGetAhead)
  11. end
  12. function hailed(NPC, Spawn)
  13. FaceTarget(NPC, Spawn)
  14. local conversation = CreateConversation()
  15. if not HasQuest(Spawn, HelpTheTrollGetAhead) and not HasCompletedQuest(Spawn, HelpTheTrollGetAhead) then
  16. AddConversationOption(conversation, "I'm not food, but why so hard on yourself Kregnok?", "Option1")
  17. elseif GetQuestStep(Spawn, HelpTheTrollGetAhead) == 2 then
  18. AddConversationOption(conversation, "It's okay Kregnok. I brought the head you needed.", "Option2")
  19. end
  20. AddConversationOption(conversation, "NO! BAD KREGNOK! Go away!")
  21. StartConversation(conversation, NPC, Spawn, "What Kregnok do? Not sooo smart... Stupid Kregnok! Food! Tiny things tasty food! Make Kregnok happy to eat tiny tasties!")
  22. PlayFlavor(NPC, "voiceover/english/kregnok_legbreaker/commonlands/kregnoklegbreaker.mp3", "", "peer", 2227715331, 3498544392, Spawn)
  23. end
  24. function Option1(NPC, Spawn)
  25. FaceTarget(NPC, Spawn)
  26. local conversation = CreateConversation()
  27. AddConversationOption(conversation, "I'll see what I can do, giants are rather a fierce breed.", "offer")
  28. AddConversationOption(conversation, "I don't think so. You're on your own, troll.")
  29. StartConversation(conversation, NPC, Spawn, "Kregnok needs head from giant to prove worth to clan. Kregnok not smart enough to stay with other trolls. Need proof Kregnok smart enough, so need giant head to show he smarter than giant and know where to find them. Tasty help Kregnok?")
  30. PlayFlavor(NPC, "voiceover/english/kregnok_legbreaker/commonlands/kregnoklegbreaker000.mp3", "", "", 450934324, 3419798721, Spawn)
  31. end
  32. function Option2(NPC, Spawn)
  33. SetStepComplete(Spawn, HelpTheTrollGetAhead, 2)
  34. FaceTarget(NPC, Spawn)
  35. local conversation = CreateConversation()
  36. AddConversationOption(conversation, "Then I'll just have to take that shiny from you, TROLL!", "kregnok_aggro")
  37. StartConversation(conversation, NPC, Spawn, "Guuud, glad tasty help Kregnok get, but me take... only shiny YOU see is Kregnok's axe as it hit you in face! HAR HAR HAR!")
  38. PlayFlavor(NPC, "voiceover/english/kregnok_legbreaker/commonlands/kregnoklegbreaker002.mp3", "", "", 3216528479, 1012171223, Spawn)
  39. end
  40. function kregnok_aggro(NPC, Spawn)
  41. SpawnSet(NPC, "attackable", 1)
  42. SpawnSet(NPC, "show_level", 1)
  43. Attack(NPC, Spawn)
  44. end
  45. function aggro(NPC, Spawn)
  46. PlayFlavor(NPC, "voiceover/english/optional5/troll_base_2/ft/troll/troll_base_2_1_aggro_gm_d5e592e8.mp3", "Wuh? Time for pain!", "", 1834948398, 3855615475)
  47. end
  48. function death(NPC, Spawn)
  49. PlayFlavor(NPC, "voiceover/english/optional5/troll_base_2/ft/troll/troll_base_2_1_death_gm_629228e0.mp3", "They were weak and deserved to die.", "", 1907912454, 2630165050)
  50. end
  51. function offer(NPC, Spawn)
  52. OfferQuest(NPC, Spawn, HelpTheTrollGetAhead)
  53. end
  54. function respawn(NPC)
  55. spawn(NPC)
  56. end