9
3

apunishedmagiapprentice.lua 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. --[[
  2. Script Name : SpawnScripts/GreaterFaydark/apunishedmagiapprentice.lua
  3. Script Purpose : a punished magi apprentice
  4. Script Author : John Adams
  5. Script Date : 2009.03.01
  6. Script Notes : Auto-Generated Conversation from PacketParser Data
  7. --]]
  8. function spawn(NPC)
  9. SetPlayerProximityFunction(NPC, 10, "InRange", "LeaveRange")
  10. end
  11. function respawn(NPC)
  12. spawn(NPC)
  13. end
  14. function InRange(NPC, Spawn)
  15. end
  16. function LeaveRange(NPC, Spawn)
  17. end
  18. function hailed(NPC, Spawn)
  19. FaceTarget(NPC, Spawn)
  20. conversation = CreateConversation()
  21. PlayFlavor(NPC, "a_punished_magi_apprentice/_exp03/exp03_rgn_greater_faydark/punished_orc_magi/punished_orc_magi001.mp3", "", "", 1609553154, 632780580, Spawn)
  22. AddConversationOption(conversation, "Why are you working here with the slaves?", "dlg_2_1")
  23. AddConversationOption(conversation, "Nothing, I'm leaving.")
  24. StartConversation(conversation, NPC, Spawn, "Whatta you want? ")
  25. end
  26. function dlg_2_1(NPC, Spawn)
  27. FaceTarget(NPC, Spawn)
  28. conversation = CreateConversation()
  29. PlayFlavor(NPC, "a_punished_magi_apprentice/_exp03/exp03_rgn_greater_faydark/punished_orc_magi/punished_orc_magi002.mp3", "", "", 2021609601, 1807140680, Spawn)
  30. AddConversationOption(conversation, "Good luck with the hard labor.", "dlg_2_2")
  31. StartConversation(conversation, NPC, Spawn, "I'm being punished by that old inky hag. So what if I scorched her precious robe! She's a horrible teacher!")
  32. end