create a timer , something like this
OnInstanceInit://Runs once the instance is created.
'map_gld_dun01$ = instance_mapname("gld_dun01");//save this map name inside the instance
'npc_instance_main_body$ = instance_npcname(strnpcinfo(3));//save this npc name inside the instance
monster('map_gld_dun01$,32,36,"--en--",1002,1,'npc_instance_main_body$ + "::OnPoringKilled");
initnpctimer('npc_instance_main_body$);
stopnpctimer('npc_instance_main_body$);
end;
OnPoringKilled:
startnpctimer('npc_instance_main_body$);
end;
OnTimer600000://after 10 minute
monster('map_gld_dun01$,32,36,"--en--",1002,1,'npc_instance_main_body$ + "::OnPoringKilled");
setnpctimer(0,'npc_instance_main_body$);
stopnpctimer('npc_instance_main_body$);
end;
or maybe put a sleep delay
OnInstanceInit://Runs once the instance is created.
'map_gld_dun01$ = instance_mapname("gld_dun01");//save this map name inside the instance
'npc_instance_main_body$ = instance_npcname(strnpcinfo(3));//save this npc name inside the instance
monster('map_gld_dun01$,32,36,"--en--",1002,1,'npc_instance_main_body$ + "::OnPoringKilled");
end;
OnPoringKilled:
detachrid;//de attach the player from the event.
sleep(600000);//sleep for 10 minutes
monster('map_gld_dun01$,32,36,"--en--",1002,1,'npc_instance_main_body$ + "::OnPoringKilled");
end;