Kresp.lua 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. --[[
  2. Script Name : SpawnScripts/GreaterFaydark/Kresp.lua
  3. Script Purpose : Kresp
  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, "kresp/_exp03/exp03_rgn_greater_faydark/kresp/kresp_001.mp3", "", "", 3832374147, 290832441, Spawn)
  22. AddConversationOption(conversation, "Sure I will help you.", "dlg_18_1")
  23. AddConversationOption(conversation, "Sounds gross.")
  24. StartConversation(conversation, NPC, Spawn, "I am Kresp the collector of things, many things, but not normal things people collect. I collect ears. Yes ears, they sell well if you know who to sell them to. So do you feel like doing some business with Kresp?")
  25. end
  26. function dlg_18_1(NPC, Spawn)
  27. FaceTarget(NPC, Spawn)
  28. conversation = CreateConversation()
  29. PlayFlavor(NPC, "kresp/_exp03/exp03_rgn_greater_faydark/kresp/kresp_002.mp3", "", "", 4281501181, 3879995677, Spawn)
  30. AddConversationOption(conversation, "No problem.", "dlg_18_2")
  31. StartConversation(conversation, NPC, Spawn, "Bring Kresp twenty ears of the orcs they are slimy sometimes so make sure to not get slime off of ear.")
  32. end