Graal Forums  

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

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 09-08-2001, 10:35 PM
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
free noob script

here is a little script .. ill comment it .. i made it in like 5 minutes cuz i was bored .. and I think it can teach something to some1 learning how to script

NPC Code:

// NPC made by LiquidIce
this.beginindex=200; //begin showimg index
//this is so it only shows local (local showimg starts at 200)

if (playerenters&&!isweapon) {
toweapons Scouter;
timeout=.05;
}

if (weaponfired) {
this.enabled=(this.enabled+1)%2;
//uses mod.. it will go back to 0 if this.enabled=>2
if (this.enabled=1) {
this.oldshow=this.beginindex;
//here we set the oldshow (which is a value that keeps track)
//of the highest showimg done .. useful when we are hiding
//all the showimgs.. we set to the beginindex so the for loop
//doesnt run .. (cuz no showimg has been done yet)
}
timeout=.05;
}

if (isweapon&&(timeout||playerenters)) {
hide(); //calls function to hide all the shown images
if (keydown(4)&&strequals(#w,Scouter)) {
//checks to see if D is being pressed and the current weapon
//is our scouter
check(); //does the check function
}
timeout=.05;
}

function hide() {
//hide function
for (this.a=this.beginindex;this.a<this.oldshow;this.a ++) {
//this forloop uses the this.oldshow to know when to stop
hideimg this.a;
//hides the img .. based on the loop
}
}

function check() {
for (this.a=1;this.a<playerscount;this.a++) {
//runs a loop starting at 1 (since 0 is you) .. and stops when
//this.a reaches playerscount
if (players[this.a].id>-1) {
//if its not a npc character..
showimg this.a+this.beginindex,@#v(players[this.a].hearts),players[this.a].x+.75,players[this.a].y-1;
//does a text showimg .. it uses the players array and this.a
// to check the players health,x, and y value..
}
}
this.oldshow=this.beginindex+playerscount;
//saves the highest value of the showimg .. for the hiding
}



there.. ^_^
yeah its from dbz o.o but so what ;D
__________________
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
  #2  
Old 09-08-2001, 10:40 PM
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
Red face

dosent work
__________________
==========================
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
  #3  
Old 09-08-2001, 10:56 PM
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
it works i tested it online ^_^
__________________
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
  #4  
Old 09-09-2001, 04:25 AM
aesquivel aesquivel is offline
Registered User
Join Date: Sep 2001
Location: Whitewright
Posts: 346
aesquivel is on a distinguished road
Send a message via AIM to aesquivel
ya i cuya i couldnt get it to do any thing either what is it suposed ta do?
__________________
Reply With Quote
  #5  
Old 09-09-2001, 05:15 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
only works online of course..
but it displays the players health above his head when you hold down the d button ..
its like a DBZ scouter
__________________
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
  #6  
Old 09-09-2001, 12:50 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
DBZ ...

speakng of DBZ the new episodes start moday at 6:00 PM (EST)
and if you can not wait till monday Suncoast has them all the way up to about 16 episodes from where mondays will start .... if you would like to spoil your adventure about it then IM me at nyght2k1 and i'll tell yoo ..
Reply With Quote
  #7  
Old 09-09-2001, 03:57 PM
Falcor Falcor is offline
Darth Cucumber
Falcor's Avatar
Join Date: Mar 2001
Location: At School
Posts: 2,874
Falcor is on a distinguished road
Send a message via ICQ to Falcor Send a message via AIM to Falcor Send a message via MSN to Falcor Send a message via Yahoo to Falcor
I can just see this script on Npulse now.....
the horror.
__________________

subliminal message: 1+1=3
Reply With Quote
  #8  
Old 09-09-2001, 04:36 PM
Slaktmaster Slaktmaster is offline
man with the mastahplan
Slaktmaster's Avatar
Join Date: Apr 2001
Location: Half-way over the river styx
Posts: 4,422
Slaktmaster is an unknown quantity at this point
Send a message via ICQ to Slaktmaster Send a message via AIM to Slaktmaster
Are you an idiot Falados? Have we ever stolen a script?
Reply With Quote
  #9  
Old 09-09-2001, 05:38 PM
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
Plus it had the kamehameha and all that other garbage on it.. you know the moves that newbies would use in order to run from pk battles? Yeah those stupid ones.
__________________

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


Reply With Quote
  #10  
Old 09-09-2001, 07:47 PM
Slaktmaster Slaktmaster is offline
man with the mastahplan
Slaktmaster's Avatar
Join Date: Apr 2001
Location: Half-way over the river styx
Posts: 4,422
Slaktmaster is an unknown quantity at this point
Send a message via ICQ to Slaktmaster Send a message via AIM to Slaktmaster
well no stolen script has been put up while i have been working there...but what falados said was uncalled for.
Reply With Quote
  #11  
Old 09-09-2001, 11:17 PM
Slaktmaster Slaktmaster is offline
man with the mastahplan
Slaktmaster's Avatar
Join Date: Apr 2001
Location: Half-way over the river styx
Posts: 4,422
Slaktmaster is an unknown quantity at this point
Send a message via ICQ to Slaktmaster Send a message via AIM to Slaktmaster
I have and I am working hard there to make good stuff but this makes me angry. Shadow Dragon NPCs were allowed to use on servers before and people that could script stuff like that was rare!
Reply With Quote
  #12  
Old 09-10-2001, 02:04 AM
Falcor Falcor is offline
Darth Cucumber
Falcor's Avatar
Join Date: Mar 2001
Location: At School
Posts: 2,874
Falcor is on a distinguished road
Send a message via ICQ to Falcor Send a message via AIM to Falcor Send a message via MSN to Falcor Send a message via Yahoo to Falcor
Heheh sorry. I still think of npulse as the place where i used hte Kamehameha attqack on people and was asked out 5 times when i named myself lily landfire. hehehehe
__________________

subliminal message: 1+1=3
Reply With Quote
  #13  
Old 09-10-2001, 02:51 AM
Slaktmaster Slaktmaster is offline
man with the mastahplan
Slaktmaster's Avatar
Join Date: Apr 2001
Location: Half-way over the river styx
Posts: 4,422
Slaktmaster is an unknown quantity at this point
Send a message via ICQ to Slaktmaster Send a message via AIM to Slaktmaster
Kaimetsu: Yeah

Falados:
We still have the Kamehameha and I didn't know it were from Shadow Dragons... Or is it?
Reply With Quote
  #14  
Old 09-10-2001, 05:36 AM
aesquivel aesquivel is offline
Registered User
Join Date: Sep 2001
Location: Whitewright
Posts: 346
aesquivel is on a distinguished road
Send a message via AIM to aesquivel
Quote:
Originally posted by Slaktmaster
Kaimetsu: Yeah

Falados:
We still have the Kamehameha and I didn't know it were from Shadow Dragons... Or is it?
ya thats where Kamehameha was from i was suposed ta werk for them cuz they liked some of my npcs but they can some n00b bastered the job instead of me
__________________
Reply With Quote
  #15  
Old 09-10-2001, 01:38 PM
Slaktmaster Slaktmaster is offline
man with the mastahplan
Slaktmaster's Avatar
Join Date: Apr 2001
Location: Half-way over the river styx
Posts: 4,422
Slaktmaster is an unknown quantity at this point
Send a message via ICQ to Slaktmaster Send a message via AIM to Slaktmaster
Um...English?

Did you make the Kamehameha?
Reply With Quote
  #16  
Old 09-10-2001, 10:13 PM
wetferret1 wetferret1 is offline
Script Cow - MOOO!
wetferret1's Avatar
Join Date: Aug 2001
Location: Oregon, USA
Posts: 1,285
wetferret1 is on a distinguished road
Send a message via AIM to wetferret1
Kahmehamehamea
__________________
[img]http://s-o.clanpages.com/wet***getlal.png[/img]
Quote:
Originally posted by Loriel
I am not corrupt, and I will ban you if you don't believe that.
(-=Wetferret IceFire=-)
Reply With Quote
  #17  
Old 09-10-2001, 10:58 PM
Sep3kP2P Sep3kP2P is offline
Registered User
Join Date: Aug 2001
Location: CT
Posts: 183
Sep3kP2P is on a distinguished road
Send a message via ICQ to Sep3kP2P Send a message via AIM to Sep3kP2P
heh

am i the only one to bring delteria into this conversation? they stole every (almost) npc they made! yet i luv the server...
__________________
Sephiroth2k - Co-Owner Of Dragon Quest (Look In Profile For Website)
Reply With Quote
  #18  
Old 09-10-2001, 11:12 PM
Slaktmaster Slaktmaster is offline
man with the mastahplan
Slaktmaster's Avatar
Join Date: Apr 2001
Location: Half-way over the river styx
Posts: 4,422
Slaktmaster is an unknown quantity at this point
Send a message via ICQ to Slaktmaster Send a message via AIM to Slaktmaster
=/
Reply With Quote
  #19  
Old 09-11-2001, 12:03 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
Re: DBZ ...

Quote:
Originally posted by nyghtGT
speakng of DBZ the new episodes start moday at 6:00 PM (EST)
and if you can not wait till monday Suncoast has them all the way up to about 16 episodes from where mondays will start .... if you would like to spoil your adventure about it then IM me at nyght2k1 and i'll tell yoo ..
woo today is monday
Reply With Quote
  #20  
Old 09-11-2001, 12:06 AM
Slaktmaster Slaktmaster is offline
man with the mastahplan
Slaktmaster's Avatar
Join Date: Apr 2001
Location: Half-way over the river styx
Posts: 4,422
Slaktmaster is an unknown quantity at this point
Send a message via ICQ to Slaktmaster Send a message via AIM to Slaktmaster
DBZ is stuipoppotifddpid
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 04:07 PM.


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