Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Server (https://forums.graalonline.com/forums/forumdisplay.php?f=14)
-   -   What's happening with the new version?? (https://forums.graalonline.com/forums/showthread.php?t=21940)

Cyber-X 01-24-2002 08:39 PM

What's happening with the new version??
 
WTF???? What is happening???? The scripts are not working in the new Level Editor....
Like this:
if (playersays(0,buy stonewand) && playerrupees=>2500) {
playerrupees=playerrupees-2500;
hidelocal;
}
its not working.... Also toweapons!
What's happening????

Shard_IceFire 01-24-2002 08:49 PM

Stefan himself said playersays is no longer being used like.. a year ago..
NPC Code:

if (playerchats&&strequals(#c,stuff)) {
//things;
}


I'm not sure about toweapons though.

Admins 01-24-2002 09:30 PM

Playersays has been obsolete since end of 1999,
but it is a kind of bug that it doesn't work :D
(it is optimized now so that only npcs are called that
use the playerchats flag somewhere)

Toweapons is the same thing like before

cds96 01-24-2002 10:55 PM

Quote:

Originally posted by Stefan
Playersays has been obsolete since end of 1999,
but it is a kind of bug that it doesn't work :D

!!! it has? gee i must start scripting again

TDO2000 01-24-2002 11:51 PM

Quote:

Originally posted by cds96
!!! it has? gee i must start scripting again
OMG a working playersays command... that this would ever be true *sniff* :p

kittygirl765 01-27-2002 02:40 AM

ack
I just use if(playerchats&&strequals(#c,blah)) :p

Yakuna2001 01-28-2002 08:55 AM

long time no see kamietsu!

adam 01-29-2002 03:46 AM

*posts kaimetsu's pathfinding script for everyone too see*

just kidding

I lost it when I reformatted my hard drive.

stupid backup cd was bad.

Admins 01-31-2002 11:06 PM

playersays() stuff should work again in revision 4

AlexH 01-31-2002 11:08 PM

Stefan can you put the setup back to the old way.
The bit where you pick what you install.
I cant understand the new one and found the older one a lot easier.

TDK_RC6 02-01-2002 01:21 AM

Re: What's happening with the new version??
 
Quote:

Originally posted by Cyber-X
WTF???? What is happening???? The scripts are not working in the new Level Editor....
Like this:
if (playersays(0,buy stonewand) && playerrupees=>2500) {
playerrupees=playerrupees-2500;
hidelocal;
}
its not working.... Also toweapons!
What's happening????

why is it playerays(0,buy stonewand) anyways?? what is the 0 for

Saga2001 02-01-2002 01:44 AM

ok first off, playersays is a very stupid command, strequals() actually has uses!!! also you did this playerrupees=playerrupees-2500 thats way to long try playerrupees-=2500 its a better operator for a better graal ;). like:
NPC Code:

playerrupees-=2500;
// is to
playerrupees=playerrupees-2500;

playerrupees+=2500;
// is to
playerrupees=playerrupees+2500;

playerrupees*=2500;
// is to
playerrupees=playerrupees*2500;

// also the more than or equal to and less than or equal to look like this;
if (this.i>=0) commands;
if (this.i<=0) commands;

// Better version:

if (playerchats&&strequals(#c,buy stonewand)&&playerrupees>=2500) {
playerrupees-=2500;
hidelocal;
}

// also the following tw things are the same (because it checks to see if its equal):
if (strequals(#c,buy stonewand)) commands;
if (strequals(buy stonewand,#c)) commands;

// just as these two are the same:
this.i = 1;
this.j = 1;
if (this.i==this.j) commands;
if (this.j==this.i) commands;
// ;)


Shard_IceFire 02-08-2002 09:20 PM

Quote:

Originally posted by Saga2001

NPC Code:

// just as these two are the same:
this.i = 1;
this.j = 1;
if (this.i==this.j) commands;
if (this.j==this.i) commands;
// ;)


Um I don't believe that's correct.
NPC Code:

this.i = 1;


This sets this.i to 1.
NPC Code:

if (this.i==this.j)


this is TESTING to see if this.i is equal to this.j

Saga2001 02-09-2002 12:14 AM

Quote:

Originally posted by Kaimetsu


You misinterpreted. He was saying that "i==j" is the same as "j==i".

indeedy.

Shard_IceFire 02-09-2002 05:44 AM

Sorry.
The way you worded it made it rather confusing.


All times are GMT +2. The time now is 04:52 PM.

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