FluwkowirHaggleton.lua 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. --[[
  2. Script Name : SpawnScripts/Oakmyst/FluwkowirHaggleton.lua
  3. Script Purpose : Fluwkowir Haggleton
  4. Script Author : Scatman
  5. Script Date : 2009.05.03
  6. Script Notes : Auto-Generated Conversation from PacketParser Data
  7. --]]
  8. local QUEST_FROM_JORN = 18
  9. function spawn(NPC)
  10. SetPlayerProximityFunction(NPC, 10, "InRange")
  11. end
  12. function respawn(NPC)
  13. spawn(NPC)
  14. end
  15. function InRange(NPC, Spawn)
  16. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/fluwkowir_haggleton/qey_adv01_oakmyst_revamp/qst_fluwkowir_wrongway_52d5c902.mp3", "Ooops, I think I was going the other way.", "", 2064229810, 2868860860, Spawn)
  17. end
  18. function hailed(NPC, Spawn)
  19. FaceTarget(NPC, Spawn)
  20. conversation = CreateConversation()
  21. if HasQuest(Spawn, QUEST_FROM_JORN) and GetQuestStep(Spawn, QUEST_FROM_JORN) == 1 then
  22. JustLeaveMeAlone(NPC, Spawn, conversation)
  23. else
  24. end
  25. end
  26. function JustLeaveMeAlone(NPC, Spawn, conversation)
  27. AddConversationOption(conversation, "I need to talk to you.", "WhatAbout")
  28. StartConversation(conversation, NPC, Spawn, "Just leave me alone!")
  29. end
  30. function WhatAbout(NPC, Spawn)
  31. FaceTarget(NPC, Spawn)
  32. conversation = CreateConversation()
  33. AddConversationOption(conversation, "It's about Jorn Sorefoot, the barbarian you were playing cards with.", "MakeAttackable")
  34. StartConversation(conversation, NPC, Spawn, "Bah! What about? I'm very busy, I don't need to waste my time talking to the likes of you.")
  35. end
  36. function MakeAttackable(NPC, Spawn)
  37. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/fluwkowir_haggleton/qey_adv01_oakmyst_revamp/qst_fluwkowir_attack_104162fd.mp3", "Oh no you don't! I won't go down!", "", 260519136, 2014641631, Spawn)
  38. SpawnSet(NPC, "attackable", 1)
  39. SpawnSet(NPC, "show_level", 1)
  40. AddHate(Spawn, NPC, 100)
  41. end
  42. function death(NPC, Spawn)
  43. if HasQuest(Spawn, QUEST_FROM_JORN) then
  44. -- Flukowir's Satchel
  45. SummonItem(Player, 6389)
  46. end
  47. end