9
3

widgetsmallbarrel.lua 973 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. --[[
  2. Script Name : SpawnScripts/ThunderingSteppes/widgetsmallbarrel.lua
  3. Script Author : Jabantiz
  4. Script Date : 2015.05.09 07:05:53
  5. Script Purpose :
  6. :
  7. --]]
  8. local HuntingTheHuntresses = 118
  9. function spawn(NPC)
  10. SetRequiredQuest(NPC, HuntingTheHuntresses, 1, 0, 1, 258)
  11. end
  12. function respawn(NPC)
  13. spawn(NPC)
  14. end
  15. function casted_on(NPC, Spawn, Message)
  16. if not HasQuest(Spawn, HuntingTheHuntresses) and not HasCompletedQuest(Spawn, HuntingTheHuntresses) then
  17. if Message == "Examine Barrel" then
  18. local con = CreateConversation()
  19. AddConversationOption(con, "Look in barrel.", "LookInBarrel")
  20. AddConversationOption(con, "Leave it alone.", "Close")
  21. StartDialogConversation(con, 1, NPC, Spawn, "You find a small barrel with its top slightly ajar.")
  22. end
  23. end
  24. end
  25. function LookInBarrel(NPC, Spawn)
  26. OfferQuest(NPC, Spawn, HuntingTheHuntresses)
  27. end
  28. function Close(NPC, Spawn)
  29. CloseConversation(NPC, Spawn)
  30. end