Graal Forums

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

nyghtGT 10-21-2001 04:07 PM

!~! Chat System !~!
 
1 Attachment(s)
Here is a preview of my chat system for my server I am making.

DoragonKoden_RC6 10-21-2001 04:11 PM

Looks nice. :)

TDO2000 10-21-2001 05:00 PM

Does this chat-item shorten a long text? or is it in the next line?

Knightoffrost 10-21-2001 06:05 PM

[ 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.

nyghtGT 10-21-2001 06:30 PM

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)

TDO2000 10-21-2001 07:24 PM

I thinnk changeimgzoom doesn't work on non p2p Servers...

nyghtGT 10-21-2001 07:27 PM

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

TDO2000 10-21-2001 07:41 PM

Stefan disabled all these effects short ago, because I tried it out on Atlantis and changeimgzoom didn't work with my chat-item =(

nyghtGT 10-21-2001 07:46 PM

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 ...

Xaviar 10-21-2001 11:45 PM

Last I heard, changeimgzoom worked on non-p2p, but setimgcolor or changeimgcolor or whatever its called is for p2p only

TDO2000 10-22-2001 12:04 AM

Nope, offline it worked fine but then i tried it online and changeimgzoom didn't work. Stefan disabled it...

btedji 10-22-2001 01:33 AM

i thought all the changimg things worked on non-p2p

Faheria_GP2 10-22-2001 02:19 AM

stefan calls them lighting effects, even when it's just text

*CRY*

TDO2000 10-22-2001 02:30 AM

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"

nyghtGT 10-22-2001 03:12 AM

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'.

Knightoffrost 10-22-2001 04:11 PM

[ 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.

Fry 10-22-2001 04:49 PM

uhm, I need color, Stefan should add it too. And attachplayertoobj should work on non pay.

Knightoffrost 10-22-2001 05:14 PM

[ 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.

TDO2000 10-22-2001 09:24 PM

Or just enable changeimgzoom ;)

Aknts 10-24-2001 04:30 AM

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.

nyghtGT 10-24-2001 09:22 AM

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 ...

nyghtGT 10-24-2001 09:25 AM

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 !

nyghtGT 10-24-2001 09:31 AM

Chat System
 
1 Attachment(s)
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.

nyghtGT 10-25-2001 02:51 AM

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 ...


All times are GMT +2. The time now is 10:54 PM.

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