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 04-22-2005, 12:55 AM
ChibiChibiLuc ChibiChibiLuc is offline
Cookie Monster. :3
Join Date: Jan 2005
Location: Nova Scotia, Canada
Posts: 111
ChibiChibiLuc is on a distinguished road
Send a message via AIM to ChibiChibiLuc Send a message via MSN to ChibiChibiLuc
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?
Reply With Quote
  #2  
Old 04-22-2005, 01:57 AM
Ajira Ajira is offline
Poont.
Join Date: Oct 2004
Location: NY, USA
Posts: 477
Ajira is on a distinguished road
To destroy the Chat Bar
NPC Code:

ChatBar.destroy();

__________________
Liek omigosh.

Reply With Quote
  #3  
Old 04-22-2005, 03:10 AM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
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.
Reply With Quote
  #4  
Old 04-22-2005, 03:38 AM
Ajira Ajira is offline
Poont.
Join Date: Oct 2004
Location: NY, USA
Posts: 477
Ajira is on a distinguished road
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
__________________
Liek omigosh.

Reply With Quote
  #5  
Old 04-30-2005, 12:37 PM
xXDuMajuXx xXDuMajuXx is offline
Corsein
Join Date: Mar 2005
Location: Home
Posts: 278
xXDuMajuXx is on a distinguished road
Send a message via AIM to xXDuMajuXx Send a message via MSN to 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.
__________________
Reply With Quote
  #6  
Old 04-30-2005, 05:14 PM
Ajira Ajira is offline
Poont.
Join Date: Oct 2004
Location: NY, USA
Posts: 477
Ajira is on a distinguished road
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
__________________
Liek omigosh.

Reply With Quote
  #7  
Old 04-30-2005, 10:53 PM
xXDuMajuXx xXDuMajuXx is offline
Corsein
Join Date: Mar 2005
Location: Home
Posts: 278
xXDuMajuXx is on a distinguished road
Send a message via AIM to xXDuMajuXx Send a message via MSN to xXDuMajuXx
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.
__________________
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 10:29 PM.


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