include( "./ObjectSelectionSaver/ObjectSelectionSaver.lpr");
!listsel -> open selections menu
!savebutt -> show save button without the GUI
!savesel -> save selection to database
!loadsel -> load selection from database
!rensel -> rename selection
!delsel -> delete selection from database
Only users with their username included in the superusers.txt file can delete/rename all selections, otherwise a user can only delete/rename selections that he created.
Rightclicking +- buttons for changing the items per page number will increase/decrease the number by 5.
Clicking 'Num Of Items per page' button will open input window where you can type in the number.
Rightclicking 'next' or 'previous' paging buttons will jump to last/first page.
Rightclicking item buttons will copy the item name to the chat, you can use this for example to bring the name to the 'rename' window by pressing up arrow button on your keyboard, just like you do when copying a link from chat etc.
The !savebutt command works as a switch - second execution will hide the Save button.
<?php
##################
#Swearword filter#
##################
#Specify a list of swearwords seperated by ,
#Specify a file with swearwords, one word per line
#-------------------------------------------------------------------
#$SwearWordsList = "****,asholes,bastard,idiot";
$SwearWordsList = "&./swearwords.txt";
$SwearWordsMax = 2; # Maximum number of allowed swearwords per session
Event OnSwearWords1( $userName ) # Player event
privMsg( langEngine( "%{main_swear11}%" ) );
privMsg( langEngine( "%{main_swear12}%", GetCurrentPlayerVar("SwearWordsRem") ) );
EndEvent
Event OnSwearWords2( $userName ) # Player event
privMsg( langEngine( "%{main_swear21}%" ) );
cmdLFS( "/spec " . GetCurrentPlayerVar("NickName") );
EndEvent
?>
<?php
$SwearWordsList = "&./swearwords.txt";
$SwearWordsMax = 2; # Maximum number of allowed swearwords per session
Event OnSwearWords1( $userName ) # Player event
privMsg( langEngine( "%{main_swear11}%" ) );
privMsg( "You will be kicked in ^2" . GetCurrentPlayerVar("SwearWordsRem") . "^1 more attempt(s)" );
EndEvent
Event OnSwearWords2( $userName ) # Player event
privMsg( "Too many swearwords, kicked" );
cmdLFS( "/kick " . GetCurrentPlayerVar("UserName") );
EndEvent
?>