Jump to content
  • 0

how to fix this error in script


Question

4 answers to this question

Recommended Posts

Posted (edited)

I did a quick repair on your code and it run just good in my test server but I can't test any further since my character doesn't have this NPC quest record.
 

e_tower,78,80,2	script	Endless Reset	406,{
	mes "Purification Tower";
	mes "Do you want to Reset your Endless Tower Quest?";
	menu "Yes",R_Tower,"No",Dis;
	close;
	
	R_Tower:
	if(countitem(6127) == 1)
	{
		set .@etower_timer,0;
		set .@etower_timer2,0;
		erasequest 60200;
		erasequest 60201;
		delitem 6127,1;
		mes "^0000ffThe records and aftereffects related to the Endless Tower have been removed. You can generate and enter the Endless Tower again.^000000";
		next;
		set .@etower_timer,0;
		set .@etower_timer2,0;
		erasequest 60200;
		erasequest 60201;
		mes "^0000ffThe records and aftereffects related to the Endless Tower have been removed. You can generate and enter the Endless Tower again.^000000";
		close;
		warp e_tower,75,108;
		end;
	}
	else 
	{
		mes "You don't have a Purification Stone to Reset your Endless Tower Quest";
		close;
	}
	
	Dis:
	mes "Purification Tower";
	mes "Come Back Again.";
	close;

}

The error should gone but you need to test it again. Keep this topic posted because someone might able to help you.

My uploaded picture shows my character doesn't have specific quest-log and show the error. But yours should be fine.

post-871-0-01017600-1406208249_thumb.jpg

Edited by Aoi Tokichiro
Posted

e_tower,78,80,2	script	Endless Reset	406,{
	mes "Purification Tower";
	mes "Do you want to Reset your Endless Tower Quest?";

	if(select("Yes:No") -1){
		next;
		mes "Purification Tower";
		mes "Come Back Again.";
		close;
	}else{
		if(countitem(6127)  1){
			mes "You dont have a Purification Stone to Reset your Endless Tower Quest";
			close;
		}else {
			set .@etower_timer,0;
			set .@etower_timer2,0;
			erasequest 60200;
			erasequest 60201;
			delitem 6127,1;
			mes "^0000ffThe records and aftereffects related to the Endless Tower have been removed. You can generate and enter the Endless Tower again.^000000";
			next;
			set .@etower_timer,0;
			set .@etower_timer2,0;
			erasequest 60200;
			erasequest 60201;
			mes "^0000ffThe records and aftereffects related to the Endless Tower have been removed. You can generate and enter the Endless Tower again.^000000";
			close;
			warp e_tower,75,108;
			end;
		}
	}
}

I was too slow xD

I did a quick repair on your code and it run just good in my test server but I can't test any further since my character doesn't have this NPC quest record.

 

e_tower,78,80,2	script	Endless Reset	406,{
	mes "Purification Tower";
	mes "Do you want to Reset your Endless Tower Quest?";
	menu "Yes",R_Tower,"No",Dis;
	close;
	
	R_Tower:
	if(countitem(6127) == 1)
	{
		set .@etower_timer,0;
		set .@etower_timer2,0;
		erasequest 60200;
		erasequest 60201;
		delitem 6127,1;
		mes "^0000ffThe records and aftereffects related to the Endless Tower have been removed. You can generate and enter the Endless Tower again.^000000";
		next;
		set .@etower_timer,0;
		set .@etower_timer2,0;
		erasequest 60200;
		erasequest 60201;
		mes "^0000ffThe records and aftereffects related to the Endless Tower have been removed. You can generate and enter the Endless Tower again.^000000";
		close;
		warp e_tower,75,108;
		end;
	}
	else 
	{
		mes "You don't have a Purification Stone to Reset your Endless Tower Quest";
		close;
	}
	
	Dis:
	mes "Purification Tower";
	mes "Come Back Again.";
	close;

}

The error should gone but you need to test it again. Keep this topic posted because someone might able to help you.

P/S: I'm no pro in this field.

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