Mr BrycE Posted June 13, 2012 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
Bahmut Posted June 14, 2012 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
Joseph Posted June 14, 2012 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
Mr BrycE Posted June 15, 2012 Author 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
Emistry Posted June 15, 2012 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
Mr BrycE Posted June 15, 2012 Author 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
Joseph Posted June 15, 2012 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
Mr BrycE Posted June 15, 2012 Author 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
Joseph Posted June 15, 2012 Posted June 15, 2012 How about @reloadscript? If still got problem, they you might wanna see this http://rathena.org/wiki/PCRE Quote
Mr BrycE Posted June 15, 2012 Author 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
Joseph Posted June 15, 2012 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
Mr BrycE Posted June 15, 2012 Author 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
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...
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.