It may be help you,
<action name="auto">
oninterrupt(break);wait(10);lookto(360,0,90,smooth(7,7,7), false);nextscene();wait(8);
lookto(360,0,90,smooth(7,7,7), false);wait(3);nextscene();wait(8);
lookto(360,0,90,smooth(7,7,7), false);wait(3);nextscene();wait(8);
lookto(360,0,90,smooth(7,7,7), false);wait(3);nextscene();wait(8);
..........................................
..........................................
..........................................
..........................................
lookto(360,0,90,smooth(7,7,7), false);wait(3);nextscene();wait(8);auto();
</action>
<action name="prevscene">
if(%1 != findnext, sub(i,scene.count,1));
txtadd(scenexml,'<krpano>',get(scene[%i].content),'</krpano>');
if(scenexml == xml.content,
dec(i);
if(i LT 0, sub(i,scene.count,1));
loadscene(get(scene[%i].name), null, MERGE, BLEND(1));closethumbs(get(thumbname));
,
dec(i);
if(i GE 0, prevscene(findnext));
);
</action>
<action name="nextscene">
if(%1 != findnext, set(i,0));
txtadd(scenexml,'<krpano>',get(scene[%i].content),'</krpano>');
if(scenexml == xml.content,
inc(i);
if(i == scene.count, set(i,0));
loadscene(get(scene[%i].name), null, MERGE, BLEND(1));closethumbs(get(thumbname));
,
inc(i);
if(i LT scene.count, nextscene(findnext));
);
</action>