9
3

ApprenticeBoggi.lua 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. --[[
  2. Script Name : SpawnScripts/Castleview/ApprenticeBoggi.lua
  3. Script Purpose : Apprentice Boggi
  4. Script Author : Scatman
  5. Script Date : 2009.10.03
  6. Script Notes :
  7. --]]
  8. dofile("SpawnScripts/Generic/GenericEcologyVoiceOvers.lua")
  9. local Tool = 5457
  10. function spawn(NPC)
  11. end
  12. function respawn(NPC)
  13. spawn(NPC)
  14. end
  15. function hailed(NPC, Spawn)
  16. if GetFactionAmount(Spawn,11) <0 then
  17. FactionChecking(NPC, Spawn, faction)
  18. else
  19. FaceTarget(NPC, Spawn)
  20. conversation = CreateConversation()
  21. if GetQuestStep(Spawn, Tool) ==1 then
  22. AddConversationOption(conversation, "I'm here regarding Froptub's new etching tool. Do you have it?", "ToolPickup")
  23. end
  24. PlayFlavor(NPC, "voiceover/english/apprentice_boggi/qey_village04/apprenticeboggi.mp3", "", "", 1068299089, 2686342617)
  25. AddConversationOption(conversation, "I think I'll let you get back to resting your \"injury.\" Good bye.")
  26. StartConversation(conversation, NPC, Spawn, "Oh! Hello! I wasn't... um... napping. I was just resting my injured leg. That's it!")
  27. end
  28. end
  29. function ToolPickup(NPC, Spawn)
  30. FaceTarget(NPC, Spawn)
  31. conversation = CreateConversation()
  32. PlayFlavor(NPC, "voiceover/english/apprentice_boggi/qey_village04/apprenticeboggi000.mp3", "", "sit_idle", 2830477410, 146534045)
  33. AddConversationOption(conversation, "Sure, give it to me.","Update")
  34. AddConversationOption(conversation, "You must be joking. I'm not doing your work for you.")
  35. StartConversation(conversation, NPC, Spawn, "Oh! Yes, the etching tool. I have it right here. Could you deliever it for me? I don't think my leg could make it up the stairs to his smithy.")
  36. end
  37. function Update(NPC, Spawn)
  38. SetStepComplete(Spawn, Tool, 1)
  39. end