Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Chat (https://forums.graalonline.com/forums/showthread.php?t=79445)

Dan 04-17-2008 08:57 PM

Chat
 
Imagine me and you in 1 level. From my client I change your chat clientside (you.chat = "test"). Now anybody knows if there's a way to restore your chat to what it was? Without having to save your chat before changing it?

^^ Oh yeah and nothing serverside.

cbk1994 04-17-2008 10:01 PM

A different players chat can't be changed clientside ...

I don't understand exactly what you're saying.

Dan 04-17-2008 11:36 PM

It can be changed local, which is what I want for our heart display (when a player got hit), we're using a clientside hit detection system and try to copy the default systems of Graal.

I think there should be some player.chat.update() thing to restore to the real player chat, instead of the local/edited player chat that you can set to display local.

zokemon 04-18-2008 12:44 AM

You should just have some TShowImg_Text or so.

cbk1994 04-18-2008 05:45 AM

Just save it like this:

PHP Code:

for ( temp.players )
{
  
this.( @ "chat_" temp.a.account ) = temp.a.chat;
  
temp.a.chat "lol";


or something like that?

Dan 04-18-2008 01:08 PM

Quote:

Originally Posted by zokemon (Post 1386459)
You should just have some TShowImg_Text or so.

Then I'd still have to hide the other players chat, and restore it again, same problem.

Quote:

Originally Posted by cbkbud (Post 1386487)
Just save it like this:

PHP Code:

for ( temp.players )
{
  
this.( @ "chat_" temp.a.account ) = temp.a.chat;
  
temp.a.chat "lol";


or something like that?

Well I am currently saving it yes.. though the thing is, I don't want to save it.. since when 20 people in a level are pking, it has to save for all those 20 players, !good.

DustyPorViva 04-18-2008 08:19 PM

Just have hearts as another parameter, and when hearts are showing, hide chat, when the hearts disappear, show the chat.

zokemon 04-18-2008 08:35 PM

Yeah, with a custom chat display system, It's not really hard to have them separate like Dusty said x_x.

cbk1994 04-18-2008 10:00 PM

Why not just show a heart image above the player with the text?

Dan 04-18-2008 10:15 PM

Rufus' orders were to make it like default, so I am making it like default. I won't have a custom nickname display, Stefan's done it in the default systems, so there must be some way to do it without having to store the old nickname, since that'd be too CPU intensive. I don't want to use a triggeraction to update the other players chat either ^^.

Inverness 04-18-2008 10:29 PM

You're severely underestimating the capability of a CPU if you think Graal will explode if you save the chat text of 20 people.

Basically I'm saying suck it up.

cbk1994 04-18-2008 11:32 PM

Quote:

Originally Posted by Dan (Post 1386568)
that'd be too CPU intensive

-__-


All times are GMT +2. The time now is 04:31 PM.

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