Mr BrycE Posted June 13, 2012 Group: Members Topic Count: 125 Topics Per Day: 0.03 Content Count: 595 Reputation: 24 Joined: 02/23/12 Last Seen: April 1, 2018 Share Posted June 13, 2012 can i reuqest an NPC that it can mute or ban a player when they say a certain word better if word's' in that area... Quote Link to comment Share on other sites More sharing options...
Joseph Posted June 14, 2012 Group: Members Topic Count: 5 Topics Per Day: 0.00 Content Count: 341 Reputation: 43 Joined: 01/10/12 Last Seen: June 29, 2020 Share Posted June 14, 2012 Set your own restricted words. map,x,y,z script Name -1,{ end; OnInit: setarray .@w$, "fuck","noob","lol"; // Restricted Words for ( set .@i, 0; .@i < getarraysize(.@w$); set .@i, .@i + 1 ) defpattern 1,".*"+.@w$[.@i]+".*","OnRestrict"; activatepset 1; end; OnRestrict: dispbottom "You will be banned for 1 year for saying the restricted word in 5 seconds."; sleep2 5000; atcommand "@ban +1y " + strcharinfo(0); end; } Quote Link to comment Share on other sites More sharing options...
Bahmut Posted June 14, 2012 Group: Members Topic Count: 17 Topics Per Day: 0.00 Content Count: 382 Reputation: 39 Joined: 01/17/12 Last Seen: February 13, 2020 Share Posted June 14, 2012 I don't think this is possible via rA NPC scripting. I think you will have to make a source edit or use the normal kRO swearword filter. Quote Link to comment Share on other sites More sharing options...
Mr BrycE Posted June 15, 2012 Group: Members Topic Count: 125 Topics Per Day: 0.03 Content Count: 595 Reputation: 24 Joined: 02/23/12 Last Seen: April 1, 2018 Author Share Posted June 15, 2012 (edited) there's an error i already do tabs.. line after and before the 1st end; hmm after removing errors.. it doesnt work >.< Edited June 15, 2012 by Mr BrycE Quote Link to comment Share on other sites More sharing options...
Emistry Posted June 15, 2012 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2369 Joined: 10/28/11 Last Seen: Sunday at 05:32 PM Share Posted June 15, 2012 maybe you can try this ? http://www.eathena.w...38710&hl=manner but not sure did it work for rAthena Quote Link to comment Share on other sites More sharing options...
Mr BrycE Posted June 15, 2012 Group: Members Topic Count: 125 Topics Per Day: 0.03 Content Count: 595 Reputation: 24 Joined: 02/23/12 Last Seen: April 1, 2018 Author Share Posted June 15, 2012 (edited) @Emistry do i need to diff my client with this one? i remembered that the diff has Enable Swearing filter? also, the link that you gave is it really working? because i saw the comments and i think its not 100% working...hmmm... Edited June 15, 2012 by Mr BrycE Quote Link to comment Share on other sites More sharing options...
Joseph Posted June 15, 2012 Group: Members Topic Count: 5 Topics Per Day: 0.00 Content Count: 341 Reputation: 43 Joined: 01/10/12 Last Seen: June 29, 2020 Share Posted June 15, 2012 (edited) If you want the NPC to appear then change the NPC sprite, which is located at the header. Edited June 15, 2012 by Joseph Quote Link to comment Share on other sites More sharing options...
Mr BrycE Posted June 15, 2012 Group: Members Topic Count: 125 Topics Per Day: 0.03 Content Count: 595 Reputation: 24 Joined: 02/23/12 Last Seen: April 1, 2018 Author Share Posted June 15, 2012 before posting that it doesnt work i already tried that...and test if the words will ban me. nothing happens.. Quote Link to comment Share on other sites More sharing options...
Joseph Posted June 15, 2012 Group: Members Topic Count: 5 Topics Per Day: 0.00 Content Count: 341 Reputation: 43 Joined: 01/10/12 Last Seen: June 29, 2020 Share Posted June 15, 2012 How about @reloadscript? If still got problem, they you might wanna see this http://rathena.org/wiki/PCRE Quote Link to comment Share on other sites More sharing options...
Mr BrycE Posted June 15, 2012 Group: Members Topic Count: 125 Topics Per Day: 0.03 Content Count: 595 Reputation: 24 Joined: 02/23/12 Last Seen: April 1, 2018 Author Share Posted June 15, 2012 (edited) woot...forgot about that one..its working now. thanks man.. i cant reload that easily im so sorry.. xD Oh oh.. Joseph, can you make it like....this time when they say that word it will be typed like this .. *** can you do that? or can you add GM lvl :-) im always saying the word hahah... Edited June 15, 2012 by Mr BrycE Quote Link to comment Share on other sites More sharing options...
Joseph Posted June 15, 2012 Group: Members Topic Count: 5 Topics Per Day: 0.00 Content Count: 341 Reputation: 43 Joined: 01/10/12 Last Seen: June 29, 2020 Share Posted June 15, 2012 Add if ( getgroupid() == 99 ) end; After OnRestrict: As for the ****, you can try to get support from source request section. Quote Link to comment Share on other sites More sharing options...
Mr BrycE Posted June 15, 2012 Group: Members Topic Count: 125 Topics Per Day: 0.03 Content Count: 595 Reputation: 24 Joined: 02/23/12 Last Seen: April 1, 2018 Author Share Posted June 15, 2012 correct me if im wrong.. like this? OnRestrict: if ( getgroupid() == 99 ) end; dispbottom "You will be banned for 1mn for saying the restricted word in 5 seconds."; sleep2 5000; atcommand "@nuke " + strcharinfo(0); atcommand "@ban +1mn " + strcharinfo(0); end; } Quote Link to comment Share on other sites More sharing options...
Joseph Posted June 15, 2012 Group: Members Topic Count: 5 Topics Per Day: 0.00 Content Count: 341 Reputation: 43 Joined: 01/10/12 Last Seen: June 29, 2020 Share Posted June 15, 2012 You're right. Quote Link to comment Share on other sites More sharing options...
Mr BrycE Posted June 15, 2012 Group: Members Topic Count: 125 Topics Per Day: 0.03 Content Count: 595 Reputation: 24 Joined: 02/23/12 Last Seen: April 1, 2018 Author Share Posted June 15, 2012 Thanks again man.. Quote Link to comment Share on other sites More sharing options...
Question
Mr BrycE
can i reuqest an NPC that
it can mute or ban a player when they say a certain word better if word's' in that area...
Link to comment
Share on other sites
13 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.