NPC Code:
if(!open){
show;
}
if(strequals(#c,OpenBridge) && strequals(#g,GuildName)){
set open;
}
if(playertouchsme&&!strequals(#g,Guildname)&&open) {
setlevel2 levelname,x,y;
}
if(playertouchsme&&strequals(#g,Guildname)){
setlevel2 levelname,x,y;
}
Could be easier, and I am not sure that will work. I am too tired to think right now.