9
3

trainingdummyhanging.lua 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. --[[
  2. Script Name : SpawnScripts/Antonica/trainingdummyhanging.lua
  3. Script Author : Premierio015
  4. Script Date : 2022.05.09 04:05:30
  5. Script Purpose :
  6. :
  7. --]]
  8. local AFrontiersladysTask = 5528
  9. function spawn(NPC)
  10. end
  11. function respawn(NPC)
  12. spawn(NPC)
  13. end
  14. function casted_on(NPC, Spawn, Message)
  15. if Message == "inspect" then
  16. local con = CreateConversation()
  17. if GetQuestStep(Spawn, AFrontiersladysTask) == 3 then
  18. AddConversationOption(con, "Place Dancer's arrow on the target.", "dlg1")
  19. end
  20. AddConversationOption(con, "Stop inspecting the target")
  21. StartDialogConversation(con, 1, NPC, Spawn, "The target looks worn. A few pieces of arrow still remain, some more recent than others. There seems to be a small symbol of a green arrow over a golden pine tree. ")
  22. end
  23. end
  24. function dlg1(NPC, Spawn)
  25. SetStepComplete(Spawn, AFrontiersladysTask, 3)
  26. local con = CreateConversation()
  27. AddConversationOption(con, "Stop inspecting the target")
  28. StartDialogConversation(con, 1, NPC, Spawn, "You ram the special arrow deep into the target.")
  29. end