Jump to content
  • 0

After resets character is stuck :(


AinsLord

Question


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

Hi anyone can help me with this script

prontera,143,173,5	script	Level Reset	757,{
	if (BaseLevel < 255) {
		mes "You need to be at least level 99.";
	}
	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.
		}
	}
	close2;
}

everytime character resets it stucks cant move need to re login to fix it

dunno what is the proble

EDIT: Can i add some commands to check how many reset they have so they can check

thanks ❤️

THANSK IN ADVANCE

Edited by AinsLord
more info
Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

  • Group:  Content Moderator
  • Topic Count:  55
  • Topics Per Day:  0.02
  • Content Count:  1676
  • Reputation:   702
  • Joined:  12/21/14
  • Last Seen:  

close2 doesn't detach the player , use close or end

 

for the reset times , you are already saving that in RESET_COUNT

so you can do something like

mes "Reset Count: " + RESET_COUNT;

 

Edited by sader1992
  • Love 1
Link to comment
Share on other sites

  • 1

  • Group:  Content Moderator
  • Topic Count:  55
  • Topics Per Day:  0.02
  • Content Count:  1676
  • Reputation:   702
  • Joined:  12/21/14
  • Last Seen:  

OnInit:
	bindatcmd "reset_count",strnpcinfo(3) + "::OnAtcommand";
	end;
OnAtcommand:
	mes "Reset Count: " + RESET_COUNT;
	end;

 

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:  

2 minutes ago, sader1992 said:

close2 doesn't detach the player , use close or end

 

for the reset times , you are already saving that in RESET_COUNT

so you can do something like

mes "Reset Count: " + RESET_COUNT;

 

what i mean was like @command or something ?

btw thankss ❤️

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