Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 08-03-2005, 09:37 PM
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
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.
Reply With Quote
  #2  
Old 08-04-2005, 01:49 AM
Bl0nkt Bl0nkt is offline
Era Developer
Bl0nkt's Avatar
Join Date: Mar 2005
Location: Pennsylvania
Posts: 1,589
Bl0nkt will become famous soon enough
Send a message via AIM to Bl0nkt
Quote:
Originally Posted by alissalee
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.
What server is this for?
Reply With Quote
  #3  
Old 08-04-2005, 02:13 AM
AlexH AlexH is offline
Have A Drink On Me
AlexH's Avatar
Join Date: Jun 2001
Location: Somewhere In Time
Posts: 7,442
AlexH is on a distinguished road
Send a message via AIM to AlexH Send a message via MSN to AlexH
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.
__________________
QUICK LOOK BUSY JESUS IS COMING!
Reply With Quote
  #4  
Old 08-04-2005, 02:43 AM
Sword Sword is offline
Banned
Join Date: Jul 2005
Posts: 88
Sword is an unknown quantity at this point
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.
Reply With Quote
  #5  
Old 08-04-2005, 02:46 AM
konidias konidias is offline
Old Bee
konidias's Avatar
Join Date: Jul 2001
Location: Orlando, FL
Posts: 7,222
konidias will become famous soon enough
Send a message via AIM to konidias
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.
__________________

Put this image in your sig if you support Bomy Island! (g2k1 revision)
play bomberman while you wait!


Reply With Quote
  #6  
Old 08-04-2005, 03:29 AM
Python523 Python523 is offline
Banned
Join Date: Aug 2001
Location: Illinois
Posts: 3,498
Python523 is on a distinguished road
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.
Reply With Quote
  #7  
Old 08-04-2005, 04:01 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
this is 4 rocket's server playerworld14 and i tryed one no work some olne please and i trying to script
Reply With Quote
  #8  
Old 08-04-2005, 04:09 AM
Lance Lance is offline
dark overlord
Lance's Avatar
Join Date: Sep 2003
Location: Space Jam Mountain
Posts: 5,072
Lance is on a distinguished road
Quote:
Originally Posted by alissalee
this is 4 rocket's server playerworld14 and i tryed one no work some olne please and i trying to script
This reference might prove itself fairly useful. Read the parts that seem relevant. Pay special note to the "Before you ask" section.

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:
Originally Posted by rules
1) Don't post here just asking for scripts, or asking for people to fix scripts that are beyond your skill level. The posters here aren't just some handy resource for scripting shortcuts. If you can't script something then don't try to produce it. If you're trying to make it to aid your learning then set your sights lower. If you want it for a server then go hire a scripter.

Last edited by Lance; 08-04-2005 at 04:24 AM.. Reason: clarity
Reply With Quote
  #9  
Old 08-04-2005, 06:23 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
well then ill try to make my own if some one would help me out on learning how to script
Reply With Quote
  #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
  #11  
Old 08-05-2005, 06:30 AM
Tolnaftate2004 Tolnaftate2004 is offline
penguin.
Join Date: Jul 2004
Location: Berkeley, CA
Posts: 534
Tolnaftate2004 is a jewel in the roughTolnaftate2004 is a jewel in the rough
Send a message via AIM to Tolnaftate2004
Quote:
Originally Posted by alissalee
putnpc2 #p(1),#p(2),{if (created) join block;};
For starters, the x and y need to be floats, which means use strtofloat() around the bolded parts.
Reply With Quote
  #12  
Old 08-05-2005, 04:06 AM
Blitz_Hunter Blitz_Hunter is offline
dot dot dot
Blitz_Hunter's Avatar
Join Date: Oct 2002
Location: Missouri
Posts: 601
Blitz_Hunter is on a distinguished road
Send a message via AIM to Blitz_Hunter
wow... >_>
__________________
-em3ricR-
Reply With Quote
  #13  
Old 08-05-2005, 06:23 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
Quote:
Originally Posted by Blitz_Hunter
wow... >_>
wow wat?
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 06:12 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.