Try this out. It requires you to be on a lvl 99 GM account but you can change it as you please. It toggles on/off when spoken to. I've not tested it.
prontera,163,195,3 script NPC#CellBarricade 626,{
if (getgmlevel() > 98) {
if (.barrier1 < 1) {
mes "Barrier is now on";
close2;
setwall "payon",68,110,4,6,0,"barrier1";
set .barrier1,1;
}
else {
mes "Barrier is now off";
close2;
delwall "barrier1";
set .barrier1,0;
}
}
end;
}
EDIT: changed variables- should work all the same. It's also worth pointing out that the 4 is the distance the wall spans and 6 is the direction of the wall (same as NPCs). You might have to adjust those.
Hope this helps,
~Azura Skyy