View Single Post
  #10  
Old 08-05-2005, 03:52 AM
alissalee alissalee is offline
Mr. Ciprioni Atrius Admin
alissalee's Avatar
Join Date: Dec 2004
Location: Lawrence, Ma
Posts: 190
alissalee is an unknown quantity at this point
Send a message via AIM to alissalee Send a message via MSN to alissalee
i have a script but i cannot make it work it is my freands elements
please some one see if it is not working right
if (actionserverside) {

if (strequals(#p(0),block)) {

putnpc2 #p(1),#p(2),{if (created) join block;};

}

}

//#CLIENTSIDE

if (weaponfired) {

if (this.on == 0) {

this.on = 1;

timeout = 0.05;

} else if (this.on == 1) {

this.on = 2;

hideimgs 200,210;

timeout = 0.05;

} else if (this.on == 2) {

hideimgs 200,210;

this.on = 0;

timeout = 0;

}

}

if (timeout) {

if (this.on == 0) setstring this.on,Off; else

if (this.on == 1) setstring this.on,Menu; else

if (this.on == 2) setstring this.on,On;

if (this.choice == 0) setstring
this.selection,Place Block; else

if (this.choice == 1) setstring
this.selection,Message Block; else

if (this.choice == 2) setstring
this.selection,Image Block; else

if (this.choice == 3) setstring
this.selection,Say2 Block; else

if (this.choice == 4) setstring
this.selection,Destroy Block;

showimg 211,@b@On: #s(this.on),0,134;

changeimgvis 211,4;

showimg 212,@b@Selection: #s(this.selection),0,134
+20;

changeimgvis 212,4;

if (this.on == 2) {

if (this.choice == 0) {

sleep .05;

if (leftmousebutton) triggeraction
0,0,serverside,Element/Block,block,#v(mousex),#v
(mousey);

}

if (this.choice == 1) {

sleep .05;

if (leftmousebutton) triggeraction
mousex,mousey,rightclicked,text,#c;

}

if (this.choice == 2) {

sleep .05;

if (leftmousebutton) triggeraction
mousex,mousey,rightclicked,img,#c;

}

if (this.choice == 3) {

sleep .05;

if (leftmousebutton) triggeraction
mousex,mousey,rightclicked,say2,#c;

}

if (this.choice == 4) {

sleep .05;

if (leftmousebutton) triggeraction
mousex,mousey,rightclicked,destroy,;

}

}

if (this.on == 1) {

showimg 200,@b@Place Block,280,200+(17*0);

showimg 201,@b@Message Block,280,200+(17*1);

showimg 202,@b@Image Block,280,200+(17*2);

showimg 203,@b@Say2 Block,280,200+(17*3);

showimg 204,@b@Destroy Block,280,200+(17*4);

showimg 205,@b@Close,280,200+(17*5);

//showimg 206,@b@#v(mousescreenx) - #v
(mousescreeny),300,200+(17*10);

for (i=0;i<20;i++) {

changeimgvis 200+i,5;

changeimgzoom 200+i,.9;

}

if (mousescreenx in |280,400| && mousescreeny in |
200+(17*0),200+(17*1)|) {

changeimgcolors 200,1,1,0,1;

if (leftmousebutton) {

this.choice = 0;

hideimgs 200,210;

this.on = 2;

}

} else changeimgcolors 200,1,1,1,1;

if (mousescreenx in |280,400| && mousescreeny in |
200+(18*1),200+(17*2)|) {

changeimgcolors 201,1,1,0,1;

if (leftmousebutton) {

this.choice = 1;

hideimgs 200,210;

this.on = 2;

}

} else changeimgcolors 201,1,1,1,1;

if (mousescreenx in |280,400| && mousescreeny in |
200+(18*2),200+(17*3)|) {

changeimgcolors 202,1,1,0,1;

if (leftmousebutton) {

this.choice = 2;

hideimgs 200,210;

this.on = 2;

}

} else changeimgcolors 202,1,1,1,1;

if (mousescreenx in |280,400| && mousescreeny in |
200+(18*3),200+(17*4)|) {

changeimgcolors 203,1,1,0,1;

if (leftmousebutton) {

this.choice = 3;

hideimgs 200,210;

this.on = 2;

}

} else changeimgcolors 203,1,1,1,1;

if (mousescreenx in |280,400| && mousescreeny in |
200+(18*4),200+(17*5)|) {

changeimgcolors 204,1,1,0,1;

if (leftmousebutton) {

this.choice = 4;

hideimgs 200,210;

this.on = 2;

}

} else changeimgcolors 204,1,1,1,1;

if (mousescreenx in |280,400| && mousescreeny in |
200+(18*5),200+(17*6)|) {

changeimgcolors 205,1,1,0,1;

if (leftmousebutton) {

hideimgs 200,210;

this.on = 0;

}

} else changeimgcolors 205,1,1,1,1;

}

timeout = 0.05;

}
Reply With Quote