aniksarwarrior.lua 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. --[[
  2. Script Name : SpawnScripts/QeynosHarbor/aniksarwarrior.lua
  3. Script Purpose : an iksar warrior <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, "", "The sooner you annihilate the opposition on the Battlefield of Ganak, the sooner you will be rewarded.", "", 1689589577, 4560189, Spawn)
  24. else
  25. end
  26. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_3_1038.mp3", "", "", 0, 0, Spawn)
  27. AddConversationOption(conversation, "To crush your enemies and see them driven before you.", "dlg_4_1")
  28. AddConversationOption(conversation, "The open steppe, fleet horse, and the wind in your hair.")
  29. StartConversation(conversation, NPC, Spawn, "Aha, we won again! This is good, but what is best in life?")
  30. if convo==5 then
  31. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_3_1038.mp3", "", "", 0, 0, Spawn)
  32. AddConversationOption(conversation, "To crush your enemies and see them driven before you.", "dlg_5_1")
  33. AddConversationOption(conversation, "The open steppe, fleet horse, and the wind in your hair.")
  34. StartConversation(conversation, NPC, Spawn, "Aha, we won again! This is good, but what is best in life?")
  35. end
  36. if convo==6 then
  37. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_1_1038.mp3", "", "", 0, 0, Spawn)
  38. AddConversationOption(conversation, "To crush your enemies and see them driven before you.", "dlg_6_1")
  39. AddConversationOption(conversation, "The open steppe, fleet horse, and the wind in your hair.")
  40. StartConversation(conversation, NPC, Spawn, "Aha, we won again! This is good, but what is best in life?")
  41. end
  42. if convo==7 then
  43. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_1_1038.mp3", "", "", 0, 0, Spawn)
  44. AddConversationOption(conversation, "To crush your enemies and see them driven before you.", "dlg_7_1")
  45. AddConversationOption(conversation, "The open steppe, fleet horse, and the wind in your hair.")
  46. StartConversation(conversation, NPC, Spawn, "Aha, we won again! This is good, but what is best in life?")
  47. end
  48. end
  49. --[[ raw_conversations
  50. PlayFlavor(NPC, "", "The sooner you annihilate the opposition on the Battlefield of Ganak, the sooner you will be rewarded.", "", 1689589577, 4560189, Spawn)
  51. --]]