![]() |
Makeing a Staff Block script
i need help i wanna make a staff block that stays untill the staff that put it up comes and moves it out i would like to have it able to block out ppl witout boots to a lvl not done yet please help me.
|
Quote:
|
You've got to learn to script. All I've seen you do here is ask for scripts. And in my opinion, pretty pointless ones.
|
Here, I'll help:
NPC Code:/// NPC made by *Sword Then edit the level and delete it when you're ready for it to be gone. |
All you have to do is make a class called staffblock or something, and in the class script have it block accordingly with setshape, and then have a weapon that uses putnpc to put it down.
|
Dude, seriously. This forum isn't for asking how to do things. If we don't see you putting forth any effort towards solving the problems yourself then you aren't welcome to ask for help here. We are not your slaves. I'm going to start closing and deleting your threads if you don't comply with the rules.
Good: -Trying to learn things for yourself. -Putting forth effort towards trying to do something before comming here. Bad: -Asking for someone to do something for you. -Using this forum as a place to get someone to do work for you. If you can't figure out how to do something, this forum has a wonderful search feature. |
this is 4 rocket's server playerworld14 and i tryed one no work some olne please and i trying to script
|
Quote:
If you have a specific question, feel free to ask it. However, don't simply throw your arms in the air helplessly and expect everyone else to do your work for you. Please, again, refer to rule 1 of this forum: Quote:
|
well then ill try to make my own if some one would help me out on learning how to script
|
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; } |
wow... >_>
|
Quote:
|
Quote:
|
| All times are GMT +2. The time now is 09:45 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.