Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Hide player.chat? (https://forums.graalonline.com/forums/showthread.php?t=72637)

JkWhoSaysNi 03-06-2007 06:25 PM

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.

napo_p2p 03-06-2007 06:34 PM

For enablefeatures:

Quote:

0x80 Display of chat text
Example:
PHP Code:

enablefeatures(allfeatures 0x80); 


JkWhoSaysNi 03-06-2007 06:39 PM

ah, thanks. Didn't know about enablefeatures() :) I looked into showstats.

:D


All times are GMT +2. The time now is 11:18 AM.

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