ATwitchingCrabClaw.lua 1.1 KB

12345678910111213141516171819202122232425262728
  1. local QUEST = 385
  2. function examined(Item, Player)
  3. Dialog1(Item,Player)
  4. end
  5. function Dialog1(Item,Player)
  6. conversation = CreateConversation()
  7. if CanReceiveQuest(Player,QUEST) then
  8. AddConversationOption(conversation, "[Try to pry the shiney object from the pincer.]", "Offer")
  9. end
  10. AddConversationOption(conversation, "[Put the twitching claw away.]", "CloseItemConversation")
  11. StartDialogConversation(conversation, 2, Item, Player, "This crab claw twitches slightly. You notice something glint near the closed pincer...")
  12. end
  13. function Offer(Item,Player)
  14. if CanReceiveQuest(Player, QUEST)
  15. then OfferQuest(NPC, Player, QUEST)
  16. end
  17. end
  18. function Dialog2(Item,Player)
  19. conversation = CreateConversation()
  20. AddConversationOption(conversation, "These crabs must die! I will slay them ALL!", "CloseItemConversation")
  21. StartDialogConversation(conversation, 2, Item, Player, "The claw spasms tightly on your finger! You wince at the pinch as you wrestle your hand free. You are seething with anger at this... this CRAB! Your throbbing finger will be avenged...")
  22. PlayFlavor(Player,"","","wince",0,0,Player)
  23. end