
####animationscript function main#####
# data/chars/misc/bosslow2.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animnum = getlocalvar("animnum");
    if(animnum==0)
    {


	void self = getlocalvar("self");

	if (frame == 0){

	changeopenborvariant("slowmotion", 1);

	}

	if (frame == 22){

	changeopenborvariant("slowmotion", 0);

	damageentity(self, self, 1, 0, openborconstant("ATK_NORMAL"));

	}

	        return;
    }

}

####animationscript function main#####
# data/chars/chris/slamfl.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animnum = getlocalvar("animnum");
    if(animnum==0)
    {
        if(frame==12)
        {
            killentity(getlocalvar("self"));

        }
        return;
    }

}

####animationscript function main#####
# data/chars/bosf/spbg.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animnum = getlocalvar("animnum");
    if(animnum==0)
    {
        if(frame==56)
        {
            killentity(getlocalvar("self"));

        }
        return;
    }

}

####animationscript function main#####
# data/chars/chris/chspmg.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animnum = getlocalvar("animnum");
    if(animnum==0)
    {
        if(frame==0)
        {
            velo001(-2, 0, 0);

        }
        if(frame==2)
        {
            velo001(0, 0, 0);

        }
        if(frame==3)
        {
            killentity(getlocalvar("self"));

        }
        return;
    }

}

####animationscript function main#####
# data/chars/bosf/chrspc.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animnum = getlocalvar("animnum");
    if(animnum==0)
    {
        if(frame==27)
        {
            killentity(getlocalvar("self"));

        }
        return;
    }

}

####animationscript function main#####
# data/chars/bosf/chrspb.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animnum = getlocalvar("animnum");
    if(animnum==0)
    {
        if(frame==28)
        {
            killentity(getlocalvar("self"));

        }
        return;
    }

}

####animationscript function main#####
# data/chars/bosf/chrspa.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animnum = getlocalvar("animnum");
    if(animnum==0)
    {
        if(frame==0)
        {
            changeentityproperty(getlocalvar("self"), "velocity", 0, 0, -100);

        }
        if(frame==54)
        {
            killentity(getlocalvar("self"));

        }
        return;
    }

}

####animationscript function main#####
# data/chars/bosf/chrspe.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animnum = getlocalvar("animnum");
    if(animnum==0)
    {
        if(frame==15)
        {
            killentity(getlocalvar("self"));

        }
        return;
    }

}

####animationscript function main#####
# data/chars/bosf/chrspd.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animnum = getlocalvar("animnum");
    if(animnum==0)
    {
        if(frame==16)
        {
            killentity(getlocalvar("self"));

        }
        return;
    }

}

####animationscript function main#####
# data/chars/chris/chris6.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animnum = getlocalvar("animnum");
    if(animnum==37)
    {
        if(frame==0)
        {
            velo001(2, 0, 0);

        }
        if(frame==0)
        {
            shoot("dust", 0, 0, 0);

        }
        if(frame==3)
        {
            velo001(1.5, 0, 0);

        }
        if(frame==4)
        {
            velo001(1, 0, 0);

        }
        if(frame==5)
        {
            velo001(0.5, 0, 0);

        }
        if(frame==6)
        {
            velo001(0, 0, 0);

        }
        return;
    }
    if(animnum==7)
    {


	void self = getlocalvar("self");

	void vAniPos = getentityproperty(self, "animpos");

	void target = findtarget(self);

	void eAniID = getentityproperty(target, "animationID");

	float x1 = getentityproperty(target, "x");

	float x2 = getentityproperty(self, "x");

	float z1 = getentityproperty(target, "z");

	float z2 = getentityproperty(self, "z");

	if(frame == 0){

		if(eAniID == openborconstant("ANI_FALL") || eAniID == openborconstant("ANI_RISE") || eAniID == openborconstant("ANI_FALL5") || eAniID == openborconstant("ANI_FALL8") || eAniID == openborconstant("ANI_RISE")){

			if(z1-z2<20 && z1-z2>-20 && x1-x2>-80 && x1-x2<80){

				if(playerkeys(getentityproperty(self, "playerindex"), 0, "moveup")){

					changeentityproperty(self, "animation", openborconstant("ANI_FREESPECIAL11"));

				}

				if(playerkeys(getentityproperty(self, "playerindex"), 0, "movedown")){

					changeentityproperty(self, "animation", openborconstant("ANI_FREESPECIAL14"));

				}

			}

		}

	}

	        return;
    }
    if(animnum==35)
    {
        if(frame==1)
        {
            velo001(1, 0, 0);

        }
        if(frame==2)
        {
            velo001(2, 0, 0);

        }
        if(frame==4)
        {
            velo001(1, 0, 0);

        }
        if(frame==5)
        {
            velo001(0.5, 0, 0);

        }
        if(frame==6)
        {
            velo001(0, 0, 0);

        }
        return;
    }
    if(animnum==66)
    {
        if(frame==8)
        {
            spawner("chrspa", 0, -1, 1);

        }
        if(frame==9)
        {
            ani001("ANI_JUMP", 2);

        }
        return;
    }
    if(animnum==81)
    {
        if(frame==3)
        {
            velo001(-2, 0, 0);

        }
        if(frame==5)
        {
            velo001(-1.6, 0, 0);

        }
        if(frame==7)
        {
            velo001(-1.2, 0, 0);

        }
        if(frame==9)
        {
            velo001(-0.8, 0, 0);

        }
        if(frame==11)
        {
            velo001(-0.4, 0, 0);

        }
        if(frame==13)
        {
            velo001(0, 0, 0);

        }
        return;
    }
    if(animnum==166)
    {
        if(frame==1)
        {
            velo001(1, 0, 0);

        }
        if(frame==5)
        {
            velo001(0.9, 0, 0);

        }
        if(frame==7)
        {
            velo001(0.6, 0, 0);

        }
        if(frame==9)
        {
            velo001(0.3, 0, 0);

        }
        if(frame==11)
        {
            velo001(0, 0, 0);

        }
        return;
    }
    if(animnum==123)
    {
        if(frame==1)
        {
            velo001(2, 0, 0);

        }
        if(frame==4)
        {
            velo001(1.5, 0, 0);

        }
        if(frame==7)
        {
            velo001(1, 0, 0);

        }
        if(frame==10)
        {
            velo001(0.5, 0, 0);

        }
        if(frame==13)
        {
            velo001(0, 0, 0);

        }
        return;
    }
    if(animnum==174)
    {
        if(frame==5)
        {
            shoot("axeb", 58, 68, 0);

        }
        return;
    }

}

####animationscript function main#####
# data/chars/misc/aura1.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animnum = getlocalvar("animnum");
    if(animnum==0)
    {
        if(frame==1)
        {
            killentity(getlocalvar("self"));

        }
        return;
    }

}

####animationscript function main#####
# data/chars/misc/aura2.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animnum = getlocalvar("animnum");
    if(animnum==0)
    {
        if(frame==1)
        {
            killentity(getlocalvar("self"));

        }
        return;
    }

}

####animationscript function main#####
# data/chars/misc/cntfl.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animnum = getlocalvar("animnum");
    if(animnum==0)
    {
        if(frame==8)
        {
            killentity(getlocalvar("self"));

        }
        return;
    }

}

####animationscript function main#####
# data/chars/misc/aura3.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animnum = getlocalvar("animnum");
    if(animnum==0)
    {
        if(frame==1)
        {
            killentity(getlocalvar("self"));

        }
        return;
    }

}

####animationscript function main#####
# data/chars/chris/chris.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animnum = getlocalvar("animnum");
    if(animnum==22)
    {
        if(frame==0)
        {
            clearL();

        }
        if(frame==4)
        {
            shoot("cape", 21, 13, 0);

        }
        return;
    }
    if(animnum==104)
    {
        if(frame==0)
        {
            clearL();

        }
        return;
    }
    if(animnum==0)
    {
        if(frame==1)
        {
            clearL();

        }
        if(frame==1)
        {
            aiflag("blocking", 0, "common_attack_proc");

        }
        return;
    }
    if(animnum==1)
    {
        if(frame==0)
        {
            clearL();

        }
        return;
    }
    if(animnum==37)
    {


	void self = getlocalvar("self");

	void target = findtarget(self);

	float x1 = getentityproperty(target, "x");

	float x2 = getentityproperty(self, "x");

	float z1 = getentityproperty(target, "z");

	float z2 = getentityproperty(self, "z");

	if(frame == 0){

		if(z1-z2<15 && z1-z2>-15 && x1-x2>-50 && x1-x2<50){

			changeentityproperty(self, "animation", openborconstant("ANI_FREESPECIAL12"));

		}

	}

	        if(frame==0)
        {
            velo001(2, 0, 0);

        }
        if(frame==1)
        {
            shoot("dust", 20, 1, 0);

        }
        if(frame==5)
        {
            velo001(1.5, 0, 0);

        }
        if(frame==7)
        {
            velo001(1, 0, 0);

        }
        if(frame==9)
        {
            velo001(0.5, 0, 0);

        }
        if(frame==11)
        {
            velo001(0, 0, 0);

        }
        return;
    }
    if(animnum==7)
    {


	void self = getlocalvar("self");

	void vAniPos = getentityproperty(self, "animpos");

	void target = findtarget(self);

	void eAniID = getentityproperty(target, "animationID");

	float x1 = getentityproperty(target, "x");

	float x2 = getentityproperty(self, "x");

	float z1 = getentityproperty(target, "z");

	float z2 = getentityproperty(self, "z");

	if(frame == 0){

		if(eAniID == openborconstant("ANI_FALL") || eAniID == openborconstant("ANI_RISE") || eAniID == openborconstant("ANI_FALL5") || eAniID == openborconstant("ANI_FALL8") || eAniID == openborconstant("ANI_RISE")){

			if(z1-z2<20 && z1-z2>-20 && x1-x2>-80 && x1-x2<80){

				if(playerkeys(getentityproperty(self, "playerindex"), 0, "movedown")){

					changeentityproperty(self, "animation", openborconstant("ANI_FREESPECIAL11"));

				}

			}

			if(z1-z2<20 && z1-z2>-20 && x1-x2>-100 && x1-x2<100){

				if(playerkeys(getentityproperty(self, "playerindex"), 0, "moveup")){

					changeentityproperty(self, "animation", openborconstant("ANI_FREESPECIAL14"));

				}

			}

		}

	}

	        return;
    }
    if(animnum==10)
    {
        if(frame==0)
        {
            keyint("ANI_FREESPECIAL16", 0, "UA", 0, 200);

        }
        if(frame==0)
        {
            keyint("ANI_FREESPECIAL28", 0, "DA", 0, 200);

        }
        return;
    }
    if(animnum==188)
    {
        if(frame==7)
        {
            velo001(2, 0, 0);

        }
        if(frame==8)
        {
            velo001(1, 0, 0);

        }
        if(frame==9)
        {
            velo001(0.5, 0, 0);

        }
        if(frame==10)
        {
            velo001(0, 0, 0);

        }
        return;
    }
    if(animnum==35)
    {
        if(frame==1)
        {
            keyint("ANI_FREESPECIAL31", 0, "S", 0, 200);

        }
        if(frame==2)
        {
            velo001(1, 0, 0);

        }
        if(frame==3)
        {
            velo001(2, 0, 0);

        }
        if(frame==5)
        {
            velo001(1, 0, 0);

        }
        if(frame==6)
        {
            velo001(0.5, 0, 0);

        }
        if(frame==7)
        {
            velo001(0, 0, 0);

        }
        return;
    }
    if(animnum==66)
    {
        if(frame==8)
        {
            spawner("chrspa", 0, -1, 1);

        }
        if(frame==9)
        {
            ani001("ANI_JUMP", 2);

        }
        return;
    }
    if(animnum==18)
    {
        if(frame==0)
        {
            keyint("ANI_FREESPECIAL16", 0, "UJ", 0, 200);

        }
        if(frame==0)
        {
            keyint("ANI_FREESPECIAL24", 0, "DJ", 0, 200);

        }
        if(frame==0)
        {
            keyint("ANI_FREESPECIAL29", 0, "FJ", 0, 25);

        }
        if(frame==0)
        {
            keyint("ANI_FREESPECIAL30", 0, "BJ", 0, 25);

        }
        if(frame==0)
        {
            keyint("ANI_FREESPECIAL26", 0, "J", 0, 25);

        }
        if(frame==0)
        {
            keyint("ANI_FREESPECIAL17", 0, "FJ", 0, 200);

        }
        if(frame==0)
        {
            keyint("ANI_FREESPECIAL27", 0, "BJ", 0, 200);

        }
        return;
    }
    if(animnum==56)
    {
        if(frame==10)
        {
            velo001(2, 0, 0);

        }
        if(frame==11)
        {
            velo001(1, 0, 0);

        }
        if(frame==12)
        {
            velo001(0.5, 0, 0);

        }
        return;
    }
    if(animnum==5)
    {
        if(frame==1)
        {
            recover();

        }
        return;
    }
    if(animnum==12)
    {
        if(frame==1)
        {
            keyint("ANI_FOLLOW3", 0, "S", 0, 200);

        }
        return;
    }
    if(animnum==81)
    {
        if(frame==2)
        {
            keyint("ANI_FREESPECIAL9", 0, "SB", 0, 200);

        }
        if(frame==3)
        {
            velo001(-2, 0, 0);

        }
        if(frame==3)
        {
            shoot("dust", 0, 1, 0);

        }
        if(frame==5)
        {
            velo001(-1.6, 0, 0);

        }
        if(frame==7)
        {
            velo001(-1.2, 0, 0);

        }
        if(frame==9)
        {
            velo001(-0.8, 0, 0);

        }
        if(frame==11)
        {
            velo001(-0.4, 0, 0);

        }
        if(frame==13)
        {
            velo001(0, 0, 0);

        }
        return;
    }
    if(animnum==169)
    {
        if(frame==0)
        {
            anti();

        }
        if(frame==1)
        {
            hurt(0, 7);

        }
        if(frame==1)
        {
            position(0, 2, -30, -1, -1);

        }
        if(frame==2)
        {
            hurt(0, 7);

        }
        if(frame==2)
        {
            position(0, -29, 1, -1, -1);

        }
        if(frame==3)
        {
            hurt(0, 7);

        }
        if(frame==3)
        {
            position(0, -8, 20, -1, -1);

        }
        if(frame==4)
        {
            hurt(0, 7);

        }
        if(frame==4)
        {
            position(0, -5, 25, -1, -1);

        }
        if(frame==5)
        {
            hurt(0, 7);

        }
        if(frame==5)
        {
            position(1, 9, 38, -1, -1);

        }
        if(frame==5)
        {
            shoot("slamfl", 0, 58, 1);

        }
        if(frame==5)
        {
            shoot("dust", 0, 1, 0);

        }
        if(frame==6)
        {
            hurt(0, 7);

        }
        if(frame==6)
        {
            position(1, 9, 38, -1, -1);

        }
        if(frame==7)
        {
            hurt(0, 7);

        }
        if(frame==7)
        {
            position(1, 9, 38, -1, -1);

        }
        if(frame==8)
        {
            depost(0);

        }
        if(frame==8)
        {
            finish(50, 3, -2, 2, 0, 0);

        }
        return;
    }
    if(animnum==44)
    {
        if(frame==0)
        {
            changeentityproperty(getlocalvar("self"), "velocity", 0, 1, 0);

        }
        if(frame==5)
        {
            changeentityproperty(getlocalvar("self"), "velocity", 0, 0, 0);

        }
        return;
    }
    if(animnum==45)
    {
        if(frame==0)
        {
            changeentityproperty(getlocalvar("self"), "velocity", 0, -1, 0);

        }
        if(frame==5)
        {
            changeentityproperty(getlocalvar("self"), "velocity", 0, 0, 0);

        }
        return;
    }
    if(animnum==161)
    {
        if(frame==6)
        {
            changeentityproperty(getlocalvar("self"), "velocity", 0, 0, 0);

        }
        return;
    }
    if(animnum==164)
    {
        if(frame==16)
        {
            aiflag("jumping", 0, "common_land");

        }
        return;
    }
    if(animnum==168)
    {
        if(frame==7)
        {
            aiflag("jumping", 0, "common_land");

        }
        return;
    }
    if(animnum==170)
    {
        if(frame==4)
        {
            ani001("ANI_FREESPECIAL19", 0);

        }
        return;
    }
    if(animnum==171)
    {
        if(frame==0)
        {
            keycheck();

        }
        if(frame==2)
        {
            flipdir();

        }
        if(frame==4)
        {
            flipdir();

        }
        if(frame==6)
        {
            flipdir();

        }
        if(frame==8)
        {
            flipdir();

        }
        if(frame==10)
        {
            flipdir();

        }
        if(frame==12)
        {
            flipdir();

        }
        if(frame==14)
        {
            flipdir();

        }
        if(frame==16)
        {
            flipdir();

        }
        if(frame==18)
        {
            flipdir();

        }
        if(frame==20)
        {
            flipdir();

        }
        if(frame==22)
        {
            ani001("ANI_FREESPECIAL20", 0);

        }
        return;
    }
    if(animnum==174)
    {
        if(frame==1)
        {
            keyint("ANI_FOLLOW2", 0, "A2", 0, 200);

        }
        return;
    }
    if(animnum==82)
    {
        if(frame==1)
        {
            keyint("ANI_FOLLOW2", 0, "A2", 0, 200);

        }
        return;
    }
    if(animnum==83)
    {
        if(frame==1)
        {
            keyint("ANI_FOLLOW5", 0, "S", 0, 200);

        }
        return;
    }
    if(animnum==219)
    {
        if(frame==1)
        {
            keyint("ANI_FOLLOW3", 0, "S", 0, 200);

        }
        return;
    }
    if(animnum==84)
    {


	void self = getlocalvar("self");

	changeentityproperty(self, "aiflag", "idling", 0);

	changeentityproperty(self, "aiflag", "walking", 0);

	changeentityproperty(self, "aiflag", "blocking", 0);

	changeentityproperty(self, "takeaction", "common_pain");

	        if(frame==11)
        {
            velo001(0, 0, 0);

        }
        return;
    }
    if(animnum==224)
    {
        if(frame==1)
        {
            velo001(2, 0, 0);

        }
        if(frame==4)
        {
            velo001(1.5, 0, 0);

        }
        if(frame==7)
        {
            velo001(1, 0, 0);

        }
        if(frame==10)
        {
            velo001(0.5, 0, 0);

        }
        if(frame==13)
        {
            velo001(0, 0, 0);

        }
        return;
    }
    if(animnum==178)
    {
        if(frame==0)
        {
            anti();

        }
        if(frame==1)
        {
            hurt(0, 7);

        }
        if(frame==1)
        {
            position(0, 2, -30, -1, -1);

        }
        if(frame==2)
        {
            position(0, -29, 1, -1, -1);

        }
        if(frame==3)
        {
            position(0, -8, 20, -1, -1);

        }
        if(frame==4)
        {
            position(0, -5, 25, -1, -1);

        }
        if(frame==5)
        {
            position(0, 2, -30, -1, -1);

        }
        if(frame==6)
        {
            hurt(0, 8);

        }
        if(frame==6)
        {
            position(0, -10, 1, -1, 1);

        }
        if(frame==7)
        {
            position(0, -10, 1, -1, 1);

        }
        if(frame==7)
        {
            shoot("slamfl", 0, 15, 1);

        }
        if(frame==7)
        {
            shoot("dst", 0, 0, 1);

        }
        if(frame==7)
        {
            hurt(0, 8);

        }
        if(frame==8)
        {
            hurt(0, 8);

        }
        if(frame==8)
        {
            position(0, -10, 1, -1, 1);

        }
        if(frame==9)
        {
            hurt(0, 8);

        }
        if(frame==9)
        {
            position(0, -10, 1, -1, 1);

        }
        if(frame==10)
        {
            keyint("ANI_FREESPECIAL17", 0, "FJ", 0, 200);

        }
        if(frame==10)
        {
            keyint("ANI_FREESPECIAL27", 0, "BJ", 0, 200);

        }
        if(frame==10)
        {
            depost(0);

        }
        if(frame==10)
        {
            finish(75, 3, -2, 2, 0, 0);

        }
        return;
    }
    if(animnum==179)
    {
        if(frame==0)
        {
            anti();

        }
        if(frame==0)
        {
            position(0, 28, 10, -1, 1);

        }
        if(frame==1)
        {
            hurt(0, 7);

        }
        if(frame==1)
        {
            position(1, 0, 50, -1, 1);

        }
        if(frame==2)
        {
            hurt(0, 7);

        }
        if(frame==2)
        {
            position(1, 0, 50, -1, 1);

        }
        if(frame==3)
        {
            hurt(0, 8);

        }
        if(frame==3)
        {
            position(0, -30, 30, -1, -1);

        }
        if(frame==4)
        {
            hurt(0, 8);

        }
        if(frame==4)
        {
            position(0, -30, 20, -1, -1);

        }
        if(frame==5)
        {
            hurt(0, 8);

        }
        if(frame==5)
        {
            position(0, -30, 10, -1, -1);

        }
        if(frame==6)
        {
            hurt(0, 8);

        }
        if(frame==6)
        {
            position(0, -30, 0, -1, -1);

        }
        if(frame==7)
        {
            hurt(0, 8);

        }
        if(frame==7)
        {
            position(0, -30, 0, -1, -1);

        }
        if(frame==7)
        {
            shoot("slamfl", 0, 15, 1);

        }
        if(frame==7)
        {
            shoot("dust", 0, 1, 0);

        }
        if(frame==8)
        {
            hurt(0, 8);

        }
        if(frame==8)
        {
            position(0, -30, 0, -1, -1);

        }
        if(frame==9)
        {
            hurt(0, 8);

        }
        if(frame==9)
        {
            position(0, -30, 0, -1, -1);

        }
        if(frame==10)
        {
            depost(0);

        }
        if(frame==10)
        {
            finish(50, 3, 2, 2, 0, 1);

        }
        return;
    }
    if(animnum==180)
    {
        if(frame==1)
        {
            velo001(1.5, 0, 0);

        }
        if(frame==4)
        {
            velo001(1, 0, 0);

        }
        if(frame==7)
        {
            velo001(0.5, 0, 0);

        }
        if(frame==10)
        {
            velo001(0, 0, 0);

        }
        return;
    }
    if(animnum==181)
    {
        if(frame==0)
        {
            anti();

        }
        if(frame==1)
        {
            hurt(0, 7);

        }
        if(frame==1)
        {
            position(0, 2, -30, -1, -1);

        }
        if(frame==2)
        {
            position(0, -29, 1, -1, -1);

        }
        if(frame==3)
        {
            position(0, -8, 20, -1, -1);

        }
        if(frame==4)
        {
            position(0, -5, 25, -1, -1);

        }
        if(frame==5)
        {
            position(0, 2, -30, -1, -1);

        }
        if(frame==6)
        {
            hurt(0, 8);

        }
        if(frame==6)
        {
            position(0, -10, 1, -1, 1);

        }
        if(frame==7)
        {
            position(0, -10, 1, -1, 1);

        }
        if(frame==7)
        {
            shoot("slamfl", 0, 15, 1);

        }
        if(frame==7)
        {
            shoot("dst", 0, 0, 1);

        }
        if(frame==7)
        {
            hurt(0, 8);

        }
        if(frame==8)
        {
            hurt(0, 8);

        }
        if(frame==8)
        {
            position(0, -10, 1, -1, 1);

        }
        if(frame==9)
        {
            hurt(0, 8);

        }
        if(frame==9)
        {
            position(0, -10, 1, -1, 1);

        }
        if(frame==10)
        {
            depost(0);

        }
        if(frame==10)
        {
            finish(75, 3, -2, 2, 0, 0);

        }
        return;
    }
    if(animnum==182)
    {
        if(frame==0)
        {
            anti();

        }
        if(frame==1)
        {
            hurt(0, 7);

        }
        if(frame==1)
        {
            position(0, 2, -30, -1, -1);

        }
        if(frame==2)
        {
            position(0, -29, 1, -1, -1);

        }
        if(frame==3)
        {
            position(0, -8, 20, -1, -1);

        }
        if(frame==4)
        {
            position(0, -5, 25, -1, -1);

        }
        if(frame==5)
        {
            position(0, 2, -30, -1, -1);

        }
        if(frame==6)
        {
            hurt(0, 8);

        }
        if(frame==6)
        {
            position(0, -10, 1, -1, 1);

        }
        if(frame==7)
        {
            position(0, -10, 1, -1, 1);

        }
        if(frame==7)
        {
            shoot("slamfl", 0, 15, 1);

        }
        if(frame==7)
        {
            shoot("dst", 0, 0, 1);

        }
        if(frame==7)
        {
            hurt(0, 8);

        }
        if(frame==8)
        {
            hurt(0, 8);

        }
        if(frame==8)
        {
            position(0, -10, 1, -1, 1);

        }
        if(frame==9)
        {
            hurt(0, 8);

        }
        if(frame==9)
        {
            position(0, -10, 1, -1, 1);

        }
        if(frame==10)
        {
            depost(0);

        }
        if(frame==10)
        {
            finish(75, 3, -2, 2, 0, 0);

        }
        return;
    }
    if(animnum==183)
    {
        if(frame==1)
        {
            shoot("aura1", 0, 0, 1);

        }
        if(frame==3)
        {
            shoot("aura2", 0, 0, -1);

        }
        if(frame==4)
        {
            keyint("ANI_FREESPECIAL32", 0, "S", 0, 200);

        }
        if(frame==5)
        {
            velo001(1, 0, 0);

        }
        if(frame==6)
        {
            velo001(2, 0, 0);

        }
        if(frame==8)
        {
            velo001(1, 0, 0);

        }
        if(frame==9)
        {
            velo001(0.5, 0, 0);

        }
        if(frame==10)
        {
            velo001(0, 0, 0);

        }
        return;
    }
    if(animnum==184)
    {
        if(frame==1)
        {
            shoot("aura1", 0, 0, 1);

        }
        if(frame==3)
        {
            shoot("aura3", 0, 0, -1);

        }
        if(frame==4)
        {
            keyint("ANI_FREESPECIAL32", 0, "S", 0, 200);

        }
        if(frame==5)
        {
            velo001(3, 0, 0);

        }
        if(frame==9)
        {
            velo001(1, 0, 0);

        }
        if(frame==10)
        {
            velo001(0, 0, 0);

        }
        return;
    }
    if(animnum==185)
    {
        if(frame==16)
        {
            velo001(0.5, 0, 0);

        }
        if(frame==19)
        {
            velo001(0, 0, 0);

        }
        return;
    }
    if(animnum==123)
    {
        if(frame==1)
        {
            velo001(2, 0, 0);

        }
        if(frame==4)
        {
            velo001(1.5, 0, 0);

        }
        if(frame==7)
        {
            velo001(1, 0, 0);

        }
        if(frame==10)
        {
            velo001(0.5, 0, 0);

        }
        if(frame==13)
        {
            velo001(0, 0, 0);

        }
        return;
    }
    if(animnum==25)
    {
        if(frame==0)
        {
            velo001(0, 1, 0);

        }
        if(frame==5)
        {
            changeentityproperty(getlocalvar("self"), "velocity", 0, 0, 0);

        }
        return;
    }
    if(animnum==43)
    {
        if(frame==0)
        {
            velo001(0, -1, 0);

        }
        if(frame==4)
        {
            changeentityproperty(getlocalvar("self"), "velocity", 0, 0, 0);

        }
        return;
    }
    if(animnum==46)
    {
        if(frame==0)
        {
            velo001(-2, 0, 0);

        }
        if(frame==5)
        {
            changeentityproperty(getlocalvar("self"), "velocity", 0, 0, 0);

        }
        return;
    }
    if(animnum==47)
    {
        if(frame==0)
        {
            velo001(2, 0, 0);

        }
        if(frame==5)
        {
            changeentityproperty(getlocalvar("self"), "velocity", 0, 0, 0);

        }
        return;
    }
    if(animnum==191)
    {


	void self = getlocalvar("self");

	void SHealth = getentityproperty(self,"health"); 

	if (frame == 5){

	setidle(self);

	changeentityproperty(self, "health", SHealth + 4);

	}

	        if(frame==1)
        {
            aiflag("falling", 0, "common_pain");

        }
        if(frame==1)
        {
            aiflag("drop", 0, "common_pain");

        }
        if(frame==1)
        {
            aiflag("projectile", 0, "common_pain");

        }
        return;
    }

}

####animationscript function main#####
# data/chars/jack/jack.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animnum = getlocalvar("animnum");
    if(animnum==22)
    {
        if(frame==4)
        {
            shoot("cape3", -30, 66, -2);

        }
        return;
    }
    if(animnum==0)
    {
        if(frame==0)
        {
            clearL();

        }
        return;
    }
    if(animnum==1)
    {
        if(frame==0)
        {
            clearL();

        }
        return;
    }
    if(animnum==7)
    {


	void self = getlocalvar("self");

	void vAniPos = getentityproperty(self, "animpos");

	void target = findtarget(self);

	void eAniID = getentityproperty(target, "animationID");

	float x1 = getentityproperty(target, "x");

	float x2 = getentityproperty(self, "x");

	float z1 = getentityproperty(target, "z");

	float z2 = getentityproperty(self, "z");

	if(frame == 0){

		if(eAniID == openborconstant("ANI_FALL") || eAniID == openborconstant("ANI_RISE") || eAniID == openborconstant("ANI_FALL5") || eAniID == openborconstant("ANI_FALL8") || eAniID == openborconstant("ANI_RISE")){

			if(z1-z2<20 && z1-z2>-20 && x1-x2>-80 && x1-x2<80){

				if(playerkeys(getentityproperty(self, "playerindex"), 0, "movedown")){

					changeentityproperty(self, "animation", openborconstant("ANI_FREESPECIAL11"));

				}

			}

			if(z1-z2<20 && z1-z2>-20 && x1-x2>-100 && x1-x2<100){

				if(playerkeys(getentityproperty(self, "playerindex"), 0, "moveup")){

					changeentityproperty(self, "animation", openborconstant("ANI_FREESPECIAL14"));

				}

			}

		}

	}

	        return;
    }
    if(animnum==10)
    {
        if(frame==0)
        {
            keyint("ANI_RUNATTACK", 0, "DA", 0, 200);

        }
        if(frame==0)
        {
            keyint("ANI_GRABFORWARD2", 0, "UA", 0, 200);

        }
        return;
    }
    if(animnum==37)
    {


	void self = getlocalvar("self");

	void target = findtarget(self);

	float x1 = getentityproperty(target, "x");

	float x2 = getentityproperty(self, "x");

	float z1 = getentityproperty(target, "z");

	float z2 = getentityproperty(self, "z");

	if(frame == 0){

		if(z1-z2<15 && z1-z2>-15 && x1-x2>-60 && x1-x2<60){

			changeentityproperty(self, "animation", openborconstant("ANI_FREESPECIAL12"));

		}

	}

	        if(frame==0)
        {
            velo001(2, 0, 0);

        }
        if(frame==1)
        {
            shoot("dust", 20, 1, 0);

        }
        if(frame==9)
        {
            velo001(1.5, 0, 0);

        }
        if(frame==10)
        {
            velo001(1, 0, 0);

        }
        if(frame==11)
        {
            velo001(0.5, 0, 0);

        }
        return;
    }
    if(animnum==20)
    {
        if(frame==0)
        {
            keycheck();

        }
        if(frame==55)
        {
            velo001(0, 0, 0);

        }
        return;
    }
    if(animnum==35)
    {
        if(frame==5)
        {
            keyint("ANI_FREESPECIAL31", 0, "S", 0, 200);

        }
        if(frame==6)
        {
            velo001(1, 0, 0);

        }
        if(frame==13)
        {
            velo001(0.5, 0, 0);

        }
        if(frame==14)
        {
            velo001(0.3, 0, 0);

        }
        if(frame==15)
        {
            velo001(0, 0, 0);

        }
        return;
    }
    if(animnum==66)
    {
        if(frame==16)
        {
            spawner("jkspa", 4, 90, 1);

        }
        if(frame==17)
        {
            ani001("ANI_JUMP", 2);

        }
        return;
    }
    if(animnum==17)
    {
        if(frame==0)
        {
            ani002("ANI_GRABBED", 0);

        }
        return;
    }
    if(animnum==18)
    {
        if(frame==0)
        {
            ani002("ANI_GRABBED", 0);

        }
        if(frame==0)
        {
            keyint("ANI_FREESPECIAL40", 0, "DJ", 0, 25);

        }
        if(frame==0)
        {
            keyint("ANI_FREESPECIAL29", 0, "FJ", 0, 25);

        }
        if(frame==0)
        {
            keyint("ANI_FREESPECIAL30", 0, "BJ", 0, 25);

        }
        if(frame==0)
        {
            keyint("ANI_FREESPECIAL34", 0, "UJ", 0, 200);

        }
        if(frame==0)
        {
            keyint("ANI_FREESPECIAL26", 0, "J", 0, 25);

        }
        if(frame==0)
        {
            keyint("ANI_FREESPECIAL24", 0, "DJ", 0, 200);

        }
        if(frame==0)
        {
            keyint("ANI_FREESPECIAL17", 0, "FJ", 0, 200);

        }
        if(frame==0)
        {
            keyint("ANI_FREESPECIAL27", 0, "BJ", 0, 200);

        }
        return;
    }
    if(animnum==110)
    {
        if(frame==0)
        {
            ani002("ANI_GRABBED", 0);

        }
        if(frame==0)
        {
            anti();

        }
        if(frame==0)
        {
            position(0, 38, 0, -1, 1);

        }
        if(frame==1)
        {
            hurt(0, 7);

        }
        if(frame==1)
        {
            position(0, 30, 10, -1, 1);

        }
        if(frame==2)
        {
            hurt(0, 7);

        }
        if(frame==2)
        {
            position(1, -10, 65, -1, 1);

        }
        if(frame==3)
        {
            hurt(0, 7);

        }
        if(frame==3)
        {
            position(1, -10, 30, -1, 1);

        }
        if(frame==3)
        {
            depost(0);

        }
        if(frame==3)
        {
            throw(25, 3, -2, 2, 0, 0);

        }
        return;
    }
    if(animnum==54)
    {
        if(frame==0)
        {
            ani002("ANI_GRABBED", 0);

        }
        if(frame==0)
        {
            anti();

        }
        if(frame==0)
        {
            position(0, 44, 0, -1, -1);

        }
        if(frame==1)
        {
            hurt(0, 8);

        }
        if(frame==1)
        {
            position(2, 50, 100, -1, -1);

        }
        if(frame==2)
        {
            hurt(0, 8);

        }
        if(frame==2)
        {
            position(2, -40, 100, -1, 1);

        }
        if(frame==3)
        {
            hurt(0, 8);

        }
        if(frame==3)
        {
            position(2, 0, 100, -1, 1);

        }
        if(frame==4)
        {
            hurt(0, 8);

        }
        if(frame==4)
        {
            shoot("dst", 110, 0, 1);

        }
        if(frame==4)
        {
            shoot("slamfl", 110, 0, 2);

        }
        if(frame==4)
        {
            position(1, 110, 0, -1, -1);

        }
        if(frame==5)
        {
            hurt(0, 8);

        }
        if(frame==5)
        {
            position(1, 110, 0, -1, -1);

        }
        if(frame==6)
        {
            hurt(0, 8);

        }
        if(frame==6)
        {
            position(1, 110, 0, -1, -1);

        }
        if(frame==6)
        {
            depost(0);

        }
        if(frame==6)
        {
            finish(25, 3, -1, 2, 0, 0);

        }
        return;
    }
    if(animnum==56)
    {
        if(frame==0)
        {
            ani002("ANI_GRABBED", 0);

        }
        return;
    }
    if(animnum==57)
    {
        if(frame==0)
        {
            ani002("ANI_GRABBED", 0);

        }
        if(frame==0)
        {
            anti();

        }
        if(frame==1)
        {
            position(0, 20, 30, -1, -1);

        }
        if(frame==2)
        {
            hurt(0, 7);

        }
        if(frame==2)
        {
            position(2, 0, 105, 1, 1);

        }
        if(frame==3)
        {
            position(2, 0, 105, 1, 1);

        }
        if(frame==4)
        {
            position(2, 0, 105, 1, 1);

        }
        if(frame==5)
        {
            position(2, 0, 105, 1, 1);

        }
        if(frame==6)
        {
            position(2, 0, 105, 1, 1);

        }
        if(frame==7)
        {
            hurt(0, 7);

        }
        if(frame==7)
        {
            position(2, 0, 90, 1, 1);

        }
        if(frame==8)
        {
            hurt(0, 8);

        }
        if(frame==8)
        {
            shoot("slamfl", 0, 25, 2);

        }
        if(frame==8)
        {
            position(3, 0, 25, 1, 1);

        }
        if(frame==9)
        {
            hurt(0, 8);

        }
        if(frame==9)
        {
            position(3, 0, 26, 1, 1);

        }
        if(frame==10)
        {
            hurt(0, 8);

        }
        if(frame==10)
        {
            position(3, 0, 25, 1, 1);

        }
        if(frame==11)
        {
            hurt(0, 8);

        }
        if(frame==11)
        {
            position(3, 0, 26, 1, 1);

        }
        if(frame==12)
        {
            depost(0);

        }
        if(frame==12)
        {
            finish(30, 3, 0, 2, 0.3, 0);

        }
        return;
    }
    if(animnum==51)
    {
        if(frame==0)
        {
            ani002("ANI_GRABBED", 0);

        }
        return;
    }
    if(animnum==5)
    {
        if(frame==1)
        {
            recover();

        }
        return;
    }
    if(animnum==3)
    {
        if(frame==0)
        {
            shoot("dust", 0, 1, 0);

        }
        return;
    }
    if(animnum==12)
    {
        if(frame==1)
        {
            keyint("ANI_FOLLOW3", 0, "S", 0, 200);

        }
        return;
    }
    if(animnum==81)
    {
        if(frame==2)
        {
            keyint("ANI_FREESPECIAL9", 0, "SB", 0, 200);

        }
        if(frame==3)
        {
            velo001(-2, 0, 0);

        }
        if(frame==3)
        {
            shoot("dust", 0, 1, 0);

        }
        if(frame==5)
        {
            velo001(-1.6, 0, 0);

        }
        if(frame==7)
        {
            velo001(-1.2, 0, 0);

        }
        if(frame==9)
        {
            velo001(-0.8, 0, 0);

        }
        if(frame==11)
        {
            velo001(-0.4, 0, 0);

        }
        if(frame==13)
        {
            velo001(0, 0, 0);

        }
        return;
    }
    if(animnum==169)
    {
        if(frame==0)
        {
            anti();

        }
        if(frame==0)
        {
            position(0, 30, 30, -1, -1);

        }
        if(frame==1)
        {
            hurt(0, 8);

        }
        if(frame==1)
        {
            position(0, 30, 35, -1, -1);

        }
        if(frame==2)
        {
            hurt(0, 8);

        }
        if(frame==2)
        {
            position(0, 30, 30, -1, -1);

        }
        if(frame==3)
        {
            hurt(0, 8);

        }
        if(frame==3)
        {
            position(0, 30, 25, -1, -1);

        }
        if(frame==4)
        {
            hurt(0, 8);

        }
        if(frame==4)
        {
            position(0, 30, 20, -1, -1);

        }
        if(frame==5)
        {
            hurt(0, 8);

        }
        if(frame==5)
        {
            position(0, 30, 15, -1, -1);

        }
        if(frame==6)
        {
            hurt(0, 8);

        }
        if(frame==6)
        {
            position(0, 30, 10, -1, -1);

        }
        if(frame==7)
        {
            hurt(0, 8);

        }
        if(frame==7)
        {
            position(0, 30, 5, -1, -1);

        }
        if(frame==8)
        {
            hurt(0, 8);

        }
        if(frame==8)
        {
            position(0, 30, 0, -1, -1);

        }
        if(frame==9)
        {
            hurt(0, 8);

        }
        if(frame==9)
        {
            position(0, 30, -5, -1, -1);

        }
        if(frame==10)
        {
            hurt(0, 8);

        }
        if(frame==10)
        {
            position(0, 30, 0, -1, -1);

        }
        if(frame==10)
        {
            shoot("slamfl", 15, 0, 1);

        }
        if(frame==10)
        {
            shoot("dust", 0, 1, -10);

        }
        if(frame==11)
        {
            hurt(0, 8);

        }
        if(frame==11)
        {
            position(0, 30, 0, -1, -1);

        }
        if(frame==12)
        {
            hurt(0, 8);

        }
        if(frame==12)
        {
            position(0, 30, 0, -1, -1);

        }
        if(frame==13)
        {
            depost(0);

        }
        if(frame==13)
        {
            finish(50, 3, -2, 2, 0, 0);

        }
        if(frame==14)
        {
            keyint("ANI_FREESPECIAL4", 0, "U", 0, 200);

        }
        if(frame==14)
        {
            keyint("ANI_FREESPECIAL2", 0, "D", 0, 200);

        }
        if(frame==14)
        {
            keyint("ANI_FREESPECIAL8", 0, "F", 0, 200);

        }
        if(frame==14)
        {
            keyint("ANI_FREESPECIAL7", 0, "B", 0, 200);

        }
        if(frame==14)
        {
            velo001(-1, 0, 3);

        }
        if(frame==17)
        {
            velo001(0, 0, -3);

        }
        return;
    }
    if(animnum==25)
    {
        if(frame==0)
        {
            changeentityproperty(getlocalvar("self"), "velocity", 0, 1, 0);

        }
        if(frame==5)
        {
            changeentityproperty(getlocalvar("self"), "velocity", 0, 0, 0);

        }
        return;
    }
    if(animnum==43)
    {
        if(frame==0)
        {
            changeentityproperty(getlocalvar("self"), "velocity", 0, -1, 0);

        }
        if(frame==5)
        {
            changeentityproperty(getlocalvar("self"), "velocity", 0, 0, 0);

        }
        return;
    }
    if(animnum==44)
    {
        if(frame==0)
        {
            changeentityproperty(getlocalvar("self"), "velocity", 0, 1, 0);

        }
        if(frame==5)
        {
            changeentityproperty(getlocalvar("self"), "velocity", 0, 0, 0);

        }
        return;
    }
    if(animnum==45)
    {
        if(frame==0)
        {
            changeentityproperty(getlocalvar("self"), "velocity", 0, -1, 0);

        }
        if(frame==5)
        {
            changeentityproperty(getlocalvar("self"), "velocity", 0, 0, 0);

        }
        return;
    }
    if(animnum==47)
    {
        if(frame==5)
        {
            changeentityproperty(getlocalvar("self"), "velocity", 0, 0, 0);

        }
        return;
    }
    if(animnum==46)
    {
        if(frame==5)
        {
            changeentityproperty(getlocalvar("self"), "velocity", 0, 0, 0);

        }
        return;
    }
    if(animnum==161)
    {
        if(frame==6)
        {
            changeentityproperty(getlocalvar("self"), "velocity", 0, 0, 0);

        }
        return;
    }
    if(animnum==224)
    {
        if(frame==7)
        {
            shoot("dust", 0, 1, 0);

        }
        if(frame==20)
        {
            velo001(2, 0, 0);

        }
        if(frame==21)
        {
            velo001(1, 0, 0);

        }
        if(frame==22)
        {
            velo001(0, 0, 0);

        }
        return;
    }
    if(animnum==164)
    {
        if(frame==0)
        {
            velo001(2, 0, 0);

        }
        if(frame==1)
        {
            shoot("dust", 20, 1, 0);

        }
        if(frame==5)
        {
            velo001(1.5, 0, 0);

        }
        if(frame==7)
        {
            velo001(1, 0, 0);

        }
        if(frame==9)
        {
            velo001(0.5, 0, 0);

        }
        if(frame==11)
        {
            velo001(0, 0, 0);

        }
        return;
    }
    if(animnum==168)
    {
        if(frame==6)
        {
            shoot("dust", 0, 1, 0);

        }
        return;
    }
    if(animnum==170)
    {
        if(frame==4)
        {
            shoot("dust", 0, 1, 0);

        }
        if(frame==17)
        {
            velo001(2, 0, 0);

        }
        if(frame==18)
        {
            velo001(1, 0, 0);

        }
        if(frame==19)
        {
            velo001(0, 0, 0);

        }
        return;
    }
    if(animnum==174)
    {
        if(frame==1)
        {
            keyint("ANI_FOLLOW2", 0, "A2", 0, 200);

        }
        return;
    }
    if(animnum==82)
    {
        if(frame==1)
        {
            keyint("ANI_FOLLOW2", 0, "A2", 0, 200);

        }
        return;
    }
    if(animnum==83)
    {
        if(frame==1)
        {
            keyint("ANI_FOLLOW5", 0, "S", 0, 200);

        }
        return;
    }
    if(animnum==219)
    {
        if(frame==1)
        {
            keyint("ANI_FOLLOW3", 0, "S", 0, 200);

        }
        return;
    }
    if(animnum==84)
    {


	void self = getlocalvar("self");

	changeentityproperty(self, "aiflag", "idling", 0);

	changeentityproperty(self, "aiflag", "walking", 0);

	changeentityproperty(self, "aiflag", "blocking", 0);

	changeentityproperty(self, "takeaction", "common_pain");

	        if(frame==5)
        {
            shoot("dust", 0, 1, 0);

        }
        if(frame==18)
        {
            velo001(2, 0, 0);

        }
        if(frame==19)
        {
            velo001(1, 0, 0);

        }
        if(frame==20)
        {
            velo001(0, 0, 0);

        }
        return;
    }
    if(animnum==176)
    {
        if(frame==0)
        {
            anti();

        }
        if(frame==1)
        {
            hurt(0, 7);

        }
        if(frame==1)
        {
            position(0, 30, 0, -1, -1);

        }
        if(frame==2)
        {
            hurt(0, 7);

        }
        if(frame==2)
        {
            position(1, 30, 0, -1, 1);

        }
        if(frame==3)
        {
            hurt(0, 7);

        }
        if(frame==3)
        {
            position(2, 30, 0, -1, 1);

        }
        if(frame==4)
        {
            velo001(2, 0, 0);

        }
        if(frame==4)
        {
            hurt(0, 8);

        }
        if(frame==4)
        {
            position(1, 10, 0, -1, 1);

        }
        if(frame==7)
        {
            hurt(0, 8);

        }
        if(frame==7)
        {
            position(1, 10, 0, -1, 1);

        }
        if(frame==10)
        {
            hurt(0, 8);

        }
        if(frame==10)
        {
            position(1, 10, 0, -1, 1);

        }
        if(frame==11)
        {
            velo001(1, 0, 0);

        }
        if(frame==12)
        {
            depost(0);

        }
        if(frame==12)
        {
            finish(75, 3, 2, 2, 0, 1);

        }
        if(frame==12)
        {
            velo001(0, 0, 0);

        }
        if(frame==15)
        {
            shoot("dust", 0, 1, 0);

        }
        return;
    }
    if(animnum==178)
    {
        if(frame==0)
        {
            anti();

        }
        if(frame==0)
        {
            position(0, 30, 30, -1, -1);

        }
        if(frame==1)
        {
            hurt(0, 8);

        }
        if(frame==1)
        {
            position(0, 30, 35, -1, -1);

        }
        if(frame==2)
        {
            hurt(0, 8);

        }
        if(frame==2)
        {
            position(0, 30, 30, -1, -1);

        }
        if(frame==3)
        {
            hurt(0, 8);

        }
        if(frame==3)
        {
            position(0, 30, 25, -1, -1);

        }
        if(frame==4)
        {
            hurt(0, 8);

        }
        if(frame==4)
        {
            position(0, 30, 20, -1, -1);

        }
        if(frame==5)
        {
            hurt(0, 8);

        }
        if(frame==5)
        {
            position(0, 30, 15, -1, -1);

        }
        if(frame==6)
        {
            hurt(0, 8);

        }
        if(frame==6)
        {
            position(0, 30, 10, -1, -1);

        }
        if(frame==7)
        {
            hurt(0, 8);

        }
        if(frame==7)
        {
            position(0, 30, 5, -1, -1);

        }
        if(frame==8)
        {
            hurt(0, 8);

        }
        if(frame==8)
        {
            position(0, 30, 0, -1, -1);

        }
        if(frame==9)
        {
            hurt(0, 8);

        }
        if(frame==9)
        {
            position(0, 30, -5, -1, -1);

        }
        if(frame==10)
        {
            hurt(0, 8);

        }
        if(frame==10)
        {
            position(0, 0, -5, 1, -1);

        }
        if(frame==11)
        {
            flipdir();

        }
        if(frame==11)
        {
            hurt(0, 8);

        }
        if(frame==11)
        {
            position(0, 30, -5, -1, -1);

        }
        if(frame==12)
        {
            hurt(0, 8);

        }
        if(frame==12)
        {
            position(0, 0, -5, -1, -1);

        }
        if(frame==13)
        {
            flipdir();

        }
        if(frame==13)
        {
            hurt(0, 8);

        }
        if(frame==13)
        {
            position(0, 30, -5, -1, -1);

        }
        if(frame==14)
        {
            hurt(0, 8);

        }
        if(frame==14)
        {
            position(0, 0, -5, 1, -1);

        }
        if(frame==15)
        {
            flipdir();

        }
        if(frame==15)
        {
            hurt(0, 8);

        }
        if(frame==15)
        {
            position(0, 30, -5, -1, -1);

        }
        if(frame==16)
        {
            hurt(0, 8);

        }
        if(frame==16)
        {
            position(0, 0, -5, -1, -1);

        }
        if(frame==17)
        {
            flipdir();

        }
        if(frame==17)
        {
            hurt(0, 8);

        }
        if(frame==17)
        {
            position(0, 30, -5, -1, -1);

        }
        if(frame==18)
        {
            hurt(0, 8);

        }
        if(frame==18)
        {
            position(0, 30, -5, 1, -1);

        }
        if(frame==19)
        {
            flipdir();

        }
        if(frame==19)
        {
            hurt(0, 8);

        }
        if(frame==19)
        {
            position(0, 30, -5, -1, -1);

        }
        if(frame==20)
        {
            hurt(0, 8);

        }
        if(frame==20)
        {
            position(0, 30, -5, -1, -1);

        }
        if(frame==21)
        {
            flipdir();

        }
        if(frame==21)
        {
            hurt(0, 8);

        }
        if(frame==21)
        {
            position(0, 30, -5, -1, -1);

        }
        if(frame==22)
        {
            hurt(0, 8);

        }
        if(frame==22)
        {
            position(0, 30, -5, 1, -1);

        }
        if(frame==23)
        {
            flipdir();

        }
        if(frame==23)
        {
            hurt(0, 8);

        }
        if(frame==23)
        {
            position(0, 30, -5, -1, -1);

        }
        if(frame==24)
        {
            hurt(0, 8);

        }
        if(frame==24)
        {
            position(0, 30, -5, -1, -1);

        }
        if(frame==25)
        {
            flipdir();

        }
        if(frame==25)
        {
            hurt(0, 8);

        }
        if(frame==25)
        {
            position(0, 30, -5, -1, -1);

        }
        if(frame==26)
        {
            hurt(0, 8);

        }
        if(frame==26)
        {
            position(0, 30, 0, -1, -1);

        }
        if(frame==26)
        {
            shoot("slamfl", 15, 0, 1);

        }
        if(frame==26)
        {
            shoot("dst", 0, 0, 1);

        }
        if(frame==27)
        {
            hurt(0, 8);

        }
        if(frame==27)
        {
            position(0, 30, 0, -1, -1);

        }
        if(frame==28)
        {
            hurt(0, 8);

        }
        if(frame==28)
        {
            position(0, 30, 0, -1, -1);

        }
        if(frame==29)
        {
            hurt(0, 8);

        }
        if(frame==29)
        {
            position(0, 30, 0, -1, -1);

        }
        if(frame==30)
        {
            hurt(0, 8);

        }
        if(frame==30)
        {
            position(0, 30, 0, -1, -1);

        }
        if(frame==31)
        {
            keyint("ANI_FREESPECIAL34", 0, "UJ", 0, 200);

        }
        if(frame==31)
        {
            keyint("ANI_FREESPECIAL24", 0, "DJ", 0, 200);

        }
        if(frame==31)
        {
            depost(0);

        }
        if(frame==31)
        {
            finish(75, 3, -2, 2, 0, 0);

        }
        if(frame==32)
        {
            velo001(-1, 0, 4);

        }
        if(frame==35)
        {
            velo001(0, 0, -3);

        }
        return;
    }
    if(animnum==179)
    {
        if(frame==0)
        {
            anti();

        }
        if(frame==0)
        {
            position(0, 38, 0, -1, 1);

        }
        if(frame==1)
        {
            hurt(0, 7);

        }
        if(frame==1)
        {
            position(0, 30, 10, -1, 1);

        }
        if(frame==2)
        {
            hurt(0, 7);

        }
        if(frame==2)
        {
            position(1, -10, 65, -1, 1);

        }
        if(frame==3)
        {
            hurt(0, 7);

        }
        if(frame==3)
        {
            position(1, -10, 65, -1, 1);

        }
        if(frame==4)
        {
            hurt(0, 7);

        }
        if(frame==4)
        {
            position(1, -10, 65, -1, 1);

        }
        if(frame==5)
        {
            hurt(0, 8);

        }
        if(frame==5)
        {
            position(0, -45, 0, -1, -1);

        }
        if(frame==5)
        {
            shoot("slamfl", -45, 0, 1);

        }
        if(frame==5)
        {
            shoot("dust", -20, 1, 0);

        }
        if(frame==6)
        {
            hurt(0, 8);

        }
        if(frame==6)
        {
            position(0, -45, 0, -1, -1);

        }
        if(frame==7)
        {
            hurt(0, 8);

        }
        if(frame==7)
        {
            position(0, -45, 0, -1, -1);

        }
        if(frame==8)
        {
            depost(0);

        }
        if(frame==8)
        {
            finish(50, 3, 2, 2, 0, 1);

        }
        return;
    }
    if(animnum==181)
    {
        if(frame==0)
        {
            anti();

        }
        if(frame==0)
        {
            position(0, 30, 30, -1, -1);

        }
        if(frame==1)
        {
            hurt(0, 8);

        }
        if(frame==1)
        {
            position(0, 30, 35, -1, -1);

        }
        if(frame==2)
        {
            hurt(0, 8);

        }
        if(frame==2)
        {
            position(0, 30, 30, -1, -1);

        }
        if(frame==3)
        {
            hurt(0, 8);

        }
        if(frame==3)
        {
            position(0, 30, 25, -1, -1);

        }
        if(frame==4)
        {
            hurt(0, 8);

        }
        if(frame==4)
        {
            position(0, 30, 20, -1, -1);

        }
        if(frame==5)
        {
            hurt(0, 8);

        }
        if(frame==5)
        {
            position(0, 30, 15, -1, -1);

        }
        if(frame==6)
        {
            hurt(0, 8);

        }
        if(frame==6)
        {
            position(0, 30, 10, -1, -1);

        }
        if(frame==7)
        {
            hurt(0, 8);

        }
        if(frame==7)
        {
            position(0, 30, 5, -1, -1);

        }
        if(frame==8)
        {
            hurt(0, 8);

        }
        if(frame==8)
        {
            position(0, 30, 0, -1, -1);

        }
        if(frame==9)
        {
            hurt(0, 8);

        }
        if(frame==9)
        {
            position(0, 30, -5, -1, -1);

        }
        if(frame==10)
        {
            hurt(0, 8);

        }
        if(frame==10)
        {
            position(0, 0, -5, 1, -1);

        }
        if(frame==11)
        {
            flipdir();

        }
        if(frame==11)
        {
            hurt(0, 8);

        }
        if(frame==11)
        {
            position(0, 30, -5, -1, -1);

        }
        if(frame==12)
        {
            hurt(0, 8);

        }
        if(frame==12)
        {
            position(0, 0, -5, -1, -1);

        }
        if(frame==13)
        {
            flipdir();

        }
        if(frame==13)
        {
            hurt(0, 8);

        }
        if(frame==13)
        {
            position(0, 30, -5, -1, -1);

        }
        if(frame==14)
        {
            hurt(0, 8);

        }
        if(frame==14)
        {
            position(0, 0, -5, 1, -1);

        }
        if(frame==15)
        {
            flipdir();

        }
        if(frame==15)
        {
            hurt(0, 8);

        }
        if(frame==15)
        {
            position(0, 30, -5, -1, -1);

        }
        if(frame==16)
        {
            hurt(0, 8);

        }
        if(frame==16)
        {
            position(0, 0, -5, -1, -1);

        }
        if(frame==17)
        {
            flipdir();

        }
        if(frame==17)
        {
            hurt(0, 8);

        }
        if(frame==17)
        {
            position(0, 30, -5, -1, -1);

        }
        if(frame==18)
        {
            hurt(0, 8);

        }
        if(frame==18)
        {
            position(0, 30, -5, 1, -1);

        }
        if(frame==19)
        {
            flipdir();

        }
        if(frame==19)
        {
            hurt(0, 8);

        }
        if(frame==19)
        {
            position(0, 30, -5, -1, -1);

        }
        if(frame==20)
        {
            hurt(0, 8);

        }
        if(frame==20)
        {
            position(0, 30, -5, -1, -1);

        }
        if(frame==21)
        {
            flipdir();

        }
        if(frame==21)
        {
            hurt(0, 8);

        }
        if(frame==21)
        {
            position(0, 30, -5, -1, -1);

        }
        if(frame==22)
        {
            hurt(0, 8);

        }
        if(frame==22)
        {
            position(0, 30, -5, 1, -1);

        }
        if(frame==23)
        {
            flipdir();

        }
        if(frame==23)
        {
            hurt(0, 8);

        }
        if(frame==23)
        {
            position(0, 30, -5, -1, -1);

        }
        if(frame==24)
        {
            hurt(0, 8);

        }
        if(frame==24)
        {
            position(0, 30, -5, -1, -1);

        }
        if(frame==25)
        {
            flipdir();

        }
        if(frame==25)
        {
            hurt(0, 8);

        }
        if(frame==25)
        {
            position(0, 30, -5, -1, -1);

        }
        if(frame==26)
        {
            hurt(0, 8);

        }
        if(frame==26)
        {
            position(0, 30, 0, -1, -1);

        }
        if(frame==26)
        {
            shoot("slamfl", 15, 0, 1);

        }
        if(frame==26)
        {
            shoot("dst", 0, 0, 1);

        }
        if(frame==27)
        {
            hurt(0, 8);

        }
        if(frame==27)
        {
            position(0, 30, 0, -1, -1);

        }
        if(frame==28)
        {
            hurt(0, 8);

        }
        if(frame==28)
        {
            position(0, 30, 0, -1, -1);

        }
        if(frame==29)
        {
            hurt(0, 8);

        }
        if(frame==29)
        {
            position(0, 30, 0, -1, -1);

        }
        if(frame==30)
        {
            hurt(0, 8);

        }
        if(frame==30)
        {
            position(0, 30, 0, -1, -1);

        }
        if(frame==31)
        {
            depost(0);

        }
        if(frame==31)
        {
            finish(75, 3, -2, 2, 0, 0);

        }
        if(frame==32)
        {
            velo001(-1, 0, 4);

        }
        if(frame==35)
        {
            velo001(0, 0, -3);

        }
        return;
    }
    if(animnum==182)
    {
        if(frame==0)
        {
            anti();

        }
        if(frame==0)
        {
            position(0, 30, 30, -1, -1);

        }
        if(frame==1)
        {
            hurt(0, 8);

        }
        if(frame==1)
        {
            position(0, 30, 35, -1, -1);

        }
        if(frame==2)
        {
            hurt(0, 8);

        }
        if(frame==2)
        {
            position(0, 30, 30, -1, -1);

        }
        if(frame==3)
        {
            hurt(0, 8);

        }
        if(frame==3)
        {
            position(0, 30, 25, -1, -1);

        }
        if(frame==4)
        {
            hurt(0, 8);

        }
        if(frame==4)
        {
            position(0, 30, 20, -1, -1);

        }
        if(frame==5)
        {
            hurt(0, 8);

        }
        if(frame==5)
        {
            position(0, 30, 15, -1, -1);

        }
        if(frame==6)
        {
            hurt(0, 8);

        }
        if(frame==6)
        {
            position(0, 30, 10, -1, -1);

        }
        if(frame==7)
        {
            hurt(0, 8);

        }
        if(frame==7)
        {
            position(0, 30, 5, -1, -1);

        }
        if(frame==8)
        {
            hurt(0, 8);

        }
        if(frame==8)
        {
            position(0, 30, 0, -1, -1);

        }
        if(frame==9)
        {
            hurt(0, 8);

        }
        if(frame==9)
        {
            position(0, 30, -5, -1, -1);

        }
        if(frame==10)
        {
            hurt(0, 8);

        }
        if(frame==10)
        {
            position(0, 0, -5, 1, -1);

        }
        if(frame==11)
        {
            flipdir();

        }
        if(frame==11)
        {
            hurt(0, 8);

        }
        if(frame==11)
        {
            position(0, 30, -5, -1, -1);

        }
        if(frame==12)
        {
            hurt(0, 8);

        }
        if(frame==12)
        {
            position(0, 0, -5, -1, -1);

        }
        if(frame==13)
        {
            flipdir();

        }
        if(frame==13)
        {
            hurt(0, 8);

        }
        if(frame==13)
        {
            position(0, 30, -5, -1, -1);

        }
        if(frame==14)
        {
            hurt(0, 8);

        }
        if(frame==14)
        {
            position(0, 0, -5, 1, -1);

        }
        if(frame==15)
        {
            flipdir();

        }
        if(frame==15)
        {
            hurt(0, 8);

        }
        if(frame==15)
        {
            position(0, 30, -5, -1, -1);

        }
        if(frame==16)
        {
            hurt(0, 8);

        }
        if(frame==16)
        {
            position(0, 0, -5, -1, -1);

        }
        if(frame==17)
        {
            flipdir();

        }
        if(frame==17)
        {
            hurt(0, 8);

        }
        if(frame==17)
        {
            position(0, 30, -5, -1, -1);

        }
        if(frame==18)
        {
            hurt(0, 8);

        }
        if(frame==18)
        {
            position(0, 30, -5, 1, -1);

        }
        if(frame==19)
        {
            flipdir();

        }
        if(frame==19)
        {
            hurt(0, 8);

        }
        if(frame==19)
        {
            position(0, 30, -5, -1, -1);

        }
        if(frame==20)
        {
            hurt(0, 8);

        }
        if(frame==20)
        {
            position(0, 30, -5, -1, -1);

        }
        if(frame==21)
        {
            flipdir();

        }
        if(frame==21)
        {
            hurt(0, 8);

        }
        if(frame==21)
        {
            position(0, 30, -5, -1, -1);

        }
        if(frame==22)
        {
            hurt(0, 8);

        }
        if(frame==22)
        {
            position(0, 30, -5, 1, -1);

        }
        if(frame==23)
        {
            flipdir();

        }
        if(frame==23)
        {
            hurt(0, 8);

        }
        if(frame==23)
        {
            position(0, 30, -5, -1, -1);

        }
        if(frame==24)
        {
            hurt(0, 8);

        }
        if(frame==24)
        {
            position(0, 30, -5, -1, -1);

        }
        if(frame==25)
        {
            flipdir();

        }
        if(frame==25)
        {
            hurt(0, 8);

        }
        if(frame==25)
        {
            position(0, 30, -5, -1, -1);

        }
        if(frame==26)
        {
            hurt(0, 8);

        }
        if(frame==26)
        {
            position(0, 30, 0, -1, -1);

        }
        if(frame==26)
        {
            shoot("slamfl", 15, 0, 1);

        }
        if(frame==26)
        {
            shoot("dst", 0, 0, 1);

        }
        if(frame==27)
        {
            hurt(0, 8);

        }
        if(frame==27)
        {
            position(0, 30, 0, -1, -1);

        }
        if(frame==28)
        {
            hurt(0, 8);

        }
        if(frame==28)
        {
            position(0, 30, 0, -1, -1);

        }
        if(frame==29)
        {
            hurt(0, 8);

        }
        if(frame==29)
        {
            position(0, 30, 0, -1, -1);

        }
        if(frame==30)
        {
            hurt(0, 8);

        }
        if(frame==30)
        {
            position(0, 30, 0, -1, -1);

        }
        if(frame==31)
        {
            depost(0);

        }
        if(frame==31)
        {
            finish(75, 3, -2, 2, 0, 0);

        }
        if(frame==32)
        {
            velo001(-1, 0, 4);

        }
        if(frame==35)
        {
            velo001(0, 0, -3);

        }
        return;
    }
    if(animnum==183)
    {
        if(frame==1)
        {
            shoot("aura1", 0, 0, 1);

        }
        if(frame==3)
        {
            shoot("aura2", 0, 0, -1);

        }
        if(frame==4)
        {
            keyint("ANI_FREESPECIAL32", 0, "S", 0, 200);

        }
        if(frame==4)
        {
            velo001(1, 0, 0);

        }
        if(frame==11)
        {
            velo001(0.5, 0, 0);

        }
        if(frame==12)
        {
            velo001(0.3, 0, 0);

        }
        if(frame==13)
        {
            velo001(0, 0, 0);

        }
        return;
    }
    if(animnum==184)
    {
        if(frame==1)
        {
            shoot("aura1", 0, 0, 1);

        }
        if(frame==3)
        {
            shoot("aura3", 0, 0, -1);

        }
        if(frame==4)
        {
            keyint("ANI_FREESPECIAL32", 0, "S", 0, 200);

        }
        if(frame==4)
        {
            velo001(3, 0, 0);

        }
        if(frame==11)
        {
            velo001(0.5, 0, 0);

        }
        if(frame==12)
        {
            velo001(0.3, 0, 0);

        }
        if(frame==13)
        {
            velo001(0, 0, 0);

        }
        return;
    }
    if(animnum==185)
    {
        if(frame==19)
        {
            velo001(1, 0, 0);

        }
        if(frame==21)
        {
            velo001(0, 0, 0);

        }
        return;
    }
    if(animnum==186)
    {


	void self = getlocalvar("self");

	int iPIndex = getentityproperty(self,"playerindex");

	void ileft = playerkeys(iPIndex, 0, "moveleft");

	void iright = playerkeys(iPIndex, 0, "moveright");

	if {frame == 31){

	if (ileft){

		changeentityproperty(self, "direction", 0);

	}if (iright){

		changeentityproperty(self, "direction", 1);

	}

	}

	        if(frame==0)
        {
            anti();

        }
        if(frame==0)
        {
            hurt(0, 7);

        }
        if(frame==0)
        {
            position(0, 60, 45, -1, -1);

        }
        if(frame==1)
        {
            keycheck();

        }
        if(frame==1)
        {
            hurt(0, 7);

        }
        if(frame==1)
        {
            shoot("dust", 0, 1, 0);

        }
        if(frame==1)
        {
            position(1, 60, 70, -1, -1);

        }
        if(frame==2)
        {
            hurt(0, 7);

        }
        if(frame==2)
        {
            position(1, -60, 70, -1, 1);

        }
        if(frame==3)
        {
            hurt(0, 7);

        }
        if(frame==3)
        {
            position(1, -75, 70, -1, 1);

        }
        if(frame==4)
        {
            hurt(0, 7);

        }
        if(frame==4)
        {
            shoot("dust", 0, 1, 0);

        }
        if(frame==4)
        {
            position(1, -60, 70, -1, 1);

        }
        if(frame==5)
        {
            hurt(0, 7);

        }
        if(frame==5)
        {
            position(1, 60, 70, -1, -1);

        }
        if(frame==6)
        {
            hurt(0, 7);

        }
        if(frame==6)
        {
            position(1, 75, 70, -1, -1);

        }
        if(frame==7)
        {
            hurt(0, 7);

        }
        if(frame==7)
        {
            shoot("dust", 0, 1, 0);

        }
        if(frame==7)
        {
            position(1, 60, 70, -1, -1);

        }
        if(frame==8)
        {
            hurt(0, 7);

        }
        if(frame==8)
        {
            position(1, -60, 70, -1, 1);

        }
        if(frame==9)
        {
            hurt(0, 7);

        }
        if(frame==9)
        {
            position(1, -75, 70, -1, 1);

        }
        if(frame==10)
        {
            hurt(0, 7);

        }
        if(frame==10)
        {
            shoot("dust", 0, 1, 0);

        }
        if(frame==10)
        {
            position(1, -60, 70, -1, 1);

        }
        if(frame==11)
        {
            hurt(0, 7);

        }
        if(frame==11)
        {
            position(1, 60, 70, -1, -1);

        }
        if(frame==12)
        {
            hurt(0, 7);

        }
        if(frame==12)
        {
            position(1, 75, 70, -1, -1);

        }
        if(frame==13)
        {
            hurt(0, 7);

        }
        if(frame==13)
        {
            shoot("dust", 0, 1, 0);

        }
        if(frame==13)
        {
            position(1, 60, 70, -1, -1);

        }
        if(frame==14)
        {
            hurt(0, 7);

        }
        if(frame==14)
        {
            position(1, -60, 70, -1, 1);

        }
        if(frame==15)
        {
            hurt(0, 7);

        }
        if(frame==15)
        {
            position(1, -75, 70, -1, 1);

        }
        if(frame==16)
        {
            hurt(0, 7);

        }
        if(frame==16)
        {
            shoot("dust", 0, 1, 0);

        }
        if(frame==16)
        {
            position(1, -60, 70, -1, 1);

        }
        if(frame==17)
        {
            hurt(0, 7);

        }
        if(frame==17)
        {
            position(1, 60, 70, -1, -1);

        }
        if(frame==18)
        {
            hurt(0, 7);

        }
        if(frame==18)
        {
            position(1, 75, 70, -1, -1);

        }
        if(frame==19)
        {
            hurt(0, 7);

        }
        if(frame==19)
        {
            shoot("dust", 0, 1, 0);

        }
        if(frame==19)
        {
            position(1, 60, 70, -1, -1);

        }
        if(frame==20)
        {
            hurt(0, 7);

        }
        if(frame==20)
        {
            position(1, -60, 70, -1, 1);

        }
        if(frame==21)
        {
            hurt(0, 7);

        }
        if(frame==21)
        {
            position(1, -75, 70, -1, 1);

        }
        if(frame==22)
        {
            hurt(0, 7);

        }
        if(frame==22)
        {
            shoot("dust", 0, 1, 0);

        }
        if(frame==22)
        {
            position(1, -60, 70, -1, 1);

        }
        if(frame==23)
        {
            hurt(0, 7);

        }
        if(frame==23)
        {
            position(1, 60, 70, -1, -1);

        }
        if(frame==24)
        {
            hurt(0, 7);

        }
        if(frame==24)
        {
            position(1, 75, 70, -1, -1);

        }
        if(frame==25)
        {
            hurt(0, 7);

        }
        if(frame==25)
        {
            shoot("dust", 0, 1, 0);

        }
        if(frame==25)
        {
            position(1, 60, 70, -1, -1);

        }
        if(frame==26)
        {
            hurt(0, 7);

        }
        if(frame==26)
        {
            position(1, -60, 70, -1, 1);

        }
        if(frame==27)
        {
            hurt(0, 7);

        }
        if(frame==27)
        {
            position(1, -75, 70, -1, 1);

        }
        if(frame==28)
        {
            hurt(0, 7);

        }
        if(frame==28)
        {
            shoot("dust", 0, 1, 0);

        }
        if(frame==28)
        {
            position(1, -60, 70, -1, 1);

        }
        if(frame==29)
        {
            hurt(0, 7);

        }
        if(frame==29)
        {
            position(1, 60, 70, -1, -1);

        }
        if(frame==30)
        {
            hurt(0, 7);

        }
        if(frame==30)
        {
            position(1, 75, 70, -1, -1);

        }
        if(frame==31)
        {
            hurt(0, 7);

        }
        if(frame==31)
        {
            position(1, 45, 70, -1, -1);

        }
        if(frame==31)
        {
            depost(0);

        }
        if(frame==31)
        {
            finish(50, 3, -4, 1, 0, 0);

        }
        if(frame==32)
        {
            velo001(0, 0, 0);

        }
        return;
    }
    if(animnum==190)
    {
        if(frame==4)
        {
            shoot("dust", 0, 0, 0);

        }
        return;
    }
    if(animnum==192)
    {
        if(frame==0)
        {
            ani002("ANI_GRABBED", 0);

        }
        if(frame==0)
        {
            anti();

        }
        if(frame==1)
        {
            position(0, 20, 30, -1, -1);

        }
        if(frame==2)
        {
            hurt(0, 7);

        }
        if(frame==2)
        {
            position(1, 0, 105, 1, 1);

        }
        if(frame==3)
        {
            position(2, 0, 105, 1, 1);

        }
        if(frame==4)
        {
            position(2, 0, 105, 1, 1);

        }
        if(frame==5)
        {
            position(2, 0, 105, 1, 1);

        }
        if(frame==6)
        {
            position(2, 0, 105, 1, 1);

        }
        if(frame==7)
        {
            position(2, 0, 105, 1, 1);

        }
        if(frame==8)
        {
            position(2, 0, 105, 1, 1);

        }
        if(frame==9)
        {
            position(2, 0, 105, 1, 1);

        }
        if(frame==10)
        {
            position(2, 0, 105, 1, 1);

        }
        if(frame==11)
        {
            hurt(0, 7);

        }
        if(frame==11)
        {
            shoot("dust", 0, 0, 2);

        }
        if(frame==11)
        {
            position(2, 0, 90, 1, 1);

        }
        if(frame==12)
        {
            hurt(0, 8);

        }
        if(frame==12)
        {
            shoot("slamfl", 0, 25, 2);

        }
        if(frame==12)
        {
            position(3, 0, 25, 1, 1);

        }
        if(frame==13)
        {
            hurt(0, 8);

        }
        if(frame==13)
        {
            position(3, 0, 26, 1, 1);

        }
        if(frame==14)
        {
            hurt(0, 8);

        }
        if(frame==14)
        {
            position(3, 0, 25, 1, 1);

        }
        if(frame==15)
        {
            hurt(0, 8);

        }
        if(frame==15)
        {
            position(3, 0, 26, 1, 1);

        }
        if(frame==16)
        {
            depost(0);

        }
        if(frame==16)
        {
            finish(50, 3, 0, 3, 0.3, 0);

        }
        return;
    }
    if(animnum==191)
    {


	void self = getlocalvar("self");

	void SHealth = getentityproperty(self,"health"); 

	if (frame == 5){

	setidle(self);

	changeentityproperty(self, "health", SHealth + 4);

	}

	        if(frame==1)
        {
            aiflag("falling", 0, "common_pain");

        }
        if(frame==1)
        {
            aiflag("drop", 0, "common_pain");

        }
        if(frame==1)
        {
            aiflag("projectile", 0, "common_pain");

        }
        return;
    }

}

####animationscript function main#####
# data/chars/jasmin/jasmin.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animnum = getlocalvar("animnum");
    if(animnum==22)
    {
        if(frame==4)
        {
            shoot("cape2", -4, 44, 0);

        }
        return;
    }
    if(animnum==0)
    {
        if(frame==0)
        {
            clearL();

        }
        return;
    }
    if(animnum==1)
    {
        if(frame==0)
        {
            clearL();

        }
        return;
    }
    if(animnum==37)
    {


	void self = getlocalvar("self");

	void target = findtarget(self);

	float x1 = getentityproperty(target, "x");

	float x2 = getentityproperty(self, "x");

	float z1 = getentityproperty(target, "z");

	float z2 = getentityproperty(self, "z");

	if(frame == 0){

		if(z1-z2<15 && z1-z2>-15 && x1-x2>-70 && x1-x2<70){

			changeentityproperty(self, "animation", openborconstant("ANI_FREESPECIAL12"));

		}

	}

	        if(frame==5)
        {
            shoot("dust", 10, 1, 0);

        }
        if(frame==5)
        {
            velo001(1.5, 0, 0);

        }
        if(frame==6)
        {
            velo001(1, 0, 0);

        }
        if(frame==7)
        {
            velo001(0.5, 0, 0);

        }
        return;
    }
    if(animnum==7)
    {


	void self = getlocalvar("self");

	void vAniPos = getentityproperty(self, "animpos");

	void target = findtarget(self);

	void eAniID = getentityproperty(target, "animationID");

	float x1 = getentityproperty(target, "x");

	float x2 = getentityproperty(self, "x");

	float z1 = getentityproperty(target, "z");

	float z2 = getentityproperty(self, "z");

	if(frame == 0){

		if(eAniID == 5 || eAniID == 6){

			if(z1-z2<20 && z1-z2>-20 && x1-x2>-80 && x1-x2<80){

				if(playerkeys(getentityproperty(self, "playerindex"), 0, "movedown")){

					changeentityproperty(self, "animation", openborconstant("ANI_FREESPECIAL11"));

				}

			}

			if(z1-z2<20 && z1-z2>-20 && x1-x2>-100 && x1-x2<100){

				if(playerkeys(getentityproperty(self, "playerindex"), 0, "moveup")){

					changeentityproperty(self, "animation", openborconstant("ANI_FREESPECIAL14"));

				}

			}

		}

	}

	        return;
    }
    if(animnum==10)
    {
        if(frame==0)
        {
            keyint("ANI_FREESPECIAL16", 0, "UA", 0, 200);

        }
        if(frame==0)
        {
            keyint("ANI_FREESPECIAL28", 0, "DA", 0, 200);

        }
        return;
    }
    if(animnum==35)
    {
        if(frame==1)
        {
            keyint("ANI_FREESPECIAL32", 0, "S", 0, 200);

        }
        if(frame==5)
        {
            velo001(1.5, 0, 0);

        }
        if(frame==6)
        {
            velo001(1, 0, 0);

        }
        if(frame==7)
        {
            velo001(0.5, 0, 0);

        }
        return;
    }
    if(animnum==66)
    {
        if(frame==8)
        {
            spawner("jasspa", 0, -1, 1);

        }
        if(frame==9)
        {
            ani001("ANI_JUMP", 2);

        }
        return;
    }
    if(animnum==221)
    {
        if(frame==2)
        {
            keyint("ANI_JUMPATTACK3", 0, "UA", 0, 200);

        }
        if(frame==2)
        {
            keyint("ANI_JUMPATTACK2", 0, "DA", 0, 200);

        }
        return;
    }
    if(animnum==18)
    {
        if(frame==0)
        {
            keyint("ANI_FREESPECIAL16", 0, "DJ", 0, 200);

        }
        if(frame==0)
        {
            keyint("ANI_FREESPECIAL24", 0, "UJ", 0, 200);

        }
        if(frame==0)
        {
            keyint("ANI_FREESPECIAL29", 0, "FJ", 0, 25);

        }
        if(frame==0)
        {
            keyint("ANI_FREESPECIAL30", 0, "BJ", 0, 25);

        }
        if(frame==0)
        {
            keyint("ANI_FREESPECIAL26", 0, "J", 0, 25);

        }
        if(frame==0)
        {
            keyint("ANI_FREESPECIAL17", 0, "FJ", 0, 200);

        }
        if(frame==0)
        {
            keyint("ANI_FREESPECIAL27", 0, "BJ", 0, 200);

        }
        return;
    }
    if(animnum==227)
    {
        if(frame==0)
        {
            hurt(0, 7);

        }
        if(frame==0)
        {
            position(0, 30, 25, -1, -1);

        }
        if(frame==1)
        {
            hurt(0, 7);

        }
        if(frame==1)
        {
            position(1, 0, 90, -1, -1);

        }
        if(frame==2)
        {
            flipdir();

        }
        if(frame==2)
        {
            hurt(0, 7);

        }
        if(frame==2)
        {
            position(1, 0, 90, -1, -1);

        }
        if(frame==3)
        {
            hurt(0, 7);

        }
        if(frame==3)
        {
            position(1, 40, 80, -1, -1);

        }
        if(frame==4)
        {
            hurt(1, 8);

        }
        if(frame==4)
        {
            depost(0);

        }
        if(frame==4)
        {
            throw(25, 3, -2, 0.5, 0, 0);

        }
        return;
    }
    if(animnum==5)
    {
        if(frame==1)
        {
            recover();

        }
        return;
    }
    if(animnum==12)
    {
        if(frame==1)
        {
            keyint("ANI_FOLLOW3", 0, "S", 0, 200);

        }
        return;
    }
    if(animnum==81)
    {
        if(frame==3)
        {
            velo001(-2, 0, 0);

        }
        if(frame==3)
        {
            shoot("dust", 0, 1, 0);

        }
        if(frame==5)
        {
            velo001(-1.6, 0, 0);

        }
        if(frame==7)
        {
            velo001(-1.2, 0, 0);

        }
        if(frame==9)
        {
            velo001(-0.8, 0, 0);

        }
        if(frame==11)
        {
            velo001(-0.4, 0, 0);

        }
        if(frame==13)
        {
            velo001(0, 0, 0);

        }
        return;
    }
    if(animnum==83)
    {
        if(frame==1)
        {
            keyint("ANI_FOLLOW8", 0, "SB", 0, 200);

        }
        if(frame==1)
        {
            keyint("ANI_FOLLOW5", 0, "S", 0, 200);

        }
        return;
    }
    if(animnum==84)
    {


	void self = getlocalvar("self");

	changeentityproperty(self, "aiflag", "idling", 0);

	changeentityproperty(self, "aiflag", "walking", 0);

	changeentityproperty(self, "aiflag", "blocking", 0);

	changeentityproperty(self, "takeaction", "common_pain");

	        if(frame==3)
        {
            velo001(1.5, 0, 0);

        }
        if(frame==4)
        {
            velo001(1, 0, 0);

        }
        if(frame==5)
        {
            velo001(0.5, 0, 0);

        }
        if(frame==6)
        {
            velo001(0, 0, 0);

        }
        return;
    }
    if(animnum==219)
    {
        if(frame==1)
        {
            keyint("ANI_FOLLOW8", 0, "SB", 0, 200);

        }
        if(frame==1)
        {
            keyint("ANI_FOLLOW3", 0, "S", 0, 200);

        }
        return;
    }
    if(animnum==169)
    {
        if(frame==0)
        {
            anti();

        }
        if(frame==1)
        {
            hurt(0, 7);

        }
        if(frame==1)
        {
            position(0, 15, 45, -1, -1);

        }
        if(frame==2)
        {
            position(1, 0, 90, -1, 1);

        }
        if(frame==3)
        {
            position(1, -20, 50, 1, 1);

        }
        if(frame==4)
        {
            shoot("slamfl", 0, 10, 1);

        }
        if(frame==4)
        {
            shoot("dust", 0, 1, 0);

        }
        if(frame==4)
        {
            position(2, -10, 0, 1, 1);

        }
        if(frame==7)
        {
            depost(0);

        }
        if(frame==7)
        {
            finish(50, 3, -2, 2, 0, 0);

        }
        if(frame==8)
        {
            keyint("ANI_FREESPECIAL34", 0, "U", 0, 200);

        }
        if(frame==8)
        {
            keyint("ANI_FREESPECIAL33", 0, "D", 0, 200);

        }
        if(frame==8)
        {
            keyint("ANI_FREESPECIAL8", 0, "F", 0, 200);

        }
        if(frame==8)
        {
            keyint("ANI_FREESPECIAL7", 0, "B", 0, 200);

        }
        return;
    }
    if(animnum==27)
    {
        if(frame==12)
        {
            shoot("tdfl2", 0, 1, 0);

        }
        return;
    }
    if(animnum==224)
    {
        if(frame==10)
        {
            changeentityproperty(getlocalvar("self"), "velocity", 0, 0, 0);

        }
        return;
    }
    if(animnum==164)
    {
        if(frame==0)
        {
            velo001(2, 0, 0);

        }
        if(frame==3)
        {
            velo001(1.5, 0, 0);

        }
        if(frame==4)
        {
            velo001(1, 0, 0);

        }
        if(frame==5)
        {
            velo001(0.5, 0, 0);

        }
        return;
    }
    if(animnum==228)
    {
        if(frame==0)
        {
            norun();

        }
        if(frame==0)
        {
            hurt(1, 7);

        }
        if(frame==0)
        {
            position(1, 20, 90, -1, -1);

        }
        if(frame==1)
        {
            hurt(0, 7);

        }
        if(frame==1)
        {
            position(1, -20, 90, -1, -1);

        }
        if(frame==2)
        {
            hurt(0, 7);

        }
        if(frame==2)
        {
            position(1, 30, 30, -1, -1);

        }
        if(frame==3)
        {
            depost(0);

        }
        if(frame==3)
        {
            finish(25, 3, -2, 0.5, 0, 0);

        }
        if(frame==5)
        {
            velo001(1, 0, 0);

        }
        if(frame==6)
        {
            velo001(0.5, 0, 0);

        }
        return;
    }
    if(animnum==170)
    {
        if(frame==2)
        {
            ani001("ANI_FREESPECIAL19", 0);

        }
        return;
    }
    if(animnum==171)
    {
        if(frame==0)
        {
            keycheck();

        }
        if(frame==3)
        {
            flipdir();

        }
        if(frame==6)
        {
            flipdir();

        }
        if(frame==9)
        {
            flipdir();

        }
        if(frame==12)
        {
            flipdir();

        }
        if(frame==15)
        {
            flipdir();

        }
        if(frame==18)
        {
            flipdir();

        }
        if(frame==20)
        {
            flipdir();

        }
        if(frame==22)
        {
            flipdir();

        }
        if(frame==24)
        {
            flipdir();

        }
        if(frame==26)
        {
            flipdir();

        }
        if(frame==28)
        {
            ani001("ANI_FREESPECIAL20", 0);

        }
        return;
    }
    if(animnum==174)
    {
        if(frame==3)
        {
            keyint("ANI_FOLLOW2", 0, "A2", 0, 200);

        }
        return;
    }
    if(animnum==82)
    {
        if(frame==1)
        {
            keyint("ANI_FOLLOW2", 0, "A2", 0, 200);

        }
        return;
    }
    if(animnum==178)
    {
        if(frame==0)
        {
            anti();

        }
        if(frame==1)
        {
            hurt(0, 7);

        }
        if(frame==1)
        {
            position(0, 15, 45, -1, -1);

        }
        if(frame==2)
        {
            hurt(0, 7);

        }
        if(frame==2)
        {
            position(0, 0, 85, -1, 1);

        }
        if(frame==3)
        {
            hurt(0, 7);

        }
        if(frame==3)
        {
            position(1, 20, 50, 1, -1);

        }
        if(frame==4)
        {
            hurt(0, 7);

        }
        if(frame==4)
        {
            position(1, 20, 25, 1, -1);

        }
        if(frame==5)
        {
            hurt(0, 7);

        }
        if(frame==5)
        {
            position(1, 15, 20, 1, -1);

        }
        if(frame==6)
        {
            hurt(0, 7);

        }
        if(frame==6)
        {
            position(1, 20, 10, 1, -1);

        }
        if(frame==7)
        {
            hurt(0, 7);

        }
        if(frame==7)
        {
            position(1, 0, -10, 1, -1);

        }
        if(frame==8)
        {
            hurt(0, 7);

        }
        if(frame==8)
        {
            position(1, 0, 0, 1, -1);

        }
        if(frame==9)
        {
            hurt(0, 7);

        }
        if(frame==9)
        {
            position(1, -10, -10, 1, -1);

        }
        if(frame==10)
        {
            hurt(0, 7);

        }
        if(frame==10)
        {
            position(2, -10, 0, 1, -1);

        }
        if(frame==10)
        {
            shoot("slamfl", 0, 10, 1);

        }
        if(frame==10)
        {
            shoot("dst", 0, 0, 1);

        }
        if(frame==10)
        {
            hurt(0, 7);

        }
        if(frame==10)
        {
            position(2, -10, 0, 1, -1);

        }
        if(frame==11)
        {
            hurt(0, 7);

        }
        if(frame==11)
        {
            position(2, -10, 0, 1, -1);

        }
        if(frame==12)
        {
            hurt(0, 7);

        }
        if(frame==12)
        {
            position(2, -10, 0, 1, -1);

        }
        if(frame==13)
        {
            keyint("ANI_FREESPECIAL17", 0, "FJ", 0, 200);

        }
        if(frame==13)
        {
            keyint("ANI_FREESPECIAL27", 0, "BJ", 0, 200);

        }
        if(frame==13)
        {
            depost(0);

        }
        if(frame==13)
        {
            finish(75, 3, -2, 2, 0, 0);

        }
        if(frame==14)
        {
            velo001(-2, 0, 3);

        }
        return;
    }
    if(animnum==179)
    {
        if(frame==0)
        {
            anti();

        }
        if(frame==1)
        {
            hurt(0, 7);

        }
        if(frame==1)
        {
            position(0, 0, 40, -1, 1);

        }
        if(frame==2)
        {
            hurt(0, 7);

        }
        if(frame==2)
        {
            position(1, 0, 45, -1, 1);

        }
        if(frame==3)
        {
            hurt(0, 8);

        }
        if(frame==3)
        {
            position(0, -25, 0, -1, -1);

        }
        if(frame==4)
        {
            shoot("slamfl", 0, 10, 1);

        }
        if(frame==4)
        {
            shoot("dust", 0, 1, 0);

        }
        if(frame==4)
        {
            hurt(0, 8);

        }
        if(frame==4)
        {
            position(0, -25, 0, -1, -1);

        }
        if(frame==5)
        {
            hurt(0, 8);

        }
        if(frame==5)
        {
            position(0, -25, 0, -1, -1);

        }
        if(frame==6)
        {
            hurt(0, 8);

        }
        if(frame==6)
        {
            position(0, -25, 0, -1, -1);

        }
        if(frame==7)
        {
            depost(0);

        }
        if(frame==7)
        {
            finish(50, 3, 2, 2, 0, 1);

        }
        return;
    }
    if(animnum==180)
    {
        if(frame==2)
        {
            velo001(1.5, 0, 0);

        }
        if(frame==3)
        {
            velo001(1, 0, 0);

        }
        if(frame==4)
        {
            velo001(0.5, 0, 0);

        }
        if(frame==5)
        {
            velo001(0, 0, 0);

        }
        return;
    }
    if(animnum==181)
    {
        if(frame==0)
        {
            anti();

        }
        if(frame==1)
        {
            hurt(0, 7);

        }
        if(frame==1)
        {
            position(0, 15, 45, -1, -1);

        }
        if(frame==2)
        {
            hurt(0, 7);

        }
        if(frame==2)
        {
            position(0, 0, 85, -1, 1);

        }
        if(frame==3)
        {
            hurt(0, 7);

        }
        if(frame==3)
        {
            position(1, 20, 50, 1, -1);

        }
        if(frame==4)
        {
            hurt(0, 7);

        }
        if(frame==4)
        {
            position(1, 20, 25, 1, -1);

        }
        if(frame==5)
        {
            hurt(0, 7);

        }
        if(frame==5)
        {
            position(1, 15, 20, 1, -1);

        }
        if(frame==6)
        {
            hurt(0, 7);

        }
        if(frame==6)
        {
            position(1, 20, 10, 1, -1);

        }
        if(frame==7)
        {
            hurt(0, 7);

        }
        if(frame==7)
        {
            position(1, 0, -10, 1, -1);

        }
        if(frame==8)
        {
            hurt(0, 7);

        }
        if(frame==8)
        {
            position(1, 0, 0, 1, -1);

        }
        if(frame==9)
        {
            hurt(0, 7);

        }
        if(frame==9)
        {
            position(1, -10, -10, 1, -1);

        }
        if(frame==10)
        {
            hurt(0, 7);

        }
        if(frame==10)
        {
            position(2, -10, 0, 1, -1);

        }
        if(frame==10)
        {
            shoot("slamfl", 0, 10, 1);

        }
        if(frame==10)
        {
            shoot("dst", 0, 0, 1);

        }
        if(frame==10)
        {
            hurt(0, 7);

        }
        if(frame==10)
        {
            position(2, -10, 0, 1, -1);

        }
        if(frame==11)
        {
            hurt(0, 7);

        }
        if(frame==11)
        {
            position(2, -10, 0, 1, -1);

        }
        if(frame==12)
        {
            hurt(0, 7);

        }
        if(frame==12)
        {
            position(2, -10, 0, 1, -1);

        }
        if(frame==13)
        {
            depost(0);

        }
        if(frame==13)
        {
            finish(75, 3, -2, 2, 0, 0);

        }
        if(frame==14)
        {
            velo001(-2, 0, 3);

        }
        return;
    }
    if(animnum==182)
    {
        if(frame==0)
        {
            anti();

        }
        if(frame==1)
        {
            hurt(0, 7);

        }
        if(frame==1)
        {
            position(0, 15, 45, -1, -1);

        }
        if(frame==2)
        {
            hurt(0, 7);

        }
        if(frame==2)
        {
            position(0, 0, 85, -1, 1);

        }
        if(frame==3)
        {
            hurt(0, 7);

        }
        if(frame==3)
        {
            position(1, 20, 50, 1, -1);

        }
        if(frame==4)
        {
            hurt(0, 7);

        }
        if(frame==4)
        {
            position(1, 20, 25, 1, -1);

        }
        if(frame==5)
        {
            hurt(0, 7);

        }
        if(frame==5)
        {
            position(1, 15, 20, 1, -1);

        }
        if(frame==6)
        {
            hurt(0, 7);

        }
        if(frame==6)
        {
            position(1, 20, 10, 1, -1);

        }
        if(frame==7)
        {
            hurt(0, 7);

        }
        if(frame==7)
        {
            position(1, 0, -10, 1, -1);

        }
        if(frame==8)
        {
            hurt(0, 7);

        }
        if(frame==8)
        {
            position(1, 0, 0, 1, -1);

        }
        if(frame==9)
        {
            hurt(0, 7);

        }
        if(frame==9)
        {
            position(1, -10, -10, 1, -1);

        }
        if(frame==10)
        {
            hurt(0, 7);

        }
        if(frame==10)
        {
            position(2, -10, 0, 1, -1);

        }
        if(frame==10)
        {
            shoot("slamfl", 0, 10, 1);

        }
        if(frame==10)
        {
            shoot("dst", 0, 0, 1);

        }
        if(frame==10)
        {
            hurt(0, 7);

        }
        if(frame==10)
        {
            position(2, -10, 0, 1, -1);

        }
        if(frame==11)
        {
            hurt(0, 7);

        }
        if(frame==11)
        {
            position(2, -10, 0, 1, -1);

        }
        if(frame==12)
        {
            hurt(0, 7);

        }
        if(frame==12)
        {
            position(2, -10, 0, 1, -1);

        }
        if(frame==13)
        {
            depost(0);

        }
        if(frame==13)
        {
            finish(75, 3, -2, 2, 0, 0);

        }
        if(frame==14)
        {
            velo001(-2, 0, 3);

        }
        return;
    }
    if(animnum==183)
    {
        if(frame==1)
        {
            shoot("aura1", -17, 0, 1);

        }
        if(frame==3)
        {
            shoot("aura2", -17, 0, -1);

        }
        if(frame==4)
        {
            keyint("ANI_FREESPECIAL32", 0, "S", 0, 200);

        }
        if(frame==8)
        {
            velo001(1.5, 0, 0);

        }
        if(frame==9)
        {
            velo001(1, 0, 0);

        }
        if(frame==10)
        {
            velo001(0.5, 0, 0);

        }
        return;
    }
    if(animnum==184)
    {
        if(frame==1)
        {
            shoot("aura1", -17, 0, 1);

        }
        if(frame==3)
        {
            shoot("aura3", -17, 0, -1);

        }
        if(frame==4)
        {
            keyint("ANI_FREESPECIAL32", 0, "S", 0, 200);

        }
        if(frame==8)
        {
            velo001(1.5, 0, 0);

        }
        if(frame==9)
        {
            velo001(1, 0, 0);

        }
        if(frame==10)
        {
            velo001(0.5, 0, 0);

        }
        return;
    }
    if(animnum==123)
    {
        if(frame==1)
        {
            velo001(2, 0, 0);

        }
        if(frame==4)
        {
            velo001(1.5, 0, 0);

        }
        if(frame==7)
        {
            velo001(1, 0, 0);

        }
        if(frame==10)
        {
            velo001(0.5, 0, 0);

        }
        if(frame==13)
        {
            velo001(0, 0, 0);

        }
        return;
    }
    if(animnum==191)
    {


	void self = getlocalvar("self");

	void SHealth = getentityproperty(self,"health"); 

	if (frame == 5){

	setidle(self);

	changeentityproperty(self, "health", SHealth + 4);

	}

	        if(frame==1)
        {
            aiflag("falling", 0, "common_pain");

        }
        if(frame==1)
        {
            aiflag("drop", 0, "common_pain");

        }
        if(frame==1)
        {
            aiflag("projectile", 0, "common_pain");

        }
        return;
    }
    if(animnum==190)
    {
        if(frame==1)
        {
            velo001(2, 0, -2);

        }
        if(frame==2)
        {
            velo001(0, 0, 0);

        }
        if(frame==2)
        {
            aiflag("jumping", 0, "common_land");

        }
        return;
    }

}

####animationscript function main#####
# data/chars/chris/chris12.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animnum = getlocalvar("animnum");
    if(animnum==7)
    {
        if(frame==1)
        {
            toss("brlknf", 0, 73, -2);

        }
        return;
    }

}

####animationscript function main#####
# data/chars/chris/chris2.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animnum = getlocalvar("animnum");
    if(animnum==22)
    {
        if(frame==0)
        {
            clearL();

        }
        return;
    }
    if(animnum==104)
    {
        if(frame==0)
        {
            clearL();

        }
        return;
    }

}

####animationscript function main#####
# data/chars/chris/chris11.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animnum = getlocalvar("animnum");
    if(animnum==37)
    {
        if(frame==0)
        {
            velo001(2, 0, 0);

        }
        if(frame==1)
        {
            shoot("dust", 20, 1, 0);

        }
        if(frame==5)
        {
            velo001(1.5, 0, 0);

        }
        if(frame==7)
        {
            velo001(1, 0, 0);

        }
        if(frame==9)
        {
            velo001(0.5, 0, 0);

        }
        if(frame==11)
        {
            velo001(0, 0, 0);

        }
        return;
    }
    if(animnum==7)
    {


	void self = getlocalvar("self");

	void vAniPos = getentityproperty(self, "animpos");

	void target = findtarget(self);

	void eAniID = getentityproperty(target, "animationID");

	float x1 = getentityproperty(target, "x");

	float x2 = getentityproperty(self, "x");

	float z1 = getentityproperty(target, "z");

	float z2 = getentityproperty(self, "z");

	if(frame == 0){

		if(eAniID == openborconstant("ANI_FALL") || eAniID == openborconstant("ANI_RISE") || eAniID == openborconstant("ANI_FALL5") || eAniID == openborconstant("ANI_FALL8") || eAniID == openborconstant("ANI_RISE")){

			if(z1-z2<20 && z1-z2>-20 && x1-x2>-80 && x1-x2<80){

				if(playerkeys(getentityproperty(self, "playerindex"), 0, "moveup")){

					changeentityproperty(self, "animation", openborconstant("ANI_FREESPECIAL11"));

				}

				if(playerkeys(getentityproperty(self, "playerindex"), 0, "movedown")){

					changeentityproperty(self, "animation", openborconstant("ANI_FREESPECIAL14"));

				}

			}

		}

	}

	        if(frame==2)
        {
            toss("granat", 36, 79, 0);

        }
        return;
    }
    if(animnum==35)
    {
        if(frame==2)
        {
            toss("granat", 36, 79, 0);

        }
        return;
    }
    if(animnum==66)
    {
        if(frame==8)
        {
            spawner("chrspa", 0, -1, 1);

        }
        if(frame==9)
        {
            ani001("ANI_JUMP", 2);

        }
        return;
    }
    if(animnum==81)
    {
        if(frame==3)
        {
            velo001(-2, 0, 0);

        }
        if(frame==5)
        {
            velo001(-1.6, 0, 0);

        }
        if(frame==7)
        {
            velo001(-1.2, 0, 0);

        }
        if(frame==9)
        {
            velo001(-0.8, 0, 0);

        }
        if(frame==11)
        {
            velo001(-0.4, 0, 0);

        }
        if(frame==13)
        {
            velo001(0, 0, 0);

        }
        return;
    }
    if(animnum==166)
    {
        if(frame==1)
        {
            velo001(1, 0, 0);

        }
        if(frame==5)
        {
            velo001(0.9, 0, 0);

        }
        if(frame==7)
        {
            velo001(0.6, 0, 0);

        }
        if(frame==9)
        {
            velo001(0.3, 0, 0);

        }
        if(frame==11)
        {
            velo001(0, 0, 0);

        }
        return;
    }
    if(animnum==123)
    {
        if(frame==1)
        {
            velo001(2, 0, 0);

        }
        if(frame==4)
        {
            velo001(1.5, 0, 0);

        }
        if(frame==7)
        {
            velo001(1, 0, 0);

        }
        if(frame==10)
        {
            velo001(0.5, 0, 0);

        }
        if(frame==13)
        {
            velo001(0, 0, 0);

        }
        return;
    }

}

####animationscript function main#####
# data/chars/chris/chris10.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animnum = getlocalvar("animnum");
    if(animnum==22)
    {
        if(frame==0)
        {
            clearL();

        }
        if(frame==4)
        {
            shoot("cape", 21, 13, 0);

        }
        if(frame==12)
        {
            velo001(0, 0, -3);

        }
        if(frame==12)
        {
            shoot("dust", 0, 0, 1);

        }
        return;
    }
    if(animnum==104)
    {
        if(frame==0)
        {
            clearL();

        }
        if(frame==4)
        {
            shoot("cape", 21, 13, 0);

        }
        if(frame==12)
        {
            velo001(0, 0, -3);

        }
        if(frame==12)
        {
            shoot("dust", 0, 0, 1);

        }
        return;
    }
    if(animnum==0)
    {
        if(frame==0)
        {
            clearL();

        }
        return;
    }

}

####animationscript function main#####
# data/chars/chris/chris8.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animnum = getlocalvar("animnum");
    if(animnum==22)
    {
        if(frame==0)
        {
            clearL();

        }
        return;
    }
    if(animnum==104)
    {
        if(frame==0)
        {
            clearL();

        }
        return;
    }

}

####animationscript function main#####
# data/chars/chris/chris7.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animnum = getlocalvar("animnum");
    if(animnum==0)
    {
        if(frame==0)
        {
            clearL();

        }
        return;
    }
    if(animnum==1)
    {
        if(frame==0)
        {
            clearL();

        }
        return;
    }
    if(animnum==37)
    {
        if(frame==0)
        {
            velo001(0.5, 0, 0);

        }
        if(frame==1)
        {
            velo001(1, 0, 0);

        }
        if(frame==2)
        {
            velo001(2, 0, 0);

        }
        if(frame==2)
        {
            shoot("dust", 0, 0, 0);

        }
        if(frame==5)
        {
            velo001(1.8, 0, 0);

        }
        if(frame==6)
        {
            velo001(1.6, 0, 0);

        }
        if(frame==7)
        {
            velo001(1.4, 0, 0);

        }
        if(frame==8)
        {
            velo001(1.2, 0, 0);

        }
        if(frame==9)
        {
            velo001(1, 0, 0);

        }
        if(frame==10)
        {
            velo001(0.8, 0, 0);

        }
        if(frame==11)
        {
            velo001(0.6, 0, 0);

        }
        if(frame==12)
        {
            velo001(0.4, 0, 0);

        }
        if(frame==13)
        {
            velo001(0.2, 0, 0);

        }
        return;
    }
    if(animnum==7)
    {


	void self = getlocalvar("self");

	void vAniPos = getentityproperty(self, "animpos");

	void target = findtarget(self);

	void eAniID = getentityproperty(target, "animationID");

	float x1 = getentityproperty(target, "x");

	float x2 = getentityproperty(self, "x");

	float z1 = getentityproperty(target, "z");

	float z2 = getentityproperty(self, "z");

	if(frame == 0){

	if(eAniID == openborconstant("ANI_FALL") || eAniID == openborconstant("ANI_RISE") || eAniID == openborconstant("ANI_FALL5") || eAniID == openborconstant("ANI_FALL8") || eAniID == openborconstant("ANI_RISE")){

	if(z1-z2<20 && z1-z2>-20 && x1-x2>-80 && x1-x2<80){

	if(playerkeys(getentityproperty(self, "playerindex"), 0, "movedown")){

	changeentityproperty(self, "animation", openborconstant("ANI_FREESPECIAL11"));

	}

	if(playerkeys(getentityproperty(self, "playerindex"), 0, "moveup")){

	changeentityproperty(self, "animation", openborconstant("ANI_FREESPECIAL14"));

	}

	}

	}

	}

	        return;
    }
    if(animnum==35)
    {
        if(frame==4)
        {
            velo001(1, 0, 0);

        }
        if(frame==10)
        {
            velo001(0.8, 0, 0);

        }
        if(frame==11)
        {
            velo001(0.6, 0, 0);

        }
        if(frame==12)
        {
            velo001(0.4, 0, 0);

        }
        if(frame==13)
        {
            velo001(0.2, 0, 0);

        }
        return;
    }
    if(animnum==66)
    {
        if(frame==8)
        {
            spawner("chrspa", 0, -1, 1);

        }
        if(frame==9)
        {
            ani001("ANI_JUMP", 2);

        }
        return;
    }
    if(animnum==81)
    {
        if(frame==3)
        {
            velo001(-2, 0, 0);

        }
        if(frame==5)
        {
            velo001(-1.6, 0, 0);

        }
        if(frame==7)
        {
            velo001(-1.2, 0, 0);

        }
        if(frame==9)
        {
            velo001(-0.8, 0, 0);

        }
        if(frame==11)
        {
            velo001(-0.4, 0, 0);

        }
        if(frame==13)
        {
            velo001(0, 0, 0);

        }
        return;
    }
    if(animnum==123)
    {
        if(frame==1)
        {
            velo001(2, 0, 0);

        }
        if(frame==4)
        {
            velo001(1.5, 0, 0);

        }
        if(frame==7)
        {
            velo001(1, 0, 0);

        }
        if(frame==10)
        {
            velo001(0.5, 0, 0);

        }
        if(frame==13)
        {
            velo001(0, 0, 0);

        }
        return;
    }

}

####animationscript function main#####
# data/chars/chris/chris5.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animnum = getlocalvar("animnum");
    if(animnum==37)
    {
        if(frame==0)
        {
            velo001(2, 0, 0);

        }
        if(frame==1)
        {
            shoot("dust", 20, 1, 0);

        }
        if(frame==5)
        {
            velo001(1.5, 0, 0);

        }
        if(frame==7)
        {
            velo001(1, 0, 0);

        }
        if(frame==9)
        {
            velo001(0.5, 0, 0);

        }
        if(frame==11)
        {
            velo001(0, 0, 0);

        }
        return;
    }
    if(animnum==7)
    {


	void self = getlocalvar("self");

	void vAniPos = getentityproperty(self, "animpos");

	void target = findtarget(self);

	void eAniID = getentityproperty(target, "animationID");

	float x1 = getentityproperty(target, "x");

	float x2 = getentityproperty(self, "x");

	float z1 = getentityproperty(target, "z");

	float z2 = getentityproperty(self, "z");

	if(frame == 0){

		if(eAniID == openborconstant("ANI_FALL") || eAniID == openborconstant("ANI_RISE") || eAniID == openborconstant("ANI_FALL5") || eAniID == openborconstant("ANI_FALL8") || eAniID == openborconstant("ANI_RISE")){

			if(z1-z2<20 && z1-z2>-20 && x1-x2>-80 && x1-x2<80){

				if(playerkeys(getentityproperty(self, "playerindex"), 0, "moveup")){

					changeentityproperty(self, "animation", openborconstant("ANI_FREESPECIAL11"));

				}

				if(playerkeys(getentityproperty(self, "playerindex"), 0, "movedown")){

					changeentityproperty(self, "animation", openborconstant("ANI_FREESPECIAL14"));

				}

			}

		}

	}

	        if(frame==1)
        {
            shoot("mshbl", 65, 85, 2);

        }
        if(frame==2)
        {
            toss("shel", 28, 83, 0);

        }
        return;
    }
    if(animnum==8)
    {
        if(frame==1)
        {
            shoot("mshbl", 65, 85, 2);

        }
        if(frame==2)
        {
            toss("shel", 28, 83, 0);

        }
        return;
    }
    if(animnum==66)
    {
        if(frame==8)
        {
            spawner("chrspa", 0, -1, 1);

        }
        if(frame==9)
        {
            ani001("ANI_JUMP", 2);

        }
        return;
    }
    if(animnum==81)
    {
        if(frame==3)
        {
            velo001(-2, 0, 0);

        }
        if(frame==5)
        {
            velo001(-1.6, 0, 0);

        }
        if(frame==7)
        {
            velo001(-1.2, 0, 0);

        }
        if(frame==9)
        {
            velo001(-0.8, 0, 0);

        }
        if(frame==11)
        {
            velo001(-0.4, 0, 0);

        }
        if(frame==13)
        {
            velo001(0, 0, 0);

        }
        return;
    }
    if(animnum==166)
    {
        if(frame==1)
        {
            velo001(1, 0, 0);

        }
        if(frame==5)
        {
            velo001(0.9, 0, 0);

        }
        if(frame==7)
        {
            velo001(0.6, 0, 0);

        }
        if(frame==9)
        {
            velo001(0.3, 0, 0);

        }
        if(frame==11)
        {
            velo001(0, 0, 0);

        }
        return;
    }
    if(animnum==123)
    {
        if(frame==1)
        {
            velo001(2, 0, 0);

        }
        if(frame==4)
        {
            velo001(1.5, 0, 0);

        }
        if(frame==7)
        {
            velo001(1, 0, 0);

        }
        if(frame==10)
        {
            velo001(0.5, 0, 0);

        }
        if(frame==13)
        {
            velo001(0, 0, 0);

        }
        return;
    }

}

####animationscript function main#####
# data/chars/chris/chris4.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animnum = getlocalvar("animnum");
    if(animnum==37)
    {
        if(frame==0)
        {
            shoot("dust", 0, 0, 0);

        }
        return;
    }
    if(animnum==7)
    {
        if(frame==0)
        {
            keyint("ANI_ATTACKBACKWARD", 0, "BA", 0, 200);

        }
        return;
    }
    if(animnum==42)
    {
        if(frame==0)
        {
            flipdir();

        }
        return;
    }
    if(animnum==66)
    {
        if(frame==8)
        {
            spawner("chrspa", 0, -1, 1);

        }
        if(frame==9)
        {
            ani001("ANI_JUMP", 2);

        }
        return;
    }
    if(animnum==108)
    {
        if(frame==0)
        {
            velo001(-1, 0, 0);

        }
        return;
    }
    if(animnum==107)
    {
        if(frame==0)
        {
            velo001(-1, 0, 0);

        }
        return;
    }
    if(animnum==4)
    {
        if(frame==0)
        {
            velo001(-1, 0, 0);

        }
        return;
    }
    if(animnum==123)
    {
        if(frame==1)
        {
            velo001(2, 0, 0);

        }
        if(frame==4)
        {
            velo001(1.5, 0, 0);

        }
        if(frame==7)
        {
            velo001(1, 0, 0);

        }
        if(frame==10)
        {
            velo001(0.5, 0, 0);

        }
        if(frame==13)
        {
            velo001(-1, 0, 0);

        }
        return;
    }
    if(animnum==47)
    {
        if(frame==5)
        {
            changeentityproperty(getlocalvar("self"), "velocity", 0, 0, 0);

        }
        return;
    }
    if(animnum==46)
    {
        if(frame==5)
        {
            changeentityproperty(getlocalvar("self"), "velocity", 0, 0, 0);

        }
        return;
    }

}

####animationscript function main#####
# data/chars/misc/blood2.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animnum = getlocalvar("animnum");
    if(animnum==8)
    {
        if(frame==0)
        {
            velo001(-2, 0, 0);

        }
        return;
    }

}

####animationscript function main#####
# data/chars/chris/chris3.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animnum = getlocalvar("animnum");
    if(animnum==37)
    {
        if(frame==0)
        {
            velo001(2, 0, 0);

        }
        if(frame==0)
        {
            shoot("dust", 0, 0, 0);

        }
        if(frame==5)
        {
            velo001(1.5, 0, 0);

        }
        if(frame==7)
        {
            velo001(1, 0, 0);

        }
        if(frame==9)
        {
            velo001(0.5, 0, 0);

        }
        if(frame==11)
        {
            velo001(0, 0, 0);

        }
        return;
    }
    if(animnum==7)
    {


	void self = getlocalvar("self");

	void vAniPos = getentityproperty(self, "animpos");

	void target = findtarget(self);

	void eAniID = getentityproperty(target, "animationID");

	float x1 = getentityproperty(target, "x");

	float x2 = getentityproperty(self, "x");

	float z1 = getentityproperty(target, "z");

	float z2 = getentityproperty(self, "z");

	if(frame == 0){

	if(eAniID == openborconstant("ANI_FALL") || eAniID == openborconstant("ANI_RISE") || eAniID == openborconstant("ANI_FALL5") || eAniID == openborconstant("ANI_FALL8") || eAniID == openborconstant("ANI_RISE")){

	if(z1-z2<20 && z1-z2>-20 && x1-x2>-100 && x1-x2<100){

	if(playerkeys(getentityproperty(self, "playerindex"), 0, "movedown")){

	changeentityproperty(self, "animation", openborconstant("ANI_FREESPECIAL11"));

	}

	if(playerkeys(getentityproperty(self, "playerindex"), 0, "moveup")){

	changeentityproperty(self, "animation", openborconstant("ANI_FREESPECIAL14"));

	}

	}

	}

	}

	        if(frame==2)
        {
            shoot("shdym", 64, 86, 0);

        }
        if(frame==2)
        {
            shoot("shbul", 64, 86, 0);

        }
        if(frame==3)
        {
            toss("shel", 40, 86, 0);

        }
        return;
    }
    if(animnum==66)
    {
        if(frame==8)
        {
            spawner("chrspa", 0, -1, 1);

        }
        if(frame==9)
        {
            ani001("ANI_JUMP", 2);

        }
        return;
    }
    if(animnum==81)
    {
        if(frame==3)
        {
            velo001(-2, 0, 0);

        }
        if(frame==3)
        {
            shoot("dust", 0, 0, 1);

        }
        if(frame==5)
        {
            velo001(-1.6, 0, 0);

        }
        if(frame==7)
        {
            velo001(-1.2, 0, 0);

        }
        if(frame==9)
        {
            velo001(-0.8, 0, 0);

        }
        if(frame==11)
        {
            velo001(-0.4, 0, 0);

        }
        if(frame==13)
        {
            velo001(0, 0, 0);

        }
        return;
    }
    if(animnum==123)
    {
        if(frame==1)
        {
            velo001(2, 0, 0);

        }
        if(frame==4)
        {
            velo001(1.5, 0, 0);

        }
        if(frame==7)
        {
            velo001(1, 0, 0);

        }
        if(frame==10)
        {
            velo001(0.5, 0, 0);

        }
        if(frame==13)
        {
            velo001(0, 0, 0);

        }
        return;
    }
    if(animnum==163)
    {
        if(frame==3)
        {
            toss("shbul6", 35, 53, 0);

        }
        if(frame==3)
        {
            toss("shdym6", 46, 10, 0);

        }
        if(frame==3)
        {
            toss("shel", 21, 73, 0);

        }
        return;
    }
    if(animnum==168)
    {
        if(frame==0)
        {
            velo001(2, 0, 5);

        }
        if(frame==1)
        {
            shoot("shdym4", 18, 1, 0);

        }
        if(frame==1)
        {
            toss("shbul4", 18, 1, 0);

        }
        if(frame==1)
        {
            toss("shel", 18, 40, 0);

        }
        return;
    }
    if(animnum==175)
    {
        if(frame==2)
        {
            shoot("shdym", 64, 86, 0);

        }
        if(frame==2)
        {
            shoot("shbul", 64, 86, 0);

        }
        if(frame==3)
        {
            toss("shel", 40, 86, 0);

        }
        return;
    }

}

####animationscript function main#####
# data/chars/jasmin/jas10.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animnum = getlocalvar("animnum");
    if(animnum==22)
    {
        if(frame==0)
        {
            clearL();

        }
        if(frame==4)
        {
            shoot("cape2", -4, 44, 0);

        }
        if(frame==14)
        {
            velo001(0, 0, -3);

        }
        if(frame==14)
        {
            shoot("dust", 0, 0, 1);

        }
        return;
    }
    if(animnum==104)
    {
        if(frame==0)
        {
            clearL();

        }
        if(frame==4)
        {
            shoot("cape2", -4, 44, 0);

        }
        if(frame==14)
        {
            velo001(0, 0, -3);

        }
        if(frame==14)
        {
            shoot("dust", 0, 0, 1);

        }
        return;
    }

}

####animationscript function main#####
# data/chars/jasmin/jas11.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animnum = getlocalvar("animnum");
    if(animnum==37)
    {
        if(frame==5)
        {
            shoot("dust", 10, 1, 0);

        }
        if(frame==5)
        {
            velo001(1.5, 0, 0);

        }
        if(frame==6)
        {
            velo001(1, 0, 0);

        }
        if(frame==7)
        {
            velo001(0.5, 0, 0);

        }
        return;
    }
    if(animnum==7)
    {


	void self = getlocalvar("self");

	void vAniPos = getentityproperty(self, "animpos");

	void target = findtarget(self);

	void eAniID = getentityproperty(target, "animationID");

	float x1 = getentityproperty(target, "x");

	float x2 = getentityproperty(self, "x");

	float z1 = getentityproperty(target, "z");

	float z2 = getentityproperty(self, "z");

	if(frame == 0){

	if(eAniID == openborconstant("ANI_FALL") || eAniID == openborconstant("ANI_RISE") || eAniID == openborconstant("ANI_FALL5") || eAniID == openborconstant("ANI_FALL8") || eAniID == openborconstant("ANI_RISE")){

	if(z1-z2<20 && z1-z2>-20 && x1-x2>-100 && x1-x2<100){

	if(playerkeys(getentityproperty(self, "playerindex"), 0, "movedown")){

	changeentityproperty(self, "animation", openborconstant("ANI_FREESPECIAL11"));

	}

	if(playerkeys(getentityproperty(self, "playerindex"), 0, "moveup")){

	changeentityproperty(self, "animation", openborconstant("ANI_FREESPECIAL14"));

	}

	}

	}

	}

	        if(frame==2)
        {
            toss("granat", 45, 64, 0);

        }
        return;
    }
    if(animnum==35)
    {
        if(frame==2)
        {
            toss("granat", 45, 64, 0);

        }
        return;
    }
    if(animnum==66)
    {
        if(frame==8)
        {
            spawner("jasspa", 0, -1, 1);

        }
        if(frame==9)
        {
            ani001("ANI_JUMP", 2);

        }
        return;
    }
    if(animnum==81)
    {
        if(frame==3)
        {
            velo001(-2, 0, 0);

        }
        if(frame==3)
        {
            shoot("dust", 0, 0, 1);

        }
        if(frame==5)
        {
            velo001(-1.6, 0, 0);

        }
        if(frame==7)
        {
            velo001(-1.2, 0, 0);

        }
        if(frame==9)
        {
            velo001(-0.8, 0, 0);

        }
        if(frame==11)
        {
            velo001(-0.4, 0, 0);

        }
        if(frame==13)
        {
            velo001(0, 0, 0);

        }
        return;
    }
    if(animnum==123)
    {
        if(frame==1)
        {
            velo001(2, 0, 0);

        }
        if(frame==4)
        {
            velo001(1.5, 0, 0);

        }
        if(frame==7)
        {
            velo001(1, 0, 0);

        }
        if(frame==10)
        {
            velo001(0.5, 0, 0);

        }
        if(frame==13)
        {
            velo001(0, 0, 0);

        }
        return;
    }

}

####animationscript function main#####
# data/chars/jasmin/jas12.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animnum = getlocalvar("animnum");
    if(animnum==7)
    {
        if(frame==1)
        {
            toss("brlknf", 0, 73, -2);

        }
        return;
    }

}

####animationscript function main#####
# data/chars/jasmin/jas8.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animnum = getlocalvar("animnum");
    if(animnum==22)
    {
        if(frame==0)
        {
            clearL();

        }
        return;
    }
    if(animnum==104)
    {
        if(frame==0)
        {
            clearL();

        }
        return;
    }

}

####animationscript function main#####
# data/chars/jasmin/jas7.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animnum = getlocalvar("animnum");
    if(animnum==37)
    {
        if(frame==0)
        {
            velo001(2, 0, 0);

        }
        if(frame==4)
        {
            velo001(1.8, 0, 0);

        }
        if(frame==5)
        {
            velo001(1.6, 0, 0);

        }
        if(frame==6)
        {
            velo001(1.4, 0, 0);

        }
        if(frame==7)
        {
            velo001(1.2, 0, 0);

        }
        if(frame==8)
        {
            velo001(1, 0, 0);

        }
        if(frame==9)
        {
            velo001(0.8, 0, 0);

        }
        if(frame==10)
        {
            velo001(0.6, 0, 0);

        }
        if(frame==11)
        {
            velo001(0.4, 0, 0);

        }
        if(frame==12)
        {
            velo001(0.2, 0, 0);

        }
        return;
    }
    if(animnum==7)
    {


	void self = getlocalvar("self");

	void vAniPos = getentityproperty(self, "animpos");

	void target = findtarget(self);

	void eAniID = getentityproperty(target, "animationID");

	float x1 = getentityproperty(target, "x");

	float x2 = getentityproperty(self, "x");

	float z1 = getentityproperty(target, "z");

	float z2 = getentityproperty(self, "z");

	if(frame == 0){

	if(eAniID == openborconstant("ANI_FALL") || eAniID == openborconstant("ANI_RISE") || eAniID == openborconstant("ANI_FALL5") || eAniID == openborconstant("ANI_FALL8") || eAniID == openborconstant("ANI_RISE")){

	if(z1-z2<20 && z1-z2>-20 && x1-x2>-100 && x1-x2<100){

	if(playerkeys(getentityproperty(self, "playerindex"), 0, "movedown")){

	changeentityproperty(self, "animation", openborconstant("ANI_FREESPECIAL11"));

	}

	if(playerkeys(getentityproperty(self, "playerindex"), 0, "moveup")){

	changeentityproperty(self, "animation", openborconstant("ANI_FREESPECIAL14"));

	}

	}

	}

	}

	        return;
    }
    if(animnum==35)
    {
        if(frame==4)
        {
            velo001(1.8, 0, 0);

        }
        if(frame==5)
        {
            velo001(1.6, 0, 0);

        }
        if(frame==6)
        {
            velo001(1.4, 0, 0);

        }
        if(frame==7)
        {
            velo001(1.2, 0, 0);

        }
        if(frame==8)
        {
            velo001(1, 0, 0);

        }
        if(frame==9)
        {
            velo001(0.8, 0, 0);

        }
        if(frame==10)
        {
            velo001(0.6, 0, 0);

        }
        if(frame==11)
        {
            velo001(0.4, 0, 0);

        }
        if(frame==12)
        {
            velo001(0.2, 0, 0);

        }
        return;
    }
    if(animnum==66)
    {
        if(frame==8)
        {
            spawner("jasspa", 0, -1, 1);

        }
        if(frame==9)
        {
            ani001("ANI_JUMP", 2);

        }
        return;
    }
    if(animnum==81)
    {
        if(frame==3)
        {
            velo001(-2, 0, 0);

        }
        if(frame==3)
        {
            shoot("dust", 0, 0, 1);

        }
        if(frame==5)
        {
            velo001(-1.6, 0, 0);

        }
        if(frame==7)
        {
            velo001(-1.2, 0, 0);

        }
        if(frame==9)
        {
            velo001(-0.8, 0, 0);

        }
        if(frame==11)
        {
            velo001(-0.4, 0, 0);

        }
        if(frame==13)
        {
            velo001(0, 0, 0);

        }
        return;
    }
    if(animnum==123)
    {
        if(frame==1)
        {
            velo001(2, 0, 0);

        }
        if(frame==4)
        {
            velo001(1.5, 0, 0);

        }
        if(frame==7)
        {
            velo001(1, 0, 0);

        }
        if(frame==10)
        {
            velo001(0.5, 0, 0);

        }
        if(frame==13)
        {
            velo001(0, 0, 0);

        }
        return;
    }

}

####animationscript function main#####
# data/chars/jasmin/jas6.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animnum = getlocalvar("animnum");
    if(animnum==37)
    {
        if(frame==0)
        {
            velo001(1.5, 0, 0);

        }
        if(frame==0)
        {
            shoot("dust", 0, 0, 1);

        }
        if(frame==1)
        {
            velo001(2, 0, 0);

        }
        if(frame==2)
        {
            velo001(1.5, 0, 0);

        }
        if(frame==3)
        {
            velo001(1, 0, 0);

        }
        if(frame==4)
        {
            velo001(0.5, 0, 0);

        }
        return;
    }
    if(animnum==7)
    {


	void self = getlocalvar("self");

	void vAniPos = getentityproperty(self, "animpos");

	void target = findtarget(self);

	void eAniID = getentityproperty(target, "animationID");

	float x1 = getentityproperty(target, "x");

	float x2 = getentityproperty(self, "x");

	float z1 = getentityproperty(target, "z");

	float z2 = getentityproperty(self, "z");

	if(frame == 0){

	if(eAniID == openborconstant("ANI_FALL") || eAniID == openborconstant("ANI_RISE") || eAniID == openborconstant("ANI_FALL5") || eAniID == openborconstant("ANI_FALL8") || eAniID == openborconstant("ANI_RISE")){

	if(z1-z2<20 && z1-z2>-20 && x1-x2>-100 && x1-x2<100){

	if(playerkeys(getentityproperty(self, "playerindex"), 0, "movedown")){

	changeentityproperty(self, "animation", openborconstant("ANI_FREESPECIAL11"));

	}

	if(playerkeys(getentityproperty(self, "playerindex"), 0, "moveup")){

	changeentityproperty(self, "animation", openborconstant("ANI_FREESPECIAL14"));

	}

	}

	}

	}

	        return;
    }
    if(animnum==35)
    {
        if(frame==1)
        {
            velo001(2, 0, 0);

        }
        if(frame==2)
        {
            velo001(1.5, 0, 0);

        }
        if(frame==3)
        {
            velo001(1, 0, 0);

        }
        if(frame==4)
        {
            velo001(0.5, 0, 0);

        }
        return;
    }
    if(animnum==66)
    {
        if(frame==8)
        {
            spawner("jasspa", 0, -1, 1);

        }
        if(frame==9)
        {
            ani001("ANI_JUMP", 2);

        }
        return;
    }
    if(animnum==81)
    {
        if(frame==3)
        {
            velo001(-2, 0, 0);

        }
        if(frame==3)
        {
            shoot("dust", 0, 0, 1);

        }
        if(frame==5)
        {
            velo001(-1.6, 0, 0);

        }
        if(frame==7)
        {
            velo001(-1.2, 0, 0);

        }
        if(frame==9)
        {
            velo001(-0.8, 0, 0);

        }
        if(frame==11)
        {
            velo001(-0.4, 0, 0);

        }
        if(frame==13)
        {
            velo001(0, 0, 0);

        }
        return;
    }
    if(animnum==123)
    {
        if(frame==1)
        {
            velo001(2, 0, 0);

        }
        if(frame==4)
        {
            velo001(1.5, 0, 0);

        }
        if(frame==7)
        {
            velo001(1, 0, 0);

        }
        if(frame==10)
        {
            velo001(0.5, 0, 0);

        }
        if(frame==13)
        {
            velo001(0, 0, 0);

        }
        return;
    }
    if(animnum==174)
    {
        if(frame==1)
        {
            shoot("axeb", 66, 64, 0);

        }
        return;
    }

}

####animationscript function main#####
# data/chars/jasmin/jas5.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animnum = getlocalvar("animnum");
    if(animnum==37)
    {
        if(frame==5)
        {
            velo001(1.5, 0, 0);

        }
        if(frame==5)
        {
            shoot("dust", 10, 0, 1);

        }
        if(frame==6)
        {
            velo001(1, 0, 0);

        }
        if(frame==7)
        {
            velo001(0.5, 0, 0);

        }
        return;
    }
    if(animnum==7)
    {


	void self = getlocalvar("self");

	void vAniPos = getentityproperty(self, "animpos");

	void target = findtarget(self);

	void eAniID = getentityproperty(target, "animationID");

	float x1 = getentityproperty(target, "x");

	float x2 = getentityproperty(self, "x");

	float z1 = getentityproperty(target, "z");

	float z2 = getentityproperty(self, "z");

	if(frame == 0){

	if(eAniID == openborconstant("ANI_FALL") || eAniID == openborconstant("ANI_RISE") || eAniID == openborconstant("ANI_FALL5") || eAniID == openborconstant("ANI_FALL8") || eAniID == openborconstant("ANI_RISE")){

	if(z1-z2<20 && z1-z2>-20 && x1-x2>-100 && x1-x2<100){

	if(playerkeys(getentityproperty(self, "playerindex"), 0, "movedown")){

	changeentityproperty(self, "animation", openborconstant("ANI_FREESPECIAL11"));

	}

	if(playerkeys(getentityproperty(self, "playerindex"), 0, "moveup")){

	changeentityproperty(self, "animation", openborconstant("ANI_FREESPECIAL14"));

	}

	}

	}

	}

	        if(frame==1)
        {
            shoot("mshbl", 50, 70, 2);

        }
        if(frame==2)
        {
            toss("shel", 15, 66, 0);

        }
        return;
    }
    if(animnum==8)
    {
        if(frame==1)
        {
            shoot("mshbl", 50, 70, 2);

        }
        if(frame==2)
        {
            toss("shel", 15, 66, 0);

        }
        return;
    }
    if(animnum==66)
    {
        if(frame==8)
        {
            spawner("jasspa", 0, -1, 1);

        }
        if(frame==9)
        {
            ani001("ANI_JUMP", 2);

        }
        return;
    }
    if(animnum==81)
    {
        if(frame==3)
        {
            velo001(-2, 0, 0);

        }
        if(frame==3)
        {
            shoot("dust", 0, 0, 1);

        }
        if(frame==5)
        {
            velo001(-1.6, 0, 0);

        }
        if(frame==7)
        {
            velo001(-1.2, 0, 0);

        }
        if(frame==9)
        {
            velo001(-0.8, 0, 0);

        }
        if(frame==11)
        {
            velo001(-0.4, 0, 0);

        }
        if(frame==13)
        {
            velo001(0, 0, 0);

        }
        return;
    }
    if(animnum==163)
    {
        if(frame==1)
        {
            velo001(1, 0, 0);

        }
        if(frame==4)
        {
            velo001(0.5, 0, 0);

        }
        if(frame==7)
        {
            velo001(0, 0, 0);

        }
        return;
    }
    if(animnum==123)
    {
        if(frame==1)
        {
            velo001(2, 0, 0);

        }
        if(frame==4)
        {
            velo001(1.5, 0, 0);

        }
        if(frame==7)
        {
            velo001(1, 0, 0);

        }
        if(frame==10)
        {
            velo001(0.5, 0, 0);

        }
        if(frame==13)
        {
            velo001(0, 0, 0);

        }
        return;
    }

}

####animationscript function main#####
# data/chars/jasmin/jas4.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animnum = getlocalvar("animnum");
    if(animnum==37)
    {
        if(frame==5)
        {
            shoot("dust", 10, 0, 1);

        }
        if(frame==5)
        {
            velo001(-0.5, 0, 0);

        }
        if(frame==6)
        {
            velo001(-1, 0, 0);

        }
        if(frame==7)
        {
            velo001(-1.5, 0, 0);

        }
        return;
    }
    if(animnum==7)
    {
        if(frame==0)
        {
            shoot("dust", 10, 0, 1);

        }
        if(frame==0)
        {
            keyint("ANI_ATTACKBACKWARD", 0, "BA", 0, 200);

        }
        if(frame==2)
        {
            velo001(1.5, 0, 0);

        }
        if(frame==3)
        {
            velo001(1, 0, 0);

        }
        if(frame==4)
        {
            velo001(0.5, 0, 0);

        }
        if(frame==5)
        {
            velo001(0, 0, 0);

        }
        return;
    }
    if(animnum==42)
    {
        if(frame==0)
        {
            flipdir();

        }
        if(frame==0)
        {
            shoot("dust", 10, 0, 1);

        }
        if(frame==2)
        {
            velo001(-1.5, 0, 0);

        }
        if(frame==3)
        {
            velo001(-1, 0, 0);

        }
        if(frame==4)
        {
            velo001(-0.5, 0, 0);

        }
        if(frame==5)
        {
            velo001(0, 0, 0);

        }
        return;
    }
    if(animnum==20)
    {
        if(frame==5)
        {
            shoot("dust", 10, 0, 1);

        }
        if(frame==5)
        {
            velo001(-0.5, 0, 0);

        }
        if(frame==6)
        {
            velo001(-1, 0, 0);

        }
        if(frame==7)
        {
            velo001(-1.5, 0, 0);

        }
        return;
    }
    if(animnum==66)
    {
        if(frame==8)
        {
            spawner("jasspa", 0, -1, 1);

        }
        if(frame==9)
        {
            ani001("ANI_JUMP", 2);

        }
        return;
    }
    if(animnum==108)
    {
        if(frame==0)
        {
            velo001(-1, 0, 0);

        }
        return;
    }
    if(animnum==107)
    {
        if(frame==0)
        {
            velo001(-1, 0, 0);

        }
        return;
    }
    if(animnum==4)
    {
        if(frame==0)
        {
            velo001(-1, 0, 0);

        }
        return;
    }
    if(animnum==5)
    {
        if(frame==2)
        {
            velo001(-1, 0, 0);

        }
        return;
    }
    if(animnum==6)
    {
        if(frame==0)
        {
            velo001(-1, 0, 0);

        }
        return;
    }
    if(animnum==123)
    {
        if(frame==1)
        {
            velo001(2, 0, 0);

        }
        if(frame==4)
        {
            velo001(1.5, 0, 0);

        }
        if(frame==7)
        {
            velo001(1, 0, 0);

        }
        if(frame==10)
        {
            velo001(0.5, 0, 0);

        }
        if(frame==13)
        {
            velo001(0, 0, 0);

        }
        return;
    }
    if(animnum==162)
    {
        if(frame==10)
        {
            changeentityproperty(getlocalvar("self"), "velocity", 0, 0, 0);

        }
        return;
    }

}

####animationscript function main#####
# data/chars/jasmin/jas3.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animnum = getlocalvar("animnum");
    if(animnum==37)
    {
        if(frame==5)
        {
            velo001(1.5, 0, 0);

        }
        if(frame==5)
        {
            shoot("dust", 10, 0, 1);

        }
        if(frame==6)
        {
            velo001(1, 0, 0);

        }
        if(frame==7)
        {
            velo001(0.5, 0, 0);

        }
        return;
    }
    if(animnum==7)
    {


	void self = getlocalvar("self");

	void vAniPos = getentityproperty(self, "animpos");

	void target = findtarget(self);

	void eAniID = getentityproperty(target, "animationID");

	float x1 = getentityproperty(target, "x");

	float x2 = getentityproperty(self, "x");

	float z1 = getentityproperty(target, "z");

	float z2 = getentityproperty(self, "z");

	if(frame == 0){

	if(eAniID == openborconstant("ANI_FALL") || eAniID == openborconstant("ANI_RISE") || eAniID == openborconstant("ANI_FALL5") || eAniID == openborconstant("ANI_FALL8") || eAniID == openborconstant("ANI_RISE")){

	if(z1-z2<20 && z1-z2>-20 && x1-x2>-100 && x1-x2<100){

	if(playerkeys(getentityproperty(self, "playerindex"), 0, "movedown")){

	changeentityproperty(self, "animation", openborconstant("ANI_FREESPECIAL11"));

	}

	if(playerkeys(getentityproperty(self, "playerindex"), 0, "moveup")){

	changeentityproperty(self, "animation", openborconstant("ANI_FREESPECIAL14"));

	}

	}

	}

	}

	        if(frame==2)
        {
            shoot("shdym", 50, 68, 0);

        }
        if(frame==2)
        {
            shoot("shbul", 50, 68, 0);

        }
        if(frame==3)
        {
            toss("shel", 16, 68, 0);

        }
        return;
    }
    if(animnum==66)
    {
        if(frame==8)
        {
            spawner("jasspa", 0, -1, 1);

        }
        if(frame==9)
        {
            ani001("ANI_JUMP", 2);

        }
        return;
    }
    if(animnum==81)
    {
        if(frame==3)
        {
            velo001(-2, 0, 0);

        }
        if(frame==3)
        {
            shoot("dust", 0, 0, 1);

        }
        if(frame==5)
        {
            velo001(-1.6, 0, 0);

        }
        if(frame==7)
        {
            velo001(-1.2, 0, 0);

        }
        if(frame==9)
        {
            velo001(-0.8, 0, 0);

        }
        if(frame==11)
        {
            velo001(-0.4, 0, 0);

        }
        if(frame==13)
        {
            velo001(0, 0, 0);

        }
        return;
    }
    if(animnum==163)
    {
        if(frame==3)
        {
            toss("shbul6", 74, 31, 0);

        }
        if(frame==3)
        {
            toss("shdym6", 74, 31, 0);

        }
        if(frame==3)
        {
            toss("shel", 49, 50, 0);

        }
        return;
    }
    if(animnum==168)
    {
        if(frame==0)
        {
            velo001(2, 0, 5);

        }
        if(frame==4)
        {
            shoot("shdym4", -5, 1, 0);

        }
        if(frame==4)
        {
            toss("shbul4", -5, 1, 0);

        }
        if(frame==4)
        {
            toss("shel", -5, 27, 0);

        }
        if(frame==8)
        {
            velo001(0, 0, 0);

        }
        return;
    }
    if(animnum==175)
    {
        if(frame==2)
        {
            shoot("shdym", 50, 68, 0);

        }
        if(frame==2)
        {
            shoot("shbul", 50, 68, 0);

        }
        if(frame==3)
        {
            toss("shel", 16, 68, 0);

        }
        return;
    }
    if(animnum==123)
    {
        if(frame==1)
        {
            velo001(2, 0, 0);

        }
        if(frame==4)
        {
            velo001(1.5, 0, 0);

        }
        if(frame==7)
        {
            velo001(1, 0, 0);

        }
        if(frame==10)
        {
            velo001(0.5, 0, 0);

        }
        if(frame==13)
        {
            velo001(0, 0, 0);

        }
        return;
    }

}

####animationscript function main#####
# data/chars/jasmin/jas2.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animnum = getlocalvar("animnum");
    if(animnum==22)
    {
        if(frame==0)
        {
            clearL();

        }
        return;
    }
    if(animnum==104)
    {
        if(frame==0)
        {
            clearL();

        }
        return;
    }

}

####animationscript function main#####
# data/chars/jack/jack11.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animnum = getlocalvar("animnum");
    if(animnum==37)
    {
        if(frame==0)
        {
            velo001(2, 0, 0);

        }
        if(frame==2)
        {
            velo001(1.5, 0, 0);

        }
        if(frame==3)
        {
            velo001(1, 0, 0);

        }
        if(frame==4)
        {
            velo001(0.5, 0, 0);

        }
        if(frame==5)
        {
            velo001(0, 0, 0);

        }
        return;
    }
    if(animnum==7)
    {


	void self = getlocalvar("self");

	void vAniPos = getentityproperty(self, "animpos");

	void target = findtarget(self);

	void eAniID = getentityproperty(target, "animationID");

	float x1 = getentityproperty(target, "x");

	float x2 = getentityproperty(self, "x");

	float z1 = getentityproperty(target, "z");

	float z2 = getentityproperty(self, "z");

	if(frame == 0){

		if(eAniID == openborconstant("ANI_FALL") || eAniID == openborconstant("ANI_RISE") || eAniID == openborconstant("ANI_FALL5") || eAniID == openborconstant("ANI_FALL8") || eAniID == openborconstant("ANI_RISE")){

			if(z1-z2<20 && z1-z2>-20 && x1-x2>-80 && x1-x2<80){

				if(playerkeys(getentityproperty(self, "playerindex"), 0, "movedown")){

					changeentityproperty(self, "animation", openborconstant("ANI_FREESPECIAL11"));

				}

			}

			if(z1-z2<20 && z1-z2>-20 && x1-x2>-80 && x1-x2<80){

				if(playerkeys(getentityproperty(self, "playerindex"), 0, "moveup")){

					changeentityproperty(self, "animation", openborconstant("ANI_FREESPECIAL14"));

				}

			}

		}

	}

	        if(frame==3)
        {
            toss("granat", 54, 74, 0);

        }
        return;
    }
    if(animnum==35)
    {
        if(frame==3)
        {
            toss("granat", 54, 74, 0);

        }
        return;
    }
    if(animnum==66)
    {
        if(frame==16)
        {
            spawner("jkspa", 4, 90, 1);

        }
        if(frame==17)
        {
            ani001("ANI_JUMP", 2);

        }
        return;
    }
    if(animnum==81)
    {
        if(frame==3)
        {
            velo001(-2, 0, 0);

        }
        if(frame==3)
        {
            shoot("dust", 0, 0, 1);

        }
        if(frame==5)
        {
            velo001(-1.6, 0, 0);

        }
        if(frame==7)
        {
            velo001(-1.2, 0, 0);

        }
        if(frame==9)
        {
            velo001(-0.8, 0, 0);

        }
        if(frame==11)
        {
            velo001(-0.4, 0, 0);

        }
        if(frame==13)
        {
            velo001(0, 0, 0);

        }
        return;
    }

}

####animationscript function main#####
# data/chars/jack/jack10.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animnum = getlocalvar("animnum");
    if(animnum==22)
    {
        if(frame==0)
        {
            clearL();

        }
        if(frame==4)
        {
            shoot("cape3", -30, 66, -2);

        }
        if(frame==16)
        {
            velo001(0, 0, -3);

        }
        if(frame==16)
        {
            shoot("dust", 0, 0, 1);

        }
        return;
    }
    if(animnum==104)
    {
        if(frame==0)
        {
            clearL();

        }
        if(frame==4)
        {
            shoot("cape3", -30, 66, -2);

        }
        if(frame==16)
        {
            velo001(0, 0, -3);

        }
        if(frame==16)
        {
            shoot("dust", 0, 0, 1);

        }
        return;
    }

}

####animationscript function main#####
# data/chars/jack/jack12.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animnum = getlocalvar("animnum");
    if(animnum==7)
    {
        if(frame==1)
        {
            toss("brlknf", 0, 73, -2);

        }
        return;
    }

}

####animationscript function main#####
# data/chars/jack/jack8.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animnum = getlocalvar("animnum");
    if(animnum==22)
    {
        if(frame==0)
        {
            clearL();

        }
        return;
    }
    if(animnum==104)
    {
        if(frame==0)
        {
            clearL();

        }
        return;
    }

}

####animationscript function main#####
# data/chars/jack/jack7.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animnum = getlocalvar("animnum");
    if(animnum==37)
    {
        if(frame==0)
        {
            velo001(0.5, 0, 0);

        }
        if(frame==1)
        {
            velo001(1, 0, 0);

        }
        if(frame==2)
        {
            shoot("dust", 0, 0, 0);

        }
        if(frame==2)
        {
            velo001(2, 0, 0);

        }
        if(frame==3)
        {
            velo001(1.8, 0, 0);

        }
        if(frame==4)
        {
            velo001(1.6, 0, 0);

        }
        if(frame==5)
        {
            velo001(1.4, 0, 0);

        }
        if(frame==6)
        {
            velo001(1.2, 0, 0);

        }
        if(frame==7)
        {
            velo001(1, 0, 0);

        }
        if(frame==8)
        {
            velo001(0.8, 0, 0);

        }
        if(frame==9)
        {
            velo001(0.6, 0, 0);

        }
        if(frame==10)
        {
            velo001(0.4, 0, 0);

        }
        if(frame==11)
        {
            velo001(0.2, 0, 0);

        }
        return;
    }
    if(animnum==7)
    {


	void self = getlocalvar("self");

	void vAniPos = getentityproperty(self, "animpos");

	void target = findtarget(self);

	void eAniID = getentityproperty(target, "animationID");

	float x1 = getentityproperty(target, "x");

	float x2 = getentityproperty(self, "x");

	float z1 = getentityproperty(target, "z");

	float z2 = getentityproperty(self, "z");

	if(frame == 0){

		if(eAniID == openborconstant("ANI_FALL") || eAniID == openborconstant("ANI_RISE") || eAniID == openborconstant("ANI_FALL5") || eAniID == openborconstant("ANI_FALL8") || eAniID == openborconstant("ANI_RISE")){

			if(z1-z2<20 && z1-z2>-20 && x1-x2>-80 && x1-x2<80){

				if(playerkeys(getentityproperty(self, "playerindex"), 0, "movedown")){

					changeentityproperty(self, "animation", openborconstant("ANI_FREESPECIAL11"));

				}

			}

			if(z1-z2<20 && z1-z2>-20 && x1-x2>-80 && x1-x2<80){

				if(playerkeys(getentityproperty(self, "playerindex"), 0, "moveup")){

					changeentityproperty(self, "animation", openborconstant("ANI_FREESPECIAL14"));

				}

			}

		}

	}

	        return;
    }
    if(animnum==35)
    {
        if(frame==2)
        {
            shoot("dust", 0, 0, 0);

        }
        if(frame==2)
        {
            velo001(1, 0, 0);

        }
        if(frame==4)
        {
            velo001(0.9, 0, 0);

        }
        if(frame==5)
        {
            velo001(0.7, 0, 0);

        }
        if(frame==6)
        {
            velo001(0.6, 0, 0);

        }
        if(frame==7)
        {
            velo001(0.5, 0, 0);

        }
        if(frame==8)
        {
            velo001(0.4, 0, 0);

        }
        if(frame==9)
        {
            velo001(0.3, 0, 0);

        }
        if(frame==10)
        {
            velo001(0.2, 0, 0);

        }
        if(frame==11)
        {
            velo001(0.1, 0, 0);

        }
        return;
    }
    if(animnum==66)
    {
        if(frame==16)
        {
            spawner("jkspa", 4, 90, 1);

        }
        if(frame==17)
        {
            ani001("ANI_JUMP", 2);

        }
        return;
    }
    if(animnum==81)
    {
        if(frame==3)
        {
            velo001(-2, 0, 0);

        }
        if(frame==3)
        {
            shoot("dust", 0, 0, 1);

        }
        if(frame==5)
        {
            velo001(-1.6, 0, 0);

        }
        if(frame==7)
        {
            velo001(-1.2, 0, 0);

        }
        if(frame==9)
        {
            velo001(-0.8, 0, 0);

        }
        if(frame==11)
        {
            velo001(-0.4, 0, 0);

        }
        if(frame==13)
        {
            velo001(0, 0, 0);

        }
        return;
    }

}

####animationscript function main#####
# data/chars/jack/jack6.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animnum = getlocalvar("animnum");
    if(animnum==37)
    {
        if(frame==0)
        {
            velo001(2, 0, 0);

        }
        if(frame==0)
        {
            shoot("dust", 0, 0, 0);

        }
        if(frame==3)
        {
            velo001(1.5, 0, 0);

        }
        if(frame==4)
        {
            velo001(1, 0, 0);

        }
        if(frame==5)
        {
            velo001(0.5, 0, 0);

        }
        return;
    }
    if(animnum==7)
    {


	void self = getlocalvar("self");

	void vAniPos = getentityproperty(self, "animpos");

	void target = findtarget(self);

	void eAniID = getentityproperty(target, "animationID");

	float x1 = getentityproperty(target, "x");

	float x2 = getentityproperty(self, "x");

	float z1 = getentityproperty(target, "z");

	float z2 = getentityproperty(self, "z");

	if(frame == 0){

		if(eAniID == openborconstant("ANI_FALL") || eAniID == openborconstant("ANI_RISE") || eAniID == openborconstant("ANI_FALL5") || eAniID == openborconstant("ANI_FALL8") || eAniID == openborconstant("ANI_RISE")){

			if(z1-z2<20 && z1-z2>-20 && x1-x2>-80 && x1-x2<80){

				if(playerkeys(getentityproperty(self, "playerindex"), 0, "movedown")){

					changeentityproperty(self, "animation", openborconstant("ANI_FREESPECIAL11"));

				}

			}

			if(z1-z2<20 && z1-z2>-20 && x1-x2>-100 && x1-x2<100){

				if(playerkeys(getentityproperty(self, "playerindex"), 0, "moveup")){

					changeentityproperty(self, "animation", openborconstant("ANI_FREESPECIAL14"));

				}

			}

		}

	}

	        return;
    }
    if(animnum==35)
    {
        if(frame==0)
        {
            shoot("dust", 0, 0, 0);

        }
        if(frame==1)
        {
            velo001(2, 0, 0);

        }
        if(frame==3)
        {
            velo001(1.5, 0, 0);

        }
        if(frame==4)
        {
            velo001(1, 0, 0);

        }
        if(frame==5)
        {
            velo001(0.5, 0, 0);

        }
        if(frame==6)
        {
            velo001(0, 0, 0);

        }
        return;
    }
    if(animnum==66)
    {
        if(frame==16)
        {
            spawner("jkspa", 4, 90, 1);

        }
        if(frame==17)
        {
            ani001("ANI_JUMP", 2);

        }
        return;
    }
    if(animnum==81)
    {
        if(frame==3)
        {
            velo001(-2, 0, 0);

        }
        if(frame==3)
        {
            shoot("dust", 0, 0, 1);

        }
        if(frame==5)
        {
            velo001(-1.6, 0, 0);

        }
        if(frame==7)
        {
            velo001(-1.2, 0, 0);

        }
        if(frame==9)
        {
            velo001(-0.8, 0, 0);

        }
        if(frame==11)
        {
            velo001(-0.4, 0, 0);

        }
        if(frame==13)
        {
            velo001(0, 0, 0);

        }
        return;
    }
    if(animnum==174)
    {
        if(frame==2)
        {
            shoot("axeb", 52, 48, -2);

        }
        return;
    }

}

####animationscript function main#####
# data/chars/jack/jack5.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animnum = getlocalvar("animnum");
    if(animnum==37)
    {
        if(frame==0)
        {
            velo001(2, 0, 0);

        }
        if(frame==2)
        {
            velo001(1.5, 0, 0);

        }
        if(frame==3)
        {
            velo001(1, 0, 0);

        }
        if(frame==4)
        {
            velo001(0.5, 0, 0);

        }
        if(frame==5)
        {
            velo001(0, 0, 0);

        }
        return;
    }
    if(animnum==7)
    {


	void self = getlocalvar("self");

	void vAniPos = getentityproperty(self, "animpos");

	void target = findtarget(self);

	void eAniID = getentityproperty(target, "animationID");

	float x1 = getentityproperty(target, "x");

	float x2 = getentityproperty(self, "x");

	float z1 = getentityproperty(target, "z");

	float z2 = getentityproperty(self, "z");

	if(frame == 0){

	if(eAniID == openborconstant("ANI_FALL") || eAniID == openborconstant("ANI_RISE") || eAniID == openborconstant("ANI_FALL5") || eAniID == openborconstant("ANI_FALL8") || eAniID == openborconstant("ANI_RISE")){

	if(z1-z2<20 && z1-z2>-20 && x1-x2>-100 && x1-x2<100){

	if(playerkeys(getentityproperty(self, "playerindex"), 0, "movedown")){

	changeentityproperty(self, "animation", openborconstant("ANI_FREESPECIAL11"));

	}

	if(playerkeys(getentityproperty(self, "playerindex"), 0, "moveup")){

	changeentityproperty(self, "animation", openborconstant("ANI_FREESPECIAL14"));

	}

	}

	}

	}

	        if(frame==1)
        {
            shoot("mshbl", 53, 82, 2);

        }
        if(frame==2)
        {
            toss("shel", 12, 80, 0);

        }
        return;
    }
    if(animnum==8)
    {
        if(frame==1)
        {
            shoot("mshbl", 53, 82, 2);

        }
        if(frame==2)
        {
            toss("shel", 12, 80, 0);

        }
        return;
    }
    if(animnum==66)
    {
        if(frame==16)
        {
            spawner("jkspa", 4, 90, 1);

        }
        if(frame==17)
        {
            ani001("ANI_JUMP", 2);

        }
        return;
    }
    if(animnum==81)
    {
        if(frame==3)
        {
            velo001(-2, 0, 0);

        }
        if(frame==3)
        {
            shoot("dust", 0, 0, 1);

        }
        if(frame==5)
        {
            velo001(-1.6, 0, 0);

        }
        if(frame==7)
        {
            velo001(-1.2, 0, 0);

        }
        if(frame==9)
        {
            velo001(-0.8, 0, 0);

        }
        if(frame==11)
        {
            velo001(-0.4, 0, 0);

        }
        if(frame==13)
        {
            velo001(0, 0, 0);

        }
        return;
    }

}

####animationscript function main#####
# data/chars/jack/jack4.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animnum = getlocalvar("animnum");
    if(animnum==37)
    {
        if(frame==0)
        {
            velo001(2, 0, 0);

        }
        if(frame==1)
        {
            shoot("dust", 20, 0, 1);

        }
        if(frame==5)
        {
            velo001(1.5, 0, 0);

        }
        if(frame==7)
        {
            velo001(1, 0, 0);

        }
        if(frame==9)
        {
            velo001(0.5, 0, 0);

        }
        if(frame==11)
        {
            velo001(0, 0, 0);

        }
        return;
    }
    if(animnum==7)
    {
        if(frame==0)
        {
            keyint("ANI_ATTACKBACKWARD", 0, "BA", 0, 200);

        }
        if(frame==0)
        {
            velo001(2, 0, 0);

        }
        if(frame==1)
        {
            shoot("dust", 20, 0, 1);

        }
        if(frame==5)
        {
            velo001(1.5, 0, 0);

        }
        if(frame==7)
        {
            velo001(1, 0, 0);

        }
        if(frame==9)
        {
            velo001(0.5, 0, 0);

        }
        if(frame==11)
        {
            velo001(0, 0, 0);

        }
        return;
    }
    if(animnum==42)
    {
        if(frame==0)
        {
            flipdir();

        }
        if(frame==1)
        {
            shoot("dust", 20, 0, 1);

        }
        return;
    }
    if(animnum==20)
    {
        if(frame==0)
        {
            velo001(2, 0, 0);

        }
        if(frame==1)
        {
            shoot("dust", 20, 0, 1);

        }
        if(frame==5)
        {
            velo001(1.5, 0, 0);

        }
        if(frame==7)
        {
            velo001(1, 0, 0);

        }
        if(frame==9)
        {
            velo001(0.5, 0, 0);

        }
        if(frame==11)
        {
            velo001(0, 0, 0);

        }
        return;
    }
    if(animnum==66)
    {
        if(frame==16)
        {
            spawner("jkspa", 4, 90, 1);

        }
        if(frame==17)
        {
            ani001("ANI_JUMP", 2);

        }
        return;
    }
    if(animnum==108)
    {
        if(frame==0)
        {
            velo001(-1, 0, 0);

        }
        return;
    }
    if(animnum==107)
    {
        if(frame==0)
        {
            velo001(-1, 0, 0);

        }
        return;
    }
    if(animnum==4)
    {
        if(frame==0)
        {
            velo001(-1, 0, 0);

        }
        return;
    }
    if(animnum==69)
    {
        if(frame==0)
        {
            velo001(-1, 0, 0);

        }
        return;
    }
    if(animnum==5)
    {
        if(frame==2)
        {
            velo001(-1, 0, 0);

        }
        return;
    }
    if(animnum==6)
    {
        if(frame==0)
        {
            velo001(-1, 0, 0);

        }
        return;
    }
    if(animnum==47)
    {
        if(frame==5)
        {
            changeentityproperty(getlocalvar("self"), "velocity", 0, 0, 0);

        }
        return;
    }
    if(animnum==46)
    {
        if(frame==5)
        {
            changeentityproperty(getlocalvar("self"), "velocity", 0, 0, 0);

        }
        return;
    }

}

####animationscript function main#####
# data/chars/jack/jack3.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animnum = getlocalvar("animnum");
    if(animnum==37)
    {
        if(frame==0)
        {
            velo001(2, 0, 0);

        }
        if(frame==2)
        {
            velo001(1.5, 0, 0);

        }
        if(frame==3)
        {
            velo001(1, 0, 0);

        }
        if(frame==4)
        {
            velo001(0.5, 0, 0);

        }
        if(frame==5)
        {
            velo001(0, 0, 0);

        }
        return;
    }
    if(animnum==7)
    {


	void self = getlocalvar("self");

	void vAniPos = getentityproperty(self, "animpos");

	void target = findtarget(self);

	void eAniID = getentityproperty(target, "animationID");

	float x1 = getentityproperty(target, "x");

	float x2 = getentityproperty(self, "x");

	float z1 = getentityproperty(target, "z");

	float z2 = getentityproperty(self, "z");

	if(frame == 0){

	if(eAniID == openborconstant("ANI_FALL") || eAniID == openborconstant("ANI_RISE") || eAniID == openborconstant("ANI_FALL5") || eAniID == openborconstant("ANI_FALL8") || eAniID == openborconstant("ANI_RISE")){

	if(z1-z2<20 && z1-z2>-20 && x1-x2>-100 && x1-x2<100){

	if(playerkeys(getentityproperty(self, "playerindex"), 0, "movedown")){

	changeentityproperty(self, "animation", openborconstant("ANI_FREESPECIAL11"));

	}

	if(playerkeys(getentityproperty(self, "playerindex"), 0, "moveup")){

	changeentityproperty(self, "animation", openborconstant("ANI_FREESPECIAL14"));

	}

	}

	}

	}

	        if(frame==2)
        {
            shoot("shdym", 52, 80, 0);

        }
        if(frame==2)
        {
            shoot("shbul", 52, 80, 0);

        }
        if(frame==3)
        {
            toss("shel", 18, 80, 0);

        }
        return;
    }
    if(animnum==66)
    {
        if(frame==16)
        {
            spawner("jkspa", 4, 90, 1);

        }
        if(frame==17)
        {
            ani001("ANI_JUMP", 2);

        }
        return;
    }
    if(animnum==81)
    {
        if(frame==3)
        {
            velo001(-2, 0, 0);

        }
        if(frame==3)
        {
            shoot("dust", 0, 0, 1);

        }
        if(frame==5)
        {
            velo001(-1.6, 0, 0);

        }
        if(frame==7)
        {
            velo001(-1.2, 0, 0);

        }
        if(frame==9)
        {
            velo001(-0.8, 0, 0);

        }
        if(frame==11)
        {
            velo001(-0.4, 0, 0);

        }
        if(frame==13)
        {
            velo001(0, 0, 0);

        }
        return;
    }
    if(animnum==163)
    {
        if(frame==3)
        {
            toss("shbul6", 43, 35, 0);

        }
        if(frame==3)
        {
            toss("shdym6", 43, 35, 0);

        }
        if(frame==3)
        {
            toss("shel", 18, 54, 0);

        }
        return;
    }

}

####animationscript function main#####
# data/chars/jack/jack2.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animnum = getlocalvar("animnum");
    if(animnum==22)
    {
        if(frame==0)
        {
            clearL();

        }
        return;
    }
    if(animnum==104)
    {
        if(frame==0)
        {
            clearL();

        }
        return;
    }

}

####animationscript function main#####
# data/chars/chris/smashbg.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animnum = getlocalvar("animnum");
    if(animnum==0)
    {
        if(frame==3)
        {
            killentity(getlocalvar("self"));

        }
        return;
    }

}

####animationscript function main#####
# data/chars/misc/flash.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animnum = getlocalvar("animnum");
    if(animnum==0)
    {


	void self = getlocalvar("self");

	if(frame == 0){

	int map = rand()%10;

	if( map >= 7 &&  map <= 10){

	changeentityproperty(self, "animation", openborconstant("ANI_FREESPECIAL2"));

	}

	}

	        return;
    }
    if(animnum==25)
    {
        if(frame==1)
        {
            shoot("smash", 0, 0, 0);

        }
        return;
    }

}

####animationscript function main#####
# data/chars/zombie/ztrso.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animnum = getlocalvar("animnum");
    if(animnum==7)
    {
        if(frame==0)
        {
            shoot("dust", 0, 0, 0);

        }
        if(frame==2)
        {
            shoot("dust", 0, 0, 0);

        }
        return;
    }

}

####animationscript function main#####
# data/chars/misc/tdfl.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animnum = getlocalvar("animnum");
    if(animnum==0)
    {


	if(frame == 8){

	void self = getlocalvar("self");

	killentity(self);

	}

	        return;
    }

}

####animationscript function main#####
# data/chars/misc/tdfl2.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animnum = getlocalvar("animnum");
    if(animnum==0)
    {


	if(frame == 4){

	void self = getlocalvar("self");

	killentity(self);

	}

	        return;
    }

}

####animationscript function main#####
# data/chars/jack/jkpmg.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animnum = getlocalvar("animnum");
    if(animnum==0)
    {
        if(frame==0)
        {
            velo001(-2, 0, 0);

        }
        if(frame==2)
        {
            velo001(0, 0, 0);

        }
        if(frame==3)
        {
            killentity(getlocalvar("self"));

        }
        return;
    }

}

####animationscript function main#####
# data/chars/bosf/jkspb.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animnum = getlocalvar("animnum");
    if(animnum==0)
    {
        if(frame==33)
        {
            killentity(getlocalvar("self"));

        }
        return;
    }

}

####animationscript function main#####
# data/chars/bosf/jkspa.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animnum = getlocalvar("animnum");
    if(animnum==0)
    {
        if(frame==0)
        {
            velo001(0, 0, -2.5);

        }
        if(frame==65)
        {
            killentity(getlocalvar("self"));

        }
        return;
    }

}

####animationscript function main#####
# data/chars/bosf/jkspe.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animnum = getlocalvar("animnum");
    if(animnum==0)
    {
        if(frame==21)
        {
            killentity(getlocalvar("self"));

        }
        return;
    }

}

####animationscript function main#####
# data/chars/bosf/jkspd.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animnum = getlocalvar("animnum");
    if(animnum==0)
    {
        if(frame==20)
        {
            killentity(getlocalvar("self"));

        }
        return;
    }

}

####animationscript function main#####
# data/chars/jasmin/jaspmg.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animnum = getlocalvar("animnum");
    if(animnum==0)
    {
        if(frame==0)
        {
            velo001(-2, 0, 0);

        }
        if(frame==2)
        {
            velo001(0, 0, 0);

        }
        if(frame==3)
        {
            killentity(getlocalvar("self"));

        }
        return;
    }

}

####animationscript function main#####
# data/chars/bosf/jasspc.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animnum = getlocalvar("animnum");
    if(animnum==0)
    {
        if(frame==48)
        {
            killentity(getlocalvar("self"));

        }
        return;
    }

}

####animationscript function main#####
# data/chars/bosf/jasspa.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animnum = getlocalvar("animnum");
    if(animnum==0)
    {
        if(frame==0)
        {
            velo001(0, 0, -3.5);

        }
        if(frame==42)
        {
            killentity(getlocalvar("self"));

        }
        return;
    }

}

####animationscript function main#####
# data/chars/bosf/jasspb2.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animnum = getlocalvar("animnum");
    if(animnum==0)
    {
        if(frame==5)
        {
            killentity(getlocalvar("self"));

        }
        return;
    }

}

####animationscript function main#####
# data/chars/bosf/jasspc2.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animnum = getlocalvar("animnum");
    if(animnum==0)
    {
        if(frame==16)
        {
            killentity(getlocalvar("self"));

        }
        return;
    }

}

####animationscript function main#####
# data/chars/misc/can.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animnum = getlocalvar("animnum");
    if(animnum==22)
    {


		if(frame == 0){

		void self = getlocalvar("self");

		int map = rand()%1;

		if(map < 0)

		{

		-map == map;

		}

		changeentityproperty(self, "map", map);

		}

		        return;
    }

}

####animationscript function main#####
# data/chars/misc/itemr.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animnum = getlocalvar("animnum");
    if(animnum==0)
    {
        if(frame==1)
        {
            Rspawn(0, 0, 0);

        }
        return;
    }

}

####animationscript function main#####
# data/chars/misc/itemr2.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animnum = getlocalvar("animnum");
    if(animnum==0)
    {
        if(frame==1)
        {
            Rspawn2(0, 0, 0);

        }
        return;
    }

}

####animationscript function main#####
# data/chars/misc/tomb.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animnum = getlocalvar("animnum");
    if(animnum==0)
    {


	void self = getlocalvar("self");

	if (frame == 1){

		damageentity(self, self, 1000, 1, openborconstant("ATK_NORMAL"));

	}

	        return;
    }

}

####animationscript function main#####
# data/chars/kat/kat.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animnum = getlocalvar("animnum");
    if(animnum==22)
    {


	if(frame == 0){

	void self = getlocalvar("self");

	int map = rand()%8;

	if(map < 0)

	{

	-map == map;

	}

	changeentityproperty(self, "map", map);

	}

	        return;
    }
    if(animnum==0)
    {
        if(frame==0)
        {
            antiwall(-1, 1, 0);

        }
        if(frame==0)
        {
            antiwall(1, -1, 0);

        }
        if(frame==0)
        {
            antiwall(0, 5, 0);

        }
        return;
    }
    if(animnum==12)
    {
        if(frame==3)
        {
            velo001(-2, 0, 0);

        }
        if(frame==3)
        {
            shoot("dust", 0, 0, 1);

        }
        if(frame==5)
        {
            velo001(-1.6, 0, 0);

        }
        if(frame==7)
        {
            velo001(-1.2, 0, 0);

        }
        if(frame==9)
        {
            velo001(-0.8, 0, 0);

        }
        if(frame==11)
        {
            velo001(-0.4, 0, 0);

        }
        if(frame==13)
        {
            velo001(0, 0, 0);

        }
        return;
    }
    if(animnum==1)
    {
        if(frame==0)
        {
            antiwall(-1, 1, 0);

        }
        if(frame==0)
        {
            antiwall(1, -1, 0);

        }
        return;
    }
    if(animnum==37)
    {
        if(frame==0)
        {
            velo001(2, 0, 0);

        }
        if(frame==1)
        {
            velo001(1.5, 0, 0);

        }
        if(frame==2)
        {
            velo001(1, 0, 0);

        }
        if(frame==7)
        {
            velo001(0, 0, 0);

        }
        return;
    }
    if(animnum==9)
    {
        if(frame==9)
        {
            shoot("dust", 0, 0, 1);

        }
        return;
    }
    if(animnum==11)
    {
        if(frame==9)
        {
            shoot("dust", 0, 0, 1);

        }
        return;
    }
    if(animnum==89)
    {
        if(frame==0)
        {
            changeentityproperty(getlocalvar("self"), "velocity", 0, 0, -2);

        }
        return;
    }
    if(animnum==101)
    {
        if(frame==0)
        {
            changeentityproperty(getlocalvar("self"), "velocity", 0, 0, -2);

        }
        return;
    }
    if(animnum==23)
    {
        if(frame==0)
        {
            death();

        }
        return;
    }
    if(animnum==75)
    {
        if(frame==0)
        {
            death();

        }
        return;
    }
    if(animnum==76)
    {
        if(frame==1)
        {
            shoot("dust", 0, 0, 1);

        }
        return;
    }

}

####animationscript function main#####
# data/chars/zombie/zombie.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animnum = getlocalvar("animnum");
    if(animnum==22)
    {


	if(frame == 0){

	void self = getlocalvar("self");

	int map = rand()%5;

	if(map < 0)

	{

	-map == map;

	}

	changeentityproperty(self, "map", map);

	}

	        return;
    }
    if(animnum==0)
    {
        if(frame==0)
        {
            antiwall(-1, 1, 0);

        }
        if(frame==0)
        {
            antiwall(1, -1, 0);

        }
        if(frame==0)
        {
            antiwall(0, 5, 0);

        }
        return;
    }
    if(animnum==1)
    {
        if(frame==0)
        {
            antiwall(-1, 1, 0);

        }
        if(frame==0)
        {
            antiwall(1, -1, 0);

        }
        if(frame==0)
        {
            antiwall(0, 5, 0);

        }
        return;
    }
    if(animnum==28)
    {
        if(frame==0)
        {
            antiwall(-1, 1, 0);

        }
        if(frame==0)
        {
            antiwall(1, -1, 0);

        }
        if(frame==0)
        {
            antiwall(0, 5, 0);

        }
        return;
    }
    if(animnum==193)
    {
        if(frame==6)
        {
            shoot("dust", 0, 0, 1);

        }
        return;
    }
    if(animnum==89)
    {
        if(frame==0)
        {
            changeentityproperty(getlocalvar("self"), "velocity", 0, 0, -2);

        }
        return;
    }
    if(animnum==101)
    {
        if(frame==0)
        {
            changeentityproperty(getlocalvar("self"), "velocity", 0, 0, -2);

        }
        return;
    }
    if(animnum==23)
    {
        if(frame==0)
        {
            death();

        }
        if(frame==4)
        {
            toss("zbrain", -92, 63, 0);

        }
        return;
    }
    if(animnum==75)
    {
        if(frame==0)
        {
            death();

        }
        return;
    }
    if(animnum==77)
    {
        if(frame==0)
        {
            death();

        }
        return;
    }
    if(animnum==97)
    {
        if(frame==0)
        {
            death();

        }
        if(frame==1)
        {
            toss("bblod", -10, 47, 2);

        }
        if(frame==1)
        {
            toss("ztrso", -10, 57, 1);

        }
        return;
    }

}

####animationscript function main#####
# data/chars/zombie2/zombie2.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animnum = getlocalvar("animnum");
    if(animnum==22)
    {


        if(frame == 0){

        void self = getlocalvar("self");

        int map = rand()%4;

        if(map < 0)

        {

        -map == map;

        }

        changeentityproperty(self, "map", map);

        }

                return;
    }
    if(animnum==0)
    {
        if(frame==0)
        {
            antiwall(-1, 1, 0);

        }
        if(frame==0)
        {
            antiwall(1, -1, 0);

        }
        return;
    }
    if(animnum==1)
    {
        if(frame==0)
        {
            antiwall(-1, 1, 0);

        }
        if(frame==0)
        {
            antiwall(1, -1, 0);

        }
        if(frame==0)
        {
            antiwall(0, 5, 0);

        }
        return;
    }
    if(animnum==7)
    {
        if(frame==2)
        {
            toss("zyg", 24, 50, -3);

        }
        return;
    }
    if(animnum==9)
    {
        if(frame==3)
        {
            toss("zyg2", 24, 50, -3);

        }
        return;
    }
    if(animnum==89)
    {
        if(frame==0)
        {
            changeentityproperty(getlocalvar("self"), "velocity", 0, 0, -2);

        }
        return;
    }
    if(animnum==101)
    {
        if(frame==0)
        {
            changeentityproperty(getlocalvar("self"), "velocity", 0, 0, -2);

        }
        return;
    }
    if(animnum==23)
    {
        if(frame==0)
        {
            death();

        }
        return;
    }
    if(animnum==75)
    {
        if(frame==0)
        {
            death();

        }
        return;
    }
    if(animnum==77)
    {
        if(frame==0)
        {
            death();

        }
        return;
    }

}

####animationscript function main#####
# data/chars/zombie3/zombie3.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animnum = getlocalvar("animnum");
    if(animnum==22)
    {


	if(frame == 0){

	void self = getlocalvar("self");

	int map = rand()%6;

	if(map < 0)

	{

	-map == map;

	}

	changeentityproperty(self, "map", map);

	}

	        return;
    }
    if(animnum==0)
    {
        if(frame==0)
        {
            antiwall(-1, 1, 0);

        }
        if(frame==0)
        {
            antiwall(1, -1, 0);

        }
        return;
    }
    if(animnum==1)
    {
        if(frame==0)
        {
            antiwall(-1, 1, 0);

        }
        if(frame==0)
        {
            antiwall(1, -1, 0);

        }
        if(frame==0)
        {
            antiwall(0, 5, 0);

        }
        return;
    }
    if(animnum==37)
    {
        if(frame==0)
        {
            velo001(1.5, 0, 0);

        }
        if(frame==1)
        {
            velo001(1, 0, 0);

        }
        if(frame==3)
        {
            velo001(0.5, 0, 0);

        }
        if(frame==4)
        {
            velo001(0, 0, 0);

        }
        return;
    }
    if(animnum==89)
    {
        if(frame==0)
        {
            changeentityproperty(getlocalvar("self"), "velocity", 0, 0, -2);

        }
        return;
    }
    if(animnum==101)
    {
        if(frame==0)
        {
            changeentityproperty(getlocalvar("self"), "velocity", 0, 0, -2);

        }
        return;
    }
    if(animnum==23)
    {
        if(frame==0)
        {
            death();

        }
        if(frame==1)
        {
            toss("zhead", -17, 96, 0);

        }
        return;
    }
    if(animnum==75)
    {
        if(frame==0)
        {
            death();

        }
        return;
    }
    if(animnum==77)
    {
        if(frame==0)
        {
            death();

        }
        return;
    }
    if(animnum==97)
    {
        if(frame==0)
        {
            death();

        }
        return;
    }

}

####animationscript function main#####
# data/chars/kat/kat2.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animnum = getlocalvar("animnum");
    if(animnum==22)
    {


	if(frame == 0){

	void self = getlocalvar("self");

	int map = rand()%8;

	if(map < 0)

	{

	-map == map;

	}

	changeentityproperty(self, "map", map);

	}

	        return;
    }
    if(animnum==0)
    {
        if(frame==0)
        {
            antiwall(-1, 1, 0);

        }
        if(frame==0)
        {
            antiwall(1, -1, 0);

        }
        if(frame==0)
        {
            antiwall(0, 5, 0);

        }
        return;
    }
    if(animnum==12)
    {
        if(frame==3)
        {
            velo001(-2, 0, 0);

        }
        if(frame==3)
        {
            shoot("dust", 0, 0, 1);

        }
        if(frame==5)
        {
            velo001(-1.6, 0, 0);

        }
        if(frame==7)
        {
            velo001(-1.2, 0, 0);

        }
        if(frame==9)
        {
            velo001(-0.8, 0, 0);

        }
        if(frame==11)
        {
            velo001(-0.4, 0, 0);

        }
        if(frame==13)
        {
            velo001(0, 0, 0);

        }
        return;
    }
    if(animnum==1)
    {
        if(frame==0)
        {
            antiwall(-1, 1, 0);

        }
        if(frame==0)
        {
            antiwall(1, -1, 0);

        }
        return;
    }
    if(animnum==37)
    {
        if(frame==0)
        {
            velo001(2, 0, 0);

        }
        if(frame==1)
        {
            velo001(1.5, 0, 0);

        }
        if(frame==2)
        {
            velo001(1, 0, 0);

        }
        if(frame==7)
        {
            velo001(0, 0, 0);

        }
        return;
    }
    if(animnum==9)
    {
        if(frame==9)
        {
            shoot("dust", 0, 0, 1);

        }
        return;
    }
    if(animnum==11)
    {
        if(frame==9)
        {
            shoot("dust", 0, 0, 1);

        }
        return;
    }
    if(animnum==89)
    {
        if(frame==0)
        {
            changeentityproperty(getlocalvar("self"), "velocity", 0, 0, -2);

        }
        return;
    }
    if(animnum==101)
    {
        if(frame==0)
        {
            changeentityproperty(getlocalvar("self"), "velocity", 0, 0, -2);

        }
        return;
    }
    if(animnum==48)
    {
        if(frame==12)
        {
            shoot("dust", 0, 0, 1);

        }
        return;
    }
    if(animnum==23)
    {
        if(frame==0)
        {
            death();

        }
        return;
    }
    if(animnum==75)
    {
        if(frame==0)
        {
            death();

        }
        return;
    }
    if(animnum==76)
    {
        if(frame==1)
        {
            shoot("dust", 0, 0, 1);

        }
        return;
    }

}

####animationscript function main#####
# data/chars/kat/kat3.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animnum = getlocalvar("animnum");
    if(animnum==22)
    {


	if(frame == 0){

	void self = getlocalvar("self");

	int map = rand()%8;

	if(map < 0)

	{

	-map == map;

	}

	changeentityproperty(self, "map", map);

	}

	        if(frame==3)
        {
            shoot("dust", 0, 0, 1);

        }
        return;
    }
    if(animnum==0)
    {
        if(frame==0)
        {
            antiwall(-1, 1, 0);

        }
        if(frame==0)
        {
            antiwall(1, -1, 0);

        }
        if(frame==0)
        {
            antiwall(0, 5, 0);

        }
        return;
    }
    if(animnum==12)
    {
        if(frame==3)
        {
            velo001(-2, 0, 0);

        }
        if(frame==3)
        {
            shoot("dust", 0, 0, 1);

        }
        if(frame==5)
        {
            velo001(-1.6, 0, 0);

        }
        if(frame==7)
        {
            velo001(-1.2, 0, 0);

        }
        if(frame==9)
        {
            velo001(-0.8, 0, 0);

        }
        if(frame==11)
        {
            velo001(-0.4, 0, 0);

        }
        if(frame==13)
        {
            velo001(0, 0, 0);

        }
        return;
    }
    if(animnum==1)
    {
        if(frame==0)
        {
            antiwall(-1, 1, 0);

        }
        if(frame==0)
        {
            antiwall(1, -1, 0);

        }
        return;
    }
    if(animnum==37)
    {
        if(frame==0)
        {
            velo001(2, 0, 0);

        }
        if(frame==1)
        {
            velo001(1.5, 0, 0);

        }
        if(frame==2)
        {
            velo001(1, 0, 0);

        }
        if(frame==7)
        {
            velo001(0, 0, 0);

        }
        return;
    }
    if(animnum==9)
    {
        if(frame==9)
        {
            shoot("dust", 0, 0, 1);

        }
        return;
    }
    if(animnum==11)
    {
        if(frame==9)
        {
            shoot("dust", 0, 0, 1);

        }
        return;
    }
    if(animnum==89)
    {
        if(frame==0)
        {
            changeentityproperty(getlocalvar("self"), "velocity", 0, 0, -2);

        }
        return;
    }
    if(animnum==101)
    {
        if(frame==0)
        {
            changeentityproperty(getlocalvar("self"), "velocity", 0, 0, -2);

        }
        return;
    }
    if(animnum==23)
    {
        if(frame==0)
        {
            death();

        }
        return;
    }
    if(animnum==75)
    {
        if(frame==0)
        {
            death();

        }
        return;
    }
    if(animnum==76)
    {
        if(frame==1)
        {
            shoot("dust", 0, 0, 1);

        }
        return;
    }

}

####animationscript function main#####
# data/chars/zombie2/zombie2a.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animnum = getlocalvar("animnum");
    if(animnum==22)
    {


        if(frame == 0){

        void self = getlocalvar("self");

        int map = rand()%4;

        if(map < 0)

        {

        -map == map;

        }

        changeentityproperty(self, "map", map);

        }

                return;
    }
    if(animnum==0)
    {
        if(frame==0)
        {
            antiwall(-1, 1, 0);

        }
        if(frame==0)
        {
            antiwall(1, -1, 0);

        }
        if(frame==0)
        {
            antiwall(0, 5, 0);

        }
        return;
    }
    if(animnum==1)
    {
        if(frame==0)
        {
            antiwall(-1, 1, 0);

        }
        if(frame==0)
        {
            antiwall(1, -1, 0);

        }
        if(frame==0)
        {
            antiwall(0, 5, 0);

        }
        return;
    }
    if(animnum==7)
    {
        if(frame==2)
        {
            toss("zyg", 24, 50, -3);

        }
        return;
    }
    if(animnum==89)
    {
        if(frame==0)
        {
            changeentityproperty(getlocalvar("self"), "velocity", 0, 0, -2);

        }
        return;
    }
    if(animnum==101)
    {
        if(frame==0)
        {
            changeentityproperty(getlocalvar("self"), "velocity", 0, 0, -2);

        }
        return;
    }
    if(animnum==23)
    {
        if(frame==0)
        {
            death();

        }
        return;
    }
    if(animnum==75)
    {
        if(frame==0)
        {
            death();

        }
        return;
    }
    if(animnum==77)
    {
        if(frame==0)
        {
            death();

        }
        return;
    }

}
