9
3

HarnenTaptha.lua 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. --[[
  2. Script Name : SpawnScripts/Darklight/HarnenTaptha.lua
  3. Script Purpose : Harnen Taptha
  4. Script Author : John Adams
  5. Script Date : 2009.01.31
  6. Script Notes : Auto-Generated Conversation from PacketParser Data
  7. --]]
  8. function spawn(NPC)
  9. end
  10. function respawn(NPC)
  11. spawn(NPC)
  12. end
  13. function hailed(NPC, Spawn)
  14. FaceTarget(NPC, Spawn)
  15. conversation = CreateConversation()
  16. if HasQuest(Spawn, 99) and GetQuestStep(Spawn, 99) == 1 then
  17. WhatDoYouWant(NPC, Spawn, conversation)
  18. else
  19. Say(NPC, "Go away, go away, go away, go away!", Spawn)
  20. end
  21. end
  22. function WhatDoYouWant(NPC, Spawn, conversation)
  23. PlayFlavor(NPC, "voiceover/english/neriak/harnen_taptha/darklight_wood/tvatar_post/laexyra/harnen/harnen000.mp3", "", "", 2511697998, 3854280665, Spawn)
  24. AddConversationOption(conversation, "I have a message for you.", "dlg_2_1")
  25. StartConversation(conversation, NPC, Spawn, "What? What is it?! What do you want?!")
  26. end
  27. function dlg_2_1(NPC, Spawn)
  28. FaceTarget(NPC, Spawn)
  29. conversation = CreateConversation()
  30. PlayFlavor(NPC, "voiceover/english/neriak/harnen_taptha/darklight_wood/tvatar_post/laexyra/harnen/harnen001.mp3", "", "", 1833587639, 1382963065, Spawn)
  31. AddConversationOption(conversation, "Laexyra Y'Barriath wanted me to remind you that she was right.", "dlg_2_2")
  32. StartConversation(conversation, NPC, Spawn, "Oh? Maybe this is about those mercenaries that failed to show.")
  33. end
  34. function dlg_2_2(NPC, Spawn)
  35. SetStepComplete(Spawn, 99, 1)
  36. SpawnSet(NPC, "attackable", 1)
  37. SpawnSet(NPC, "show_level", 1)
  38. FaceTarget(NPC, Spawn)
  39. conversation = CreateConversation()
  40. AddConversationOption(conversation, "Harnen...")
  41. StartConversation(conversation, NPC, Spawn, "...")
  42. end
  43. function healthchanged(NPC, Spawn)
  44. current_hp = GetHP(NPC)
  45. max_hp = GetMaxHP(NPC)
  46. if (current_hp <= (max_hp *2)) then
  47. choice = math.random(1, 2)
  48. if choice == 1 then
  49. Say(NPC, "For Thule's sake!", Spawn)
  50. else
  51. PlayFlavor(NPC, "voiceover/english/ghost_human_base_1/ft/ghost/ghost_human_base_1_1_halfhealth_gm_8bdfff2d.mp3", "I won't miss again!", "", 1970756563, 618808961, Spawn)
  52. end
  53. end
  54. end