Jump to content
  • 0

@jailtime


youtube

Question


  • Group:  Members
  • Topic Count:  74
  • Topics Per Day:  0.02
  • Content Count:  171
  • Reputation:   0
  • Joined:  06/19/13
  • Last Seen:  

when the players say the badword automatic jail in 1hr please share jail


 


 


 


Link to comment
Share on other sites

5 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  96
  • Topics Per Day:  0.02
  • Content Count:  554
  • Reputation:   14
  • Joined:  09/24/12
  • Last Seen:  

I have one but... it seem only in a small place that this npc can recover rude word...
Btw this in not jail but mute the for a minute..
Here.. 

prontera,156,176,5    script    restricted_manner    -1,{
OnInit:
    setarray .@bad_word$, "your rude word", "your rude word", "your rude word", "your rude word", "your rude word"; // add as your content lol
    .@size_b = getarraysize( .@bad_word$ );
    for( ; .@i < .@size_b; .@i++ )
        defpattern 1, "([^:]+):.*\\s"+ .@bad_word$[.@i] +".$", "warning";
    activatepset 1;
    end;
warning:
    @warning++;
    if ( @warning == 3 ) {
        @warning = 0;
        deltimer strnpcinfo(0) +"::OnDelay";
        atcommand "@mute 5 "+ strcharinfo(0);
    }
    else {
        deltimer strnpcinfo(0) +"::OnDelay";
        addtimer 300000, strnpcinfo(0) +"::OnDelay";
        message strcharinfo(0), "Be careful with your language... Warning "+ @warning +"/3";
    }
    end;
OnDelay:
    @warning = 0;
    end;
}


This script only give you 3 time warning then if said more the rude word he or she will be muted..

 

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  74
  • Topics Per Day:  0.02
  • Content Count:  171
  • Reputation:   0
  • Joined:  06/19/13
  • Last Seen:  

i got error when i use this is the SS

2n72m82.jpg



-    script    restricted_manner    -1,{
OnInit:
    setarray .@bad_word$, "tangina", "t@ngin@", "t@ng1ng@", "tanga", "t@ng@" , "t@nga", "bobo" , "bob0";
    .@size_b = getarraysize( .@bad_word$ );
    for( ; .@i < .@size_b; .@i++ )
        defpattern 1, "([^:]+):.*\\s"+ .@bad_word$[.@i] +".$", "warning";
    activatepset 1;
    end;
warning:
    @warning++;
    if ( @warning == 3 ) {
        @warning = 0;
        deltimer strnpcinfo(0) +"::OnDelay";
        atcommand "@mute 5 "+ strcharinfo(0);
    }
    else {
        deltimer strnpcinfo(0) +"::OnDelay";
        addtimer 300000, strnpcinfo(0) +"::OnDelay";
        message strcharinfo(0), "Be careful with your language... Warning "+ @warning +"/3";
    }
    end;
OnDelay:
    @warning = 3;
    end;
}
Edited by youtube
Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  2407
  • Reputation:   613
  • Joined:  07/05/12
  • Last Seen:  


- script restricted_manner -1,{

OnInit:

setarray .@bad_word$, "tangina", "t@ngin@", "t@ng1ng@", "tanga", "t@ng@" , "t@nga", "bobo" , "bob0";

set .@size_b, getarraysize( .@bad_word$ );

for( ; .@i < .@size_b; set .@i, .@i+1 )

defpattern 1, "([^:]+):.*\\s"+ .@bad_word$[.@i] +".$", "warning";

activatepset 1;

end;

warning:

set @warning, @warning+1;

if ( @warning == 3 ) {

set @warning, 0;

deltimer strnpcinfo(0) +"::OnDelay";

atcommand "@mute 5 "+ strcharinfo(0);

}

else {

deltimer strnpcinfo(0) +"::OnDelay";

addtimer 300000, strnpcinfo(0) +"::OnDelay";

message strcharinfo(0), "Be careful with your language... Warning "+ @warning +"/3";

}

end;

OnDelay:

set @warning, 3;

end;

}

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  96
  • Topics Per Day:  0.02
  • Content Count:  554
  • Reputation:   14
  • Joined:  09/24/12
  • Last Seen:  

There he/she is.. Sir capuche...
He/She can help you out.. ^ ^

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  74
  • Topics Per Day:  0.02
  • Content Count:  171
  • Reputation:   0
  • Joined:  06/19/13
  • Last Seen:  

yea im using EA

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...