asmoothlockofhair.lua 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. --[[
  2. Script Name : ItemScripts/asmoothlockofhair.lua
  3. Script Author : Dorbin
  4. Script Date : 2023.12.13 07:12:58
  5. Script Purpose :
  6. :
  7. --]]
  8. local Quest = 5937
  9. function examined(Item, Player)
  10. if CanReceiveQuest(Player,Quest) then
  11. Dialog1(Item,Player)
  12. end
  13. end
  14. function Dialog1(Item,Player)
  15. conversation = CreateConversation()
  16. if CanReceiveQuest(Player,RewardForAMissingMusicBox) then
  17. AddConversationOption(conversation, "[Inspect the hair]", "Dialog2")
  18. end
  19. AddConversationOption(conversation, "[Put the lock of hair away]", "CloseItemConversation")
  20. StartDialogConversation(conversation, 2, Item, Player, "The hair feels silky smooth in your fingers. An odd sight considering the Giantslayers were holding on to it.")
  21. end
  22. function Dialog2(Item,Player)
  23. conversation = CreateConversation()
  24. if CanReceiveQuest(Player,Quest) then
  25. AddConversationOption(conversation, "Oh, this is going to be fun!", "Offer")
  26. end
  27. AddConversationOption(conversation, "[Put the hair away]", "CloseItemConversation")
  28. StartDialogConversation(conversation, 2, Item, Player, "The smooth and silky hair has the faint smell of... fruit? No one around the Sprawl would have hair smelling THIS good. This must be from ... Qeynosians. They are up to something, and perhaps I can put them in their place!")
  29. end
  30. function Offer(Item,Player)
  31. if CanReceiveQuest(Player,Quest) then
  32. OfferQuest(nil,Player,Quest)
  33. end
  34. CloseItemConversation(Item,Player)
  35. end