if number ( 1 , 500 ) == 1 then 
if pc . count_item ( 31022 ) < 10 then 
pc . give_item2 ( 31022 , 1 ) 
local remain_item = 10 - pc . count_item ( 31022 ) 
if remain_item <= 0 then 
remain_item = 0 
end 
q . set_counter_value ( remain_item ) 
if pc . count_item ( 31022 ) >= 10 then 
notice_multiline ( gameforge . main_quest_lv92 . _530_1_notice , notice ) 
notice_multiline ( gameforge . main_quest_lv92 . _530_2_notice , notice ) 
set_state ( "state3_4" ) 
end 
end 
end 
