mes "[ ^336699Coin Master^000000 ]";
mes "How many coins would you like?";
set @mamount,0;
input @mamount;
if (zeny < 0) goto L_No;
if (zeny < (10000000* @mamount)) goto L_No;
if (checkweight(677,@mamount) == 0 ) goto L_OW;
set dcoins, @mamount;
set dcoins2, (dcoins2 + (@mamount)); //<-------------------- This Line
set Zeny,(zeny - (10000000* @mamount));
getitem 677,@mamount;
goto L_Thanks;
I want to limit the coin exchange of my server for only 50 per day, how can i reset the "set dcoins2" for every player every "OnClock0000:".
- script CoinsReset -1,{
OnInit:
OnClock0000: //12am
set dcoins2, 0;
}
Already try this code but it doesn't work. TIA ♥