/* 
	PScript by Peter Pon
	
	scene06
*/
#include "..\PScriptLib\Def.h"

#include "..\PScriptLib\box.pst"
#include "..\PScriptLib\desk.pst"
#include "..\PScriptLib\chair.pst"
#include "..\PScriptLib\jug.pst"

Scene_OnLoad()
{
	int i;
	string name;
	
	SetSceneItem("D_floor01", "name", "machine");
	SetSceneItem("D_floor02", "name", "machine");
	SetSceneItem("D_floor03", "name", "machine");
	SetSceneItem("D_floor04", "name", "machine");
	SetSceneItem("D_floor05", "name", "machine");
	SetSceneItem("D_floor06", "name", "machine");
	SetSceneItem("D_floor07", "name", "machine");
	SetSceneItem("D_floor08", "name", "machine");
	SetSceneItem("D_floor09", "name", "machine");
	SetSceneItem("D_floor10", "name", "machine");
	SetSceneItem("D_floor11", "name", "machine");
	SetSceneItem("D_floor12", "name", "machine");
	SetSceneItem("D_floor13", "name", "machine");
	SetSceneItem("D_floor14", "name", "machine");
	SetSceneItem("D_floor15", "name", "machine");
	SetSceneItem("D_floor16", "name", "machine");
	SetSceneItem("D_floor17", "name", "machine");
	SetSceneItem("D_floor18", "name", "machine");
	SetSceneItem("D_floor19", "name", "machine");
	SetSceneItem("D_floor20", "name", "machine");
	SetSceneItem("D_floor21", "name", "machine");
	SetSceneItem("D_floor22", "name", "machine");
	SetSceneItem("D_floor23", "name", "machine");
	SetSceneItem("D_floor24", "name", "machine");
	SetSceneItem("D_floor25", "name", "machine");
	SetSceneItem("D_floor26", "name", "machine");
	SetSceneItem("D_floor27", "name", "machine");
	SetSceneItem("D_floor28", "name", "machine");
	SetSceneItem("D_floor29", "name", "machine");
	SetSceneItem("D_floor30", "name", "machine");
	SetSceneItem("po01", "name", "machine");
	SetSceneItem("po02", "name", "machine");
	SetSceneItem("po03", "name", "machine");
	SetSceneItem("po04", "name", "machine");
	SetSceneItem("po05", "name", "machine");
	SetSceneItem("po06", "name", "machine");
	SetSceneItem("po07", "name", "machine");
	SetSceneItem("po08", "name", "machine");
	SetSceneItem("po09", "name", "machine");
	SetSceneItem("po10", "name", "machine");
	SetSceneItem("po11", "name", "machine");
	SetSceneItem("po12", "name", "machine");
	SetSceneItem("po13", "name", "machine");
	SetSceneItem("po14", "name", "machine");
	SetSceneItem("po15", "name", "machine");
	SetSceneItem("po16", "name", "machine");
	SetSceneItem("po17", "name", "machine");
	SetSceneItem("po18", "name", "machine");
	SetSceneItem("po19", "name", "machine");
	SetSceneItem("po20", "name", "machine");
}

Scene_OnInit()
{
	int i;
	string name;

	SetSceneItem("D_floor01", "attribute", "collision", 1);
	SetSceneItem("D_floor02", "attribute", "collision", 1);
	SetSceneItem("D_floor03", "attribute", "collision", 1);
	SetSceneItem("D_floor04", "attribute", "collision", 1);
	SetSceneItem("D_floor05", "attribute", "collision", 1);
	SetSceneItem("D_floor06", "attribute", "collision", 1);
	SetSceneItem("D_floor07", "attribute", "collision", 1);
	SetSceneItem("D_floor08", "attribute", "collision", 1);
	SetSceneItem("D_floor09", "attribute", "collision", 1);
	SetSceneItem("D_floor10", "attribute", "collision", 1);
	SetSceneItem("D_floor11", "attribute", "collision", 1);
	SetSceneItem("D_floor12", "attribute", "collision", 1);
	SetSceneItem("D_floor13", "attribute", "collision", 1);
	SetSceneItem("D_floor14", "attribute", "collision", 1);
	SetSceneItem("D_floor15", "attribute", "collision", 1);
	SetSceneItem("D_floor16", "attribute", "collision", 1);
	SetSceneItem("D_floor17", "attribute", "collision", 1);
	SetSceneItem("D_floor18", "attribute", "collision", 1);
	SetSceneItem("D_floor19", "attribute", "collision", 1);
	SetSceneItem("D_floor20", "attribute", "collision", 1);
	SetSceneItem("D_floor21", "attribute", "collision", 1);
	SetSceneItem("D_floor22", "attribute", "collision", 1);
	SetSceneItem("D_floor23", "attribute", "collision", 1);
	SetSceneItem("D_floor24", "attribute", "collision", 1);
	SetSceneItem("D_floor25", "attribute", "collision", 1);
	SetSceneItem("D_floor26", "attribute", "collision", 1);
	SetSceneItem("D_floor27", "attribute", "collision", 1);
	SetSceneItem("D_floor28", "attribute", "collision", 1);
	SetSceneItem("D_floor29", "attribute", "collision", 1);
	SetSceneItem("D_floor30", "attribute", "collision", 1);
	SetSceneItem("po01", "attribute", "collision", 1);
	SetSceneItem("po02", "attribute", "collision", 1);
	SetSceneItem("po03", "attribute", "collision", 1);
	SetSceneItem("po04", "attribute", "collision", 1);
	SetSceneItem("po05", "attribute", "collision", 1);
	SetSceneItem("po06", "attribute", "collision", 1);
	SetSceneItem("po07", "attribute", "collision", 1);
	SetSceneItem("po08", "attribute", "collision", 1);
	SetSceneItem("po09", "attribute", "collision", 1);
	SetSceneItem("po10", "attribute", "collision", 1);
	SetSceneItem("po11", "attribute", "collision", 1);
	SetSceneItem("po12", "attribute", "collision", 1);
	SetSceneItem("po13", "attribute", "collision", 1);
	SetSceneItem("po14", "attribute", "collision", 1);
	SetSceneItem("po15", "attribute", "collision", 1);
	SetSceneItem("po16", "attribute", "collision", 1);
	SetSceneItem("po17", "attribute", "collision", 1);
	SetSceneItem("po18", "attribute", "collision", 1);
	SetSceneItem("po19", "attribute", "collision", 1);
	SetSceneItem("po20", "attribute", "collision", 1);
	InitBoxes(g_iNumBoxes);
	InitBBoxes(g_iNumBBoxes);
	InitChairs(g_iNumChairs);
	InitDeskes(g_iNumDeskes);
	InitJugs(g_iNumJugs);	
}
D_tpEC01_OnTouch(int id, int characterid)
{
	Output("EC01 Touched");
	MakeString(arenaname, "D_tpED", tpid+1);
	Misc("transfer", characterid, arenaname);
	Output("transfer", characterid, "to", tpid);
}
