Hello guys, im new here,and this my first post. Im sorry for any inconvenience. Sorry for my bad english.
This is my gacha zeny npc multiple rolls option.
everything else is fine,but the problem is whenever i choose next roll,but my zeny is not enough. the box doesnt close. it will stuck,and my SSH console shows error. but I can not solve it due to my lack of knowledge in C++
can someone help me?
set .@nextChoice, select("Roll Again :Exit");
if (.@nextChoice == 2) break;
set .@rolls, (.@choice == 1 ? 1 : (.@choice == 2 ? 5 : 10));
if (.@choice == 3) set .@rolls, .@rolls + 1; // Bonus roll for 10 rolls option
set Zeny, Zeny - (250000 * (.@rolls - (.@choice == 3 ? 1 : 0))); // Deduct correct Zeny amount
}
mes "Thanks for playing! Come back anytime.";
close;
OnInit:
delwaitingroom;
waitingroom "Gacha Zeny $$", 0;
end;
}
Quote
[Error]: script_set_reg: failed to set param 'Zeny' to -21652.
Question
Eerks2002
Hello guys, im new here,and this my first post. Im sorry for any inconvenience. Sorry for my bad english.
This is my gacha zeny npc multiple rolls option.
everything else is fine,but the problem is whenever i choose next roll,but my zeny is not enough. the box doesnt close. it will stuck,and my SSH console shows error. but I can not solve it due to my lack of knowledge in C++
can someone help me?
set .@nextChoice, select("Roll Again :Exit"); if (.@nextChoice == 2) break; set .@rolls, (.@choice == 1 ? 1 : (.@choice == 2 ? 5 : 10)); if (.@choice == 3) set .@rolls, .@rolls + 1; // Bonus roll for 10 rolls option set Zeny, Zeny - (250000 * (.@rolls - (.@choice == 3 ? 1 : 0))); // Deduct correct Zeny amount } mes "Thanks for playing! Come back anytime."; close; OnInit: delwaitingroom; waitingroom "Gacha Zeny $$", 0; end; }
Link to comment
Share on other sites
1 answer 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.