Tanaira.lua 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. --[[
  2. Script Name : SpawnScripts/Starcrest/Tanaira.lua
  3. Script Purpose : Tanaira <Provisioner>
  4. Script Author : John Adams
  5. Script Date : 2008.09.23
  6. Script Notes : Auto-Generated Conversation from PacketParser Data
  7. --]]
  8. local FAR_SEAS_DR_PBG0162_QUEST_ID = 515
  9. local FAR_SEAS_DR_PBG0295_QUEST_ID = 516
  10. function hailed(NPC, Spawn)
  11. FaceTarget(NPC, Spawn)
  12. choice = math.random(1,4)
  13. if choice == 1 then
  14. PlayFlavor(NPC, "", "Oops! Sorry! I thought you were someone else. Please, be on your way now.", "", 1689589577, 4560189, Spawn)
  15. elseif choice == 2 then
  16. PlayFlavor(NPC, "voiceover/english/human_eco_good_1/ft/service/baker/human_baker_service_good_1_hail_gf_3d1ca473.mp3", "Tell me, do you prefer Halfling or Elven cuisine? I myself have a hard time deciding between the two.", "confused", 3151047462, 2904038035, Spawn)
  17. elseif choice == 3 then
  18. PlayFlavor(NPC, "voiceover/english/human_eco_good_1/ft/service/baker/human_baker_service_good_1_hail_gf_cca9cdef.mp3", "Welcome friend, welcome. I hope you brought your appetite with you!", "wink", 488782681, 166399094, Spawn)
  19. elseif choice == 4 then
  20. PlayFlavor(NPC, "voiceover/english/human_eco_good_1/ft/service/baker/human_baker_service_good_1_hail_gf_9db280de.mp3", "I love the smell of fresh bread in the oven!", "sigh", 1068415951, 2036199467, Spawn)
  21. end
  22. local conversation = CreateConversation()
  23. if HasQuest(Spawn, FAR_SEAS_DR_PBG0162_QUEST_ID) and GetQuestStep(Spawn, FAR_SEAS_DR_PBG0162_QUEST_ID) == 2 or HasQuest(Spawn, FAR_SEAS_DR_PBG0295_QUEST_ID) and GetQuestStep(Spawn, FAR_SEAS_DR_PBG0295_QUEST_ID) == 3 then
  24. AddConversationOption(conversation, "I have Far Seas Trading Requisition order PBG0295. ", "Option1")
  25. end
  26. AddConversationOption(conversation, "I am just browsing. I'll let you get back to daydreaming. ")
  27. StartConversation(conversation, NPC, Spawn, "Oh, hello! Sorry, I didn't see you. My eyes tend to wander towards Santis over there.")
  28. end
  29. function Option1(NPC, Spawn)
  30. FaceTarget(NPC, Spawn)
  31. local conversation = CreateConversation()
  32. if HasQuest(Spawn, FAR_SEAS_DR_PBG0162_QUEST_ID) and GetQuestStep(Spawn, FAR_SEAS_DR_PBG0162_QUEST_ID) == 2 then
  33. SetStepComplete(Spawn, FAR_SEAS_DR_PBG0162_QUEST_ID, 2)
  34. end
  35. if HasQuest(Spawn, FAR_SEAS_DR_PBG0295_QUEST_ID) and GetQuestStep(Spawn, FAR_SEAS_DR_PBG0295_QUEST_ID) == 3
  36. SetStepComplete(Spawn, FAR_SEAS_DR_PBG0295_QUEST_ID, 3)
  37. end
  38. AddConversationOption(conversation, "Just doing my job. ")
  39. StartConversation(conversation, NPC, Spawn, "Oh! Santis has occupied so much of my thoughts that I forgot about this requisition I placed weeks ago. I may have forgotten but I am glad you did not.")
  40. end