bupipas_new_amplificator.lua 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. --[[
  2. Script Name : Quests/CastleviewHamlet/bupipas_new_amplificator.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.01.25 06:01:55
  5. Script Purpose :
  6. Zone : CastleviewHamlet
  7. Quest Giver: Bupipa Guryup
  8. Preceded by: None
  9. Followed by:
  10. --]]
  11. function Init(Quest)
  12. AddQuestStepChat(Quest, 1, "I need to exchange the bill of sale for the order.", 1, "I need to exchange this bill of sale for Bupipa's tinker order at Bizrinn Clamorclang's shop in the Baubbleshire.", 75, 2380041)
  13. AddQuestStepCompleteAction(Quest, 1, "Pickup")
  14. UpdateQuestZone(Quest, "Baubbleshire")
  15. end
  16. function Accepted(Quest, QuestGiver, Player)
  17. FaceTarget(QuestGiver, Player)
  18. conversation = CreateConversation()
  19. PlayFlavor(QuestGiver, "","","no",0,0,Player)
  20. AddConversationOption(conversation, "I hope it isn`t too heavy.")
  21. StartConversation(conversation, QuestGiver, Player, "Many thanks unto thee. Here is the bill of sale for the order. Just take this to Bizrinn Clamorclang in the Baubbleshire and he'll give thou the order. I cannot wait for it to get here!")
  22. end
  23. function Declined(Quest, QuestGiver, Player)
  24. end
  25. function Pickup(Quest, QuestGiver, Player)
  26. UpdateQuestStepDescription(Quest, 1, "I gave the bill of sale to Bizrinn")
  27. UpdateQuestTaskGroupDescription(Quest, 1, "I gave Bizrinn Clamorclang the bill of sale in exchange for the Sonance Volume Amplificator.")
  28. UpdateQuestZone(Quest, "Castleview Hamlet")
  29. AddQuestStepChat(Quest, 2, "I need to return to Bupipa Guryup.", 1, "Bupipa Guryup is expecting this device. I should take it to her.", 3150, 2360008)
  30. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  31. end
  32. function QuestComplete(Quest, QuestGiver, Player)
  33. UpdateQuestStepDescription(Quest, 2, "I've returned to Bupipa.")
  34. UpdateQuestTaskGroupDescription(Quest, 2, "I gave Bupipa the Sonance Volume Amplificator.")
  35. UpdateQuestDescription(Quest, "I delivered the new Sonance Volume Amplificator to Bupipa and she paid me for the delivery. I hope the village of Castleview can forgive me if she ever gets it set up...")
  36. GiveQuestReward(Quest, Player)
  37. end
  38. function Reload(Quest, QuestGiver, Player, Step)
  39. if Step == 1 then
  40. Pickup(Quest, QuestGiver, Player)
  41. elseif Step == 2 then
  42. QuestComplete(Quest, QuestGiver, Player)
  43. end
  44. end