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 04-02-2001, 12:22 PM
activeconvict activeconvict is offline
HIRYUU
activeconvict's Avatar
Join Date: Mar 2001
Posts: 1,162
activeconvict is on a distinguished road
Cool

Post all you're elite NPCs here. =P
Reply With Quote
  #2  
Old 04-02-2001, 12:49 PM
Lion'el-Jonson Lion'el-Jonson is offline
Please Wait....
Lion'el-Jonson's Avatar
Join Date: Mar 2001
Location: I like to eat food samples at price club.
Posts: 1,663
Lion'el-Jonson will become famous soon enough
Send a message via AIM to Lion'el-Jonson Send a message via Yahoo to Lion'el-Jonson
Ya! So you can copy them and use on your newbarama playerworld! Yay!
__________________


"My words are like weaponry on a record"
Reply With Quote
  #3  
Old 04-02-2001, 01:05 PM
EvilPoptart EvilPoptart is offline
Banned
Join Date: Mar 2001
Posts: 95
EvilPoptart is on a distinguished road
Talking

If (playerenters){say 0;}
Reply With Quote
  #4  
Old 04-02-2001, 05:30 PM
grim_squeaker_x grim_squeaker_x is offline
Retired Oldbie
grim_squeaker_x's Avatar
Join Date: Mar 2001
Posts: 3,084
grim_squeaker_x will become famous soon enough
NPC Code:

if (playerenters||timeout) {
for (this.p=0;this.p<playerscout;this.p++) {
if (players[this.p].hearts>0) {
players[this.p].hearts-=0.5;
}
}
timeout = 0.05;
}

__________________

Reply With Quote
  #5  
Old 04-02-2001, 09:20 PM
freddyfox freddyfox is offline
Banned
freddyfox's Avatar
Join Date: Mar 2001
Posts: 6,705
freddyfox is on a distinguished road
NPC Code:

if(playertouchsme){
shootball;
}

Reply With Quote
  #6  
Old 04-02-2001, 09:29 PM
grim_squeaker_x grim_squeaker_x is offline
Retired Oldbie
grim_squeaker_x's Avatar
Join Date: Mar 2001
Posts: 3,084
grim_squeaker_x will become famous soon enough
NPC Code:
if (playerenters||timeout) {
shootball;
timeout = 0.05;
}

__________________

Reply With Quote
  #7  
Old 04-03-2001, 02:55 AM
EvilPoptart EvilPoptart is offline
Banned
Join Date: Mar 2001
Posts: 95
EvilPoptart is on a distinguished road
Talking

mines the best
Reply With Quote
  #8  
Old 04-04-2001, 12:40 PM
activeconvict activeconvict is offline
HIRYUU
activeconvict's Avatar
Join Date: Mar 2001
Posts: 1,162
activeconvict is on a distinguished road
Unhappy Hah.

You guys have some nice NPCs, heh (I know you wouldn't post good ones) and btw: Lionel, I don't tend to make a 'newberama' playerworld, I'm just interested to see what people can do. =/
Reply With Quote
  #9  
Old 04-04-2001, 01:07 PM
Lion'el-Jonson Lion'el-Jonson is offline
Please Wait....
Lion'el-Jonson's Avatar
Join Date: Mar 2001
Location: I like to eat food samples at price club.
Posts: 1,663
Lion'el-Jonson will become famous soon enough
Send a message via AIM to Lion'el-Jonson Send a message via Yahoo to Lion'el-Jonson
My name is Gabriel, Mr. Anderson.

//Made by Gabriel
if (playerenters) {hurt 99}
__________________


"My words are like weaponry on a record"
Reply With Quote
  #10  
Old 04-04-2001, 01:25 PM
MoonAngel MoonAngel is offline
Banned
MoonAngel's Avatar
Join Date: Mar 2001
Location: QUÉBEC!
Posts: 1,443
MoonAngel is on a distinguished road
Send a message via ICQ to MoonAngel Send a message via AIM to MoonAngel
if(playerenters) {
set banned;
}
while (banned) {
showfile sucker.rtf;
sleep 0.05;
showfile sucker.rtf;
sleep 0.05;
showfile sucker.rtf;
sleep 0.05;
showfile sucker.rtf;
sleep 0.05;
}


i know i couldve used the loop once, but making it open 5 times then restarting is even better.

do this to those you ban4life on servers.

i tried it offline, works great! =D

first of, my Microsoft Words 2K Froze once.. then kept on reopening other window of MS Words 2K

those hackers will beg you to remove the flag and warp u back to some place else. some will try to reset their accounts, which is even more stupid because any server i work on has a list of banned accounts.
Reply With Quote
  #11  
Old 04-05-2001, 11:32 AM
Tyhm Tyhm is offline
Psionic Youth
Tyhm's Avatar
Join Date: Mar 2001
Location: Babord, West Graal Deaths:1009 Kills:1
Posts: 5,635
Tyhm has a spectacular aura about
Unless someone creates such a file.
__________________
"Whatever," said Bean, "I was just glad to get out of the toilet."

"Power does not corrupt. Fear corrupts, perhaps the fear of a loss of power."- John Steinbeck
"I'm only acting retarded, what's your excuse?" queried the Gord.
- My pet, the Levelup Gnome

http://forums.graalonline.com/forums...&postcount=233
Reply With Quote
  #12  
Old 04-06-2001, 03:23 AM
MoonAngel MoonAngel is offline
Banned
MoonAngel's Avatar
Join Date: Mar 2001
Location: QUÉBEC!
Posts: 1,443
MoonAngel is on a distinguished road
Send a message via ICQ to MoonAngel Send a message via AIM to MoonAngel
yeah i know =P it would have to be in a download pack = | too bad it cant be downloaded from the server
Reply With Quote
  #13  
Old 04-06-2001, 03:00 PM
Psyker Psyker is offline
Tired Sloth
Join Date: Mar 2001
Posts: 6,217
Psyker will become famous soon enough
Send a message via AIM to Psyker Send a message via Yahoo to Psyker
Quote:
if (playerenters) setlevel ban.graal;
Hah, you can't beat that!
__________________
Reply With Quote
  #14  
Old 04-06-2001, 03:11 PM
Guest
Posts: n/a
Quote:
Originally posted by activeconvict
Post all you're elite NPCs here. =P
:O
Reply With Quote
  #15  
Old 04-07-2001, 05:42 AM
activeconvict activeconvict is offline
HIRYUU
activeconvict's Avatar
Join Date: Mar 2001
Posts: 1,162
activeconvict is on a distinguished road
Hehehe, =/
__________________
HIRYUU
Reply With Quote
  #16  
Old 08-24-2001, 10:17 AM
Vinvect Vinvect is offline
Registered User
Join Date: Aug 2001
Location: U.S.A,California,Milpitas,In A House,In Room,On A Seat,On a Computer
Posts: 157
Vinvect is on a distinguished road
Send a message via ICQ to Vinvect Send a message via Yahoo to Vinvect
lets see

lets see if u can beat this:

NPC Code:

//NPC made by Darkyoshi1;
if (playerenters) {
this.speed=int(random(-2,6));
this.radius=int(random(4,8));
this.startx=random(13,45);
this.starty=random(11,33);
enableweapons;
noplayerkilling;
if(isleader) this.angle=random(200,340);
timereverywhere;
timeout=0.05;
}
if (timeout) {
this.x=this.startx+.5+this.speed+sin(this.angle)*t his.radius;
this.y=this.starty+.5+this.speed+cos(this.angle)*t his.radius;
x=this.x;
y=this.y;
for(this.i2=0;this.i2<6.283;this.i2+=0.5483){
this.x1=x;
this.y1=y;
for(this.i1=2;this.i1<9;this.i1++){
this.x1=this.x1+cos(this.angle-(this.i1*this.angle)+this.i2)*((11-this.i1)/2);
this.y1=this.y1+sin(this.angle-(this.i1*this.angle)+this.i2)*((11-this.i1)/2);
if(this.i1%2<1){
showimg ((this.i2*10)+this.i1),shadoworb.gif,this.x1,this. y1;
changeimgvis ((this.i2*10)+this.i1),1;
changeimgcolors (((this.i2*10)/1)+this.i1),170,0,33,0.99999999999999;
changeimgcolors (((this.i2*10)/2)+this.i1),0,170,0,33.99999999999999;
changeimgcolors (((this.i2*10)/3)+this.i1),33,0,170,0.99999999999999;
}
}
}
this.angle=(this.angle-0.0314)%31.4159;
timeout=0.05;
}

__________________
==========================
I Script Really Good
&
Looking For A NAT Job
==========================
Quote:
That's like a big lugee!
-Evolution The Movie
Quote:
Ha Ha Ha Give It Up!
-Cyrus From Bomberman
I'm not a Bomy anymore.
I'm a MUTATED BROCLI MONSTER!
(or SIGN MONSTER)
If you make me angry,
I'LL EAT YOU WHOLE!
ME, MUTATED BROCLI MONSTER MASTER
(or SIGN MONSTER)
WILL EAT YOU ALL UP!
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Quest Valley Owner
Looking For Staff
Pm Me
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
O.o Still Have My Braen Damaegd o.O


Thanks To Esiah, He Made This For Me!
Thanks Esiah!
Reply With Quote
  #17  
Old 08-24-2001, 12:48 PM
nyghtGT nyghtGT is offline
Banned
nyghtGT's Avatar
Join Date: Jun 2001
Posts: 3,993
nyghtGT is on a distinguished road
Send a message via AIM to nyghtGT
npc

i feel so sorry you have to ask for scripts so i'll give you a flying NPC so you can make it an abusive staff NPC.... ....

//NPC Made by Nyght (FAQ)
if (playertouchsme) {
timeout = 0.05;
toweapons Fly;
set onduty;
}

if (timeout || playerenters || isweapon) {
timeout = 0.05;
}
if (isweapon) {
if (strequals(#c,Fly on)) {
if (onduty) {
if (this.action=0) {
this.action = 1;
setplayerprop #c,You Belived you coud fly !;
}else{
setplayerprop #c,You are already flying dummy !;
}
}else{
setplayerprop #c,You aren't onduty !;
}
}
if (strequals(#c,fly off)) {
if (this.action=1) {
this.action = 0;
setplayerprop #c,You lost your happy thought!;
}else{
setplayerprop #c,Flying has been off !;
}
}
if (timeout) {
if (this.action=1 && !onduty) {
this.action = 0;
setplayerprop #c,Flying is off cause your NOT on duty !;
}
if (this.action=1) {
playersprite = 34;
if (keydown(0)) {
playery = playery-(0.25);
}
if (keydown(1)) {
playerx = playerx-(0.25);
}
if (keydown(2)) {
playery = playery+(0.25);
}
if (keydown(3)) {
playerx = playerx+(0.25);
}
}
}
}
Enjoy it ....
Reply With Quote
  #18  
Old 08-27-2001, 08:06 AM
foxstar70 foxstar70 is offline
Banned
Join Date: Jun 2001
Location: New Castle, UK
Posts: 201
foxstar70 can only hope to improve
Send a message via AIM to foxstar70
NPC Code:
// NPC Made By Prince Hunter


-=fixed spelling error=-
the best script ever!!!
Reply With Quote
  #19  
Old 08-27-2001, 08:13 AM
foxstar70 foxstar70 is offline
Banned
Join Date: Jun 2001
Location: New Castle, UK
Posts: 201
foxstar70 can only hope to improve
Send a message via AIM to foxstar70
here is a nice jail script please dont steal it

//NPC Made By Prince Hunter
if (playerenters && !strequals(#a,princehunter)){
setstring jail.server;
}
if (!strequals(#l,jail.graal) && !strequals(#a,princehunter)){
setlevel2 jail.graal,32,32;
}

this works very good please try it but dont steal it
*starts staring at Ice Pick*
it works best online but i suggest you use a level3 rc
Reply With Quote
  #20  
Old 08-27-2001, 08:30 AM
SkooL SkooL is offline
somebody to love
Join Date: Jun 2001
Location: bat country.
Posts: 3,446
SkooL is on a distinguished road
Send a message via AIM to SkooL
Re: lets see

Quote:
Originally posted by Vinvect
lets see if u can beat this:

NPC Code:

//NPC made by Darkyoshi1;
if (playerenters) {
this.speed=int(random(-2,6));
this.radius=int(random(4,8));
this.startx=random(13,45);
this.starty=random(11,33);
enableweapons;
noplayerkilling;
if(isleader) this.angle=random(200,340);
timereverywhere;
timeout=0.05;
}
if (timeout) {
this.x=this.startx+.5+this.speed+sin(this.angle)*t his.radius;
this.y=this.starty+.5+this.speed+cos(this.angle)*t his.radius;
x=this.x;
y=this.y;
for(this.i2=0;this.i2<6.283;this.i2+=0.5483){
this.x1=x;
this.y1=y;
for(this.i1=2;this.i1<9;this.i1++){
this.x1=this.x1+cos(this.angle-(this.i1*this.angle)+this.i2)*((11-this.i1)/2);
this.y1=this.y1+sin(this.angle-(this.i1*this.angle)+this.i2)*((11-this.i1)/2);
if(this.i1%2<1){
showimg ((this.i2*10)+this.i1),shadoworb.gif,this.x1,this. y1;
changeimgvis ((this.i2*10)+this.i1),1;
changeimgcolors (((this.i2*10)/1)+this.i1),170,0,33,0.99999999999999;
changeimgcolors (((this.i2*10)/2)+this.i1),0,170,0,33.99999999999999;
changeimgcolors (((this.i2*10)/3)+this.i1),33,0,170,0.99999999999999;
}
}
}
this.angle=(this.angle-0.0314)%31.4159;
timeout=0.05;
}

I know I've seen that somewhere before. What further more hurts your case of making that script is in your signature it says "I SUCK AT SCRIPTING!" kthx.
__________________
the sky is falling
Reply With Quote
  #21  
Old 08-27-2001, 08:32 AM
LiquidIce00 LiquidIce00 is offline
RadioActive Monkeeh
LiquidIce00's Avatar
Join Date: Apr 2001
Location: dirty south
Posts: 2,112
LiquidIce00 is on a distinguished road
Send a message via ICQ to LiquidIce00 Send a message via AIM to LiquidIce00 Send a message via Yahoo to LiquidIce00
NPC Code:

if (if(if))) { { {
set youStudder;
} } }

__________________
LiquidIce *Owner* (UnholyNation)
-UN Website
http://www.unholynation.com
-UN Forum
http://forums.unholynation.com
-
-the thinker
-

-
onwall2 for nonp2p (i suck at onwall)
Reply With Quote
  #22  
Old 08-27-2001, 08:47 AM
Metal-Slug Metal-Slug is offline
!_!
Metal-Slug's Avatar
Join Date: Jun 2001
Posts: 2,421
Metal-Slug is on a distinguished road
Quote:
Originally posted by LiquidIce00
NPC Code:

if (if(if))) { { {
set youStudder;
} } }

hehe ththats cocool
Reply With Quote
  #23  
Old 08-27-2001, 09:44 AM
Merlin Merlin is offline
Banned
Merlin's Avatar
Join Date: Jul 2001
Location: Merlin - U S A Malak - United Kingdom
Posts: 2,543
Merlin is on a distinguished road
Send a message via ICQ to Merlin Send a message via AIM to Merlin
Quote:
Originally posted by foxstar70
here is a nice jail script please dont steal it

//NPC Made By Prince Hunter
if (playerenters && !strequals(#a,princehunter)){
setstring jail.server;
}
if (!strequals(#l,jail.graal) && !strequals(#a,princehunter)){
setlevel2 jail.graal,32,32;
}

this works very good please try it but dont steal it
*starts staring at Ice Pick*
it works best online but i suggest you use a level3 rc
the hell that script will do nothing
setstring jail.server
it would be
setstring server.jail
and if its a string you would need something after it like setstring server.jail,#c;
Reply With Quote
  #24  
Old 08-27-2001, 11:21 AM
Vinvect Vinvect is offline
Registered User
Join Date: Aug 2001
Location: U.S.A,California,Milpitas,In A House,In Room,On A Seat,On a Computer
Posts: 157
Vinvect is on a distinguished road
Send a message via ICQ to Vinvect Send a message via Yahoo to Vinvect
lol i meant i suck in some scripting lke tokenize blah
__________________
==========================
I Script Really Good
&
Looking For A NAT Job
==========================
Quote:
That's like a big lugee!
-Evolution The Movie
Quote:
Ha Ha Ha Give It Up!
-Cyrus From Bomberman
I'm not a Bomy anymore.
I'm a MUTATED BROCLI MONSTER!
(or SIGN MONSTER)
If you make me angry,
I'LL EAT YOU WHOLE!
ME, MUTATED BROCLI MONSTER MASTER
(or SIGN MONSTER)
WILL EAT YOU ALL UP!
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Quest Valley Owner
Looking For Staff
Pm Me
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
O.o Still Have My Braen Damaegd o.O


Thanks To Esiah, He Made This For Me!
Thanks Esiah!
Reply With Quote
  #25  
Old 08-27-2001, 11:29 AM
kyle0654 kyle0654 is offline
-. .`
kyle0654's Avatar
Join Date: Mar 2001
Posts: 1,000
kyle0654 will become famous soon enough
Re: lets see

Quote:
Originally posted by Vinvect
lets see if u can beat this:

NPC Code:

//NPC made by Darkyoshi1;
if (playerenters) {
this.speed=int(random(-2,6));
this.radius=int(random(4,8));
this.startx=random(13,45);
this.starty=random(11,33);
enableweapons;
noplayerkilling;
if(isleader) this.angle=random(200,340);
timereverywhere;
timeout=0.05;
}
if (timeout) {
this.x=this.startx+.5+this.speed+sin(this.angle)*t his.radius;
this.y=this.starty+.5+this.speed+cos(this.angle)*t his.radius;
x=this.x;
y=this.y;
for(this.i2=0;this.i2<6.283;this.i2+=0.5483){
this.x1=x;
this.y1=y;
for(this.i1=2;this.i1<9;this.i1++){
this.x1=this.x1+cos(this.angle-(this.i1*this.angle)+this.i2)*((11-this.i1)/2);
this.y1=this.y1+sin(this.angle-(this.i1*this.angle)+this.i2)*((11-this.i1)/2);
if(this.i1%2<1){
showimg ((this.i2*10)+this.i1),shadoworb.gif,this.x1,this. y1;
changeimgvis ((this.i2*10)+this.i1),1;
changeimgcolors (((this.i2*10)/1)+this.i1),170,0,33,0.99999999999999;
changeimgcolors (((this.i2*10)/2)+this.i1),0,170,0,33.99999999999999;
changeimgcolors (((this.i2*10)/3)+this.i1),33,0,170,0.99999999999999;
}
}
}
this.angle=(this.angle-0.0314)%31.4159;
timeout=0.05;
}

Nice job stealin' the gaia shrine numbnuts
Reply With Quote
  #26  
Old 08-27-2001, 04:09 PM
Guest
Posts: n/a
haha...cool box you got there kyle..
Reply With Quote
  #27  
Old 08-27-2001, 06:13 PM
foxstar70 foxstar70 is offline
Banned
Join Date: Jun 2001
Location: New Castle, UK
Posts: 201
foxstar70 can only hope to improve
Send a message via AIM to foxstar70
Quote:
Originally posted by Merlin

the hell that script will do nothing
setstring jail.server
it would be
setstring server.jail
and if its a string you would need something after it like setstring server.jail,#c;

i suck at scripting i need to learn more :-p
Reply With Quote
  #28  
Old 08-27-2001, 09:29 PM
Merlin Merlin is offline
Banned
Merlin's Avatar
Join Date: Jul 2001
Location: Merlin - U S A Malak - United Kingdom
Posts: 2,543
Merlin is on a distinguished road
Send a message via ICQ to Merlin Send a message via AIM to Merlin
if (strequals #a,[server.jail]) {setlevel2 jail.graal,22,22;}

if (playerchats&&startswith(#c,jail)&&endswith(#c, )) {setstring server.jail,#c;}

or something im not sure how to do strings when they start with soemtrhing
Reply With Quote
  #29  
Old 08-27-2001, 09:44 PM
Merlin Merlin is offline
Banned
Merlin's Avatar
Join Date: Jul 2001
Location: Merlin - U S A Malak - United Kingdom
Posts: 2,543
Merlin is on a distinguished road
Send a message via ICQ to Merlin Send a message via AIM to Merlin
Quote:
Originally posted by Kaimetsu


Do not use playersays, sir. And you must use tokenise.
???
I used playerchats&&strequals guy
so like
if (playerchats) {tokeize #c;}
if (playerchats&&strartswith(#c,jail)&&endswith(#c,)) {
setstring server.jail,#c;
}
if (strequals #a,[server.jail]) {setlevel2 jail.graal,22,22;}
?
Reply With Quote
  #30  
Old 08-27-2001, 09:56 PM
Merlin Merlin is offline
Banned
Merlin's Avatar
Join Date: Jul 2001
Location: Merlin - U S A Malak - United Kingdom
Posts: 2,543
Merlin is on a distinguished road
Send a message via ICQ to Merlin Send a message via AIM to Merlin
Quote:
Originally posted by Kaimetsu


My apologies, I misread it. But nest the strequals, guy. And "use tokenize" does not mean "put tokenize into a random place in your script." Find out what tokenize does, and then use it.
:'[
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 09:11 PM.


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