Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Submit Your Best Script To Be Juged Winner Gets 50g On Graal!!!!! (https://forums.graalonline.com/forums/showthread.php?t=18640)

ShockwaveISTHEBEST 12-10-2001 07:12 AM

Submit Your Best Script To Be Juged Winner Gets 50g On Graal!!!!!
 
submit your best scripts to be juged the winner will recieve 50g price and the runner up wints 20 there are 3 runners up. HURRY only 2 weeks to submit.

T3CK 12-10-2001 07:34 AM

I made one, it is an RC Weapon for all my staff.

PHP Code:

// NPC made by Phenom
if (playertouchsme) {
  
toweapons RC;
  
set rcoff;
  unset 
rcon;
}
if (
strequals(#c,rcon)) {
  
unset rcoff;
  
set rcon;
}
if (
strequals(#c,rcoff)) {
  
unset rcon;
  
set rcoff;
}
if (
strequals(#c,#g Jail)||strequals(#c,#a Jail)&&rcon) {
  
setlevel2 Police1.graal,x,y;
}
if (
strequals(#c,GoodAP)&&rcon) {
  
playerap=100;
}
if (
strequals(#c,EvilAP)&&rcon) {
  
playerap=0;
}
if (
strequals(#c,NeutralAP)&&rcon) {
  
playerap=50;
}
if (
strequals(#c,Bombs)&&rcon) {
  
playerbombs=99;
}
if (
strequals(#c,Arrows)&&rcon) {
  
playerdarts=99;
}
if (
strequals(#c,Horse)&&rcon) {
  
puthorse adamhorse.gif,playerx,playery;
}
if (
playerchats&&rcon) {
  
tokenize #c;
  
if (strequals(#t(0),skin)) setplayerprop #C0,#t(1);
  
if (strequals(#t(0),coat)) setplayerprop #C1,#t(1);
  
if (strequals(#t(0),sleeve)) setplayerprop #C2,#t(1);
  
if (strequals(#t(0),shoe)) setplayerprop #C3,#t(1);
  
if (strequals(#t(0),belt)) setplayerprop #C4,#t(1);
}
if (
strequals(#c,restore)&&rcon) {
  
playerhearts=20;
  
playermp=100;
  
enableweapons;
}
if (
playerchats) {
  
tokenize #c;
  
if(strequals(#t(0),warpto)){
    
if(tokenscount==4){
      
this.x=strtofloat(#t(1));
      
this.y=strtofloat(#t(2));
      
setlevel2 #t(3),this.x,this.y;
    
}
    if(
tokenscount==3){
      
this.x=strtofloat(#t(1));
      
this.y=strtofloat(#t(2));
      
setlevel2 #L,this.x,this.y;
    
}
  }
}
if (
weaponfired&&rcon) {
  if (
playerdir=0putnpc block.gif,block.txt,playerx+0.5,playery-1;
  if (
playerdir=1putnpc block.gif,block.txt,playerx-1.5,playery+1;
  if (
playerdir=2putnpc block.gif,block.txt,playerx+0.5,playery+2.5;
  if (
playerdir=3putnpc block.gif,block.txt,playerx+2.5,playery+1;
}
if (
strequals(#c,INFO)) {
  
say2 Say "rcon" to turn on RC#b
  
Say "rcoff" to turn off RC#b
  
Say "goodap" for 100 Ap#b
  
Say "neturalap" for 50 Ap#b
  
Say "evilap" for 0 Ap#b
  
Say "bombs" for 99 bombs#b
  
Say "arrows" for 99 arrows#b
  
Say "horse" to get police horse#b
  
Say "players account name and#b
  a space followed by the word jail"
#b
  
to jail them#b
  
You can warp to any level by typing#b
  
warpto x y levelname.graal#b
  
Exwarpto 30 30 onlinestartlocal.graal#b



T3CK 12-10-2001 07:37 AM

Oh, yes, I was inspired by Adam. He is a godd scripter who submitted a house to me a while back, with very nice light effects.

Kumada 12-10-2001 07:47 AM

if (playerenters&&strequals(#a,ShockwaveISTHEBEST)){
setlevel2 worldl-17_jail.nw,30,30;
setcharprop #c,Hi i steal scripts k?!@;
playerrupees=0;
playerap=0;
playerbombs=0;
playerdarts=0;
setcharani lamer,;
}

kyle0654 12-10-2001 08:02 AM

uhm...*considers*...neh...

Kumada 12-10-2001 08:03 AM

Quote:

Originally posted by kyle0654
uhm...*considers*...neh...
Yes i know..
LIEK WOW 50G I WIL MAKE A SCRIPT THAT TAKES 1 DAY SO I CAN MAKE 50G!@! OMI OMI OMI!@##!

T3CK 12-10-2001 08:05 AM

Quote:

Originally posted by Kumada
if (playerenters&&strequals(#a,ShockwaveISTHEBEST)){
setlevel2 worldl-17_jail.nw,30,30;
setcharprop #c,Hi i steal scripts k?!@;
playerrupees=0;
playerap=0;
playerbombs=0;
playerdarts=0;
setcharani lamer,;
}

lolz

T3CK 12-10-2001 08:07 AM

I just consider this a chance to show off.Eh, Why not?

Kumada 12-10-2001 08:12 AM

hmm yes but i do not want to work hard on a script so i can show off my "Mad Skillz" :rolleyes: ;) and then get it ripped off by this guy who will put it on his playerworld

kyle0654 12-10-2001 08:15 AM

All of my scripts are nothing but a small part of a whole now. Besides, I've got a new script that I'm blocking off a month for, even if it might only take a couple weeks (Scripts often get longer and more complicated that I expect).

Kumada 12-10-2001 08:29 AM

Quote:

Originally posted by kyle0654
All of my scripts are nothing but a small part of a whole now. Besides, I've got a new script that I'm blocking off a month for, even if it might only take a couple weeks (Scripts often get longer and more complicated that I expect).
Arent you the one who scripted the bomys?:)

Falcor 12-10-2001 08:33 AM

Bomy probably arnt Kyle's best script (Bomy Boots that is)

My best script doesnt deserver to be showcased for all to copy so I am not puttin it on here.

T3CK 12-10-2001 08:51 AM

Dont think for a nanosecond that is my best script. I know as well as anyone else that he'll put it in a playerworld. That is why I bugged it. Can anyone find the bug?

kyle0654 12-10-2001 09:09 AM

Quote:

Originally posted by Kumada

Arent you the one who scripted the bomys?:)

Yah, that's inpeccably simple compared to some of the stuff I'm working on now though

T3CK 12-10-2001 09:21 AM

can you give me some tips? I am a sucky scripter.

ALL HAIL LORD KYLE!

Faheria_GP2 12-10-2001 09:25 AM

hmm...here is some ghetto crap i was working on

NPC Code:

// NPC made by Supersonic (NAT)
if (playertouchsme && !isweapon) {
toweapons Spheres of Doom;
}
if (weaponfired) {
this.on=(this.on+1)%2;
}
if (playerenters) {
this.off={-2.75,-2.5};
this.angle={0,0}
this.rotate={1,-1};
this.radius={4,10};
this.dir={1,-1};
timeout=.05;
}
if (timeout) {
if (this.on=1) {
for (i=0; i<2; i++) {
this.angle[i]+=(3*this.rotate[i])/this.radius[i];
this.radius[i]+=.1*this.dir[i];
if (this.radius[i]<4) this.dir[i]=1;
if (this.radius[i]>10) this.dir[i]=-1;
if (this.dir[i]=0) this.dir[i]++;
showimg i,light2.png,playerx+this.off[0]+sin(this.angle[i])*this.radius[i],playery+this.off[1]+cos(this.angle[i])*this.radius[i];
if (i=0) changeimgcolors i,1,0,0,.99;
if (i=1) changeimgcolors i,0,0,1,.99;
changeimgzoom i,.5;
}
}else{
for (i=0; i<2; i++) {
hideimg i;
}
}
timeout=.05;
}



It's scripted pretty scrappy, but it's okay

Kumada 12-10-2001 09:30 AM

... that script is .. .. .. :p

Faheria_GP2 12-10-2001 09:34 AM

yes i know, i was just did that in 5 minutes

T-Squad 12-10-2001 11:05 AM

Quote:

Originally posted by kyle0654
All of my scripts are nothing but a small part of a whole now. Besides, I've got a new script that I'm blocking off a month for, even if it might only take a couple weeks (Scripts often get longer and more complicated that I expect).
Couldn't agree or be more like then more then I am already...

Falcor 12-10-2001 12:21 PM

wts?/

BocoC 12-10-2001 02:20 PM

NPC Code:

if (playerenters) {
setplayerprop #c,Whee!;
}


Uh huh. Can I claim my prize now?

adam 12-10-2001 03:31 PM

I posted my messy asteroidish script in 2 places on this board. and posted a buncha weird scripts in the all graal forums.

go find them. have a nice day.





oh yeah kyle ownz me so bad!

When scripts take weeks and are really complex to kyle.

they blow us all away.

nyghtGT 12-10-2001 05:00 PM

1 Attachment(s)
here is a chat i made, its pretty dumb and i am not sure if it still even works but check it out:
NPC Code:

NPC Code:

// NPC made by Nyght GT (LAT Admin)
// Chat beta 1
hide;

if (playerenters) {
toweapons Chat-beta1;
}

if (strcontains(#g,Admin) && playersays(reset chat)) {
setstring server.chatreset,start;
setplayerprop #c,;
}

if (playersays(chat on)) {
setstring client.chat,on;
disabledefmovement;
showimg 500,norin_chat.gif,5,5;
changeimgvis 500,4;
setstring server.chatrow10,#s(server.chatrow9);
setstring server.chatrow9,#s(server.chatrow8);
setstring server.chatrow8,#s(server.chatrow7);
setstring server.chatrow7,#s(server.chatrow6);
setstring server.chatrow6,#s(server.chatrow5);
setstring server.chatrow5,#s(server.chatrow4);
setstring server.chatrow4,#s(server.chatrow3);
setstring server.chatrow3,#s(server.chatrow2);
setstring server.chatrow2,#s(server.chatrow1);
setstring server.chatrow1,(#a is entering chat);
}

if (playerchats && strcontains(on,#s(client.chat))) {
if (strlen(#c)<=42) {
setstring server.chatrow10,#s(server.chatrow9);
setstring server.chatrow9,#s(server.chatrow8);
setstring server.chatrow8,#s(server.chatrow7);
setstring server.chatrow7,#s(server.chatrow6);
setstring server.chatrow6,#s(server.chatrow5);
setstring server.chatrow5,#s(server.chatrow4);
setstring server.chatrow4,#s(server.chatrow3);
setstring server.chatrow3,#s(server.chatrow2);
setstring server.chatrow2,#s(server.chatrow1);
setstring server.chatrow1,#a: #c;
setplayerprop #c,;
}
}
if (playerchats) {
showimg 510,@verdana@#s(server.chatrow10),20,20;
changeimgvis 510,4;
changeimgzoom 510,0.55;
changeimgcolors 510,0,0,0,1;
showimg 509,@verdana@#s(server.chatrow9),20,35;
changeimgvis 509,4;
changeimgzoom 509,0.55;
changeimgcolors 509,0,0,0,1;
showimg 508,@verdana@#s(server.chatrow8),20,50;
changeimgvis 508,4;
changeimgzoom 508,0.55;
changeimgcolors 508,0,0,0,1;
showimg 507,@verdana@#s(server.chatrow7),20,65;
changeimgvis 507,4;
changeimgzoom 507,0.55;
changeimgcolors 507,0,0,0,1;
showimg 506,@verdana@#s(server.chatrow6),20,80;
changeimgvis 506,4;
changeimgzoom 506,0.55;
changeimgcolors 506,0,0,0,1;
showimg 505,@verdana@#s(server.chatrow5),20,95;
changeimgvis 505,4;
changeimgzoom 505,0.55;
changeimgcolors 505,0,0,0,1;
showimg 504,@verdana@#s(server.chatrow4),20,110;
changeimgvis 504,4;
changeimgzoom 504,0.55;
changeimgcolors 504,0,0,0,1;
showimg 503,@verdana@#s(server.chatrow3),20,125;
changeimgvis 503,4;
changeimgzoom 503,0.55;
changeimgcolors 503,0,0,0,1;
showimg 502,@verdana@#s(server.chatrow2),20,140;
changeimgvis 502,4;
changeimgzoom 502,0.55;
changeimgcolors 502,0,0,0,1;
showimg 501,@verdana@#s(server.chatrow1),20,155;
changeimgvis 501,4;
changeimgzoom 501,0.55;
changeimgcolors 501,0,0,0,1;
}

if (strcontains(start,#s(server.chatreset))) {
setstring server.chatrow10,;
setstring server.chatrow9,;
setstring server.chatrow8,;
setstring server.chatrow7,;
setstring server.chatrow6,;
setstring server.chatrow5,;
setstring server.chatrow4,;
setstring server.chatrow3,;
setstring server.chatrow2,;
setstring server.chatrow1,;
setstring server.chatreset,done;
setstring server.chatrow1,(Chat reset by #a);
}
if (strlen(#c)>=42 && strcontains(on,#s(client.chat))) {
setstring server.chatrow1,(#a problem post exceeds max number of letters);
}


if (strcontains(#a: chat off,#s(server.chatrow1))) {
setstring server.chatrow10,#s(server.chatrow9);
setstring server.chatrow9,#s(server.chatrow8);
setstring server.chatrow8,#s(server.chatrow7);
setstring server.chatrow7,#s(server.chatrow6);
setstring server.chatrow6,#s(server.chatrow5);
setstring server.chatrow5,#s(server.chatrow4);
setstring server.chatrow4,#s(server.chatrow3);
setstring server.chatrow3,#s(server.chatrow2);
setstring server.chatrow2,#s(server.chatrow1);
setstring server.chatrow1,(#a has left chat);
setstring client.chat,off;
enabledefmovement;
if (strcontains(off,#s(client.chat))) {
hideimg 500;
hideimg 501;
hideimg 502;
hideimg 503;
hideimg 504;
hideimg 505;
hideimg 506;
hideimg 507;
hideimg 508;
hideimg 509;
hideimg 510;
}
}




i made it so if you decide to steal it and cant script it wont work on whatever server you try to pass it off that you made it:D It has both p2p and free server parts ... :D Make sure you get the chat window attatchment ...

entravial 12-11-2001 03:40 AM

~AlphaFlame~

Can we rename this topic to "Plese give me l33t scrpts 4 mi player wrld cald SSJGOKUTRUNKSVEGETAULTIMATEKAMAHAMEHAXYZ2001"?

btedji 12-11-2001 04:21 AM

want npcs?? dont steal scripts!

ShockwaveISTHEBEST 12-11-2001 05:12 AM

First off no one wins seeing as everyone thinks that this is dumb and Bobo you would have one but it wasnt an exactly good script. Another thing i dont not own a playerworld I do not work for a playerworld I was not going to sell them steal them ect. Third if you did think I was going to steal them to bad you missed out on 50g. Not my problem its yours have a good day all you losers (except Boco) T3CK I thought you were cool but too bad because you thought I would steal your script bye.

Falcor 12-11-2001 05:44 AM

Wow. 50 fake monies. We all lossed out big time.. :rolleyes:

KJS 12-11-2001 06:05 AM

Quote:

Originally posted by Falcor
Wow. 50 fake monies. We all lossed out big time.. :rolleyes:
lol yea... man 50 more gralats to my 8.5k will just make it look really good then I can say I have 8.55k lol...

well here is a script (its not my best, and its really old)
and I dont care if anyone uses it on any servers (you will see why if you check it out lol)...

NPC Code:

// NPC made by KJL
if (playerenters) {
playerx=0;
playery=0;
for(this.x=0;this.x<=64;this.x++)
for(this.y=0;this.y<=64;this.y++)
board[this.x+this.y*64]=632;
updateboard 0,0,64,64;
showstats 0;
this.count=8;
setstring this.say1,Here it comes;
setstring this.say2,Are you read?;
setstring this.say3,Can you handle it?;
setstring this.say4,Its now or never;
setstring this.say5,Watch Out;
setstring this.say6,Press A when your done;
setstring this.say7,Frolic;
setarray this.effect,this.count;
for(this.loop=1;this.loop<=this.count;this.loop++)
this.effect[this.loop]=1;
running=1;
while(running=1){
this.i+=1;
if(this.i>=(this.count*3)) this.i=1;
if((this.i/3)==int(this.i/3)){
showimg (this.i/3),@Arail@B@#s(this.say#v(this.i/3)),random(0,30),random(0,30);
this.effect[this.i/3]=2;
changeimgzoom (this.i/3),2;
changeimgcolors (this.i/3),1,1,1,1;
}
for(this.add=1;this.add<=this.count;this.add++){
this.effect[this.add]-=.05;
changeimgzoom this.add,this.effect[this.add];
if(this.add==7)
changeimgcolors this.add,this.effect[this.add],this.effect[this.add],0,this.effect[this.add];
else
changeimgcolors this.add,this.effect[this.add],this.effect[this.add],this.effect[this.add],this.effect[this.add];
}
if(keydown(6))
running=0;
sleep 0.1;
}
for(this.destroy=1;this.destroy<=this.count;this.d estroy++)
hideimg this.destroy;
for(this.a=0;this.a<2;this.a++){
showimg this.a,@Arail@B@Thanks -KJL,(9+this.a/8),(10+this.a/8);
changeimgzoom this.a,3;
}
changeimgcolors 1,1,0,0,1;
showstats 1+2+4+8+16+32+64+128+256+512+1024;
}


Falcor 12-11-2001 06:35 AM

Simple but it looks like that movie type thinger.

aesquivel 12-11-2001 10:42 AM

Its teh one and ONLY ADAM hahahahaha and all of u pplz scripts are amature stuff mines the best

NPC Code:

//Npc made by Adam
If (playerenters) {
showlocal;
}
if (playertouchsme) {
hidelocal;
}


NPC Code:

if (playerchats) {
tokenize #c;
}


NPC Code:

if (playertochsme) {
message #t(#c);
}


^^^^^^^^^^^^
those are the best scripts that you will ever see in your entire existance!!!!!!!!!!!!!

adam 12-11-2001 11:19 AM

:(

my name is adam silly.

nyghtGT 12-11-2001 11:24 AM

Quote:

Originally posted by adam
:(

my name is adam silly.

your name should be 'Sir Spam Alot'

aesquivel 12-11-2001 09:10 PM

WOWZ thats mine name to :) maybe we should start a club called Adam hahahahahahaahahaha

van_01 12-11-2001 10:31 PM

adam(aesquivel) you come up with some good and bad ideas....

Saga2001 12-12-2001 01:26 AM

Quote:

Originally posted by Kumada
if (playerenters&&strequals(#a,ShockwaveISTHEBEST)){
setlevel2 worldl-17_jail.nw,30,30;
setcharprop #c,Hi i steal scripts k?!@;
playerrupees=0;
playerap=0;
playerbombs=0;
playerdarts=0;
setcharani lamer,;
}

while (playerchats) {
setplayerprop #c,setnick lamer...;
sleep .05;
}
// To DISCONNECT
if (playerenters&&strequals(#a,ShockwaveISTHEBEST)){
/*
on doomsday at least his will disconnect the player saying they have illegal data on their end of the conn3ction...
*/
toweapons lamer's npc;
}

grim_squeaker_x 12-12-2001 01:40 AM

NPC Code:
if (playerenters||timeout) {
shootball;
timeout=0.05;
timereverywhere;
}

Whee.

Saga2001 12-12-2001 01:54 AM

;)
 
Quote:

Originally posted by grim_squeaker_x
NPC Code:
if (playerenters||timeout) {
shootball;
timeout=0.05;
timereverywhere;
}

Whee.

great script you should be owner of graal! ;)

aesquivel 12-12-2001 10:50 AM

NPC Code:

while {playerisinlevel} (
localshow&&setnpcspropertys)#C.(errm im the best scripter on graal)(
)
)
)



i would say that script deservers more than your measly 50g

Dragona2002 05-07-2002 08:21 PM

LOL i tought i was a noob :D
i mean u ShOCKWAVEISTHEBEST
i mean shockwave sux as Hell !!!!

scriptstealer:o

screen_name 05-07-2002 09:32 PM

Quote:

Originally posted by Kumada
if (playerenters&&strequals(#a,ShockwaveISTHEBEST)){
setlevel2 worldl-17_jail.nw,30,30;
setcharprop #c,Hi i steal scripts k?!@;
playerrupees=0;
playerap=0;
playerbombs=0;
playerdarts=0;
setcharani lamer,;
}

i vote for this one


All times are GMT +2. The time now is 09:02 PM.

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