PThek.lua 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. --[[
  2. Script Name : SpawnScripts/LongshadowAlley/PThek.lua
  3. Script Purpose : P`Thek
  4. Script Author : torsten
  5. Script Date : 2022.07.20
  6. Script Notes : Auto-Generated Conversation from PacketParser Data
  7. --]]
  8. require "SpawnScripts/Generic/DialogModule"
  9. function spawn(NPC)
  10. SetInfoStructString(NPC, "action_state", "ponder")
  11. end
  12. function respawn(NPC)
  13. spawn(NPC)
  14. end
  15. function hailed(NPC, Spawn)
  16. FaceTarget(NPC, Spawn)
  17. if GetFactionAmount(Spawn,12) >0 then
  18. Dialog1(NPC, Spawn)
  19. else
  20. PlayFlavor(NPC, "voiceover/english/highelf_eco_good_1/ft/highelf/highelf_eco_good_1_notcitizen_gf_6da83eeb.mp3", "I'll defend myself if it comes to that, savage.", "", 3357669916, 1930978996, Spawn)
  21. end
  22. end
  23. function Dialog1(NPC, Spawn)
  24. local choice = MakeRandomInt(1,2)
  25. if choice == 1 then
  26. PlayFlavor(NPC, "voiceover/english/darkelf_eco_evil_1/ft/service/scribe/darkelf_scribe_service_evil_1_hail_gf_8de85b9c.mp3", "Perhaps I could interest you in our necromantic line of spells? ", "agree", 3172095768, 4205908579, Spawn, 0)
  27. elseif choice == 2 then
  28. PlayFlavor(NPC, "voiceover/english/darkelf_eco_evil_1/ft/service/scribe/darkelf_scribe_service_evil_1_hail_gf_250b4da0.mp3", "So are you planning to master your art at the academy? We keep all of the required supplies right here!", "ponder", 3527012076, 2949477702, Spawn, 0)
  29. end
  30. end