9
3

agoblinsnotebookTheHideout.lua 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. --[[
  2. Script Name : ItemScripts/agoblinsnotebookTheHideout.lua
  3. Script Author : Premierio015
  4. Script Date : 2021.07.16 03:07:28
  5. Script Purpose :
  6. :
  7. --]]
  8. local GobblerocksHideout = 5322
  9. function examined(Item, Player)
  10. if not HasQuest(Player, GobblerocksHideout) and not HasCompletedQuest(Player, GobblerocksHideout) then
  11. OfferQuest(nil, Player, GobblerocksHideout)
  12. conversation = CreateConversation()
  13. AddConversationOption(conversation, "Entry One.", "EntryOne")
  14. AddConversationOption(conversation, "Put book away.", "CloseItemConversation")
  15. StartDialogConversation(conversation, 2, Item, Player, "We Gobblerock have found secret place. We steal from Militia, hide in here. Tell in book, good for remember.")
  16. end
  17. end
  18. function EntryOne(Item, Player)
  19. conversation = CreateConversation()
  20. if QuestStepIsComplete(Player, GobblerocksHideout, 3) then
  21. AddConversationOption(conversation, "Entry Two", "EntryTwo")
  22. end
  23. AddConversationOption(conversation, "Put book away.", "CloseItemConversation")
  24. StartDialogConversation(conversation, 2, Item, Player, "Watch the front... the Grunt, Swindler and Shaman do. Weak they, but watch good. Gobblerock like let weak die first.")
  25. end
  26. function EntryTwo(Item, Player)
  27. conversation = CreateConversation()
  28. if GetQuestStep(Player, GobblerocksHideout) == 4 then
  29. SetStepComplete(Player, GobblerocksHideout, 4)
  30. end
  31. if QuestStepIsComplete(Player, GobblerocksHideout, 7) then
  32. AddConversationOption(conversation, "Entry Three", "EntryThree")
  33. end
  34. AddConversationOption(conversation, "Put book away.", "CloseItemConversation")
  35. StartDialogConversation(conversation, 2, Item, Player, "Train the slug, they good pet. We stole many things from Militia today, hide them here. The butchers fight with tricksters who better, but we know haruspex is best. They get ready for raid now.")
  36. end
  37. function EntryThree(Item, Player)
  38. conversation = CreateConversation()
  39. if GetQuestStep(Player, GobblerocksHideout) == 8 then
  40. SetStepComplete(Player, GobblerocksHideout, 8)
  41. end
  42. if QuestStepIsComplete(Player, GobblerocksHideout, 11) then
  43. AddConversationOption(conversation, "Entry Four.", "EntryFour")
  44. end
  45. AddConversationOption(conversation, "Put book away.", "CloseItemConversation")
  46. StartDialogConversation(conversation, 2, Item, Player, "We train hard, brutes getting stronger and prophets getting smarter. Raid, Raid, raid... that what we do. The hooligans are playing card, me play too now.")
  47. end
  48. function EntryFour(Item, Player)
  49. if GetQuestStep(Player, GobblerocksHideout) == 12 then
  50. SetStepComplete(Player, GobblerocksHideout, 12)
  51. end
  52. end