Hi rA scripters , i got a script here , a simple one
its only runs when players kill mobs around 30/50
i want it to run on player login , here's the script :
// to set monster just change if( Kill >= rand( 35,50 ) ){ // 30 - 50 Monster - script bot2 -1,{ OnInit: if ( strcharinfo(3) == "bat_c01" ) { end;
OnPCLoginEvent: if( !Checking ) end;
OnNPCKillEvent: set Kill,Kill+1; if( Kill >= rand( 50,100 ) ){ set Checking,1; announce "RO Guard : Bot Check time! Thank you for your patience!",bc_yellow|bc_self; atcommand "@option 2"; mes "[^ff557fRO Guard^000000]"; mes "Please enter the ^FF0000RED COLOUR NUMBER^000000"; next; set .@Number,rand( 999999 ); mes "[^ff557fRO Guard^000000]"; mes "Number : "; mes rand( 999999 )+"^ff0000"+.@Number+"^000000"+rand( 999999 ); input @Number; if( @Number != .@Number ){ mes "Sorry, WRONG."; atcommand "@kick "+strcharinfo(0); }else{ mes "Thank you. You now can move!."; dispbottom "100% of effectiveness."; announce "RO Guard : To rewared your kindness, please take a bonus of some Buffs.",bc_blue|bc_self; sc_start SC_INCREASEAGI,500000,10; sc_start SC_BLESSING,500000,10; percentheal 100,100; atcommand "@option 0 0 0"; if(@cart == 1) { setcart; set @cart,0; } if(@falcon == 1) { setfalcon; set @falcon,0; } if(@riding == 1) { setriding; set @riding,0; } set Checking,0; set Kill,0; } close; }
Question
Cid Kagenou
Hi rA scripters , i got a script here , a simple one
its only runs when players kill mobs around 30/50
i want it to run on player login , here's the script :
// to set monster just change if( Kill >= rand( 35,50 ) ){ // 30 - 50 Monster
- script bot2 -1,{
OnInit:
if ( strcharinfo(3) == "bat_c01" ) {
end;
OnPCLoginEvent:
if( !Checking ) end;
OnNPCKillEvent:
set Kill,Kill+1;
if( Kill >= rand( 50,100 ) ){
set Checking,1;
announce "RO Guard : Bot Check time! Thank you for your patience!",bc_yellow|bc_self;
atcommand "@option 2";
mes "[^ff557fRO Guard^000000]";
mes "Please enter the ^FF0000RED COLOUR NUMBER^000000";
next;
set .@Number,rand( 999999 );
mes "[^ff557fRO Guard^000000]";
mes "Number : ";
mes rand( 999999 )+"^ff0000"+.@Number+"^000000"+rand( 999999 );
input @Number;
if( @Number != .@Number ){
mes "Sorry, WRONG.";
atcommand "@kick "+strcharinfo(0);
}else{
mes "Thank you. You now can move!.";
dispbottom "100% of effectiveness.";
announce "RO Guard : To rewared your kindness, please take a bonus of some Buffs.",bc_blue|bc_self;
sc_start SC_INCREASEAGI,500000,10;
sc_start SC_BLESSING,500000,10;
percentheal 100,100;
atcommand "@option 0 0 0";
if(@cart == 1) {
setcart;
set @cart,0;
}
if(@falcon == 1) {
setfalcon;
set @falcon,0;
}
if(@riding == 1) {
setriding;
set @riding,0;
}
set Checking,0;
set Kill,0;
}
close;
}
}
ordeal_1-2 mapflag loadevent
sorry for asking too much
Link to comment
Share on other sites
2 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.