I'm starting to learn a little bit of script and wanted to by the time of generating the tower dungeon to charge 100kk and get it.
But after I created it click to create it again it is charging the same 100kk, I would like a check for the player not being able to click the option again in case it is with the dungeon generated.
Note: My tower does not have time to enter, because I added a high amount and took the delay.
switch(select("Gerar Calabouço da "+.@md_name$+":Entrar no Calabouço:Retornar para Alberta:Cancelar")) {
case 1:
}
mes "Para criar o calabouço você precisa de 100.000.000 zeny";
next;
if (Zeny < 100000000){
mes "Sinto muito mas você não tem 100.000.000 de zeny!";
close;
}
set Zeny,Zeny - 100000000;
mes "Muito Bem, podem prosseguir e boa sorte!";
close2;
.@instance = instance_create(.@md_name$,.@party_id);
if (.@instance < 0) {
mes "Nome do grupo: "+.@p_name$;
mes "Líder do grupo: "+strcharinfo(0);
mes "^0000ff"+.@md_name$+" ^000000- A reserva falhou!";
close;
}
mes "^0000ff"+.@md_name$+"^000000 - Tentar reservar";
mes "Depois de fazer uma reserva, você tem que falar com o NPC logo atrás e selecionar o menu 'Entrar no Calabouço' para entrar no calabouço.";
for (.@i = 1; .@i <= 6; ++.@i) {
if( instance_attachmap(.@i + "@tower", .@instance) == "" ) {
mes "^0000ff"+.@md_name$+" ^000000- A reserva falhou!";
instance_destroy(.@instance);
close;
}
}