puzzlestones.lua 1.4 KB

123456789101112131415161718192021222324252627282930
  1. --[[
  2. Script Name : SpawnScripts/Kugup/puzzlestones.lua
  3. Script Author : neatz09
  4. Script Date : 2023.11.23 02:11:03
  5. Script Purpose : handles platforms you place the troll statues on in kugup
  6. :
  7. --]]
  8. local ThePuzzledTactician = 5930
  9. function spawn(NPC)
  10. end
  11. function casted_on(NPC, Spawn, Message)
  12. if GetSpawnLocationID(NPC) == 459555 and Message == "Examine" then
  13. SendMessage(Spawn, "This is where I am supposed to place the totem for the troll who ate the least cats...", "white")
  14. elseif GetSpawnLocationID(NPC) == 459554 and Message == "Examine" then
  15. SendMessage(Spawn, "This is where I am supposed to place the totem for the troll who ate the fourth most cats...", "white")
  16. elseif GetSpawnLocationID(NPC) == 459553 and Message == "Examine" then
  17. SendMessage(Spawn, "This is where I am supposed to place the totem for the troll who ate the third most cats...", "white")
  18. elseif GetSpawnLocationID(NPC) == 459552 and Message == "Examine" then
  19. SendMessage(Spawn, "This is where I am supposed to place the totem for the troll who ate the second most cats...", "white")
  20. elseif GetSpawnLocationID(NPC) == 459551 and Message == "Examine" then
  21. SendMessage(Spawn, "This is where I am supposed to place the totem for the troll who ate the most cats...", "white")
  22. end
  23. end
  24. function respawn(NPC)
  25. spawn(NPC)
  26. end