Jump to content
  • 0

how can i limit of level reset per character


AinsLord

Question


  • Group:  Members
  • Topic Count:  257
  • Topics Per Day:  0.08
  • Content Count:  737
  • Reputation:   18
  • Joined:  11/21/15
  • Last Seen:  

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

  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  103
  • Reputation:   17
  • Joined:  07/28/12
  • Last Seen:  

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

  • Group:  Members
  • Topic Count:  257
  • Topics Per Day:  0.08
  • Content Count:  737
  • Reputation:   18
  • Joined:  11/21/15
  • Last Seen:  

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...