erm...i guess it would be something like this ?
anyway...the..Invisible part...it doesnt work when i use Cloaking..>.<
so i have no idea how to make that...perhaps other member might have a better way to do so ~
prontera,155,181,5 script Sample 757,2,2,{
dispbottom "Walkthrough to get Runes.";
end;
OnTouch:
switch( .Runes ){
default:
Case 0:
dispbottom "No Runes Right now.";
end;
Case 1:
sc_start SC_INCATKRATE,( .Duration * 1000 ),100;
break;
Case 2:
sc_start SC_CLOAKING,( .Duration * 1000 ),10;
break;
Case 3:
sc_start4 SC_L_LIFEPOTION,( .Duration * 1000 ),-10,1,0,0;
break;
Case 4:
getmapxy( .@Map$,.@X,.@Y,0,strcharinfo(0) );
clone .@Map$,.@X,.@Y,"",getcharid(0),getcharid(0),"",1,.Duration;
clone .@Map$,.@X,.@Y,"",getcharid(0),getcharid(0),"",1,.Duration;
break;
Case 5:
sc_start SC_SpeedUp1,( .Duration * 1000 ),0;
break;
}
announce "[ "+strcharinfo(0)+" ] has gained "+.Names$[.Runes]+".",bc_map;
set .Runes,0;
initnpctimer;
end;
OnInit:
OnTimer60000:
set .Duration,60;
setarray .Names$,
"Runes",
"Double Attack",
"Invisibility",
"Regeneration",
"Clone",
"Haste";
if( !.Runes ) set .Runes,rand( 1,getarraysize( .Names$ ) );
stopnpctimer;
while( 1 ){
delwaitingroom;
waitingroom (( .Runes )? " "+.Names$[.Runes]:"Cooldown "+( 60 - (getnpctimer(0)/1000) )+" Sec." ) ,0;
sleep 1000;
}
end;
}