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 03-06-2007, 06:25 PM
JkWhoSaysNi JkWhoSaysNi is offline
Ruler of the graalaxy
Join Date: Feb 2005
Location: Great Britain
Posts: 488
JkWhoSaysNi is on a distinguished road
Send a message via ICQ to JkWhoSaysNi
Hide player.chat?

I've developed a custom chat system which doesnt use player.chat. The problem is, many other scripts use onPlayerChats() and i'd like to retain their functionality but not show player.chat

I tried this:

NPC Code:

function onPlayerChats() {
player.chat = "";
}



When it's serverside, onPlayerChats() is triggered in other weapons but the chat still shows briefly.

When it's clientside, the chat is not shown but onPlayerChats() in other NPCs is never triggered.

So is there any way to set player.chat but make it invisible? This seems like it would be the best method.
__________________

Coming soon (Hopefully:P)
Reply With Quote
  #2  
Old 03-06-2007, 06:34 PM
napo_p2p napo_p2p is offline
oh snaps
napo_p2p's Avatar
Join Date: Sep 2003
Location: Pismo Beach, California
Posts: 2,118
napo_p2p has a spectacular aura aboutnapo_p2p has a spectacular aura about
Send a message via AIM to napo_p2p Send a message via MSN to napo_p2p
For enablefeatures:

Quote:
0x80 Display of chat text
Example:
PHP Code:
enablefeatures(allfeatures 0x80); 
__________________
Scito hoc super omnia.
Haec vita est tua una sola.
Dum vita superest, utere maxime quoque puncto, momento, et hora quae habes.
Tempus neminem non manet.
Noli manere tempus.
Carpe Diem

Seize the Day.
Reply With Quote
  #3  
Old 03-06-2007, 06:39 PM
JkWhoSaysNi JkWhoSaysNi is offline
Ruler of the graalaxy
Join Date: Feb 2005
Location: Great Britain
Posts: 488
JkWhoSaysNi is on a distinguished road
Send a message via ICQ to JkWhoSaysNi
ah, thanks. Didn't know about enablefeatures() I looked into showstats.

__________________

Coming soon (Hopefully:P)
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 05:33 PM.


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