rotstuffscarecrow.lua 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. --[[
  2. Script Name : SpawnScripts/Antonica/rotstuffscarecrow.lua
  3. Script Author : Dorbin
  4. Script Date : 2023.05.21 01:05:37
  5. Script Purpose :
  6. :
  7. --]]
  8. local Quest = 5841
  9. function casted_on(NPC, Spawn, SpellName)
  10. if SpellName == 'inspect' then
  11. local con = CreateConversation()
  12. if IsInCombat(Spawn)== true then
  13. SendMessage(Spawn,"You are in combat!","red")
  14. else
  15. if GetQuestStep(Spawn,Quest)==4 or GetQuestStep(Spawn,Quest)==5 then
  16. Dialog1(NPC,Spawn)
  17. else
  18. AddConversationOption(con, "[Leave the scarecrow alone...]")
  19. StartDialogConversation(con, 1, NPC, Spawn, "This scarecrow is in the process of being animated through arcane means. Once fully animated the gnolls will use it to sow discord in Antonica.")
  20. end
  21. end
  22. end
  23. end
  24. function Dialog1(NPC,Spawn)
  25. local con = CreateConversation()
  26. if not QuestStepIsComplete(Spawn,Quest,5) then
  27. AddConversationOption(con, "[Look for something to dispell enchantments.]", "Dialog2")
  28. end
  29. AddConversationOption(con, "[Leave the scarecrow alone...]")
  30. StartDialogConversation(con, 1, NPC, Spawn, "This scarecrow is in the process of being animated through arcane means. Once fully animated the gnolls will use it to sow discord in Antonica.")
  31. end
  32. function Dialog2(NPC,Spawn)
  33. local con = CreateConversation()
  34. AddConversationOption(con, "[Leave the scarecrow alone...]")
  35. StartDialogConversation(con, 1, NPC, Spawn, "Other than some slight twitching of the scarecrow's limbs, you don't notice anything that can help.")
  36. end