--[[ Script Name : SpawnScripts/QeynosHarbor/Aliindar.lua Script Purpose : Aliindar Script Author : Cynnar Script Date : 2020.04.12 Script Notes : Auto-Generated Conversation from PacketParser Data --]] function spawn(NPC) SetPlayerProximityFunction(NPC, 8, "InRange", "LeaveRange") end function respawn(NPC) spawn(NPC) end function InRange(NPC, Spawn) if MakeRandomInt(1,100) >=66 then local choice = MakeRandomInt(1,2) if choice == 1 then PlayFlavor(NPC, "voiceover/english/broker_aliindar/qey_harbor/031_con_merchant_aliindar_erudite_2_aoi_99d45d79.mp3", "Let me guess -- you've come to pay tribute to Aliindar and request his services. Don't worry, I can make time on my schedule for your purchasing needs.", "point", 2303200858, 2955087046, Spawn, 0) elseif choice == 2 then PlayFlavor(NPC, "voiceover/english/broker_aliindar/qey_harbor/031_con_merchant_aliindar_erudite_2_aoi_1fefa590.mp3", "Hello there! Let's not waste any time shall we? What is it I can get for you?", "beckon", 1746996390, 2674526000, Spawn, 0) end end end function LeaveRange(NPC, Spawn) end function hailed(NPC, Spawn) FaceTarget(NPC, Spawn) local choice = MakeRandomInt(1,3) if choice == 1 then PlayFlavor(NPC, "voiceover/english/broker_aliindar/qey_harbor/031_con_merchant_aliindar_erudite_2_hail_3ff007fa.mp3", "Welcome, friend! The wares of an entire city are at your fingertips. So please make your selection.", "bye", 3892169564, 2246767706, Spawn) elseif choice == 2 then PlayFlavor(NPC, "voiceover/english/broker_aliindar/qey_harbor/031_con_merchant_aliindar_erudite_2_hail_52cd8074.mp3", "The Ironforge Exchange? The Far Seas Trading Company? Insects of industry, my friend, waiting to be crushed beneath my boot heel!", "royalwave", 946110005, 2012982404, Spawn) elseif choice == 3 then PlayFlavor(NPC, "voiceover/english/broker_aliindar/qey_harbor/031_con_merchant_aliindar_erudite_2_hail_6a21669e.mp3", "Yes, I know you seek what I have access to. Then again, who doesn't? So what can I help you acquire?", "flustered", 224844673, 1559511128, Spawn) end end