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 01-24-2002, 08:39 PM
Cyber-X Cyber-X is offline
Registered User
Join Date: Nov 2001
Location: Brazil
Posts: 117
Cyber-X is on a distinguished road
Send a message via ICQ to Cyber-X Send a message via AIM to Cyber-X
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????
__________________
  #2  
Old 01-24-2002, 08:49 PM
Shard_IceFire Shard_IceFire is offline
Registered User
Shard_IceFire's Avatar
Join Date: Jun 2001
Location: Eastern Harkoonia
Posts: 861
Shard_IceFire is on a distinguished road
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.
__________________

-=Shard IceFire=-
  #3  
Old 01-24-2002, 09:30 PM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
Playersays has been obsolete since end of 1999,
but it is a kind of bug that it doesn't work
(it is optimized now so that only npcs are called that
use the playerchats flag somewhere)

Toweapons is the same thing like before
  #4  
Old 01-24-2002, 10:55 PM
cds96 cds96 is offline
randomrubbish.net
cds96's Avatar
Join Date: May 2001
Location: Sunny ol' England
Posts: 6,184
cds96 is on a distinguished road
Send a message via ICQ to cds96 Send a message via AIM to cds96
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
!!! it has? gee i must start scripting again
__________________


craig is now backing up cookies ;]
  #5  
Old 01-24-2002, 11:51 PM
TDO2000 TDO2000 is offline
Registered User
TDO2000's Avatar
Join Date: Jul 2001
Location: Germany
Posts: 655
TDO2000 is on a distinguished road
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*
__________________
No Webhost at the moment
  #6  
Old 01-27-2002, 02:40 AM
kittygirl765 kittygirl765 is offline
tapatapatapa
kittygirl765's Avatar
Join Date: Dec 2001
Location: Caught in a tree
Posts: 70
kittygirl765 is on a distinguished road
Send a message via ICQ to kittygirl765
ack
I just use if(playerchats&&strequals(#c,blah))
__________________
I <3 UN
I <3 Shadow Strip Entertainment City Shangri-La
I <3 gscript2
  #7  
Old 01-28-2002, 08:55 AM
Yakuna2001 Yakuna2001 is offline
Registered User
Yakuna2001's Avatar
Join Date: Jun 2001
Location: England U.K
Posts: 940
Yakuna2001 is on a distinguished road
Send a message via AIM to Yakuna2001
long time no see kamietsu!
__________________

-Manager of the UnholyNation PlayerWorld-
UnholyNation Forums
  #8  
Old 01-29-2002, 03:46 AM
adam adam is offline
http://wiki.graal.us/
adam's Avatar
Join Date: Nov 2001
Posts: 2,247
adam has a spectacular aura aboutadam has a spectacular aura about
Send a message via AIM to adam
*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.
__________________
Rogue Shadow (TCN)(NAT)(Global Development Team)

For development help, contact the patrons of the #graaldt irc channel below, I am usually there.
Click Here to Join IRC Chat Now! -- irc.freenode.net Channel: #graaldt
Quote:
<Dustyshouri> no, RogueShadow is always talking about scripts lol
<Dustyshouri> in fact, he pretty much brought Graal back as a topic single-handedly
  #9  
Old 01-31-2002, 11:06 PM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
playersays() stuff should work again in revision 4
  #10  
Old 01-31-2002, 11:08 PM
AlexH AlexH is offline
Have A Drink On Me
AlexH's Avatar
Join Date: Jun 2001
Location: Somewhere In Time
Posts: 7,442
AlexH is on a distinguished road
Send a message via AIM to AlexH Send a message via MSN to AlexH
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.
__________________
QUICK LOOK BUSY JESUS IS COMING!
  #11  
Old 02-01-2002, 01:21 AM
TDK_RC6 TDK_RC6 is offline
Registered User
TDK_RC6's Avatar
Join Date: Jan 2002
Location: Earth
Posts: 0
TDK_RC6 is on a distinguished road
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
__________________
Staff on Renegade


email: [email protected]
aim: papivicente
  #12  
Old 02-01-2002, 01:44 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
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;
//

__________________

!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
  #13  
Old 02-08-2002, 09:20 PM
Shard_IceFire Shard_IceFire is offline
Registered User
Shard_IceFire's Avatar
Join Date: Jun 2001
Location: Eastern Harkoonia
Posts: 861
Shard_IceFire is on a distinguished road
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
__________________

-=Shard IceFire=-
  #14  
Old 02-09-2002, 12:14 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
Quote:
Originally posted by Kaimetsu


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

!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
  #15  
Old 02-09-2002, 05:44 AM
Shard_IceFire Shard_IceFire is offline
Registered User
Shard_IceFire's Avatar
Join Date: Jun 2001
Location: Eastern Harkoonia
Posts: 861
Shard_IceFire is on a distinguished road
Sorry.
The way you worded it made it rather confusing.
__________________

-=Shard IceFire=-
 


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 08:31 PM.


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