![]() |
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??? |
Does playersays still work online?
I've used playerchats since I learned how to use it. Much more flexable. |
One works.
The other doesn't. playersays is the one that doesn't work :). |
Quote:
|
playersays has not been supported since release of 2k1, I believe. Just do not use it.
|
I havent but i seen people using playersays when i tested their script it worked
|
Playersays kept doing the command until your chat text has changed.
|
playersays(CHAT TEXT HERE) equals strequals(#c,CHAT TEXT HERE), and does not contain playerchats
|
Quote:
|
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.
|
Quote:
|
Quote:
|
Quote:
|
Quote:
|
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.