Jump to content
  • 0

reset quest (just any quest)


Question

Posted

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.

1 answer to this question

Recommended Posts

  • 0
Posted

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;
	}
}

 

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