aniksarobserver.lua 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. --[[
  2. Script Name : SpawnScripts/QeynosHarbor/aniksarobserver.lua
  3. Script Purpose : an iksar observer <Battlefield of Ganak>
  4. Script Author : Cynnar
  5. Script Date : 2020.04.12
  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. local choice = math.random(1,1)
  22. if choice == 1 then
  23. PlayFlavor(NPC, "", "Make your way to the Battlefield of Ganak, and show the enemy no mercy!", "", 1689589577, 4560189, Spawn)
  24. else
  25. end
  26. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_3_1041.mp3", "", "", 0, 0, Spawn)
  27. AddConversationOption(conversation, "Tell me more.", "dlg_8_1")
  28. AddConversationOption(conversation, "I do not have time for games either. Good day.")
  29. StartConversation(conversation, NPC, Spawn, "I have no time for games. But... perhaps you do, if you catch my meaning.")
  30. if convo==9 then
  31. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_1_1041.mp3", "", "", 0, 0, Spawn)
  32. AddConversationOption(conversation, "Tell me more.", "dlg_9_1")
  33. AddConversationOption(conversation, "I do not have time for games either. Good day.")
  34. StartConversation(conversation, NPC, Spawn, "I have no time for games. But... perhaps you do, if you catch my meaning.")
  35. end
  36. if convo==10 then
  37. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_3_1041.mp3", "", "", 0, 0, Spawn)
  38. AddConversationOption(conversation, "Tell me more.", "dlg_10_1")
  39. AddConversationOption(conversation, "I do not have time for games either. Good day.")
  40. StartConversation(conversation, NPC, Spawn, "I have no time for games. But... perhaps you do, if you catch my meaning.")
  41. end
  42. if convo==11 then
  43. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_1_1041.mp3", "", "", 0, 0, Spawn)
  44. AddConversationOption(conversation, "Tell me more.", "dlg_11_1")
  45. AddConversationOption(conversation, "I do not have time for games either. Good day.")
  46. StartConversation(conversation, NPC, Spawn, "I have no time for games. But... perhaps you do, if you catch my meaning.")
  47. end
  48. end
  49. --[[ raw_conversations
  50. PlayFlavor(NPC, "", "Make your way to the Battlefield of Ganak, and show the enemy no mercy!", "", 1689589577, 4560189, Spawn)
  51. --]]