It got rid of the error, however it isn't doing what its supposed to be doing, I am not getting any errors so I am not sure what I did wrong:
function onDeath(cid, corpse, killer)
if isMonster(cid) == TRUE then
if(100 >= math.random(1, 100)) then
if(1 == math.random(1, 4)) then...