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.