Jump to content
  • 0

NPC anti-(Certain Word)


Mr BrycE

Question


  • Group:  Members
  • Topic Count:  125
  • Topics Per Day:  0.03
  • Content Count:  595
  • Reputation:   23
  • Joined:  02/23/12
  • Last Seen:  

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


  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  341
  • Reputation:   43
  • Joined:  01/10/12
  • Last Seen:  

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;
}

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  17
  • Topics Per Day:  0.00
  • Content Count:  382
  • Reputation:   38
  • Joined:  01/17/12
  • Last Seen:  

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.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  125
  • Topics Per Day:  0.03
  • Content Count:  595
  • Reputation:   23
  • Joined:  02/23/12
  • Last Seen:  

there's an error i already do tabs..

line after and before the 1st end;

hmm after removing errors..

it doesnt work >.<

Edited by Mr BrycE
Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

maybe you can try this ?

http://www.eathena.w...38710&hl=manner

but not sure did it work for rAthena

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  125
  • Topics Per Day:  0.03
  • Content Count:  595
  • Reputation:   23
  • Joined:  02/23/12
  • Last Seen:  

@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 by Mr BrycE
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  341
  • Reputation:   43
  • Joined:  01/10/12
  • Last Seen:  

If you want the NPC to appear then change the NPC sprite, which is located at the header.

Edited by Joseph
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  125
  • Topics Per Day:  0.03
  • Content Count:  595
  • Reputation:   23
  • Joined:  02/23/12
  • Last Seen:  

before posting that it doesnt work i already tried that...and test if the words will ban me. nothing happens..

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  341
  • Reputation:   43
  • Joined:  01/10/12
  • Last Seen:  

How about @reloadscript?

If still got problem, they you might wanna see this http://rathena.org/wiki/PCRE

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  125
  • Topics Per Day:  0.03
  • Content Count:  595
  • Reputation:   23
  • Joined:  02/23/12
  • Last Seen:  

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 by Mr BrycE
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  341
  • Reputation:   43
  • Joined:  01/10/12
  • Last Seen:  

Add

if ( getgroupid() == 99 ) end;

After

OnRestrict:

As for the ****, you can try to get support from source request section.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  125
  • Topics Per Day:  0.03
  • Content Count:  595
  • Reputation:   23
  • Joined:  02/23/12
  • Last Seen:  

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;
}

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  341
  • Reputation:   43
  • Joined:  01/10/12
  • Last Seen:  

You're right.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  125
  • Topics Per Day:  0.03
  • Content Count:  595
  • Reputation:   23
  • Joined:  02/23/12
  • Last Seen:  

Thanks again man.. /no1

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...