// Head Office
//@loadnpc npc/classic/office.txt
//@unloadnpc HeadOffice
//@unloadnpc officewarp
//@unloadnpc office#prt


prontera,141,86,0	script	HeadOffice	HIDDEN_NPC,{
OnInit:
	delwaitingroom;
	waitingroom "Head Office",0;
	end;
}

office,128,42,0	script	officewarp	WARPNPC,1,2,{
	if (officemap$=="" || officemap$=="prontera") goto officedefault;
	warp officemap$, officex, officey;
	end;
officedefault: 
	warp "prontera", 146,82;
	end;
}

prontera,140,82,0	script	office#prt	WARPNPC,1,2,{
	getmapxy(.@map$, @x, @y, 0);
	set officemap$,.@map$;
	set officex,@x;
	set officey,@y;
	warp "office",128,37; 
	end;
}

// VIP ROOM
office,132,17,0	script	vip#entrance	WARPNPC,1,2,{
	if (#VIP == 3 || getgmlevel() >= 1 ) {
		warp "office",227,19;
	} else {
		dispbottom "Only Gold VIP can enter this room";
	}
end;
}

office,227,15,0	script	vip#exit	WARPNPC,1,2,{
		warp "office",132,22;
end;
}	

office,135,17,0	script	vipsign	HIDDEN_NPC,{
OnInit:
	delwaitingroom;
	waitingroom "Gold VIP Access",0;
	end;
}