Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Disabling the v3 Chat Bar GUI (https://forums.graalonline.com/forums/showthread.php?t=58668)

ChibiChibiLuc 04-22-2005 12:55 AM

Disabling the v3 Chat Bar GUI
 
Is there any way to disable the chat bar that comes up when you hit tab in v3?

I wanted to rescript a bar more like the v2 one, but there're a few problems:

First of all, is there any way to disable the bar from popping up? Like a ChatGUI.destroy()? Enablefeatures doesn't work.

Second, is there any way to detect when the tab key is hit? I've tried keydown2(9,true) in both a keypressed and a timeout, but it didn't register.

Third, is there a way to force select the custom GUI bar where you input the text with a command?

Ajira 04-22-2005 01:57 AM

To destroy the Chat Bar
NPC Code:

ChatBar.destroy();


Admins 04-22-2005 03:10 AM

I am not sure how exactly you can emulate the chat bar in v3.1, but in v4 it should be quite easy since also the default chatbar is scripted there. You do ChatBar.destroy and then do something like this:

PHP Code:

function onKeypressed(keycode,keytext) {
  if (
keycode==9)
    
MyChatBar.show();


The only thing that you canot do currently with script is to let the chat text stay over the head until you move. When the chat text is modified by script it always disappears after a few seconds.

Ajira 04-22-2005 03:38 AM

Quote:

Originally Posted by Stefan
The only thing that you canot do currently with script is to let the chat text stay over the head until you move. When the chat text is modified by script it always disappears after a few seconds.

If you put it in a timeout, then I guess it would stay. =o

xXDuMajuXx 04-30-2005 12:37 PM

Might be a bit laggy with a timeout when about 5 people speak at the same time, but if it's clientsided, then feh, there wouldn't be much.

Ajira 04-30-2005 05:14 PM

Quote:

Originally Posted by xXDuMajuXx
Might be a bit laggy with a timeout when about 5 people speak at the same time, but if it's clientsided, then feh, there wouldn't be much.

It wouldn't be laggy. It's not like it's a bunch of showimgs, its just the default playerchat.

Edit: And why would you even script a chat system serverside? x_X

xXDuMajuXx 04-30-2005 10:53 PM

Quote:

Originally Posted by Ajira
It wouldn't be laggy. It's not like it's a bunch of showimgs, its just the default playerchat.

Edit: And why would you even script a chat system serverside? x_X

I wouldn't know. I thought for a player to see someone elses text, it'd be serverside, but I can't script for beans so my opinion doesn't count.


All times are GMT +2. The time now is 05:51 AM.

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