Jump to content
  • 0

how can i limit of level reset per character


Question

Posted

here the script im using

prontera,143,173,5	script	Level Reset	757,{
	if (BaseLevel < 255||JobLevel < 120 ) {
		mes "You need to be at least level 255 and Job level 120.";
	}
	else if (select("Reset", "cancel") == 1) {
		resetlvl 1;
		RESET_COUNT++;
		StatusPoint += (RESET_COUNT * 10); // free 10 status point per reset.
		
		if (RESET_COUNT && RESET_COUNT % 10 == 0) {
			getitem 512, 10; // every 10 reset get apple.
		}
	}
	end;
}

is there a possible way to limit like 20 resets only per character

ty in advance ❤️

2 answers to this question

Recommended Posts

  • 0
Posted

Try this

prontera,143,173,5	script	Level Reset	757,{
	if (BaseLevel < 255||JobLevel < 120 ) {
		mes "You need to be at least level 255 and Job level 120.";
	}
	if (RESET_COUNT >= 20 )
	{
		mes "I'm sorry, but you can't use this npc again";
		close;
	}
	else if (select("Reset", "cancel") == 1) {
		resetlvl 1;
		RESET_COUNT++;
		StatusPoint += (RESET_COUNT * 10); // free 10 status point per reset.
		
		if (RESET_COUNT && RESET_COUNT % 10 == 0) {
			getitem 512, 10; // every 10 reset get apple.
		}
	}
	end;
}

 

  • Upvote 1
  • 0
Posted
3 hours ago, Angeluz said:

Try this

prontera,143,173,5	script	Level Reset	757,{
	if (BaseLevel < 255||JobLevel < 120 ) {
		mes "You need to be at least level 255 and Job level 120.";
	}
	if (RESET_COUNT >= 20 )
	{
		mes "I'm sorry, but you can't use this npc again";
		close;
	}
	else if (select("Reset", "cancel") == 1) {
		resetlvl 1;
		RESET_COUNT++;
		StatusPoint += (RESET_COUNT * 10); // free 10 status point per reset.
		
		if (RESET_COUNT && RESET_COUNT % 10 == 0) {
			getitem 512, 10; // every 10 reset get apple.
		}
	}
	end;
}

 

TYSM ❤️

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...