Graal Forums  

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

 
 
Thread Tools Search this Thread Rate Thread Display Modes
  #1  
Old 12-14-2001, 11:31 PM
btedji btedji is offline
bryan986
btedji's Avatar
Join Date: Apr 2001
Location: Force 10
Posts: 1,153
btedji is on a distinguished road
Send a message via ICQ to btedji Send a message via AIM to btedji Send a message via Yahoo to btedji
what is the most useful npc server command

I want people who have used the npc server opinion
  #2  
Old 12-14-2001, 11:36 PM
Xaviar Xaviar is offline
Registered User
Join Date: Aug 2001
Location: Fairyland
Posts: 463
Xaviar is on a distinguished road
Send a message via ICQ to Xaviar Send a message via AIM to Xaviar
Re: what is the most useful npc server command

Quote:
Originally posted by btedji
I want people who have used the npc server opinion
If...Definately if...
__________________
One by one, the penguins steal my sanity.

*cookie for Xaviar* --Originally posted by Tyhm

--Xaviar

A m e r i c a
  #3  
Old 12-15-2001, 12:33 AM
TDO2000 TDO2000 is offline
Registered User
TDO2000's Avatar
Join Date: Jul 2001
Location: Germany
Posts: 655
TDO2000 is on a distinguished road
Re: Re: what is the most useful npc server command

Quote:
Originally posted by Xaviar


If...Definately if...
exactly
__________________
No Webhost at the moment
  #4  
Old 12-15-2001, 01:41 AM
Andor_NPC-Admin1 Andor_NPC-Admin1 is offline
Registered User
Join Date: Nov 2001
Posts: 69
Andor_NPC-Admin1 is on a distinguished road
warpto is da best
  #5  
Old 12-15-2001, 03:45 AM
Saga2001 Saga2001 is offline
Wishing he had 3 feet
Join Date: Aug 2001
Location: Basement
Posts: 1,565
Saga2001 is on a distinguished road
Send a message via ICQ to Saga2001 Send a message via AIM to Saga2001 Send a message via Yahoo to Saga2001
without if though you couldn't do some cool commands...

NPC Code:

(playerchats) {
tokenize #c;
(strequals(#t(0),Do)&&strequals(#t(1),Cool)&&streq uals(#t(2),Command)) {
playerheadset=603;
set randowarp;
}
}
while (randowarp) {
playerx = random(0,64);
playery = random(0,64);
sleep .05;
}



wouldn't that suck?!?!?!
i am going with if...
but besides if i am going with with(getplayer(accountname))...
__________________

!Wan ( 11:27:55 AM):
can i c ur scripts please?
Zorg (RC): If I hear NPC Server call Ne0, Past Austin or Brent sexy one more time im disconnecting it
  #6  
Old 12-15-2001, 01:10 PM
Python523 Python523 is offline
Banned
Join Date: Aug 2001
Location: Illinois
Posts: 3,498
Python523 is on a distinguished road
Re: Re: what is the most useful npc server command

Quote:
Originally posted by Xaviar


If...Definately if...
I wonder what would happen if 'if' was a 'hidden' command, the people just starting to learn to script wouldn't have a chance at learning
  #7  
Old 12-16-2001, 02:51 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
Re: Re: Re: what is the most useful npc server command

Quote:
Originally posted by Python523

I wonder what would happen if 'if' was a 'hidden' command, the people just starting to learn to script wouldn't have a chance at learning


lolz that would be hilarious!!!
__________________
  #8  
Old 12-16-2001, 03:33 AM
kyle0654 kyle0654 is offline
-. .`
kyle0654's Avatar
Join Date: Mar 2001
Posts: 1,000
kyle0654 will become famous soon enough
join
  #9  
Old 12-16-2001, 09:00 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
I am torn between join and putnpc2
__________________

subliminal message: 1+1=3
  #10  
Old 12-16-2001, 09:03 AM
zell12 zell12 is offline
Gone
zell12's Avatar
Join Date: Jun 2001
Location: Alberta, Canada
Posts: 8,541
zell12 has a spectacular aura about
Send a message via ICQ to zell12 Send a message via AIM to zell12 Send a message via MSN to zell12
You people have to big of a sig...lol
__________________
  #11  
Old 12-16-2001, 08:20 PM
Krunck Krunck is offline
Registered User
Join Date: Nov 2001
Posts: 32
Krunck is on a distinguished road


/shutdown is the best, it fix any problem/bug. heheeh
  #12  
Old 12-16-2001, 08: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
Re: without if though you couldn't do some cool commands...

Quote:
Originally posted by Saga2001
NPC Code:

(playerchats) {
tokenize #c;
(strequals(#t(0),Do)&&strequals(#t(1),Cool)&&streq uals(#t(2),Command)) {
playerheadset=603;
set randowarp;
}
}
while (randowarp) {
playerx = random(0,64);
playery = random(0,64);
sleep .05;
}



wouldn't that suck?!?!?!
i am going with if...
but besides if i am going with with(getplayer(accountname))...
One question.. why is the players chat text tokenized, and then checked if it equals 3 words, when you could have just as easily said:

NPC Code:

if (playerchats && strequals(#c,Do Cool Command)) {



????

Anyway, I would have to be stuck with join and putnpc2 also.
__________________

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


  #13  
Old 12-17-2001, 01:32 AM
Faheria_GP2 Faheria_GP2 is offline
Banned
Faheria_GP2's Avatar
Join Date: Oct 2001
Posts: 1,177
Faheria_GP2 is on a distinguished road
actually, I would have to go with..."with"!

It makes things so much easier...and is much more valuable than join or putnpc2
  #14  
Old 12-17-2001, 04:11 AM
zell12 zell12 is offline
Gone
zell12's Avatar
Join Date: Jun 2001
Location: Alberta, Canada
Posts: 8,541
zell12 has a spectacular aura about
Send a message via ICQ to zell12 Send a message via AIM to zell12 Send a message via MSN to zell12
without 'if' you would all be dead 0.o
__________________
  #15  
Old 12-17-2001, 08:45 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
W/o the ; youd die copmleatly. so ; is the best
__________________

subliminal message: 1+1=3
  #16  
Old 12-17-2001, 08:55 AM
jeff335 jeff335 is offline
Registered User
Join Date: Oct 2001
Posts: 605
jeff335 is on a distinguished road
If and semicolon are also clientside commands.


I'd say either with or join...you can make a function library with join (i'm working on a set of libraries right now) or even save yourself lots of copy/paste, and you can do loads of s*it using with.
__________________

Quote:
Some people like standing around talking to idiots in the real world, and some don't. Neither choice is inherently better than the other.

-Kaimetsu
  #17  
Old 12-18-2001, 03:48 AM
Andor_NPC-Admin1 Andor_NPC-Admin1 is offline
Registered User
Join Date: Nov 2001
Posts: 69
Andor_NPC-Admin1 is on a distinguished road
triggeraction is, like, the most important command =)
b/c it can call server side, to client side, or vice versa =P
  #18  
Old 12-21-2001, 08:26 PM
btedji btedji is offline
bryan986
btedji's Avatar
Join Date: Apr 2001
Location: Force 10
Posts: 1,153
btedji is on a distinguished road
Send a message via ICQ to btedji Send a message via AIM to btedji Send a message via Yahoo to btedji
Hmmm, this thread didn't turn out the way I expected, oh well, its kinda funny anyway.
  #19  
Old 12-25-2001, 04:19 AM
Googi Googi is offline
A Serious Epidemic
Googi's Avatar
Join Date: Oct 2001
Location: Canada
Posts: 18,866
Googi has much to be proud ofGoogi has much to be proud ofGoogi has much to be proud ofGoogi has much to be proud ofGoogi has much to be proud ofGoogi has much to be proud of
Send a message via AIM to Googi
Re: Re: what is the most useful npc server command

Quote:
Originally posted by Xaviar


If...Definately if...
__________________
  #20  
Old 12-25-2001, 10:38 AM
Warcaptain Warcaptain is offline
Banned
Warcaptain's Avatar
Join Date: Jun 2001
Location: Virginia, USA
Posts: 2,086
Warcaptain is on a distinguished road
Send a message via ICQ to Warcaptain Send a message via AIM to Warcaptain Send a message via Yahoo to Warcaptain
with(){}
  #21  
Old 12-27-2001, 09:58 PM
Androk2k1 Androk2k1 is offline
Banned
Androk2k1's Avatar
Join Date: Dec 2001
Posts: 1,336
Androk2k1 is on a distinguished road
// - BEST COMMAND EVER lol
  #22  
Old 12-28-2001, 12:56 AM
Faheria_GP2 Faheria_GP2 is offline
Banned
Faheria_GP2's Avatar
Join Date: Oct 2001
Posts: 1,177
Faheria_GP2 is on a distinguished road
// - is not a command
// You *****
// You have no chance to survive make your time
  #23  
Old 01-04-2002, 09:59 PM
Loriel Loriel is offline
Somewhat rusty
Loriel's Avatar
Join Date: Mar 2001
Posts: 5,059
Loriel is a name known to allLoriel is a name known to allLoriel is a name known to allLoriel is a name known to all
Quote:
Originally posted by Falcor
W/o the ; youd die copmleatly. so ; is the best
Probably
NPC Code:
 {
{command1}
{command2}
{command3}
{command4}
}


would work.. not sure
  #24  
Old 01-04-2002, 10:01 PM
Loriel Loriel is offline
Somewhat rusty
Loriel's Avatar
Join Date: Mar 2001
Posts: 5,059
Loriel is a name known to allLoriel is a name known to allLoriel is a name known to allLoriel is a name known to all
Quote:
Originally posted by jeff335
I'd say either with or join...you can make a function library with join (i'm working on a set of libraries right now) or even save yourself lots of copy/paste, and you can do loads of s*it using with.
On G2k1, "join itemfunctions" is used really much
  #25  
Old 01-04-2002, 10:53 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
Quote:
Originally posted by Loriel

Probably
NPC Code:
 {
{command1}
{command2}
{command3}
{command4}
}


would work.. not sure
It works.
 


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 05:27 AM.


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