techi Posted June 1, 2021 Group: Members Topic Count: 17 Topics Per Day: 0.00 Content Count: 53 Reputation: 0 Joined: 05/06/15 Last Seen: April 29, 2024 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; .@a = rand(1,100); if( .@a < atoi(.animate$[0]) ){ .@a = 1; } else { .@a = 2; } .@b = 1; while( .@b < atoi(.animate$[.@a]) ) { cutin .animate$[3] + .@b,4; sleep2 ( ( atoi(.animate$[4]) * 1000 ) / atoi(.animate$[1]) ); .@b++; } if( .@a == 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...
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.