Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   What is the point of playersays and strequals(#c,))? (https://forums.graalonline.com/forums/showthread.php?t=39325)

KuJi2002 10-16-2002 07:43 AM

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

AlexH 10-16-2002 07:49 AM

Does playersays still work online?
I've used playerchats since I learned how to use it.
Much more flexable.

Googi 10-16-2002 09:32 AM

One works.

The other doesn't.

playersays is the one that doesn't work :).

CheeToS2 10-16-2002 05:30 PM

Quote:

Originally posted by Googi
One works.

The other doesn't.

playersays is the one that doesn't work :).

It does work now -_-

Loriel 10-16-2002 06:37 PM

playersays has not been supported since release of 2k1, I believe. Just do not use it.

KuJi2002 10-16-2002 07:01 PM

I havent but i seen people using playersays when i tested their script it worked

Eban 10-16-2002 07:08 PM

Playersays kept doing the command until your chat text has changed.

Loriel 10-16-2002 07:57 PM

playersays(CHAT TEXT HERE) equals strequals(#c,CHAT TEXT HERE), and does not contain playerchats

CheeToS2 10-16-2002 08:01 PM

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 ^_^

MrGannondorf 10-18-2002 10:22 AM

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.

osrs 10-27-2002 12:12 PM

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.

HoudiniMan 10-27-2002 05:04 PM

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*:\

osrs 10-27-2002 09:21 PM

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

R0bin 10-27-2002 09:22 PM

Quote:

Originally posted by Eban
Playersays kept doing the command until your chat text has changed.

emortylone 10-28-2002 11:14 PM

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


All times are GMT +2. The time now is 02:33 AM.

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