Forum

> > CS2D > Scripts > Chat Editor
Forums overviewCS2D overview Scripts overviewLog in to reply

English Chat Editor

7 replies
To the start Previous 1 Next To the start

old Chat Editor

Skill
User Off Offline

Quote
I need Chat Editor.

Have 2 mode
1. Mode : ''hello my name is''
√ Hello . My . Name . is
Script having for your chat Caps Lock Open and ''.''

2. Mode : ''hello my name is.''

√ Hello my name is .
Use Having For your chat Starting Capslock
and ''.''

> Sory For my bad English Leagune
edited 1×, last 05.10.15 07:09:51 pm

Admin/mod comment

"Leagune", with that English, I can't even... /ZxC Rules §4.1 - Use proper, understandable language. No dialects / translation tools.

old Re: Chat Editor

XoOt
Super User Off Offline

Quote
This looks like random spam to me, couldnt you atleast try to put some effort into the explanation of your nonsense?

old No

Skill
User Off Offline

Quote
I need seriously. Not Spam .

old Re: Chat Editor

ohaz
User Off Offline

Quote
We don't even understand what you want. Please elaborate

old Re: Chat Editor

Rainoth
Moderator Off Offline

Quote
1
2
3
4
5
6
7
8
addhook("say","_say")
function _say(id,txt)
	if txt:sub(1,1) == (txt:sub(1,1)):lower() then-- dunno if will work
		txt = (txt:sub(1,1)):upper()..txt:sub(2,#txt).."."
		msg(player(id,"name")..": "..txt)
		return 1
	end
end

That's one of your modes (if I made it correctly)
I won't make the other chat mode because it's gramatically incorrect and I don't want to encourage writing improperly.

P.S. tha understanding/assumption skills doe
P.P.S. @Others: what he wants is two chat modes, one will capitalize the first letter (like it should be) and place a dot at the end, the other will capitalize each word and put dots between words.
P.P.P.S. @user Skill: At least you tried √
edited 1×, last 04.10.15 07:20:41 pm

old Im sory

Skill
User Off Offline

Quote
I forget ''Can'' false. ''Need'' true .

old Re: Chat Editor

GeoB99
Moderator Off Offline

Quote
Would you mind elaborating with what you said? Do you mean returning "false" and/or "true"? I don't see what is the purpose for a return in user Rainoth code as these "return false" and "return true" are kind of booleans. At least, cs2d lua hook say doesn't need these returns. I might go wrong (and if so, is appreciated if someone corrects me) but still is more better if you explain what do you mean.

Additional prerequisite: stop using smiles in a row as they're not intended in that way and this makes you a childish person. You're basically even violating the rules by doing so.

Edit1: Nevermind, I've got the meaning. But still read the second part regard using smiles.
edited 1×, last 05.10.15 08:19:51 pm
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview