techi Posted June 1, 2021 Share Posted June 1, 2021 (edited) disculpa tengo este npc y quisiera poner un input donde puedas poner la cantidad de zeny que quieras aportar y que tengas un 50 50 de posibilidad de ganar o perder y te de el doble de lo apostado si ganas prontera,152,176,4 script Doble o Nada 563,{ mes "Doble o nada maquita","un costo: "+ .zeny +" zeny para jugar."; next; mes "REGLAS DOBLE O NADA"; mes "Pondras la cantidad de zeny que quieras jugar"; mes "Tendras una oportunidad de duplicar lo apostado"; if( select("Apostar:no Apostar") == 2 || Zeny < .zeny ){ close; } while( @menu == 1 ){ Zeny -= .zeny; [email protected] = rand(1,100); if( [email protected] < atoi(.animate$[0]) ){ [email protected] = 1; } else { [email protected] = 2; } [email protected] = 1; while( [email protected] < atoi(.animate$[[email protected]]) ) { cutin .animate$[3] + [email protected],4; sleep2 ( ( atoi(.animate$[4]) * 1000 ) / atoi(.animate$[1]) ); [email protected]++; } if( [email protected] == 1 ){ cutin .animate$[3] + atoi(.animate$[1]),4; dispbottom "Failed"; } else { cutin .animate$[3] + atoi(.animate$[2]),4; getitem .prize[0], .prize[1]; } if( select("Volver a intentar:No jugar") == 2 || Zeny < .zeny ){ cutin "",255; close; } } end; OnInit: //[0] = Fail Rate //[1] = Fail (Do not change) //[2] = Success (Do not change) //[3] = File Name (Do not change) //[4] = Animation Time (Do not change, for best results :D) setarray .animate$[0],"30","29","33","slot_","3"; setarray .prize[0],501,10; .zeny = 100000; end; } Edited June 2, 2021 by sader1992 use a code box next time! Quote Link to comment Share on other sites More sharing options...