Jump to content
  • 0

reset quest (just any quest)


millu

Question


  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.01
  • Content Count:  17
  • Reputation:   1
  • Joined:  12/18/20
  • Last Seen:  

pls, anyone can help, to do a npc than the player, can reset any quest (as rachel, or terra gloria, or any other).

Or any command to execute in mysql.

Thank for attention.

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  132
  • Reputation:   53
  • Joined:  06/02/12
  • Last Seen:  

Hi. Most quests use variables to track player progression. So changing said variables to 0 is the same as resetting it's questline.
Just ANY quest, you would need to find each and every variable used in the scripts.

Example:
Terra Gloria NPCs are in \npc\re\quests\quests_16_2.txt, inside the file you can see the variable used in the main quest is terra_gloria_main.
Make the NPC set terra_gloria_main to 0 to reset the whole questline.

prontera,150,150,3	script	Quest Resetter	99,{
	mes "Which questline do you want to reset?";
	next;
	switch(select("Rachel", "Terra Gloria")) {
		case 1:
			mes "Are you sure you want to reset Rachel quests?";
			if(select("No", "Yes") == 1)
				close;
			
			rachel_quest = 0;
			mes "Done!";
			close;

		case 2:
			mes "Are you sure you want to reset Terra Gloria quests?";
			if(select("No", "Yes") == 1)
				close;
			
			terra_gloria_main = 0;
			mes "Done!";
			close;
	}
}

 

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