widgetsmallcrate.lua 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. --[[
  2. Script Name : SpawnScripts/VerminSnye/widgetsmallcrate.lua
  3. Script Author : premierio015
  4. Script Date : 2020.05.16 01:05:02
  5. Script Purpose :
  6. :
  7. --]]
  8. local AStrangeDelivery = 531
  9. function spawn(NPC)
  10. end
  11. function respawn(NPC)
  12. spawn(NPC)
  13. end
  14. function casted_on(NPC, Spawn, Message)
  15. if not HasQuest(Spawn, AStrangeDelivery) and not HasCompletedQuest(Spawn, AStrangeDelivery) then
  16. if Message == "Open Crate" then
  17. local con = CreateConversation()
  18. AddConversationOption(con, "Look inside.", "Inside")
  19. AddConversationOption(con, "Leave it alone.")
  20. StartDialogConversation(con, 1, NPC, Spawn, "You find a small crate.")
  21. end
  22. end
  23. function Inside(NPC, Spawn)
  24. OfferQuest(NPC, Spawn, AStrangeDelivery)
  25. local con = CreateConversation()
  26. AddConversationOption(con, "I will destroy them.")
  27. AddConversationOption(con, "exit.")
  28. StartDialogConversation(con, 1, NPC, Spawn, "Inside of the crate you find a slime covered note that reads: ''Here's your stinking ravenous cube! Good luck with that! Hahahahaha!'' Someone actually sent those here? I should do something about it.")
  29. end
  30. end