symbols
surface flush
message activated
surface loowater
sound flushs
flex howloud
end
code
activated:
//the surface is activated
//move the water and play the sound
PlaySoundGlobal(flushs , howloud, 0.0, 0x4); //playsound
SurfaceAnim(loowater,15,1);//play matiral animation
sleep(GetSoundLen(flushs)); //wait for the flush to stop
StopSurfaceAnim(loowater); //stop surface animation
return;
end;
//why wont that move the mat in MP?
# ***********************************
# ****PJB's Secret Apartment Cog*****
# ***********************************
# Lucasarts acsept no responsability for this cog, and it is not endorsed or made by them.
#
# made my PJb (pokejoyboy@aol.com, PJB@pjb.i8.com)
#18/04/03
#
#----------------now for the flags--------------
//ignore 0x40
#----------------now for the symbols--------------
symbols
thing roomdoor linkid=0
surface direct linkid=4
surface spass1 linkid=1
surface spass2 linkid=2
surface spass3 linkid=3
flex 1d=-1 local
flex pass1=-1 local
flex pass2=-1 local
flex pass3=-1 local
flex code1=a
flex code2=b
flex code3=c
flex locka=-1 local
flex lockb=-1 local
flex lockc=-1 local
message activated
end
#----------------now for the code--------------
code
activated:
id=GetSenderID(); //find out wich surface was activated, or the door
//commands for the door.
if (id==0) call door; //if its the door go to a scrtion to see if the passcode is correct.
//commands for surface 1;
if (id==1) pass1=pass1+1;
if (pass1==10) pass1=0;
if (id==1) SetSurfaceCel(spass1, pass1);
//commands for surface 2
if (id==2) pass2=pass2+1;
if (pass2==10) pass2=0;
if (id==2) SetSurfaceCel(spass2, pass2);
//commands for surface 3;
if (id==3) pass3=pass3+1;
if (pass3==10) pass3=0;
if (id==3) SetSurfaceCel(spass3, pass3);
//if your opening from inside
if (id==4) call odoor; //if your openign from the inside go strait to teh opendoor sectrion of cog.
return;
door: //find if the code is right, and open or dont open the door
//this part changes the data you enter into the code1 area data
if (code1==0) locka=0;
if (code1==1) locka=3;
if (code1==2) locka=5;
if (code1==3) locka=4;
if (code1==4) locka=2;
if (code1==5) locka=6;
if (code1==6) locka=8;
if (code1==7) locka=7;
if (code1==8) locka=9;
if (code1==9) locka=1;
//this part changes the data you enter into the code2 area data
if (code2==0) lockb=1;
if (code2==1) lockb=5;
if (code2==2) lockb=7;
if (code2==3) lockb=4;
if (code2==4) lockb=3;
if (code2==5) lockb=2;
if (code2==6) lockb=8;
if (code2==7) lockb=9;
if (code2==8) lockb=0;
if (code2==9) lockb=6;
//this part changes the data you enter into the code3 area data
if (code3==0) lockc=4;
if (code3==1) lockc=6;
if (code3==2) lockc=3;
if (code3==3) lockc=5;
if (code3==4) lockc=7;
if (code3==5) lockc=2;
if (code3==6) lockc=1;
if (code3==7) lockc=8;
if (code3==8) lockc=0;
if (code3==9) lockc=9;
if (pass1!=locka) return;
else if (pass2!=lockb) return;
else if (pass3!=lockc) return;
else call odoor; //find out if the combo is corect, if it is, then call opendoor
return;
odoor: //open door
movetoframe(roomdoor,1);
SetSurfaceCel(direct, 1);
sleep(2);
movetoframe(roomdoor,0);
SetSurfaceCel(direct, 0);
return;
end;
//why wont it work!
------------------
I am pjb.
Another post......
another moment of my life wasted.....
surface flush
message activated
surface loowater
sound flushs
flex howloud
end
code
activated:
//the surface is activated
//move the water and play the sound
PlaySoundGlobal(flushs , howloud, 0.0, 0x4); //playsound
SurfaceAnim(loowater,15,1);//play matiral animation
sleep(GetSoundLen(flushs)); //wait for the flush to stop
StopSurfaceAnim(loowater); //stop surface animation
return;
end;
//why wont that move the mat in MP?
# ***********************************
# ****PJB's Secret Apartment Cog*****
# ***********************************
# Lucasarts acsept no responsability for this cog, and it is not endorsed or made by them.
#
# made my PJb (pokejoyboy@aol.com, PJB@pjb.i8.com)
#18/04/03
#
#----------------now for the flags--------------
//ignore 0x40
#----------------now for the symbols--------------
symbols
thing roomdoor linkid=0
surface direct linkid=4
surface spass1 linkid=1
surface spass2 linkid=2
surface spass3 linkid=3
flex 1d=-1 local
flex pass1=-1 local
flex pass2=-1 local
flex pass3=-1 local
flex code1=a
flex code2=b
flex code3=c
flex locka=-1 local
flex lockb=-1 local
flex lockc=-1 local
message activated
end
#----------------now for the code--------------
code
activated:
id=GetSenderID(); //find out wich surface was activated, or the door
//commands for the door.
if (id==0) call door; //if its the door go to a scrtion to see if the passcode is correct.
//commands for surface 1;
if (id==1) pass1=pass1+1;
if (pass1==10) pass1=0;
if (id==1) SetSurfaceCel(spass1, pass1);
//commands for surface 2
if (id==2) pass2=pass2+1;
if (pass2==10) pass2=0;
if (id==2) SetSurfaceCel(spass2, pass2);
//commands for surface 3;
if (id==3) pass3=pass3+1;
if (pass3==10) pass3=0;
if (id==3) SetSurfaceCel(spass3, pass3);
//if your opening from inside
if (id==4) call odoor; //if your openign from the inside go strait to teh opendoor sectrion of cog.
return;
door: //find if the code is right, and open or dont open the door
//this part changes the data you enter into the code1 area data
if (code1==0) locka=0;
if (code1==1) locka=3;
if (code1==2) locka=5;
if (code1==3) locka=4;
if (code1==4) locka=2;
if (code1==5) locka=6;
if (code1==6) locka=8;
if (code1==7) locka=7;
if (code1==8) locka=9;
if (code1==9) locka=1;
//this part changes the data you enter into the code2 area data
if (code2==0) lockb=1;
if (code2==1) lockb=5;
if (code2==2) lockb=7;
if (code2==3) lockb=4;
if (code2==4) lockb=3;
if (code2==5) lockb=2;
if (code2==6) lockb=8;
if (code2==7) lockb=9;
if (code2==8) lockb=0;
if (code2==9) lockb=6;
//this part changes the data you enter into the code3 area data
if (code3==0) lockc=4;
if (code3==1) lockc=6;
if (code3==2) lockc=3;
if (code3==3) lockc=5;
if (code3==4) lockc=7;
if (code3==5) lockc=2;
if (code3==6) lockc=1;
if (code3==7) lockc=8;
if (code3==8) lockc=0;
if (code3==9) lockc=9;
if (pass1!=locka) return;
else if (pass2!=lockb) return;
else if (pass3!=lockc) return;
else call odoor; //find out if the combo is corect, if it is, then call opendoor
return;
odoor: //open door
movetoframe(roomdoor,1);
SetSurfaceCel(direct, 1);
sleep(2);
movetoframe(roomdoor,0);
SetSurfaceCel(direct, 0);
return;
end;
//why wont it work!
------------------
I am pjb.
Another post......
another moment of my life wasted.....
I am Darth PJB!
well, go on, run away!
i have a plastic lightsaber and a jedi cape.. am i a nerd?
If gravity is a crule mistress, and bar tenders with bad grammar are untrustworthy, what is air?
well, go on, run away!
i have a plastic lightsaber and a jedi cape.. am i a nerd?
If gravity is a crule mistress, and bar tenders with bad grammar are untrustworthy, what is air?