//@unloadnpc Exit
//@loadnpc npc/thor/guildpack/warps.txt

office,167,125,0	script	Exit	4_F_OPERATION,{
	if (!countitem(Invitation_Letter)){
		mes("[ "+CStr("Guild Migration Assistant","GREEN")+" ]");
		mes("What are you doing here? I don't have business with you.");
		close();
	}
	mes(.npc$);
	mes("You are about to exit this room.");
	mes("^ff0000- - - W  A  R  N  I  N  G - - -^000000");
	mes("You can not bring extra equipment outside. ALL items ^ff0000NOT WORN^000000 will be ^ff0000DELETED^000000 upon ^ff0000EXIT^000000. Make ^28bf00SURE^000000 you ^28bf00EQUIP ALL^000000 necessary equipment you need. Are you sure you want to leave?");
	next;
	if (select("^ff0000No, I'm not yet done.^000000", "^28bf00Yes, I am very sure.^000000") == 1) {
		mes(.npc$);
		mes ("Okay, let me know when you are ready.");
		close();		
	}

	atcommand("@itemreset");
	/* Re-Add Freebies */
	getitembound 19860,1,4;	//Hat
	getitembound 20307,1,4;	//Hat		
	getitembound 2751,1,4;	//Badge
	getitembound 12252,4,4;
	getitembound 12253,4,4;
	getitembound 12215,30,4;
	getitembound 12216,30,4;
	getitembound 12211,2,4;
	getitembound 7621,2,4;	
	getitembound 30001,50,4;
	getitembound 30002,50,4;

	if (strcharinfo(PC_NAME) == getguildmaster(getcharid(CHAR_ID_GUILD))){
		getitem CRO_Woe_Crown,1;
		getitem Max_Weight_Up_Box,1;
	}
	

	savepoint "office",128,37;
	warp("office",128,37); 
	close();

OnInit:
	.npc$ = "[ Guild Invitation ]";
	delwaitingroom;
	waitingroom "Exit",0;
	end;
}
