Coppershot.lua 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. --[[
  2. Script Name : SpawnScripts/Graystone/Coppershot.lua
  3. Script Purpose : Coppershot <Bartender>
  4. Script Author : John Adams
  5. Script Date : 2008.09.21
  6. Script Notes : Auto-Generated Conversation from PacketParser Data
  7. --]]
  8. local Delivery =5444
  9. function spawn(NPC)
  10. SetPlayerProximityFunction(NPC, 8, "InRange", "LeaveRange")
  11. end
  12. function respawn(NPC)
  13. spawn(NPC)
  14. end
  15. function InRange(NPC, Spawn)
  16. if math.random(1, 100) <= 75 then
  17. choice = math.random(1,2)
  18. FaceTarget(NPC, Spawn)
  19. if choice ==1 then
  20. PlayFlavor(NPC, "", "", "hello", 0, 0)
  21. else
  22. PlayFlavor(NPC, "", "", "nod", 0, 0)
  23. end
  24. end
  25. end
  26. function hailed(NPC, Spawn)
  27. FaceTarget(NPC, Spawn)
  28. conversation = CreateConversation()
  29. if GetQuestStep (Spawn, Delivery) == 1 then
  30. AddConversationOption(conversation, "I've got a delivery of lager for you.", "LagerDelivery")
  31. end
  32. PlayFlavor(NPC, "voiceover/english/bartender_coppershot/qey_village03/bartendercoppershot000.mp3", "", "", 2171336743, 1878294501, Spawn)
  33. AddConversationOption(conversation, "I'm not looking for trouble.", "dlg_13_1")
  34. AddConversationOption(conversation, "This is not my kind of place.")
  35. StartConversation(conversation, NPC, Spawn, "If yer comin' in here to fight an' make trouble, the Graystone Watch will toss you out on your backside!")
  36. end
  37. function LagerDelivery(NPC, Spawn)
  38. FaceTarget(NPC, Spawn)
  39. conversation = CreateConversation()
  40. PlayFlavor(NPC, "voiceover/english/bartender_coppershot/qey_village03/bartendercoppershot001.mp3", "", "thanks", 552811210, 4089856593, Spawn)
  41. AddConversationOption(conversation, "I'll make sure he gets this. Thanks.", "UpdateDelivery")
  42. StartConversation(conversation, NPC, Spawn, "You don't say! Must've been ol' Deeppockets who sent ya'. His family brew is famous here. Please give him this antique stein. Now, don't drop it. He'll be sure to find it interesting.")
  43. end
  44. function UpdateDelivery(NPC, Spawn)
  45. SetStepComplete(Spawn, Delivery, 1)
  46. end
  47. function dlg_13_1(NPC, Spawn)
  48. FaceTarget(NPC, Spawn)
  49. conversation = CreateConversation()
  50. PlayFlavor(NPC, "voiceover/english/bartender_coppershot/qey_village03/bartendercoppershot002.mp3", "", "smile", 3971179899, 2182118596, Spawn)
  51. AddConversationOption(conversation, "Frozen Tundra Tavern? Are you from the northlands?", "dlg_13_2")
  52. AddConversationOption(conversation, "I hear ya.")
  53. StartConversation(conversation, NPC, Spawn, "Welcome to the Frozen Tundra Tavern where the grog flows like the Ocean of Tears.")
  54. end
  55. function dlg_13_2(NPC, Spawn)
  56. FaceTarget(NPC, Spawn)
  57. conversation = CreateConversation()
  58. PlayFlavor(NPC, "voiceover/english/bartender_coppershot/qey_village03/bartendercoppershot003.mp3", "", "", 2445961475, 534113227, Spawn)
  59. AddConversationOption(conversation, "Sounds wise--good marketing.")
  60. StartConversation(conversation, NPC, Spawn, "I can't stand the ice! Give me halls of stone! The barbarians seem to prefer the name and I prefer their coin.")
  61. end