Graal Forums  

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

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 11-07-2007, 03:59 AM
Switch Switch is offline
o.o
Switch's Avatar
Join Date: Jan 2007
Location: Philadelphia
Posts: 3,038
Switch has a spectacular aura about
Send a message via MSN to Switch
if (this.something1 in player.chat) {}

This is something I'd like to know for vulgar language kind of stuff.

If I were to do the below script and if someone said "You fuken stupid a$$!" would the player chatting say "Don't be mean"?
PHP Code:
//#CLIENTSIDE
function onCreated() this.vulgar = { "a$$","b1tch","fuk" };
function 
onPlayerChats() {
 if (
this.vulgar in player.chat) {
  
player.chat "Don't be mean";
 }

If not, how could I make it do so?

Note: I had to evade the curse filter for people to see this correctly, sorry.
__________________
Oh squiggly line in my eye fluid. I see you lurking there on the peripheral of my vision.
But when I try to look at you, you scurry away.
Are you shy, squiggly line?
Why only when I ignore you, do you return to the center of my eye?
Oh, squiggly line, it's alright, you are forgiven.
Reply With Quote
 


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:05 AM.


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