Help script don't count monsters 
function onKill(cid, target)
local config = {
["troll"] = {storage = 9999, begin_storage_value = 1, finished_storage_value = 2, count = 300},
["swamp troll"] = {storage = 9999, begin_storage_value = 1, finished_storage_value = 2, count = 300},
["lizard high guard"] = {storage = 9998, begin_storage_value = 3, finished_storage_value = 4, count = 500},
["lizard dragon priest"] = {storage = 9998, begin_storage_value = 3, finished_storage_value = 4, count = 500},
["lizard chosen"] = {storage = 9998, begin_storage_value = 3, finished_storage_value = 4, count = 500},
["witch"] = {storage = 9997, begin_storage_value = 5, finished_storage_value = 6, count = 450},
["Dragon"] = {storage = 9996, begin_storage_value = 7, finished_storage_value = 8, count = 10},
["dragon lord"] = {storage = 9996, begin_storage_value = 7, finished_storage_value = 8, count = 150},
["frost dragon"] = {storage = 9996, begin_storage_value = 7, finished_storage_value = 8, count = 150},
["undead dragon"] = {storage = 9995, begin_storage_value = 9, finished_storage_value = 10, count = 300},
["ghastly dragon"] = {storage = 9995, begin_storage_value = 9, finished_storage_value = 10, count = 300},
--bosses--
["trolls boss"] = {storage = 19999, begin_storage_value = 1, finished_storage_value = 2, count = 1},
["lizards boss"] = {storage = 19998, begin_storage_value = 3, finished_storage_value = 4, count = 1},
["Dragons boss"] = {storage = 19997, begin_storage_value = 7, finished_storage_value = 8, count = 1}
}
local mob = config[string.lower(getCreatureName(target))]
if(not mob) then
return true
end
local main_storage = 17777
local bosses_storage = 17777
if(isPlayer(target) ~= TRUE) then
local count_monsters = getPlayerStorageValue(cid, mob.storage)
if(count_monsters == 0 or count_monsters == -1) then
count_monsters = 1
end
if(isPlayer(target) ~= TRUE) then
if getPlayerStorageValue(cid, main_storage) == mob.begin_storage_value and count_monsters <= mob.count then
setPlayerStorageValue(cid, mob.storage, count_monsters + 1)
doPlayerSendTextMessage(cid, TALKTYPE_ORANGE_1, "You killed "..count_monsters.." of "..mob.count.." "..getCreatureName(target).."s.")
if count_monsters == mob.count then
setPlayerStorageValue(cid, main_storage, mob.finished_storage_value)
doPlayerSendTextMessage(cid, TALKTYPE_ORANGE_1, "Congratulations! You have killed enough "..getCreatureName(target).."s.")
end
elseif getPlayerStorageValue(cid, bosses_storage) == mob.begin_storage_value and count_monsters == mob.count then
setPlayerStorageValue(cid, main_storage, mob.finished_storage_value)
doPlayerSendTextMessage(cid, TALKTYPE_ORANGE_1, "Congratulations! You have killed "..getCreatureName(target)..".")
end
end
end
return true
end