![]() |
Chat Dissapears
We have a custom chat bar, and when we hit enter everything works ... except after like three seconds the chat disapears! NPCs have always done this as far as I know, but we really need a way past it. All help is appreciated!
Thanks! |
set the chat serverside and it stays longer for some reason.
|
Quote:
We need to set the chat clientside. |
it should be easy to fix:
try this: PHP Code:
|
Quote:
I'm going to try to do a trigger once enter is hit, hopefully it can get to server fast enough. Update: Chat doesnt last any longer on server :C Help please :( |
try setting it only on the server, not the client.
|
You can always make a custom chat system using a gani or something. Not very hard to do.
|
Maybe schedule an event after the player chats to set the player.chat=player.chat
|
At default, the chat should stay forever unless you move. Maybe I'll just add a system that constantly resets it if it doesnt detect any movement.
BTW Stefan this would be a great time to get on here and tell me how to do it ;) |
The system is made so that chat set by client-side scripts is automatically disappearing, except when set by the chat script (a script on the login server) or set by serverside.
|
Can you possibly help me fix this, or make this not the case on the server I'm on?
|
11111111111111111111111111111000111100111111111111111110001111111111
10000000000000111001111111111000110000111111111111111000000001111111 00000000000000010000111111110000110000111111111110001000000000011111 00100011110000010000111111110000110000111111111100001100000000001111 11000011111000010000111111100001110000111111111000001100001000000111 10000011100000110000111111100001110000011111100000001100001110000011 10000110000011110000111111100001100000011111000000011100001111000011 10000000001111110000111111000011100000001100000000011100011111000011 00000001111111110000111111000011100000000000011000111000011111000011 00000001111111110000111110000111100010000000111000111000011110000111 00000000000111110000111110000111100011100011110000111000111000000111 10001000000001110000111100000111100011111111110001111000000000011111 10001111100000111000011000000111100011111111110001110000000111111111 10001111000000111000000000001111000011111111110001100001111111111111 10000000000000111100000010000111000111111111100011110001111111111111 00000000000111111110001110000111000111111111100111110000111111111111 00000001111111111111111111111111111111111111111111110000111111111111 10011111111111111111111111111111111111111111111111110001111111111111 |
I just suggest making your own chat system. Default chat is ugly :[
And about using ganis to do it: That is nice and all but I have found gani scripts do horrible things when player.zoom is altered. Best way to do it in my opinion (way I am doing it now) is to just have a for (temp.p : players) loop going (in a timeout) that does the script like so. I know this may cause just the slightest extra lag (if anything...only difference is a variable change) but I think it's worth it since gani scripts are not always reliable (not to mention it is much easier to update a WNPC then a .gani). |
Quote:
|
Quote:
wraptext(int, str, str) - returns object wraptext2(int, float, str, str) - returns object |
| All times are GMT +2. The time now is 09:41 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.