/* 
	PScript by Zane Zoe(µØªz¡úš¢ÈËÒ¹)
	
	scene44
*/
#include "..\PScriptLib\Def.h"

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

int DeathMatch = 1;
int TeamDeathMatch = 5;
int GameMod;

int EventEnter = 200;
int EventExit = 201;
int EventDeath = 202;

int g_CharacterArena[99];
int g_ArenaCharacters[99];
int g_TeamAArenaCharacters[16];
int g_TeamBArenaCharacters[16];

Scene_OnLoad()
{
        SetSceneItem("D_zz01", "name", "machine");
	SetSceneItem("D_zz02", "name", "machine");
	SetSceneItem("D_zz03", "name", "machine");
	SetSceneItem("D_zz04", "name", "machine");
	SetSceneItem("D_zz05", "name", "machine");
	SetSceneItem("D_zz06", "name", "machine");
	SetSceneItem("D_zz07", "name", "machine");
	SetSceneItem("D_zz08", "name", "machine");
	SetSceneItem("D_zz09", "name", "machine");
	SetSceneItem("D_zz10", "name", "machine");
	SetSceneItem("D_zz11", "name", "machine");
	SetSceneItem("D_zz12", "name", "machine");
	SetSceneItem("D_zz13", "name", "machine");
	SetSceneItem("D_zz14", "name", "machine");
	SetSceneItem("D_zz15", "name", "machine");
	SetSceneItem("D_zz16", "name", "machine");
	SetSceneItem("D_zz17", "name", "machine");
	SetSceneItem("D_zz18", "name", "machine");
	SetSceneItem("D_zz19", "name", "machine");
	SetSceneItem("D_zz20", "name", "machine");
	SetSceneItem("D_zz21", "name", "machine");
	SetSceneItem("D_zz22", "name", "machine");
	SetSceneItem("D_zz23", "name", "machine");
	SetSceneItem("D_zz24", "name", "machine");
	SetSceneItem("D_zz25", "name", "machine");
	SetSceneItem("D_zz26", "name", "machine");
	SetSceneItem("D_zz27", "name", "machine");
	SetSceneItem("D_zz28", "name", "machine");
	SetSceneItem("D_zz29", "name", "machine");
	SetSceneItem("D_zz30", "name", "machine");
	SetSceneItem("D_zz31", "name", "machine");
	SetSceneItem("D_zz32", "name", "machine");
	SetSceneItem("D_zz33", "name", "machine");
	SetSceneItem("D_zz34", "name", "machine");
	SetSceneItem("D_zz35", "name", "machine");
	SetSceneItem("D_zz36", "name", "machine");
	SetSceneItem("D_zz37", "name", "machine");
	SetSceneItem("D_zz38", "name", "machine");
	SetSceneItem("D_zz39", "name", "machine");
	SetSceneItem("D_zz40", "name", "machine");
	SetSceneItem("D_zz41", "name", "machine");
	SetSceneItem("D_zz42", "name", "machine");
	SetSceneItem("D_zz43", "name", "machine");
	SetSceneItem("D_zz44", "name", "machine");
	SetSceneItem("D_zz45", "name", "machine");
	SetSceneItem("D_zz46", "name", "machine");
	SetSceneItem("D_zz47", "name", "machine");
	SetSceneItem("D_zz48", "name", "machine");
	SetSceneItem("D_zz49", "name", "machine");
	SetSceneItem("D_zz50", "name", "machine");
	SetSceneItem("D_zz51", "name", "machine");
	SetSceneItem("D_zz52", "name", "machine");
	SetSceneItem("D_zz53", "name", "machine");
	SetSceneItem("D_zz54", "name", "machine");
	SetSceneItem("D_zz55", "name", "machine");
	SetSceneItem("D_zz56", "name", "machine");
	SetSceneItem("D_zz57", "name", "machine");
	SetSceneItem("D_zz58", "name", "machine");
	SetSceneItem("D_zz59", "name", "machine");
	SetSceneItem("D_zz60", "name", "machine");
	SetSceneItem("D_zz61", "name", "machine");
	SetSceneItem("D_zz62", "name", "machine");
	SetSceneItem("D_zz63", "name", "machine");
	SetSceneItem("D_zz64", "name", "machine");
	SetSceneItem("D_zz65", "name", "machine");
	SetSceneItem("D_zz66", "name", "machine");
	SetSceneItem("D_zz67", "name", "machine");
	SetSceneItem("D_zz68", "name", "machine");
	SetSceneItem("D_zz69", "name", "machine");
	SetSceneItem("D_zz70", "name", "machine");
	SetSceneItem("D_zz71", "name", "machine");
	SetSceneItem("D_zz72", "name", "machine");
	SetSceneItem("D_zz73", "name", "machine");
	SetSceneItem("D_zz74", "name", "machine");
	SetSceneItem("D_zz75", "name", "machine");
	SetSceneItem("D_zz76", "name", "machine");
	SetSceneItem("D_zz77", "name", "machine");
	SetSceneItem("D_zz78", "name", "machine");
	SetSceneItem("D_zz79", "name", "machine");
	SetSceneItem("D_zz80", "name", "machine");
	SetSceneItem("D_zz81", "name", "machine");
	SetSceneItem("D_zz82", "name", "machine");
	SetSceneItem("D_zz83", "name", "machine");
	SetSceneItem("D_zz84", "name", "machine");
	SetSceneItem("D_zz85", "name", "machine");
	SetSceneItem("D_zz86", "name", "machine");
	SetSceneItem("D_zz87", "name", "machine");
	SetSceneItem("D_zz88", "name", "machine");
	SetSceneItem("D_zz89", "name", "machine");
	SetSceneItem("D_zz90", "name", "machine");
	SetSceneItem("D_zz91", "name", "machine");
	SetSceneItem("D_zz92", "name", "machine");
	SetSceneItem("D_zz93", "name", "machine");
	SetSceneItem("D_zz94", "name", "machine");
	SetSceneItem("D_zz95", "name", "machine");
	SetSceneItem("D_zz96", "name", "machine");
	SetSceneItem("D_zz97", "name", "machine");
	SetSceneItem("D_zz98", "name", "machine");
	SetSceneItem("D_zzz01", "name", "machine");
	SetSceneItem("D_zzz02", "name", "machine");
	SetSceneItem("D_zzz03", "name", "machine");
	SetSceneItem("D_zzz04", "name", "machine");
	SetSceneItem("D_zzz05", "name", "machine");
	SetSceneItem("D_zzb01", "name", "machine");
        SetSceneItem("D_zzb02", "name", "machine");
        SetSceneItem("D_zzb03", "name", "machine");
        SetSceneItem("D_zzb04", "name", "machine");
        SetSceneItem("D_zzb05", "name", "machine");
        SetSceneItem("D_zzb06", "name", "machine");
        SetSceneItem("D_zzb07", "name", "machine");
        SetSceneItem("D_zzb08", "name", "machine");
        SetSceneItem("D_zzb09", "name", "machine");
        SetSceneItem("D_zzb10", "name", "machine");
        SetSceneItem("D_zzb11", "name", "machine");
        SetSceneItem("D_zzb12", "name", "machine");
        SetSceneItem("D_zzb13", "name", "machine");
        SetSceneItem("D_zzb14", "name", "machine");
        SetSceneItem("D_zzb15", "name", "machine");
        SetSceneItem("D_zzb16", "name", "machine");
        SetSceneItem("D_zzb17", "name", "machine");
        SetSceneItem("D_zzb18", "name", "machine");
        SetSceneItem("D_zzb19", "name", "machine");
        SetSceneItem("D_zzb20", "name", "machine");
        SetSceneItem("D_zzb21", "name", "machine");
        SetSceneItem("D_zzb22", "name", "machine");
        SetSceneItem("D_zzb23", "name", "machine");
        SetSceneItem("D_zzb24", "name", "machine");
        SetSceneItem("D_zzb25", "name", "machine");
        SetSceneItem("D_zzb26", "name", "machine");
        SetSceneItem("D_zzb27", "name", "machine");
        SetSceneItem("D_zzb29", "name", "machine");
}

Scene_OnInit()
{
	SetSceneItem("D_zz01", "attribute", "collision", 1);
	SetSceneItem("D_zz02", "attribute", "collision", 1);
	SetSceneItem("D_zz03", "attribute", "collision", 1);
	SetSceneItem("D_zz04", "attribute", "collision", 1);
	SetSceneItem("D_zz05", "attribute", "collision", 1);
	SetSceneItem("D_zz06", "attribute", "collision", 1);
	SetSceneItem("D_zz07", "attribute", "collision", 1);
	SetSceneItem("D_zz08", "attribute", "collision", 1);
	SetSceneItem("D_zz09", "attribute", "collision", 1);
	SetSceneItem("D_zz10", "attribute", "collision", 1);
	SetSceneItem("D_zz11", "attribute", "collision", 1);
	SetSceneItem("D_zz12", "attribute", "collision", 1);
	SetSceneItem("D_zz13", "attribute", "collision", 1);
	SetSceneItem("D_zz14", "attribute", "collision", 1);
	SetSceneItem("D_zz15", "attribute", "collision", 1);
	SetSceneItem("D_zz16", "attribute", "collision", 1);
	SetSceneItem("D_zz17", "attribute", "collision", 1);
	SetSceneItem("D_zz18", "attribute", "collision", 1);
	SetSceneItem("D_zz19", "attribute", "collision", 1);
	SetSceneItem("D_zz20", "attribute", "collision", 1);
	SetSceneItem("D_zz21", "attribute", "collision", 1);
	SetSceneItem("D_zz22", "attribute", "collision", 1);
	SetSceneItem("D_zz23", "attribute", "collision", 1);
	SetSceneItem("D_zz24", "attribute", "collision", 1);
	SetSceneItem("D_zz25", "attribute", "collision", 1);
	SetSceneItem("D_zz26", "attribute", "collision", 1);
	SetSceneItem("D_zz27", "attribute", "collision", 1);
	SetSceneItem("D_zz28", "attribute", "collision", 1);
	SetSceneItem("D_zz29", "attribute", "collision", 1);
	SetSceneItem("D_zz30", "attribute", "collision", 1);
	SetSceneItem("D_zz31", "attribute", "collision", 1);
	SetSceneItem("D_zz32", "attribute", "collision", 1);
	SetSceneItem("D_zz33", "attribute", "collision", 1);
	SetSceneItem("D_zz34", "attribute", "collision", 1);
	SetSceneItem("D_zz35", "attribute", "collision", 1);
	SetSceneItem("D_zz36", "attribute", "collision", 1);
	SetSceneItem("D_zz37", "attribute", "collision", 1);
	SetSceneItem("D_zz38", "attribute", "collision", 1);
	SetSceneItem("D_zz39", "attribute", "collision", 1);
	SetSceneItem("D_zz40", "attribute", "collision", 1);
	SetSceneItem("D_zz41", "attribute", "collision", 1);
	SetSceneItem("D_zz42", "attribute", "collision", 1);
	SetSceneItem("D_zz43", "attribute", "collision", 1);
	SetSceneItem("D_zz44", "attribute", "collision", 1);
	SetSceneItem("D_zz45", "attribute", "collision", 1);
	SetSceneItem("D_zz46", "attribute", "collision", 1);
	SetSceneItem("D_zz47", "attribute", "collision", 1);
	SetSceneItem("D_zz48", "attribute", "collision", 1);
	SetSceneItem("D_zz49", "attribute", "collision", 1);
	SetSceneItem("D_zz50", "attribute", "collision", 1);
	SetSceneItem("D_zz51", "attribute", "collision", 1);
	SetSceneItem("D_zz52", "attribute", "collision", 1);
	SetSceneItem("D_zz53", "attribute", "collision", 1);
	SetSceneItem("D_zz54", "attribute", "collision", 1);
	SetSceneItem("D_zz55", "attribute", "collision", 1);
	SetSceneItem("D_zz56", "attribute", "collision", 1);
	SetSceneItem("D_zz57", "attribute", "collision", 1);
	SetSceneItem("D_zz58", "attribute", "collision", 1);
	SetSceneItem("D_zz59", "attribute", "collision", 1);
	SetSceneItem("D_zz60", "attribute", "collision", 1);
	SetSceneItem("D_zz61", "attribute", "collision", 1);
	SetSceneItem("D_zz62", "attribute", "collision", 1);
	SetSceneItem("D_zz63", "attribute", "collision", 1);
	SetSceneItem("D_zz64", "attribute", "collision", 1);
	SetSceneItem("D_zz65", "attribute", "collision", 1);
	SetSceneItem("D_zz66", "attribute", "collision", 1);
	SetSceneItem("D_zz67", "attribute", "collision", 1);
	SetSceneItem("D_zz68", "attribute", "collision", 1);
	SetSceneItem("D_zz69", "attribute", "collision", 1);
	SetSceneItem("D_zz70", "attribute", "collision", 1);
	SetSceneItem("D_zz71", "attribute", "collision", 1);
	SetSceneItem("D_zz72", "attribute", "collision", 1);
	SetSceneItem("D_zz73", "attribute", "collision", 1);
	SetSceneItem("D_zz74", "attribute", "collision", 1);
	SetSceneItem("D_zz75", "attribute", "collision", 1);
	SetSceneItem("D_zz76", "attribute", "collision", 1);
	SetSceneItem("D_zz77", "attribute", "collision", 1);
	SetSceneItem("D_zz78", "attribute", "collision", 1);
	SetSceneItem("D_zz79", "attribute", "collision", 1);
	SetSceneItem("D_zz80", "attribute", "collision", 1);
	SetSceneItem("D_zz81", "attribute", "collision", 1);
	SetSceneItem("D_zz82", "attribute", "collision", 1);
	SetSceneItem("D_zz83", "attribute", "collision", 1);
	SetSceneItem("D_zz84", "attribute", "collision", 1);
	SetSceneItem("D_zz85", "attribute", "collision", 1);
	SetSceneItem("D_zz86", "attribute", "collision", 1);
	SetSceneItem("D_zz87", "attribute", "collision", 1);
	SetSceneItem("D_zz88", "attribute", "collision", 1);
	SetSceneItem("D_zz89", "attribute", "collision", 1);
	SetSceneItem("D_zz90", "attribute", "collision", 1);
	SetSceneItem("D_zz91", "attribute", "collision", 1);
	SetSceneItem("D_zz92", "attribute", "collision", 1);
	SetSceneItem("D_zz93", "attribute", "collision", 1);
	SetSceneItem("D_zz94", "attribute", "collision", 1);
	SetSceneItem("D_zz95", "attribute", "collision", 1);
	SetSceneItem("D_zz96", "attribute", "collision", 1);
	SetSceneItem("D_zz97", "attribute", "collision", 1);
        SetSceneItem("D_zz98", "attribute", "collision", 1);
	SetSceneItem("D_zzz01", "attribute", "collision", 1);
	SetSceneItem("D_zzz02", "attribute", "collision", 1);
	SetSceneItem("D_zzz03", "attribute", "collision", 1);
	SetSceneItem("D_zzz04", "attribute", "collision", 1);
	SetSceneItem("D_zzz05", "attribute", "collision", 1);
	SetSceneItem("D_zzb01", "attribute", "collision", 1);
	SetSceneItem("D_zzb02", "attribute", "collision", 1);
	SetSceneItem("D_zzb03", "attribute", "collision", 1);
	SetSceneItem("D_zzb04", "attribute", "collision", 1);
	SetSceneItem("D_zzb05", "attribute", "collision", 1);
	SetSceneItem("D_zzb06", "attribute", "collision", 1);
	SetSceneItem("D_zzb07", "attribute", "collision", 1);
	SetSceneItem("D_zzb08", "attribute", "collision", 1);
	SetSceneItem("D_zzb09", "attribute", "collision", 1);
	SetSceneItem("D_zzb10", "attribute", "collision", 1);
	SetSceneItem("D_zzb11", "attribute", "collision", 1);
	SetSceneItem("D_zzb12", "attribute", "collision", 1);
	SetSceneItem("D_zzb13", "attribute", "collision", 1);
	SetSceneItem("D_zzb14", "attribute", "collision", 1);
	SetSceneItem("D_zzb15", "attribute", "collision", 1);
	SetSceneItem("D_zzb16", "attribute", "collision", 1);
	SetSceneItem("D_zzb17", "attribute", "collision", 1);
	SetSceneItem("D_zzb18", "attribute", "collision", 1);
	SetSceneItem("D_zzb19", "attribute", "collision", 1);
	SetSceneItem("D_zzb20", "attribute", "collision", 1);
	SetSceneItem("D_zzb21", "attribute", "collision", 1);
	SetSceneItem("D_zzb22", "attribute", "collision", 1);
	SetSceneItem("D_zzb23", "attribute", "collision", 1);
	SetSceneItem("D_zzb24", "attribute", "collision", 1);
	SetSceneItem("D_zzb25", "attribute", "collision", 1);
	SetSceneItem("D_zzb26", "attribute", "collision", 1);
	SetSceneItem("D_zzb27", "attribute", "collision", 1);
	SetSceneItem("D_zzb29", "attribute", "collision", 1);
	SetSceneItem("D_zz82", "attribute", "damage", 1);
	SetSceneItem("D_zz83", "attribute", "damage", 1);
	SetSceneItem("D_zz84", "attribute", "damage", 1);
	SetSceneItem("D_zz85", "attribute", "damage", 1);
	SetSceneItem("D_zz86", "attribute", "damage", 1);
	SetSceneItem("D_zz87", "attribute", "damage", 1);
	SetSceneItem("D_zz88", "attribute", "damage", 1);
	SetSceneItem("D_zz89", "attribute", "damage", 1);
	SetSceneItem("D_zz90", "attribute", "damage", 1);
	SetSceneItem("D_zz91", "attribute", "damage", 1);
	SetSceneItem("D_zz92", "attribute", "damage", 1);
	SetSceneItem("D_zz93", "attribute", "damage", 1);
	SetSceneItem("D_zz94", "attribute", "damage", 1);
	SetSceneItem("D_zz95", "attribute", "damage", 1);
	SetSceneItem("D_zz96", "attribute", "damage", 1);
	SetSceneItem("D_zz97", "attribute", "damage", 1);
	SetSceneItem("D_zz66", "attribute", "damage", 1);
	SetSceneItem("D_zz67", "attribute", "damage", 1);
	SetSceneItem("D_zz68", "attribute", "damage", 1);
	SetSceneItem("D_zz69", "attribute", "damage", 1);
	SetSceneItem("D_zz70", "attribute", "damage", 1);
	SetSceneItem("D_zz71", "attribute", "damage", 1);
	SetSceneItem("D_zz72", "attribute", "damage", 1);
	SetSceneItem("D_zz73", "attribute", "damage", 1);
	SetSceneItem("D_zz74", "attribute", "damage", 1);
	SetSceneItem("D_zz75", "attribute", "damage", 1);
	SetSceneItem("D_zz76", "attribute", "damage", 1);
	SetSceneItem("D_zz77", "attribute", "damage", 1);
	SetSceneItem("D_zz78", "attribute", "damage", 1);
	SetSceneItem("D_zz79", "attribute", "damage", 1);
	SetSceneItem("D_zz80", "attribute", "damage", 1);
	SetSceneItem("D_zz81", "attribute", "damage", 1);
        InitBoxes(g_iNumBoxes);
	InitBBoxes(g_iNumBBoxes);
	InitChairs(g_iNumChairs);
	InitDeskes(g_iNumDeskes);
	InitJugs(g_iNumJugs);
	GameMod = GameCallBack("mod", 0);
	int i;
	string itemname;
	for (i=0; i<16; i=i+1)
	{
		g_CharacterArena[i] = -1;
		g_ArenaCharacters[i] = 0;
		g_TeamAArenaCharacters[i] = 0;
		g_TeamBArenaCharacters[i] = 0;
		
		MakeString(itemname, "D_tpEC", i+1);
		SetSceneItem(itemname, "name", "machine");
		SetSceneItem(itemname, "attribute", "collision", 0);
		SetSceneItem(itemname, "attribute", "interactive", 1);

		MakeString(itemname, "D_tpEC", i+17);
		SetSceneItem(itemname, "name", "machine");
		SetSceneItem(itemname, "attribute", "collision", 0);
		SetSceneItem(itemname, "attribute", "interactive", 1);
	}

        for (i=0; i<8; i=i+1)
	{
		MakeString(itemname, "D_tpAC", i+1);
		SetSceneItem(itemname, "name", "machine");
		SetSceneItem(itemname, "attribute", "collision", 0);

		MakeString(itemname, "D_tpAC", i+9);
		SetSceneItem(itemname, "name", "machine");
		SetSceneItem(itemname, "attribute", "collision", 0);
		
		MakeString(itemname, "D_tpBC", i+1);
		SetSceneItem(itemname, "name", "machine");
		SetSceneItem(itemname, "attribute", "collision", 0);

		MakeString(itemname, "D_tpBC", i+9);
		SetSceneItem(itemname, "name", "machine");
		SetSceneItem(itemname, "attribute", "collision", 0);
	}
}

Scene_OnCharacterEvent(int id, int event)
{
	int i;
	int arena;
	int team;
	Output("Character:", id, "event:", event);
	
	if ( event==EventExit || event==EventDeath )
	{
		if ( GameMod==DeathMatch )
		{
			arena = g_CharacterArena[id];
			if ( arena!=-1 )
			{
				g_ArenaCharacters[arena] = g_ArenaCharacters[arena];
			}
			g_CharacterArena[id] = -1;
		}
		if ( GameMod==TeamDeathMatch )
		{
			arena = g_CharacterArena[id];
			team = GetTeam(id);
			if ( arena!=-1 )
			{
				if ( team==1 )
				{
					g_TeamAArenaCharacters[arena] = g_TeamAArenaCharacters[arena] - 1;
				}
				if ( team==2 )
				{
					g_TeamBArenaCharacters[arena] = g_TeamBArenaCharacters[arena] - 1;
				}
			}
			g_CharacterArena[id] = -1;
		}
	}		
}

TransferToArena(int characterid, int tpid)
{
	string arenaname;
	int arena = tpid/2;
	Output("arena characters", g_ArenaCharacters[arena]);
	if ( g_ArenaCharacters[arena]<99)
	{
		g_ArenaCharacters[arena]=g_ArenaCharacters[arena];
		g_CharacterArena[characterid] = arena;
		MakeString(arenaname, "D_tpED", tpid+1);
		Misc("transfer", characterid, arenaname);
		Output("transfer", characterid, "to", tpid);
	}
}
TransferFromArena(int characterid, int tpid)
{
	string arenaname;
	int arena = tpid/2;

	if ( g_ArenaCharacters[arena]<99)
	{
		g_ArenaCharacters[arena]=g_ArenaCharacters[arena];
		g_CharacterArena[characterid] = -1;
		MakeString(arenaname, "D_tpED", tpid+17);
		Misc("transfer", characterid, arenaname);
		Output("transfer", characterid, "from", tpid);
	}
}

D_tpEC01_OnTouch(int id, int characterid)
{
	Output("EC01 Touched");
	TransferToArena(characterid, 0);
}
D_tpEC02_OnTouch(int id, int characterid)
{
	Output("EC02 Touched");
	TransferToArena(characterid, 1);
}
D_tpEC03_OnTouch(int id, int characterid)
{
	Output("EC03 Touched");
	TransferToArena(characterid, 2);
}
D_tpEC04_OnTouch(int id, int characterid)
{
	Output("EC04 Touched");
	TransferToArena(characterid, 3);
}
D_tpEC05_OnTouch(int id, int characterid)
{
	Output("EC05 Touched");
	TransferToArena(characterid, 4);
}
D_tpEC06_OnTouch(int id, int characterid)
{
	Output("EC06 Touched");
	TransferToArena(characterid, 5);
}
D_tpEC07_OnTouch(int id, int characterid)
{
	Output("EC07 Touched");
	TransferToArena(characterid, 6);
}
D_tpEC08_OnTouch(int id, int characterid)
{
	Output("EC08 Touched");
	TransferToArena(characterid, 7);
}
D_tpEC09_OnTouch(int id, int characterid)
{
	Output("EC09 Touched");
	TransferToArena(characterid, 8);
}
D_tpEC10_OnTouch(int id, int characterid)
{
	Output("EC10 Touched");
	TransferToArena(characterid, 9);
}
D_tpEC11_OnTouch(int id, int characterid)
{
	Output("EC11 Touched");
	TransferToArena(characterid, 10);
}
D_tpEC12_OnTouch(int id, int characterid)
{
	Output("EC12 Touched");
	TransferToArena(characterid, 11);
}
D_tpEC13_OnTouch(int id, int characterid)
{
	Output("EC13 Touched");
	TransferToArena(characterid, 12);
}
D_tpEC14_OnTouch(int id, int characterid)
{
	Output("EC14 Touched");
	TransferToArena(characterid, 13);
}
D_tpEC15_OnTouch(int id, int characterid)
{
	Output("EC15 Touched");
	TransferToArena(characterid, 14);
}
D_tpEC16_OnTouch(int id, int characterid)
{
	Output("EC16 Touched");
	TransferToArena(characterid, 15);
}
D_tpEC17_OnTouch(int id, int characterid)
{
	Output("EC17 Touched");
	TransferToArena(characterid, 16);
}
D_tpEC18_OnTouch(int id, int characterid)
{
	Output("EC18 Touched");
	TransferToArena(characterid, 17);
}
D_tpEC19_OnTouch(int id, int characterid)
{
	Output("EC19 Touched");
	TransferToArena(characterid, 18);
}
D_tpEC20_OnTouch(int id, int characterid)
{
	Output("EC20 Touched");
	TransferToArena(characterid, 19);
}
D_tpEC21_OnTouch(int id, int characterid)
{
	Output("EC21 Touched");
	TransferToArena(characterid, 20);
}
D_tpEC22_OnTouch(int id, int characterid)
{
	Output("EC22 Touched");
	TransferToArena(characterid, 21);
}
D_tpEC23_OnTouch(int id, int characterid)
{
	Output("EC23 Touched");
	TransferToArena(characterid, 22);
}
D_tpEC24_OnTouch(int id, int characterid)
{
	Output("EC24 Touched");
	TransferToArena(characterid, 23);
}
D_tpEC25_OnTouch(int id, int characterid)
{
	Output("EC25 Touched");
	TransferToArena(characterid, 24);
}
D_tpEC26_OnTouch(int id, int characterid)
{
	Output("EC26 Touched");
	TransferToArena(characterid, 25);
}