for god sake, it IS presentable! O_O
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
COMMANDS[GROUP_ADMIN] = ['admin', 'levelup']DESCRIPTIONS['levelup'] = 'Levels up a player by X levels'PARAMETERS['levelup'] = 'USERNAME LEVEL'when /\A\/levelup (\S+) (\S+)\Z/ # levelup a player
command_user_levelup($1, $2)
return true #--------------------------------------------------------------------------
# Executes chat command for usergroup change.
# username - username of the player
# level - new user level
#--------------------------------------------------------------------------
def command_user_levelup(username, level)
self.send("LVL#[username]\lu#[level]")
end"try_user_levelup(username, level)"check = RMXOS.server.sql.query("SELECT username, level FROM users WHERE username = '#{RMXOS.fix_string(username)}' AND level = '#{RMXOS.fix_string(level)}'")"when /\LVL(.+)\t(.+)/ # change player level"" `level` int(10) NOT NULL default 1, ",
Thanks!

<script type="text/JavaScript">
function html2entities(sometext){
var re=/[(<>"'&]/g
arguments[i].value=sometext.replace(re, function(m){return replacechar(m)})
alert(arguments[i].value);
}
function replacechar(match){
if (match=="<")
return "<"
else if (match==">")
return ">"
else if (match=="\"")
return """
else if (match=="'")
return "'"
else if (match=="&")
return "&"
}
//html2entities(document.forms.myform.textarea.value); //replace "<", ">", "&" and quotes in a form field with corresponding HTML entity instead
function generate(strValue)
{
var newValue;
newValue = replaceString(strValue, "<br>", "<br/>");
newValue = replaceString(strValue, /\=/g, "\\=");
document.forms[0].textarea.value = newValue;
}
function replaceString(inputStr,SearchPattern,ReplaceWith)
{
return inputStr.replaceAll(SearchPattern,ReplaceWith);
}
</script>
<form name="form1" method="post" action="">
<textarea name="textarea" onkeyUp="javascript:generate(document.forms.myform.textarea.value);"></textarea><br>
<input type="button" name="Generate" value="Generate">
</form>
Also, don't forget to port forward the port or ports you are using for your game!