local monsters = {
	--name = storage
 ["rat"] = 35001,
 ["troll"] = 35002,
 ["rotworm"] = 35003,
 ["dragon"] = 35004,
 ["dragon lord"] = 35005,
 ["demon"] = 35006,
 ["hellhound"] = 35007,
-- ["rotworm"] = 35008,
 ["slime god"] = 35009,
 ["hydra"] = 35010,
 ["wyrm"] = 35011,
 ["orshabaal"] = 35012,
 ["tortoise"] = 35013,
 ["thornback tortoise"] = 35014,
 ["necromancer"] = 35015,
 ["hero"] = 35016,
 ["vampire"] = 35017,
 ["warlock"] = 35018,
 ["hydra"] = 35019,
 ["demodras"] = 35020,
 ["wolf"] = 35021,
 ["behemoth"] = 35022,
 ["bashee"] = 35023,
 ["giant spider"] = 35024,
 ["frost dragon"] = 35025,
 ["ferumbras"] = 35026,
 ["medusa"] = 35027,
 ["martes13"] = 35028,
 ["hellspawn"] = 35029,
 ["sea serpent"] = 35030,
 ["dwarf"] = 35031,
 ["dwarf soldier"] = 35032,
 ["dwarf guard"] = 35033,
 ["mummy"] = 35034,
 ["ghoul"] = 35035,
 ["braindteath"] = 35036,
 ["serpent spawn"] = 35037,
 ["juggernaut"] = 35038,
 ["plaguesmith"] = 35039,
 ["apocalypse"] = 35040,
 ["bog raider"] = 35041,
 ["betrayed wrath"] = 35042,
 ["morgaroth"] = 35043,
 ["ghazabaran"] = 35044,
 ["helfire fighter"] = 35045,
 ["fury"] = 35046,
 ["phantasm"] = 35047,
 ["son of verminor"] = 35048,
 ["hand of cursed fate"] = 35049,
 ["lich"] = 35050,
 ["azerus"] = 35051,
 ["infernalist"] = 35052,
 ["mutated bat"] = 35053,
 ["mutated human"] = 35054,
 ["mutated tiger"] = 35055,
 ["mutated rat"] = 35056,
 ["nightmare"] = 35057,
 ["nightmare scion"] = 35058,
 ["hellgorak"] = 35059,
 ["zugurosh"] = 35060,
 ["carrion worm"] = 35061,
 ["merklin"] = 35062,
 ["slime"] = 35063,
 ["elder beholder"] = 35064,
 ["ashmunrah"] = 35065,
 ["diphtrah"] = 35066,
 ["omruc"] = 35067,
 ["mahdris"] = 35068,
 ["morguthis"] = 35069,
 ["rahemos"] = 35070,
 ["rahemos"] = 35071,
 ["thalas"] = 35072,
 ["vashresamun"] = 35073,
 ["hand of darkness"] = 35074,
 ["cyrulik warrior"] = 35075,
 ["evil demon"] = 35076,
 ["plaguewarrior"] = 35077,
 ["hairman the huge"] = 35078,
 ["pro cyrulik"] = 35079,
 ["cyrulik"] = 35080,
 ["demonic dragon"] = 35081,
 ["slime god"] = 35082,
 ["wator"] = 35083,
 ["blobb"] = 35084,
 ["blabb"] = 35085,
 ["toxiros"] = 35086,
 ["freezer"] = 35087,
 ["tanathos"] = 35088,
 ["hafaros"] = 35089,
 ["blobber"] = 35090,
 ["grim reaper"] = 35091,
 ["dark torturer"] = 35092,
 ["Easter rabit"] = 35093,
 ["angel"] = 35094,
 ["archangel"] = 35095,
 ["serpent king"] = 35096,
 ["insane follower"] = 35297,
 ["lucifer"] = 35098,
 ["strong hellhound"] = 35099,
 ["fire drah"] = 35100,
 ["ancient dragon"] = 35101,
 ["burning hunter"] = 35102,
 ["sea king"] = 35103,
 ["evil warlock"] = 35104,
 ["angent"] = 35105,

 ["smasher"] = 35106,
 ["crusher"] = 35107,
 ["killer"] = 35108,
 ["waster"] = 35109,

}

function onKill(cid, target)
	if(isPlayer(target) ~= TRUE) then
		local name = getCreatureName(target)
		local monster = monsters[string.lower(name)]
		if(monster) then
			local killedMonsters = getPlayerStorageValue(cid, monster)
			if(killedMonsters == -1) then
				killedMonsters = 1
			end
			doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "You have killed " .. killedMonsters .. " " .. name .. "s.")
			setPlayerStorageValue(cid, monster, killedMonsters + 1)
		end
	end
	return TRUE
end