View Single Post
  #9  
Old 08-17-2001, 03:30 AM
BocoC BocoC is offline
Registered User
BocoC's Avatar
Join Date: Jun 2001
Location: Washington State, USA
Posts: 980
BocoC is on a distinguished road
Send a message via AIM to BocoC Send a message via Yahoo to BocoC
Re: I noticed that..

Quote:
Originally posted by Knightoffrost
A lot of people use "(playerchats&&strequals(#c,blah)" instead of "(playersays(blah))" ...

Why is that? playersays is much more easy and smaller which means less characters which means less time the computer takes reading the info (even if its a fast simple action anyway) which just means slightly more speed in it all I guess. But why do people use playerchats and strequals instead of playersays?
Ok. Playersays(text) is the same as strequals(#c,text). People use
NPC Code:

if (playerchats && strequals(#c,text)) { }


because the code will only run WHEN the player changes his chat field.
Try these codes out:
NPC Code:

if (playersays(buy me)) {
playerrupess-=10;
}


NPC Code:

if (playerchats && strequals(#c,buy me)) {
playerrupees-=10;
}


See the difference?
__________________
-Boco

FLKJH$TRFG*$(&%>FMG >REN<>F ;.kjsd
Reply With Quote