Griz.lua 1.1 KB

1234567891011121314151617181920212223242526272829
  1. --[[
  2. Script Name : ItemScripts/Griz.lua
  3. Script Purpose : the item Griz
  4. Script Author : theFoof
  5. Script Date : 2013.8.26
  6. Script Notes :
  7. --]]
  8. local SometimesKnut = 84
  9. function GrizChat1_1(Item, Spawn)
  10. conversation = CreateConversation()
  11. AddConversationOption(conversation, "I will never doubt him again.")
  12. StartDialogConversation(conversation, 4, Item, Spawn, "Yes. Griz real. Knut's friend.")
  13. end
  14. function GrizChat2_1(Item, Spawn)
  15. if GetQuestStep(Spawn, SometimesKnut) == 2 then
  16. SetStepComplete(Spawn, SometimesKnut, 2)
  17. AddSpawnAccess(GetSpawnByLocationID(Zone, 579551), Spawn)
  18. end
  19. if GetQuestStep(Spawn, SometimesKnut) == 2 or GetQuestStep(Spawn, SometimesKnut) == 3 then
  20. if HasItemEquipped(Spawn, 157116) then
  21. conversation = CreateConversation()
  22. AddConversationOption(conversation, "I don't think it has guts.")
  23. AddConversationOption(conversation, "All right, I'm doing it!")
  24. StartDialogConversation(conversation, 4, Item, Spawn, "Grrrrrrrrrrr. I said strike! Claw it to bits! Tear it open, and spell its guts upon the ice!")
  25. end
  26. end
  27. end