Update scoreboard.lua

Created function FindPetOwnerName with logic to associate pet with owner. Any actions that can be done by a pet now use CreatePlayerName(action) instead of action:get_actor_name()

In spell_finish I changed the id 265 to 264. 264 was the message I was getting on sub targets when casting AoE black magic. This should fix the issue where AoE magic damage was not being processed (at least for black magic, I think pet AoE is still incorrect)
Update scoreboard.lua

changed function names to match convention
Update scoreboard.lua

changed tabs to spaces
Update scoreboard.lua

Updated engage logic to support pets, scoreboard will now update when either a player or their pet is engaged.
Update scoreboard.lua

Missed logic check that fails on zone. get_mob_by_id(player) was nil during zoning
Updated create_player_name so it doesn't break UI

I updated the create_player_name function. For pet names longer than 8 characters it cuts it down to 7 and adds a . at the end of the name. Character name logic hasn't changed.
Leviathan example:
Leviath. (Gen.) would be what I get from my leviathan. This keeps the max length of any name string to 15 characters.
Pet names 8 characters or less are left as is such as Diabolos (Gen.)
Update scoreboard.lua

Changed create_player_name to create_mob_name as requested.
Update scoreboard.lua

Changed default return value of find_pet_owner_name to nil instead of empty string.
Changed check in create_mob_name from owner~= '' to owner ~= nil to match updated return value.
Merge pull request #1044 from geno3302/patch-2

Update scoreboard.lua