[JASS]Mute someone/make him unable to chat with a command

General talk about editing, cheating, and deprotecting maps.

Moderator: Cheaters

User avatar
eddydu555
Senior Member
Posts: 123
Joined: August 27th, 2010, 7:14 am

[JASS]Mute someone/make him unable to chat with a command

Post by eddydu555 »

Yo who can give me required script i need to put in war3map.j in order to make someone unable to use chat ?
User avatar
KangTooJee
Old Wrinkly Member
Posts: 202
Joined: September 15th, 2010, 5:09 am
Title: Legenda

Re: [JASS]Mute someone/make him unable to chat with a comman

Post by KangTooJee »

i dunno if it is possible.. need jass expert here
User avatar
haxorico
Super Moderator
Posts: 3190
Joined: February 24th, 2009, 1:31 pm
Location: JEW LAND

Re: [JASS]Mute someone/make him unable to chat with a comman

Post by haxorico »

Only thing i can thinm of is if he uses the chat, he will get kicked (or character killed or somthing along this lines)
Cant think of any other way. Unless you saw a map with what you are asking for and ill look into it...
Image
Spoiler:
(02:24:09)

Code: Select all

ChatBot: FatherSpace logs into the Chat.
(02:24:28) Lanaya: Gtfo ken.
(02:24:33) ChatBot: FatherSpace logs out of the Chat.
(02:24:40) Lanaya: Thought so. bitch.
(02:24:44) ChatBot: FatherSpace logs into the Chat.
(02:24:48) FatherSpace: Can I come back yet?
(02:24:51) Lanaya: What'd i say earlier.
(02:24:51) Lanaya: No.
(02:24:58) FatherSpace: Let's try this...
(02:25:01) ChatBot: Lanaya has been logged out (Kicked).

Code: Select all


(14:33:51) 2Pac: Do you know what'S so funny?
(14:34:01) Lanaya: No, please show me.
(14:34:07) 2Pac: This.
(14:34:09) ChatBot: Lanaya has been logged out (Kicked).
(14:34:10) 2Pac:


Code: Select all

(14:35:59) haxorico: No one will belive me if I say "I got this song from 2pac on MSN" lolz ^^
(14:36:02) Lanaya: lolz.
(14:36:16) 2Pac: I AIN'T DEAD FFS.
(14:36:26) 2Pac: I'm a living legend, y'now.
(14:37:17) haxorico: why is 2Pac a legend?
(14:37:28) Lanaya: He's the worse rapper evar.

Code: Select all

(15:42:51) Lanaya: can i suck , . . .

Code: Select all

(13:55:21) ChatBot: 2Pac rolls 1d100 and gets 1.
(13:55:21) ChatBot: haxorico rolls 1d2 and gets 2.
(13:55:27) haxorico: owned?

Code: Select all

GeorgeMots: xplain what happens in SP. Why cant you save?
dast.-:i need play with 2 players

Code: Select all

(21:53:08) (673237): plzplzplz, im sorry about before.
(21:53:26) FatherSpace: I'm sorry you were born.
(21:53:31) ChatBot: (673237) has been logged out (Kicked).


Code: Select all

(10:08:02) Bartimaeus: you do know run I youtube channel for my favorite music, right?
User avatar
Fukki
Old Wrinkly Member
Posts: 226
Joined: April 19th, 2010, 1:48 pm
Location: In The World

Re: [JASS]Mute someone/make him unable to chat with a comman

Post by Fukki »

Image
User avatar
KangTooJee
Old Wrinkly Member
Posts: 202
Joined: September 15th, 2010, 5:09 am
Title: Legenda

Re: [JASS]Mute someone/make him unable to chat with a comman

Post by KangTooJee »

^ i see.. i think it was hiding ur chat and change it into displaytext so u can filter the chat..
nice find btw
User avatar
KangTooJee
Old Wrinkly Member
Posts: 202
Joined: September 15th, 2010, 5:09 am
Title: Legenda

Re: [JASS]Mute someone/make him unable to chat with a comman

Post by KangTooJee »

i found a mute GUI trigger havent tested it yet
Spoiler:
Mute
Events
Player - Player 1 (Red) types a chat message containing <Empty String> as A substring
Conditions
Or - Any (Conditions) are true
Conditions
(Substring((Entered chat string), 1, 6)) Equal to -mute
(Substring((Entered chat string), 1, 6)) Equal to -Mute
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Or - Any (Conditions) are true
Conditions
(Substring((Entered chat string), 7, 10)) Equal to blue
(Substring((Entered chat string), 7, 10)) Equal to Blue
Then - Actions
Set TempInteger = 4
Set Player = Player 2 (Blue)
Set ColorName = Blue
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Or - Any (Conditions) are true
Conditions
(Substring((Entered chat string), 7, 10)) Equal to teal
(Substring((Entered chat string), 7, 10)) Equal to Teal
Then - Actions
Set TempInteger = 4
Set Player = Player 3 (Teal)
Set ColorName = Teal
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Or - Any (Conditions) are true
Conditions
(Substring((Entered chat string), 7, 12)) Equal to purple
(Substring((Entered chat string), 7, 12)) Equal to Purple
Then - Actions
Set TempInteger = 6
Set Player = Player 4 (Purple)
Set ColorName = Purple
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Or - Any (Conditions) are true
Conditions
(Substring((Entered chat string), 7, 12)) Equal to yellow
(Substring((Entered chat string), 7, 12)) Equal to Yellow
Then - Actions
Set TempInteger = 6
Set Player = Player 5 (Yellow)
Set ColorName = Yellow
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Or - Any (Conditions) are true
Conditions
(Substring((Entered chat string), 7, 12)) Equal to orange
(Substring((Entered chat string), 7, 12)) Equal to Orange
Then - Actions
Set TempInteger = 6
Set Player = Player 6 (Orange)
Set ColorName = Orange
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Or - Any (Conditions) are true
Conditions
(Substring((Entered chat string), 7, 11)) Equal to green
(Substring((Entered chat string), 7, 11)) Equal to Green
Then - Actions
Set TempInteger = 5
Set Player = Player 7 (Green)
Set ColorName = Green
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Or - Any (Conditions) are true
Conditions
(Substring((Entered chat string), 7, 10)) Equal to pink
(Substring((Entered chat string), 7, 10)) Equal to Pink
Then - Actions
Set TempInteger = 4
Set Player = Player 8 (Pink)
Set ColorName = Pink
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Or - Any (Conditions) are true
Conditions
(Substring((Entered chat string), 7, 10)) Equal to gray
(Substring((Entered chat string), 7, 10)) Equal to Gray
(Substring((Entered chat string), 7, 10)) Equal to grey
(Substring((Entered chat string), 7, 10)) Equal to Grey
Then - Actions
Set TempInteger = 4
Set Player = Player 9 (Gray)
Set ColorName = Gray
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Or - Any (Conditions) are true
Conditions
(Substring((Entered chat string), 7, 16)) Equal to Light blue
(Substring((Entered chat string), 7, 16)) Equal to light blue
(Substring((Entered chat string), 7, 16)) Equal to Light Blue
(Substring((Entered chat string), 7, 16)) Equal to light Blue
Then - Actions
Set TempInteger = 10
Set Player = Player 10 (Light Blue)
Set ColorName = Light Blue
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Or - Any (Conditions) are true
Conditions
(Substring((Entered chat string), 7, 16)) Equal to Dark green
(Substring((Entered chat string), 7, 16)) Equal to dark green
(Substring((Entered chat string), 7, 16)) Equal to Dark Green
(Substring((Entered chat string), 7, 16)) Equal to dark green
Then - Actions
Set TempInteger = 10
Set Player = Player 11 (Dark Green)
Set ColorName = Dark Green
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Or - Any (Conditions) are true
Conditions
(Substring((Entered chat string), 7, 11)) Equal to brown
(Substring((Entered chat string), 7, 11)) Equal to Brown
Then - Actions
Set TempInteger = 5
Set Player = Player 12 (Brown)
Set ColorName = Brown
Else - Actions
Set PlayerName[(Player number of Player)] = (Name of Player)
Set MuteTime[(Player number of Player)] = (Integer((Substring((Entered chat string), (8 + TempInteger), (Length of (Entered chat string))))))
Player - Set name of Player to ( + (Name of Player))
Game - Display to (All players) for 10.00 seconds the text: ((Name of (Triggering player)) + ( has muted + (ColorName + ( for + ((String(MuteTime[(Player number of Player)])) + seconds.)))))
User avatar
eddydu555
Senior Member
Posts: 123
Joined: August 27th, 2010, 7:14 am

Re: [JASS]Mute someone/make him unable to chat with a comman

Post by eddydu555 »

I go try it and tell you if it works