9
3

TitleBot.lua 578 B

1234567891011121314151617181920212223
  1. --[[
  2. Script Name : SpawnScripts/IsleRefuge1/TitleBot.lua
  3. Script Author : LordPazuzu
  4. Script Date : 2022.10.02 04:10:15
  5. Script Purpose :
  6. :
  7. --]]
  8. function spawn(NPC)
  9. end
  10. function hailed(NPC, Spawn)
  11. FaceTarget(NPC, Spawn)
  12. AddMasterTitle("Lord", 1) -- create new title for all players, is prefix
  13. AddCharacterTitle(Spawn, "Lord") -- add title to the current player
  14. SetCharacterTitlePrefix(Spawn, "Lord") -- set the characters current prefix to the newly created title
  15. end
  16. function respawn(NPC)
  17. spawn(NPC)
  18. end