Jump to content
  • 0
AinsLord

how can i limit of level reset per character

Question

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 ❤️

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

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
Link to comment
Share on other sites

  • 0
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 ❤️

Link to comment
Share on other sites

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.



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.