Widgetorcdocumentbox.lua 1011 B

123456789101112131415161718192021222324252627282930313233
  1. --[[
  2. Script Name : SpawnScripts/Ruins/Widgetorcdocumentbox.lua
  3. Script Author : jakejp
  4. Script Date : 2018.12.29 07:12:39
  5. Script Purpose :
  6. :
  7. --]]
  8. local IdentifyingtheLonetuskAlly = 394
  9. function spawn(NPC)
  10. SetRequiredQuest(NPC, IdentifyingtheLonetuskAlly, 3)
  11. end
  12. function hailed(NPC, Spawn)
  13. FaceTarget(NPC, Spawn)
  14. end
  15. function respawn(NPC)
  16. end
  17. function casted_on(Target, Caster, SpellName)
  18. if SpellName == "Break open the strongbox" then
  19. if GetQuestStep(Caster, IdentifyingtheLonetuskAlly, 3) then
  20. SetStepComplete(Caster, IdentifyingtheLonetuskAlly, 3)
  21. SendMessage(Caster, "You search the strongbox and find a parchment with orcish writing. You place it in your inventory.")
  22. SendPopUpMessage(Caster, "You search the strongbox and find a parchment with orcish writing. You place it in your inventory.", 255, 255, 255)
  23. SummonItem(Caster, 3803, 1)
  24. end
  25. end
  26. end