Graal Forums  

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

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 10-16-2002, 07:43 AM
KuJi2002 KuJi2002 is offline
Banned
Join Date: Jul 2002
Location: NYC
Posts: 144
KuJi2002 is on a distinguished road
Send a message via AIM to KuJi2002 Send a message via Yahoo to KuJi2002
What is the point of playersays and strequals(#c,))?

What is the difference between
NPC Code:
playersays


and
NPC Code:
strequals(#c,)) 


dont they do the same thing???
Reply With Quote
  #2  
Old 10-16-2002, 07:49 AM
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
Does playersays still work online?
I've used playerchats since I learned how to use it.
Much more flexable.
__________________
QUICK LOOK BUSY JESUS IS COMING!
Reply With Quote
  #3  
Old 10-16-2002, 09:32 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
One works.

The other doesn't.

playersays is the one that doesn't work .
__________________
Reply With Quote
  #4  
Old 10-16-2002, 05:30 PM
CheeToS2 CheeToS2 is offline
That Guy
CheeToS2's Avatar
Join Date: Dec 2001
Location: Seattle, WA
Posts: 2,528
CheeToS2 will become famous soon enough
Send a message via AIM to CheeToS2
Quote:
Originally posted by Googi
One works.

The other doesn't.

playersays is the one that doesn't work .
It does work now -_-
__________________

Reply With Quote
  #5  
Old 10-16-2002, 06:37 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
playersays has not been supported since release of 2k1, I believe. Just do not use it.
Reply With Quote
  #6  
Old 10-16-2002, 07:01 PM
KuJi2002 KuJi2002 is offline
Banned
Join Date: Jul 2002
Location: NYC
Posts: 144
KuJi2002 is on a distinguished road
Send a message via AIM to KuJi2002 Send a message via Yahoo to KuJi2002
I havent but i seen people using playersays when i tested their script it worked
Reply With Quote
  #7  
Old 10-16-2002, 07:08 PM
Eban Eban is offline
Registered User
Join Date: Aug 2002
Location: Um, my house?
Posts: 155
Eban is on a distinguished road
Send a message via AIM to Eban Send a message via Yahoo to Eban
Playersays kept doing the command until your chat text has changed.
__________________
Owner of Genesis -Paused till I have a place to host it

Name: Eban
AIM: EbanCK
Email: [email protected]
Reply With Quote
  #8  
Old 10-16-2002, 07:57 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
playersays(CHAT TEXT HERE) equals strequals(#c,CHAT TEXT HERE), and does not contain playerchats
Reply With Quote
  #9  
Old 10-16-2002, 08:01 PM
CheeToS2 CheeToS2 is offline
That Guy
CheeToS2's Avatar
Join Date: Dec 2001
Location: Seattle, WA
Posts: 2,528
CheeToS2 will become famous soon enough
Send a message via AIM to CheeToS2
Quote:
Originally posted by Loriel
playersays has not been supported since release of 2k1, I believe. Just do not use it.
Stefan put it back in w/ the new release, but I agree, just don't use it ^_^
__________________

Reply With Quote
  #10  
Old 10-18-2002, 10:22 AM
MrGannondorf MrGannondorf is offline
Teh Lunpa
Join Date: Apr 2002
Location: usa, alas
Posts: 395
MrGannondorf is on a distinguished road
Send a message via AIM to MrGannondorf
in playersays, the flag will keep triggering itself untill it is no longer true, were as playerchats&&strblahblahblah will trigger the flag only once when you say it, so you have to change your chat text before you can trigger the flag again. I supose if playersays works then you could use (playerchats&&playersays(text)), but I'd stick with what we are told to do.
__________________
Reply With Quote
  #11  
Old 10-27-2002, 12:12 PM
osrs osrs is offline
Graalian since 1998
osrs's Avatar
Join Date: Mar 2002
Location: Brazil
Posts: 2,724
osrs is on a distinguished road
Send a message via ICQ to osrs Send a message via AIM to osrs Send a message via MSN to osrs Send a message via Yahoo to osrs
Quote:
Originally posted by Googi
One works.

The other doesn't.

playersays is the one that doesn't work .
It works for me,but i dont use it.
__________________
"Ability is what you are capable of doing. Motivation determines what you do. Attitude determines how well you do it."
Facebook: facebook.com/raysilvadotnet /
Reply With Quote
  #12  
Old 10-27-2002, 05:04 PM
HoudiniMan HoudiniMan is offline
Playerworld Administrator
HoudiniMan's Avatar
Join Date: Dec 2001
Location: Calfiornia - USA
Posts: 3,512
HoudiniMan will become famous soon enough
Quote:
Originally posted by Kaimetsu
playerchats + strequals is better. You really don't need to know why.
I agree it's better... but i never did know why.... *ponders*
__________________
-HoudiniMan (Chief Playerworld Administrator)
Compulsive Support Center Checker - 5 Years and Change
Graal Support Center

Reply With Quote
  #13  
Old 10-27-2002, 09:21 PM
osrs osrs is offline
Graalian since 1998
osrs's Avatar
Join Date: Mar 2002
Location: Brazil
Posts: 2,724
osrs is on a distinguished road
Send a message via ICQ to osrs Send a message via AIM to osrs Send a message via MSN to osrs Send a message via Yahoo to osrs
Quote:
Originally posted by HoudiniMan


I agree it's better... but i never did know why.... *ponders*
Your question make some sense..but none know how to reply..lol
__________________
"Ability is what you are capable of doing. Motivation determines what you do. Attitude determines how well you do it."
Facebook: facebook.com/raysilvadotnet /
Reply With Quote
  #14  
Old 10-27-2002, 09:22 PM
R0bin R0bin is offline
Banned
R0bin's Avatar
Join Date: Oct 2002
Location: Wales, UK
Posts: 828
R0bin is on a distinguished road
Send a message via AIM to R0bin
Quote:
Originally posted by Eban
Playersays kept doing the command until your chat text has changed.
Reply With Quote
  #15  
Old 10-28-2002, 11:14 PM
emortylone emortylone is offline
Registered User
Join Date: Apr 2002
Location: Control-NPC
Posts: 834
emortylone is on a distinguished road
Playerchats is DEFFINATELY the best. Playersays you can't do much with. And it works for triggering an event but it is ineffective. I was hoping I wouldn't have to comment either but it seems no one else has seen the obvious.
NPC Code:
if (playerchats && startswith(TEXT,#c))


and also the other used:
NPC Code:
if (playerchats && strcontains(#c,text))


It's fairly obvious I thought x-x (<-converting to Stefan style now ) #c is the code for playerschat. It just checks to see if the players' chat code is what it says. In playersays(chat) you can't really say if it startswith or anything. It is obsolete. it's like the difference between setlevel and setlevel2. I think Setlevel was finally removed, so if you NEED to use the same function:
NPC Code:
setlevel2 <level>,playerx,playery;


SAME exact thing. That is what it is with playerchats, and this is much better.
---Shifter
__________________
Quote:
*Stefan: it seems sometimes they hire newbie scripters everywhere x-x
*Stefan: scripters are sometimes like people that draw paintings
*Stefan: all that counts is that it looks nice
Reply With Quote
Reply


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 02:17 PM.


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