Try this one...
Code:
function insert_staged_pet(summon_code,enhance,card_id)
if enhance > 0 and enhance < 6 then
insert_summon_by_summon_id(summon_code)
local petcard_array = get_item_handle_list(card_id)
local new_pet = table.getn(petcard_array)
set_item_enhance(petcard_array[new_pet],enhance)
else
message("Error. Use an enhance-value between 1 and 5!")
end
end
You added the code to ETC_Script_Functions.lua right?
Also what server file version are you working with?
Could you post the error you get?