9
3

Agamennus.lua 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. --[[
  2. Script Name : SpawnScripts/SouthFreeport/Agamennus.lua
  3. Script Purpose : Agamennus
  4. Script Author : Dorbin
  5. Script Date : 2022.03.21
  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. if GetFactionAmount(Spawn, 12) <0 then
  16. local choice = math.random(1,2)
  17. if choice == 1 then
  18. PlayFlavor(NPC, "", "", "shakefist", 0, 0, Spawn)
  19. elseif choice == 2 then
  20. PlayFlavor(NPC, "", "", "heckno", 0, 0, Spawn)
  21. end
  22. else
  23. RandomGreeting(NPC, Spawn)
  24. end
  25. end
  26. function RandomGreeting(NPC, Spawn)
  27. local choice = MakeRandomInt(1,7)
  28. if choice == 1 then
  29. PlayFlavor(NPC, "voiceover/english/broker_algernon/qey_harbor/034_con_merchant_algernon_human_1_hail_dc2ee3d4.mp3", "Well, I can see what sort of goods we have avaliable now. You do have the proper scrollwork for all of this merchandise, correct?", "glare", 2913572299, 447386063, Spawn, 0)
  30. elseif choice == 2 then
  31. PlayFlavor(NPC, "voiceover/english/broker_algernon/qey_harbor/034_con_merchant_algernon_human_1_aoi_4219e09c.mp3", "Yes, yes... what do you want?", "stare", 422380158, 3182215695, Spawn, 0)
  32. elseif choice == 3 then
  33. PlayFlavor(NPC, "voiceover/english/broker_algernon/qey_harbor/034_con_merchant_algernon_human_1_hail_d540b6d6.mp3", "All right here\'s all the goods listed in the city. If you find anything you want, let me know.", "bye", 2901627157, 508942655, Spawn, 0)
  34. elseif choice == 4 then
  35. PlayFlavor(NPC, "voiceover/english/broker_algernon/qey_harbor/034_con_merchant_algernon_human_1_hail_55be2bc8.mp3", "Yes, hail to you as well. Let\'s just skip the pretend friendship part and get down to business shall we?", "nod", 99913618, 1474936299, Spawn, 0)
  36. elseif choice == 5 then
  37. PlayFlavor(NPC, "voiceover/english/broker_algernon/qey_harbor/034_con_merchant_algernon_human_1_aoi_ae8d7d6.mp3", "Hurry up! I\'ve got more important things to do with my time you know... wait a minute, no I don\'t.", "tapfoot", 3058965170, 3035848981, Spawn, 0)
  38. elseif choice == 6 then
  39. PlayFlavor(NPC, "voiceover/english/broker_algernon/qey_harbor/034_con_merchant_algernon_human_1_hail_9e5cc344.mp3", "Alright, all right. I\'ll see what we have on the market now. Just hold your horses and I\'ll be with you in a minute!", "no", 3449764772, 3628353391, Spawn, 0)
  40. elseif choice == 7 then
  41. PlayFlavor(NPC, "voiceover/english/broker_algernon/qey_harbor/034_con_merchant_algernon_human_1_aoi_37c49f80.mp3", "Yes, another customer to waste my time! Just what I was looking forward to!", "cheer", 2215565149, 649773409, Spawn, 0)
  42. end
  43. end