Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Get how many guilds there are in our database
- local count = CharDBQuery("SELECT COUNT(*) FROM `"..TableName.."`;"):GetColumn(0):GetString()
- -- Get the creature ID's we need to register
- local data = CharDBQuery("SELECT `power` FROM `"..TableName.."`;")
- for i=1, count do
- RegisterUnitEvent(tonumber(data:GetColumn(0):GetString()), 4, "Guild_Leader_Death")
- data:NextRow()
- end
Advertisement
Add Comment
Please, Sign In to add comment