StarcrestCommunecitizenshiptask.lua 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. --[[
  2. Script Name : ItemScripts/StarcrestCommunecitizenshiptask.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.09.01 04:09:38
  5. Script Purpose :
  6. :
  7. --]]
  8. function examined(Item, Player)
  9. conversation = CreateConversation()
  10. AddConversationOption(conversation, "[read more]","Dialog2")
  11. StartDialogConversation(conversation, 2, Item, Player, "By order of the Circle of Five, all residents wishing to become a full member of the city must complete a trial to prove their worth.")
  12. end
  13. function Dialog2(Item, Player)
  14. conversation = CreateConversation()
  15. AddConversationOption(conversation, "[read about where tokens are found]","Dialog3")
  16. StartDialogConversation(conversation, 2, Item, Player, "Tokens are scattered throughout the surrounding area. You must find five of these tokens to earn the right to speak to a city official.")
  17. end
  18. function Dialog3(Item, Player)
  19. conversation = CreateConversation()
  20. AddConversationOption(conversation, "[read more]","Dialog4")
  21. StartDialogConversation(conversation, 2, Item, Player, "Each village has been assigned an area in which to hunt for their tokens. Only tokens from within that area will be accepted.")
  22. end
  23. function Dialog4(Item, Player)
  24. conversation = CreateConversation()
  25. if not HasQuest(Player,5722) and not HasCompletedQuest(Player,5722)then
  26. AddConversationOption(conversation, "[write this in your quest journal]","StartQuest")
  27. end
  28. if HasQuest(Player,5722) or HasCompletedQuest(Player,5722) then
  29. AddConversationOption(conversation, "[continue]","StartQuest")
  30. end
  31. AddConversationOption(conversation, "[put the note away]","CloseItemConversation")
  32. StartDialogConversation(conversation, 2, Item, Player, "Starcrest Commune residents must gather five tokens from the Down Below.")
  33. end
  34. function StartQuest(Item,Player)
  35. if not HasQuest(Player,5722) and not HasCompletedQuest(Player,5722)then
  36. OfferQuest(Item,Player,5722)
  37. end
  38. conversation = CreateConversation()
  39. AddConversationOption(conversation, "[put the note]","CloseItemConversation")
  40. StartDialogConversation(conversation, 2, Item, Player, "After you complete your task, report to Marshal Glorfel using the citizenship sign.")
  41. end