quest event_drop begin
state start begin
when 55706.kill or 55707.kill or 55708.kill or 55709.kill or 2598.kill or 2493.kill
or 2491.kill or 2492.kill or 2192.kill or 2206.kill or 1091.kill or 1093.kill
or 1901.kill or 2092.kill or 2094.kill or 1304.kill or 1192.kill or 691.kill with game.get_event_flag("nameevent") == 1 and not npc.is_pc() begin
local plvl = pc.get_level()
local mlvl
local chance = number(1,10)
local vnumlist_man = {701,703,704} -- vnumlist man
local vnumlist_woman = {701,703,704} -- vnumlist woman
local drop = number(1,16)
if npc.get_race() < 8015 then
mlvl = (npc.get_race()-8000)*5
else
mlvl = (npc.get_race()-8009)*5
end
if mlvl-plvl >= -10 then
if chance*10 == 100 then
if pc.get_sex() == 1 then
game.drop_item_with_ownership(vnumlist_woman[drop],1) --drop
else
game.drop_item_with_ownership(vnumlist_man[drop],1) --drop
end
end
end
end
end