widgetbadbook.lua 778 B

12345678910111213141516171819202122232425
  1. --[[
  2. Script Name : SpawnScripts/Nektropos1/widgetbadbook.lua
  3. Script Author : smash
  4. Script Date : 2018.06.06 02:06:50
  5. Script Purpose :
  6. :
  7. --]]
  8. local FAIR_WARNINGS_IGNORED = 262
  9. function spawn(NPC)
  10. SetRequiredQuest(NPC, FAIR_WARNINGS_IGNORED, 1, 0, 1, 2)
  11. end
  12. function casted_on(NPC, Player, SpellName)
  13. local conversation = CreateConversation()
  14. AddConversationOption(conversation, "Open book", "OfferFairWarnings")
  15. AddConversationOption(conversation, "Don't open", "CloseConversation")
  16. StartDialogConversation(conversation, 1, NPC, Player, "You see a large book on the table.")
  17. end
  18. function OfferFairWarnings(NPC, Player)
  19. CloseConversation(NPC, Player)
  20. OfferQuest(nil, Player, FAIR_WARNINGS_IGNORED)
  21. end