Algernon.lua 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. --[[
  2. Script Name : SpawnScripts/NorthQeynos/Algernon.lua
  3. Script Purpose : Algernon <Broker>
  4. Script Author : Dorbin
  5. Script Date : 2022.01.11
  6. Script Notes : Auto-Generated Conversation from PacketParser Data
  7. --]]
  8. function spawn(NPC)
  9. SetPlayerProximityFunction(NPC, 10, "InRange", "LeaveRange")
  10. end
  11. function respawn(NPC)
  12. spawn(NPC)
  13. end
  14. function InRange(NPC, Spawn)
  15. end
  16. function LeaveRange(NPC, Spawn)
  17. end
  18. function casted_on(NPC, Spawn, SpellName)
  19. if SpellName == "Find Items" then
  20. hailed(NPC,Spawn)
  21. end
  22. end
  23. function hailed(NPC, Spawn)
  24. FaceTarget(NPC, Spawn)
  25. local choice = math.random(1,7)
  26. if choice == 1 then
  27. 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)
  28. elseif choice == 2 then
  29. 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)
  30. elseif choice == 3 then
  31. 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)
  32. elseif choice == 4 then
  33. PlayFlavor(NPC, "voiceover/english/broker_algernon/qey_harbor/034_con_merchant_algernon_human_1_hail_ae2c80ff.mp3", "Looking for anything in particular today? Well, let's just see what we have for sale in the city then, shall we?", "scheme", 1535757143, 2792554406, Spawn)
  34. elseif choice == 5 then
  35. 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 available now. You do have the proper scrollwork for all of this merchandise, correct?", "glare", 2913572299, 447386063, Spawn)
  36. elseif choice == 6 then
  37. 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!", "shrug", 2215565149, 649773409, Spawn)
  38. elseif choice == 7 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)
  40. else
  41. end
  42. end