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 10-21-2001, 04:07 PM
nyghtGT nyghtGT is offline
Banned
nyghtGT's Avatar
Join Date: Jun 2001
Posts: 3,993
nyghtGT is on a distinguished road
Send a message via AIM to nyghtGT
!~! Chat System !~!

Here is a preview of my chat system for my server I am making.
Attached Thumbnails
Click image for larger version

Name:	norin_screen(10-21-01).gif
Views:	384
Size:	109.8 KB
ID:	6494  
Reply With Quote
  #2  
Old 10-21-2001, 04:11 PM
DoragonKoden_RC6 DoragonKoden_RC6 is offline
Registered User
Join Date: Oct 2001
Posts: 221
DoragonKoden_RC6 is on a distinguished road
Looks nice.
Reply With Quote
  #3  
Old 10-21-2001, 05:00 PM
TDO2000 TDO2000 is offline
Registered User
TDO2000's Avatar
Join Date: Jul 2001
Location: Germany
Posts: 655
TDO2000 is on a distinguished road
Does this chat-item shorten a long text? or is it in the next line?
__________________
No Webhost at the moment
Reply With Quote
  #4  
Old 10-21-2001, 06:05 PM
Knightoffrost Knightoffrost is offline
and Delph Inc.
Knightoffrost's Avatar
Join Date: Jul 2001
Location: Canada
Posts: 1,162
Knightoffrost is on a distinguished road
Send a message via ICQ to Knightoffrost Send a message via AIM to Knightoffrost Send a message via Yahoo to Knightoffrost
[ Delph Inc. ]

That's p2p right?
I've been arguing for Stefan to put '@size' into the showimg-text command.

Also...I suggest not using those HUGE statistic metres...they look out of place and too big for most people.
__________________
Xerphier Dintch
Featuring
Reply With Quote
  #5  
Old 10-21-2001, 06:30 PM
nyghtGT nyghtGT is offline
Banned
nyghtGT's Avatar
Join Date: Jun 2001
Posts: 3,993
nyghtGT is on a distinguished road
Send a message via AIM to nyghtGT
well ...

Quote:
Originally posted by TDO2000
Does this chat-item shorten a long text? or is it in the next line?
i put a 42-character limit on it ... for now ...
Quote:
Originally posted by Knightoffrost
[ Delph Inc. ]

That's p2p right?
I've been arguing for Stefan to put '@size' into the showimg-text command.

Also...I suggest not using those HUGE statistic metres...they look out of place and too big for most people.
well you can control size with 'changeimgzoom' and i got rid of the meters and am doing a really kool system ... ohhh ... and also... its for use on any servers i think (p2p and free)
Reply With Quote
  #6  
Old 10-21-2001, 07:24 PM
TDO2000 TDO2000 is offline
Registered User
TDO2000's Avatar
Join Date: Jul 2001
Location: Germany
Posts: 655
TDO2000 is on a distinguished road
I thinnk changeimgzoom doesn't work on non p2p Servers...
__________________
No Webhost at the moment
Reply With Quote
  #7  
Old 10-21-2001, 07:27 PM
nyghtGT nyghtGT is offline
Banned
nyghtGT's Avatar
Join Date: Jun 2001
Posts: 3,993
nyghtGT is on a distinguished road
Send a message via AIM to nyghtGT
Quote:
Originally posted by TDO2000
I thinnk changeimgzoom doesn't work on non p2p Servers...
it does ...
or it did on Delteria .... if it dont work I will be mad
Reply With Quote
  #8  
Old 10-21-2001, 07:41 PM
TDO2000 TDO2000 is offline
Registered User
TDO2000's Avatar
Join Date: Jul 2001
Location: Germany
Posts: 655
TDO2000 is on a distinguished road
Stefan disabled all these effects short ago, because I tried it out on Atlantis and changeimgzoom didn't work with my chat-item =(
__________________
No Webhost at the moment
Reply With Quote
  #9  
Old 10-21-2001, 07:46 PM
nyghtGT nyghtGT is offline
Banned
nyghtGT's Avatar
Join Date: Jun 2001
Posts: 3,993
nyghtGT is on a distinguished road
Send a message via AIM to nyghtGT
how it works ...

how this NPC works is fairly simple ....

It basically uses 'timeout' to update the players view of the chat. Then 'showimg 501,@verdana@#s(server.chatrow1),5,5' to make the first row of chat appear, and so on through the 10 chatrows I have. Then when the 'playerchats' the contents of each string move up:
'setstring server.chatrow10,#s(server.chatrow9)'
'setstring server.chatrow9,#s(server.chatrow8)'
and so on .... then:
'setstring server.chatrow1,#a: #c'
to make the next news appear and so on and on ...
Reply With Quote
  #10  
Old 10-21-2001, 11:45 PM
Xaviar Xaviar is offline
Registered User
Join Date: Aug 2001
Location: Fairyland
Posts: 463
Xaviar is on a distinguished road
Send a message via ICQ to Xaviar Send a message via AIM to Xaviar
Last I heard, changeimgzoom worked on non-p2p, but setimgcolor or changeimgcolor or whatever its called is for p2p only
__________________
One by one, the penguins steal my sanity.

*cookie for Xaviar* --Originally posted by Tyhm

--Xaviar

A m e r i c a
Reply With Quote
  #11  
Old 10-22-2001, 12:04 AM
TDO2000 TDO2000 is offline
Registered User
TDO2000's Avatar
Join Date: Jul 2001
Location: Germany
Posts: 655
TDO2000 is on a distinguished road
Nope, offline it worked fine but then i tried it online and changeimgzoom didn't work. Stefan disabled it...
__________________
No Webhost at the moment
Reply With Quote
  #12  
Old 10-22-2001, 01:33 AM
btedji btedji is offline
bryan986
btedji's Avatar
Join Date: Apr 2001
Location: Force 10
Posts: 1,153
btedji is on a distinguished road
Send a message via ICQ to btedji Send a message via AIM to btedji Send a message via Yahoo to btedji
i thought all the changimg things worked on non-p2p
Reply With Quote
  #13  
Old 10-22-2001, 02:19 AM
Faheria_GP2 Faheria_GP2 is offline
Banned
Faheria_GP2's Avatar
Join Date: Oct 2001
Posts: 1,177
Faheria_GP2 is on a distinguished road
stefan calls them lighting effects, even when it's just text

*CRY*
Reply With Quote
  #14  
Old 10-22-2001, 02:30 AM
TDO2000 TDO2000 is offline
Registered User
TDO2000's Avatar
Join Date: Jul 2001
Location: Germany
Posts: 655
TDO2000 is on a distinguished road
he should add something like

showimg index,@text@size

so it could also be used on non p2p servers and he won't have to enable "lighteffects"
__________________
No Webhost at the moment
Reply With Quote
  #15  
Old 10-22-2001, 03:12 AM
nyghtGT nyghtGT is offline
Banned
nyghtGT's Avatar
Join Date: Jun 2001
Posts: 3,993
nyghtGT is on a distinguished road
Send a message via AIM to nyghtGT
Quote:
Originally posted by Knightoffrost
[ Delph Inc. ]

That's p2p right?
I've been arguing for Stefan to put '@size' into the showimg-text command.

Also...I suggest not using those HUGE statistic metres...they look out of place and too big for most people.
i think a '@size' is definately needed also where you can control the color as well '@color'.
Reply With Quote
  #16  
Old 10-22-2001, 04:11 PM
Knightoffrost Knightoffrost is offline
and Delph Inc.
Knightoffrost's Avatar
Join Date: Jul 2001
Location: Canada
Posts: 1,162
Knightoffrost is on a distinguished road
Send a message via ICQ to Knightoffrost Send a message via AIM to Knightoffrost Send a message via Yahoo to Knightoffrost
[ Delph Inc. ]

There was a thread with all these ideas a while back...
with:
showimg index,@verdana@b@size@colour@text,x,y;

But I only have a feeling Stefan will enable the size, because colour is not all that important.

I don't really care if he doesn't allow it in images...most of us just need the size in text and we should all live happily ever after...until someone comes up with another complaint.
__________________
Xerphier Dintch
Featuring
Reply With Quote
  #17  
Old 10-22-2001, 04:49 PM
Fry Fry is offline
Registered User
Fry's Avatar
Join Date: Sep 2001
Location: Germany
Posts: 384
Fry has a spectacular aura about
uhm, I need color, Stefan should add it too. And attachplayertoobj should work on non pay.
__________________
Graal Statistics

Top 3 servers at the moment (players):


Reply With Quote
  #18  
Old 10-22-2001, 05:14 PM
Knightoffrost Knightoffrost is offline
and Delph Inc.
Knightoffrost's Avatar
Join Date: Jul 2001
Location: Canada
Posts: 1,162
Knightoffrost is on a distinguished road
Send a message via ICQ to Knightoffrost Send a message via AIM to Knightoffrost Send a message via Yahoo to Knightoffrost
[ Delph Inc. ]

I think we're really pushing it here...

Stefan...if you ever get to reading this...@size is probably the most important command us non-p2players need at the moment.
So if you could please add it.
__________________
Xerphier Dintch
Featuring
Reply With Quote
  #19  
Old 10-22-2001, 09:24 PM
TDO2000 TDO2000 is offline
Registered User
TDO2000's Avatar
Join Date: Jul 2001
Location: Germany
Posts: 655
TDO2000 is on a distinguished road
Or just enable changeimgzoom
__________________
No Webhost at the moment
Reply With Quote
  #20  
Old 10-24-2001, 04:30 AM
Aknts Aknts is offline
Level Designer
Aknts's Avatar
Join Date: Apr 2001
Location: USofA
Posts: 3,340
Aknts will become famous soon enough
Send a message via AIM to Aknts
Nyght you DID NOT script that don't lie. You got that script from Zell site or another one b/c the one on there has a character limit. Err your such and idiot for lieing like that, you could of least made it so if it is more then 42 letters it raps around to the next line. I bet you anything that if you post your chat script and I post the one on Zell's site they will be the same except for some text you change to make it look like you made it.
__________________
Reply With Quote
  #21  
Old 10-24-2001, 09:22 AM
nyghtGT nyghtGT is offline
Banned
nyghtGT's Avatar
Join Date: Jun 2001
Posts: 3,993
nyghtGT is on a distinguished road
Send a message via AIM to nyghtGT
Quote:
Originally posted by Knightoffrost
[ Delph Inc. ]

There was a thread with all these ideas a while back...
with:
showimg index,@verdana@b@size@colour@text,x,y;

But I only have a feeling Stefan will enable the size, because colour is not all that important.

I don't really care if he doesn't allow it in images...most of us just need the size in text and we should all live happily ever after...until someone comes up with another complaint.
Hey ! I need color for my chat thingy white text on a lightbrown background isn't the easiest to see ...
Reply With Quote
  #22  
Old 10-24-2001, 09:25 AM
nyghtGT nyghtGT is offline
Banned
nyghtGT's Avatar
Join Date: Jun 2001
Posts: 3,993
nyghtGT is on a distinguished road
Send a message via AIM to nyghtGT
Quote:
Originally posted by Aknts
Nyght you DID NOT script that don't lie. You got that script from Zell site or another one b/c the one on there has a character limit. Err your such and idiot for lieing like that, you could of least made it so if it is more then 42 letters it raps around to the next line. I bet you anything that if you post your chat script and I post the one on Zell's site they will be the same except for some text you change to make it look like you made it.
Fine i'll post mine !!! Damnit I totally hate this ! Whenever I make a script by myself I get accused of stealing !!! And the 42 charcater limit was to make it fit within my chat box. And I guess if they exceede i could use #e to make the extra parts go to the next line !

Last edited by nyghtGT; 10-24-2001 at 09:34 AM..
Reply With Quote
  #23  
Old 10-24-2001, 09:31 AM
nyghtGT nyghtGT is offline
Banned
nyghtGT's Avatar
Join Date: Jun 2001
Posts: 3,993
nyghtGT is on a distinguished road
Send a message via AIM to nyghtGT
Chat System

Ok I made this NPC and it works mainly on pay servers now but has quite a few bugs .... If you wanna use it please ask me !!! Also, this script is posted to teach:
NPC Code:

// Chat System
// NPC made by Nyght
hide;
if (playerenters && !haschat) {
toweapons *Norin Chat;
set haschat;
}
// Loads the Chat Screen and makes a notice that you entered
if (weaponfired) {
set chaton;
disabledefmovement;
setstring server.chatrow10,#s(server.chatrow9);
setstring server.chatrow9,#s(server.chatrow8);
setstring server.chatrow8,#s(server.chatrow7);
setstring server.chatrow7,#s(server.chatrow6);
setstring server.chatrow6,#s(server.chatrow5);
setstring server.chatrow5,#s(server.chatrow4);
setstring server.chatrow4,#s(server.chatrow3);
setstring server.chatrow3,#s(server.chatrow2);
setstring server.chatrow2,#s(server.chatrow1);
setstring server.chatrow1,(#a is entering chat);
}
// Chat Loop: makes latest chats viewable 1/2sec delay
if (timeout && chaton) {
timeout=0.5;
}
// If your an Admin you can clear the chat
if (strcontains(#g,Admin) && playersays(reset chat)) {
setstring server.chatreset,start;
setplayerprop #c,;
}

// for when the person says reset it initializes the reset
if (strcontains(start,#s(server.chatreset))) {
setstring server.chatrow10,;
setstring server.chatrow9,;
setstring server.chatrow8,;
setstring server.chatrow7,;
setstring server.chatrow6,;
setstring server.chatrow5,;
setstring server.chatrow4,;
setstring server.chatrow3,;
setstring server.chatrow2,;
setstring server.chatrow1,;
setstring server.chatreset,done;
setstring server.chatrow1,(Chat reset by #a);
}

// If the player speaks his chat field is posted also if he is
// setting his attributes it wont mess with it either ....
if (playerchats && chaton) {
if (!startswith(#c,set) && strlen(#c)<=42) {
setstring server.chatrow10,#s(server.chatrow9);
setstring server.chatrow9,#s(server.chatrow8);
setstring server.chatrow8,#s(server.chatrow7);
setstring server.chatrow7,#s(server.chatrow6);
setstring server.chatrow6,#s(server.chatrow5);
setstring server.chatrow5,#s(server.chatrow4);
setstring server.chatrow4,#s(server.chatrow3);
setstring server.chatrow3,#s(server.chatrow2);
setstring server.chatrow2,#s(server.chatrow1);
setstring server.chatrow1,#a: #c;
setplayerprop #c,;
}
}

// Checking to make sure his message isn't longer than the
// chatbox
if (strlen(#c)>=42 && chaton) {
setstring server.chatrow1,(#a problem post exceeds max number of letters);
}
// Showing the Chat Screen and the messages
if (timeout) {
showimg 500,norin_chat.gif,5,5;
changeimgvis 500,4;
showimg 510,@verdana@#s(server.chatrow10),20,20;
changeimgvis 510,4;
changeimgzoom 510,0.55;
changeimgcolors 510,0,0,0,1;
showimg 509,@verdana@#s(server.chatrow9),20,35;
changeimgvis 509,4;
changeimgzoom 509,0.55;
changeimgcolors 509,0,0,0,1;
showimg 508,@verdana@#s(server.chatrow8),20,50;
changeimgvis 508,4;
changeimgzoom 508,0.55;
changeimgcolors 508,0,0,0,1;
showimg 507,@verdana@#s(server.chatrow7),20,65;
changeimgvis 507,4;
changeimgzoom 507,0.55;
changeimgcolors 507,0,0,0,1;
showimg 506,@verdana@#s(server.chatrow6),20,80;
changeimgvis 506,4;
changeimgzoom 506,0.55;
changeimgcolors 506,0,0,0,1;
showimg 505,@verdana@#s(server.chatrow5),20,95;
changeimgvis 505,4;
changeimgzoom 505,0.55;
changeimgcolors 505,0,0,0,1;
showimg 504,@verdana@#s(server.chatrow4),20,110;
changeimgvis 504,4;
changeimgzoom 504,0.55;
changeimgcolors 504,0,0,0,1;
showimg 503,@verdana@#s(server.chatrow3),20,125;
changeimgvis 503,4;
changeimgzoom 503,0.55;
changeimgcolors 503,0,0,0,1;
showimg 502,@verdana@#s(server.chatrow2),20,140;
changeimgvis 502,4;
changeimgzoom 502,0.55;
changeimgcolors 502,0,0,0,1;
showimg 501,@verdana@#s(server.chatrow1),20,155;
changeimgvis 501,4;
changeimgzoom 501,0.55;
changeimgcolors 501,0,0,0,1;
timeout=0.5;
}

// turning the chat off
if (strcontains(#a: chat off,#s(server.chatrow1))) {
setstring server.chatrow10,#s(server.chatrow9);
setstring server.chatrow9,#s(server.chatrow8);
setstring server.chatrow8,#s(server.chatrow7);
setstring server.chatrow7,#s(server.chatrow6);
setstring server.chatrow6,#s(server.chatrow5);
setstring server.chatrow5,#s(server.chatrow4);
setstring server.chatrow4,#s(server.chatrow3);
setstring server.chatrow3,#s(server.chatrow2);
setstring server.chatrow2,#s(server.chatrow1);
setstring server.chatrow1,(#a has left chat);
unset chaton;
enabledefmovement;
}

// Hiding the chat
if (!chaton) {
hideimg 500;
hideimg 501;
hideimg 502;
hideimg 503;
hideimg 504;
hideimg 505;
hideimg 506;
hideimg 507;
hideimg 508;
hideimg 509;
hideimg 510;
}


Attatched Below is the gif you need.
Attached Thumbnails
Click image for larger version

Name:	norin_chat.gif
Views:	145
Size:	23.3 KB
ID:	6604  

Last edited by nyghtGT; 10-24-2001 at 09:44 AM..
Reply With Quote
  #24  
Old 10-25-2001, 02:51 AM
nyghtGT nyghtGT is offline
Banned
nyghtGT's Avatar
Join Date: Jun 2001
Posts: 3,993
nyghtGT is on a distinguished road
Send a message via AIM to nyghtGT
mainly ...

The chat i listed above is mainly for pay servers cause it uses "changeimgcolor'&'changeimgzoom' i am working on a free server one the only things really changing is the spacings and gifs ...
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 06:01 PM.


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