Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Server (https://forums.graalonline.com/forums/forumdisplay.php?f=14)
-   -   what is the most useful npc server command (https://forums.graalonline.com/forums/showthread.php?t=18910)

btedji 12-14-2001 11:31 PM

what is the most useful npc server command
 
I want people who have used the npc server opinion

Xaviar 12-14-2001 11:36 PM

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...

TDO2000 12-15-2001 12:33 AM

Re: Re: what is the most useful npc server command
 
Quote:

Originally posted by Xaviar


If...Definately if...

exactly :p

Andor_NPC-Admin1 12-15-2001 01:41 AM

warpto is da best

Saga2001 12-15-2001 03:45 AM

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))...

Python523 12-15-2001 01:10 PM

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

aesquivel 12-16-2001 02:51 AM

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!!!

kyle0654 12-16-2001 03:33 AM

join

Falcor 12-16-2001 09:00 AM

I am torn between join and putnpc2

zell12 12-16-2001 09:03 AM

You people have to big of a sig...lol

Krunck 12-16-2001 08:20 PM

:D ;) :)

/shutdown is the best, it fix any problem/bug. heheeh

konidias 12-16-2001 08:38 PM

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. ;)

Faheria_GP2 12-17-2001 01:32 AM

actually, I would have to go with..."with"!

It makes things so much easier...and is much more valuable than join or putnpc2

zell12 12-17-2001 04:11 AM

without 'if' you would all be dead 0.o :megaeek:

Falcor 12-17-2001 08:45 AM

W/o the ; youd die copmleatly. so ; is the best :)

jeff335 12-17-2001 08:55 AM

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.

Andor_NPC-Admin1 12-18-2001 03:48 AM

triggeraction is, like, the most important command =)
b/c it can call server side, to client side, or vice versa =P

btedji 12-21-2001 08:26 PM

Hmmm, this thread didn't turn out the way I expected, oh well, its kinda funny anyway.

Googi 12-25-2001 04:19 AM

Re: Re: what is the most useful npc server command
 
Quote:

Originally posted by Xaviar


If...Definately if...


Warcaptain 12-25-2001 10:38 AM

with(){}

Androk2k1 12-27-2001 09:58 PM

// - BEST COMMAND EVER lol

Faheria_GP2 12-28-2001 12:56 AM

// - is not a command
// You *****
// You have no chance to survive make your time

Loriel 01-04-2002 09:59 PM

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

Loriel 01-04-2002 10:01 PM

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 :)

Slaktmaster 01-04-2002 10:53 PM

Quote:

Originally posted by Loriel

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


would work.. not sure

It works. :)


All times are GMT +2. The time now is 08:05 AM.

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