Welcome Guest [Log In] [Register]
We hope you enjoy your visit.


You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.


Join our community!


If you're already a member please log in to your account to access all of our features:

Username:   Password:
Add Reply
Server Status and IP Address
Topic Started: Oct 7 2011, 04:01 AM (3,375 Views)
+Sandslash
Member Avatar
inferior
[ *  *  *  *  *  *  *  * ]
ah well
Offline Profile Quote Post Goto Top
 
Fats
Feebas
[ * ]
I'm willing to host a server 24/7 if you guys are interested. i've done it before and this sparked my interests thanks to hotdogturtle. get back to me whenever
Offline Profile Quote Post Goto Top
 
+hotdogturtle
Member Avatar
Tangela
[ *  *  *  *  *  *  *  * ]
Fats
Nov 29 2011, 09:18 PM
I'm willing to host a server 24/7 if you guys are interested. i've done it before and this sparked my interests thanks to hotdogturtle. get back to me whenever
This is your official notice to get back here and start hosting.
Posted Image
Offline Profile Quote Post Goto Top
 
Fats
Feebas
[ * ]
K SO I'LL PUT IT UP WHEN I REMEMBER HOW TO PUT IT UP! (basically it'll be up within 20 mins, eating food atm and i want to eat it all. delicous lasagna... delicious.) need a list of people who get auth btw
Offline Profile Quote Post Goto Top
 
+hotdogturtle
Member Avatar
Tangela
[ *  *  *  *  *  *  *  * ]
http://pokemon-online.eu/forums/showthread.php?23-Tutorial-on-how-to-run-a-server

Make sure you get the new mod list that was updated today :)
Posted Image
Offline Profile Quote Post Goto Top
 
Fats
Feebas
[ * ]
ARE YOU SAYING I DONT KNOW HOW TO RUN A SERVER? UGH THE NERVE OF SOME PEOPLE. no longer doing this fk hdt

edit: Fats Being Awesome is up now. will change title when i get head honcho confirmation to run server
Edited by Fats, Nov 29 2011, 10:01 PM.
Offline Profile Quote Post Goto Top
 
+Sandslash
Member Avatar
inferior
[ *  *  *  *  *  *  *  * ]
head honcho approves

Spoiler: click to toggle
Offline Profile Quote Post Goto Top
 
+hotdogturtle
Member Avatar
Tangela
[ *  *  *  *  *  *  *  * ]
The IP of Fats Being Awesome is 76.19.141.88:5080.
Posted Image
Offline Profile Quote Post Goto Top
 
meddle
Member Avatar
use kingler
[ *  *  *  *  *  * ]
wtb server up during pacific time evenings :(
Posted Image Posted ImagePosted ImagePosted Image
Maximize Defensive EVs (Calculator)
Offline Profile Quote Post Goto Top
 
+Sandslash
Member Avatar
inferior
[ *  *  *  *  *  *  *  * ]
server needs moar scripts/tiers (hi spanky) and we're set
Offline Profile Quote Post Goto Top
 
Fats
Feebas
[ * ]
SOMEONE SCRIPT FOR US.
Offline Profile Quote Post Goto Top
 
+Sandslash
Member Avatar
inferior
[ *  *  *  *  *  *  *  * ]
not sure where i need to say this but
INSULTING OTHER MEMBERS IS NOT ALLOWED UNDER ANY CIRCUMSTANCES
this "i know better than you and you're a fucking dumbass" attitude needs to die, can you guys be nicer towards each other? i'm not saying you should go all bawww or anything just stop it with the insults lol

if i don't like someone's attitude i will go angry super moderator and start one of my kicking sprees, i expect no complaints if that happens uwehehehe


i surrender
Edited by Sandslash, Dec 4 2011, 03:53 PM.
Offline Profile Quote Post Goto Top
 
+Sir Spanky
Member Avatar
Less bananated than Shippou
[ *  *  *  *  *  *  *  * ]
Can you stop with the strikethrough please lol, you are definitely overdoing it on the forums ¬_¬
Edited by Sandslash, Dec 4 2011, 05:46 PM.
Neon Twilight: thats really gay
Neon Twilight: so gay
Neon Twilight: gayer than bbm and spanky sex gay
Offline Profile Quote Post Goto Top
 
+Sandslash
Member Avatar
inferior
[ *  *  *  *  *  *  *  * ]
silence
Offline Profile Quote Post Goto Top
 
+Undergamed
IM GAY
[ *  *  *  *  *  *  *  * ]
Code:
 
// This script requires PO 1.0.21 or higher.

// = Language.

// Will add properties from one object to another.
// Will overwrite property if it is already exist.
function push_properties(from, to)
{
for (var p in from) {
to[p] = from[p];
}
}

// Will escape "&", ">", and "<" symbols for HTML output.
function html_escape(text)
{
var m = text.toString();
if (m.length > 0) {
return m.replace(/\&/g, "&").replace(/\</g, "<").replace(/\>/g, ">");
}else{
return "";
}
}
// = Globals here. BOO!

// Changeable.

var MESSAGE_LENGTH_MAX = 999999;
var FLOOD_DELAY_MS = 0;

// Cooldowns are in seconds.
var SHORT_COOLDOWN = 0;
var STANDARD_COOLDOWN = 0;
var LONG_COOLDOWN = 0;

var WELCOME_MESSAGES = [
"Welcome to AAMS"
];
var CLAUSE_SLEEP = 1;
var CLAUSE_FREEZE = 2;
var CLAUSE_DISALLOW_SPECTATOR = 4;
var CLAUSE_ITEM = 8;
var CLAUSE_CHALLENGE_CUP = 16;
var CLAUSE_NO_TIMEOUT = 32;
var CLAUSE_SPECIES = 64;
var CLAUSE_REARRANGE_TEAMS = 128;
var CLAUSE_SELF_KO = 256;

var HANDLERS = new POHandlers();

var MESSAGE_INFORMATION = new POMessageType("#3830A2", "❖", "#268885", "ⓘ");
var MESSAGE_WARNING = new POMessageType("#957025", "❗", "#BC150F", "✗");
var MESSAGE_IMPORTANT = new POMessageType("blue", "☯");
var MESSAGE_ME = new POMessageType("#A144AF", "♫");

var BAD_NAMES = [
/(.)\1{3}/,
/^xx.*xx$/,
/^xll.*llx$/,
/^\[admin\]/,
/( )|(s[uµ]ck)|(b[i1\!ˇ]tch)|(f[a4@λ\^]gg[o0]t)|(n[i1\!ˇ]gg)|(fuck)|(p[i1\!ˇ]ss)|(v[a4@λ\^]g[i1\!ˇ]n[a4@λ\^])|(h[uµ]r+d[uµ]r)|(p[e3]n[i1\!ˇ]s)|(c[uµ]nt)|(d[i1\!ˇ]ckh[e3][a4@λ\^]d)|(8=+D)|(sh[i1\!ˇ]t)|(h[i1\!ˇ]tl[e3]r)|(st[a4@λ\^]l[i1\!ˇ]n)/
];
var BAD_NAMES_SPECIAL_SYMBOLS = /[\u0000-\u001F\u0300-\u036F\u1DC0-\u1DFF\uFE20-\uFE2F\u20D0-\u20FF\uFE20–\uFE2F\u200F\u200E\u2028-\u202F\u000A\u000B\u000D\u0085-\u008D]/;
var NAME_CHECK_NON_CHARACTERS = /[\u0020-\u003C\u003E\u003F\u005D\u005F\u0060\u007B-\u007E]/;
// To block simple owner impersonation. See is_name_valid() helper.
var OWNER_NAME = "undergamed"; // Lowercased.
var OWNER_NAME_MATCH = /und[3eE]rg[a4@λ\^]m[3eE]d/;
// = "Classes".

function POChannel(id)
{
this.id = id;
this.muted = false;
this.welcome_message = "Welcome to AAMS!";
this.auth_only = false;
this.permanent = false;
}

function POGlobal(id) {
this.battles_allowed = true;
this.is_locked = false;
this.twisted_moves_desc = "";
this.twisted_types_desc = "";
}

function POHandlers()
{
// Basic ones will have priority over special ones.
// Number is an auth level.
this.basic_handlers = {
0: {
info: { handler: command_info },
me: { handler: command_me, cooldown: LONG_COOLDOWN },
},
1: {
kick: { handler: command_kick },
listmuted: { handler: command_listmuted },
mute: { handler: command_mute },
unmute: { handler: command_unmute }
},
2: {
cd: { handler: command_cd },
ban: { handler: command_ban },
unban: { handler: command_unban },
warn: { handler: command_warn }
},
3: {
battles: { handler: command_battles },
topic: { handler: command_topic },
lock: { handler: command_lock },
}
};
// Will add commands to higher level auths.
for (var i = 0; i < 3; ++i) {
for (var j = i + 1; j <= 3; ++j) {
push_properties(this.basic_handlers[i], this.basic_handlers[j]);
}
}
this.special_handlers = {
channel_master: {
listmuted: { handler: command_listmuted },
mute: { handler: command_mute },
topic: { handler: command_topic },
unmute: { handler: command_unmute }
}
};
}

// if color_all and symbol_all are not specified color and symbol are used.
function POMessageType(color, symbol, color_all, symbol_all)
{
this.color = color;
this.symbol = symbol;
if (color_all) {
this.color_all = color_all;
}else{
this.color_all = color;
}
if (symbol_all) {
this.symbol_all = symbol_all;
}else{
this.symbol_all = symbol;
}
}

function POUser(id)
{
this.id = id;
this.info = "";
this.levels = {
channel_master: false
};
this.muted = false;
//this.muted = (
// (sys.auth(id) == 0)
// && (!this.levels.channel_master)
// && (sys.getVal(CONFIG_FILE, "muted_ips/ip" + sys.ip(id)) == "true")
//);
this.force_abilities = false;
this.force_moves = false;
this.same_tier = false;
this.description = "";
this.old_description = "";
this.last_used = {};
this.logged_in_datetime = (new Date()).getTime();
this.last_message = this.logged_in_datetime;
this.saved_moves = [
[], [], [], [], [], []
];
this.saved_abilities = [];
}
// = Support functions.

function colorize_title(message)
{
return ("<span style='color: magenta;'>" + message + "</span>");
}


function handle_command(command_name, chan, src, data)
{
var src_auth = sys.auth(src);
if ((src_auth < 0) || (src_auth > 3)) return; // What auth is this again?
var src_object = SESSION.users(src);
var handler = HANDLERS.basic_handlers[src_auth][command_name];
if (!handler) {
// Non-DB auths here.
var non_db_levels = ["channel_master"];
for (var index in non_db_levels) {
var level = non_db_levels[index];
if (src_object.levels[level]) {
var special_handler = HANDLERS.special_handlers[level][command_name];
if (special_handler) {
handler = special_handler;
break; // Command found. Nothing else to do.
}
}
}
}
if (handler) {
// Check cooldown first.
var allowed_to_run = true;
var cooldown = handler.cooldown;
if (cooldown) {
var last_used_datetime = src_object.last_used[command_name];
if (!last_used_datetime) {
last_used_datetime = src_object.logged_in_datetime;
}
var current_datetime = (new Date()).getTime();
src_object.last_used[command_name] = current_datetime;
if (Math.abs(current_datetime - last_used_datetime) < (cooldown * 1000)) {
allowed_to_run = false;
}
}
if (allowed_to_run) {
// Call.
handler.handler(chan, src, data);
}else{
// Warn.
send_message(
MESSAGE_WARNING, src,
"Cooldown for /" + command_name
+ " command has not expired yet. Wait for "
+ cooldown + " seconds.", chan
);
}
}
}

function highest_auth_of(ip) {
var result = 0;
var aliases = sys.aliases(ip);
if (aliases) {
var total = aliases.length;
for (var i = 0; i < total; ++i) {
var current_auth = sys.dbAuth(aliases[i]);
if (result < current_auth) result = current_auth;
}
}
return result;
}

// Will style name with correct style (html).
function mimic_message_name_style(src) {
if (sys.auth(src) > 0) return "+<i><b>" + sys.name(src) + ":</b></i>";
return "<b>" + sys.name(src) + ":</b>";
}

// Is string suitable for displaying as message?
function is_message_valid(message)
{
// Too long?
if (message.length > MESSAGE_LENGTH_MAX) return false;
// Combining characters?
// u0300-u036F, u1DC0-u1DFF, uFE20-uFE2F, u20D0-u20FF, uFE20–uFE2F
// RLM (u200F), LRM (u200E)
// u2028-u202F (just in case)
// It's a single-line field anyway: \u000A\u000B\u000D\u0085-\u008D
if (/[\u0300-\u036F\u1DC0-\u1DFF\uFE20-\uFE2F\u20D0-\u20FF\uFE20–\uFE2F\u200F\u200E\u2028-\u202F\u000A\u000B\u000D\u0085-\u008D]/.test(message)) return false;
// Otherwise.
return true;
}

// Is string suitable for nickname?
function is_name_valid(name)
{
if (BAD_NAMES_SPECIAL_SYMBOLS.test(name)) return false;
var name_lower = name.toLowerCase();
// Skip some common non-letter symbols.
var name_effective = "";
for (var i = 0; i < name_lower.length; ++i) {
var current = name_lower[i];
if (!NAME_CHECK_NON_CHARACTERS.test(current)) name_effective = name_effective + current;
}
// Too short.
if (name_effective.length < 3) return false;
// Check banned names.
for (var i = 0; i < BAD_NAMES.length; ++i) {
if (BAD_NAMES[i].test(name_effective)) return false;
}
// No owner impersonating.
if ((name_lower != OWNER_NAME) && (OWNER_NAME_MATCH.test(name_effective))) return false;
return true;
}

function restore_player_abilities(source)
{
var source_object = SESSION.users(source);
for (var i = 0; i < 6; ++i) {
sys.changePokeAbility(source, i, source_object.saved_abilities[i]);
}
}

function restore_player_moves(source)
{
var source_object = SESSION.users(source);
for (var i = 0; i < 6; ++i) {
for (var j = 0; j < 4; ++j) {
sys.changePokeMove(source, i, j, source_object.saved_moves[i][j]);
}
}
}

function save_player_abilities(source)
{
var source_object = SESSION.users(source);
for (var i = 0; i < 6; ++i) {
source_object.saved_abilities[i] = sys.teamPokeAbility(source, i);
}
}

function save_player_moves(source)
{
var source_object = SESSION.users(source);
for (var i = 0; i < 6; ++i) {
for (var j = 0; j < 4; ++j) {
source_object.saved_moves[i][j] = sys.teamPokeMove(source, i, j);
}
}
}

function send_message(type, target, message, channel_id)
{
if (typeof(channel_id) == "undefined") {
sys.sendHtmlMessage(target, "<span style='color: " + type.color + ";'> " + type.symbol + " " + html_escape(message) + "</span>");
}else{
sys.sendHtmlMessage(target, "<span style='color: " + type.color + ";'> " + type.symbol + " " + html_escape(message) + "</span>", channel_id);
}
}

function send_message_all(type, message, channel_id)
{
if (typeof(channel_id) == "undefined") {
sys.sendHtmlAll("<span style='color: " + type.color_all + ";'> " + type.symbol_all + " " + html_escape(message) + "</span>");
}else{
sys.sendHtmlAll("<span style='color: " + type.color_all + ";'> " + type.symbol_all + " " + html_escape(message) + "</span>", channel_id);
}
}

// (un)mute commands helper. flag must be either true (mute) or false (unmute).
function set_mute(chan, src, data, flag)
{
if (data.length == 0) {
// Channel affected.
var channel_object = SESSION.channels(chan);
// Need change?
if (channel_object.muted != flag) {
channel_object.muted = flag;
if (flag) {
//sys.saveVal(CONFIG_FILE, "muted_channels/" + sys.channel(chan).toLowerCase(), "true");
send_message_all(MESSAGE_INFORMATION, "Channel was muted by " + sys.name(src) + ".", chan);
}else{
//sys.removeVal(CONFIG_FILE, "muted_channels/" + sys.channel(chan).toLowerCase());
send_message_all(MESSAGE_INFORMATION, "Channel is no longer muted.", chan);
}
}
}else{
// Some player affected.
var target_id = sys.id(data);
// Target exists?
if (target_id) {
// Can target be affected by this command?
if ((sys.auth(target_id) > 0) || (SESSION.users(target_id).levels.channel_master)) {
send_message(MESSAGE_WARNING, src, "Forbidden.", chan);
return;
}
// Since target id exists its POUser object must exist too. No need to check.
var target_object = SESSION.users(target_id);
// Need change?
if (target_object.muted != flag) {
target_object.muted = flag;
if (flag) {
//sys.saveVal(CONFIG_FILE, "muted_ips/ip" + sys.ip(target_id), "true");
send_message_all(MESSAGE_INFORMATION, sys.name(target_id) + " was muted by " + sys.name(src) + ".", CHANNEL_CORE);
}else{
//sys.removeVal(CONFIG_FILE, "muted_ips/ip" + sys.ip(target_id));
send_message_all(MESSAGE_INFORMATION, sys.name(target_id) + " is no longer muted.", CHANNEL_CORE);
}
}
}else{
send_message(MESSAGE_WARNING, src, "Player unknown.", chan);
}
}
}

// Will return either "." or "" depending on text's last character.
function tail_point(text)
{
var letter = text.charAt(text.length - 1);
if (letter == "." || letter == "?" || letter == "!" || letter == "‼" || letter == "⁈" || letter == "⁉" || letter == "…") {
return "";
}else{
return ".";
}
}




// = User commands.

function command_ban(chan, src, data) {
var target_name = data;
var target_ip = sys.dbIp(target_name);
var target_auth = highest_auth_of(target_ip);
if ((target_ip != "127.0.0.1") && (target_auth < 3) && (sys.auth(src) > target_auth)) {
var src_name = sys.name(src);
send_message_all(MESSAGE_IMPORTANT, target_name + " (" + target_ip + ") was banned by " + src_name + ".");
sys.ban(target_name);
} else {
send_message(MESSAGE_WARNING, src, target_name + " blocked your attack.", chan);
}
}

function command_battles(chan, src, data)
{
if (data.length == 0) return;
switch (data) {
case "off":
SESSION.global().battles_allowed = false;
send_message_all(MESSAGE_INFORMATION, "New battles were disabled by " + sys.name(src) + ".");
break;
case "on":
SESSION.global().battles_allowed = true;
send_message_all(MESSAGE_INFORMATION, "Battling is now possible.");
break;
case "status":
send_message(MESSAGE_INFORMATION, src, "Battling is " + (SESSION.global().battles_allowed ? "on" : "off") + ".", chan);
break;
}
}

function command_cd(chan, src, data)
{
var pos = data.indexOf(':');
if (pos == -1) return;
var target_id = sys.id(data.substring(0, pos));
if (target_id) {
if (sys.auth(target_id) >= sys.auth(src)) {
send_message(MESSAGE_WARNING, src, "Forbidden.", chan);
return;
}
var target_obj = SESSION.users(target_id);
var desc = data.substring(pos + 1);
if (desc == "-") {
target_obj.description = "";
sys.changeInfo(target_id, target_obj.old_description);
send_message(MESSAGE_INFORMATION, src, sys.name(target_id) + "'s description was reset.", chan);
}else{
target_obj.description = desc;
sys.changeInfo(target_id, desc);
send_message(MESSAGE_INFORMATION, src, sys.name(target_id) + "'s description was updated.", chan);
}
}
}
function command_info(chan, src, data)
{
if (data.length == 0) {
var your_info = SESSION.users(src).info;
if (your_info.length == 0) {
send_message(MESSAGE_INFORMATION, src, "Your info is empty.", chan);
} else {
send_message(MESSAGE_INFORMATION, src, "Your info is " + your_info + tail_point(your_info), chan);
}
}else{
var target = sys.id(data);
if (target) {
var target_object = SESSION.users(target);
if (target_object) {
var target_info = target_object.info;
if (target_info.length == 0) {
send_message(MESSAGE_INFORMATION, src, data + "'s info is empty.", chan);
} else {
send_message(MESSAGE_INFORMATION, src, data + "'s info is " + target_info + tail_point(target_info), chan);
}
} else {
send_message(MESSAGE_INFORMATION, src, "Player offline or unknown. ", chan);
}
} else {
send_message(MESSAGE_INFORMATION, src, "Player offline or unknown. ", chan);
}
}
}

function command_kick(chan, src, data) {
var target_id = sys.id(data);
if (target_id) {
var target_name = sys.name(target_id);
var target_ip = sys.ip(target_id);
var target_auth = highest_auth_of(target_ip);
if ((target_ip != "127.0.0.1") && (target_auth < 3) && (sys.auth(src) > target_auth)) {
var src_name = sys.name(src);
send_message(MESSAGE_IMPORTANT, src, "You kick " + target_name + ".", chan);
send_message_all(MESSAGE_IMPORTANT, target_name + " was kicked by " + src_name + ". [" + sys.channel(chan) + "]", CHANNEL_CORE);
send_message(MESSAGE_IMPORTANT, target_id, "You were kicked by " + src_name + ".");
sys.kick(target_id);
} else {
send_message(MESSAGE_WARNING, src, target_name + " blocked your attack.", chan);
}
} else {
send_message(MESSAGE_WARNING, src, "Target not found.", chan);
}
}

function command_listmuted(chan, src, data)
{
// Can src use this command?
var src_object = SESSION.users(src);
var result = "";
var online_users = sys.playerIds();
for (var u in online_users) {
if (u.muted) result += (sys.name(online_users[u]) + ", ");
}
if (result.length == 0) {
send_message(MESSAGE_INFORMATION, src, "No one is muted.", chan);
} else {
send_message(MESSAGE_INFORMATION, src, "Muted players: " + result + ".", chan);
}
}

function command_lock(chan, src, data)
{
if (data.length == 0) return;
switch (data) {
case "off":
SESSION.global().is_locked = false;
send_message_all(MESSAGE_INFORMATION, "Server unlocked.");
break;
case "on":
SESSION.global().is_locked = true;
send_message_all(MESSAGE_INFORMATION, "Server locked.");
break;
case "status":
send_message(MESSAGE_INFORMATION, src, "Server lock is " + (SESSION.global().is_locked ? "on" : "off") + ".", chan);
break;
}
}

function command_me(chan, src, data)
{
if (data.length == 0) return;
send_message_all(MESSAGE_ME, sys.name(src) + " " + data, chan);
}


function command_mute(chan, src, data)
{
set_mute(chan, src, data, true);
}

function command_topic(chan, src, data)
{
if (data.length == 0) {
var msg = SESSION.channels(chan).welcome_message;
if (msg) {
send_message(MESSAGE_INFORMATION, src, "Topic: " + msg, chan);
}else{
send_message(MESSAGE_INFORMATION, src, "Topic for this channel is empty.", chan);
}
}else{
if ((data) == "-") {
SESSION.channels(chan).welcome_message = "";
send_message_all(
MESSAGE_IMPORTANT,
"Topic for this channel is now empty. [" + sys.name(src) + "]", chan
);
}else{
var new_message = data + tail_point(data);
SESSION.channels(chan).welcome_message = new_message;
send_message_all(
MESSAGE_IMPORTANT,
"New topic: " + new_message + " [" + sys.name(src) + "]", chan
);
}
}
}


function command_unban(chan, src, data) {
send_message_all(MESSAGE_IMPORTANT, sys.name(src) + " used Bolt Angel on " + data + ".");
sys.unban(data);
}

function command_unmute(chan, src, data)
{
set_mute(chan, src, data, false);
}

function command_warn(chan, src, data)
{
if (data.length == 0) return;
sys.sendHtmlAll("<timestamp/><span style='background: #FFA869; color: #000; font-weight: bold;'>" + html_escape(sys.name(src)) + ": " + html_escape(data) + "</span>", chan);
}
// = Events.

function on_after_change_team(src)
{
if (!is_name_valid(sys.name(src))) {
send_message(MESSAGE_WARNING, src, "Your name is invalid.");
sys.kick(src);
return;
}
var src_object = SESSION.users(src);
src_object.old_description = sys.info(src);
if (src_object.description) {
sys.changeInfo(src, src_object.description);
}
save_player_abilities(src);
save_player_moves(src);
if (src_object.force_moves) {
force_player_moves(src);
}
if (src_object.force_abilities) {
force_player_abilities(src);
}
}

function on_after_channel_join(player_id, channel_id)
{
var msg = SESSION.channels(channel_id).welcome_message;
if (msg) {
send_message(MESSAGE_INFORMATION, player_id, msg, channel_id);
}
}

function on_after_log_in(src)
{
var src_object = SESSION.users(src);
send_message(MESSAGE_INFORMATION, src, "Feel free to insult Sandslosh.");
if (src_object.muted) {
send_message(MESSAGE_WARNING, src, "You are muted.");
}
src_object.old_description = sys.info(src);
}

function on_before_battle_matchup(src, target, clauses, rated, mode)
{
if (!SESSION.global().battles_allowed) {
sys.stopEvent();
send_message(MESSAGE_WARNING, src, "Battles currently disabled.");
}
}

function on_before_challenge_issued(src, target, clauses, rated, mode)
{
if (!SESSION.global().battles_allowed) {
sys.stopEvent();
send_message(MESSAGE_WARNING, src, "Battles currently disabled.");
}
if (SESSION.users(target).same_tier && (sys.tier(src) != sys.tier(target))) {
sys.stopEvent();
send_message(MESSAGE_WARNING, src, "You must have the same tier to battle this player.");
}
}

function on_before_channel_created(channel_id, channel_name, player_id)
{
if (player_id) {
if ((sys.auth(player_id) == 0) && (!SESSION.users(player_id).levels.channel_master)) {
sys.stopEvent();
return;
}
}
}

function on_before_channel_destroyed(channel_id)
{
if (SESSION.channels(channel_id).permanent) sys.stopEvent();
}

function on_before_channel_join(player_id, channel_id)
{
if (SESSION.channels(channel_id).auth_only && (sys.auth(player_id) < 1)) {
send_message(MESSAGE_WARNING, player_id, "This channel is restricted to auth only.");
sys.stopEvent();
}
}

function on_before_log_in(src)
{
if (SESSION.global().is_locked && (sys.auth(src) < 1)) {
send_message(
MESSAGE_WARNING,
src,
"Server in lockdown. Only auth can log in."
);
sys.stopEvent();
return;
}
if (!is_name_valid(sys.name(src))) {
send_message(
MESSAGE_WARNING,
src,
"Server in lockdown. Only auth can log in."
);
sys.stopEvent();
}
}

function on_before_chat_message(src, message, chan)
{
if (!is_message_valid(message)) {
sys.stopEvent();
return;
}
if ((message.length > 1) && (message[0] == '/' || message[0] == '!')) {
// Command.
sys.stopEvent();
var command, command_data = "";
var pos = message.indexOf(' ');
if (pos == -1) {
command = message.substring(1).toLowerCase();
} else {
command = message.substring(1, pos).toLowerCase();
command_data = message.substring(pos + 1);
}
handle_command(command, chan, src, command_data);
} else {
// Plain message.
var src_object = SESSION.users(src);
if ((sys.auth(src) == 0) && (SESSION.channels(chan).muted || src_object.muted)) {
// Mute it.
sys.stopEvent();
} else {
// Flood check.
var current_time = (new Date()).getTime();
if (Math.abs(current_time - src_object.last_message) < FLOOD_DELAY_MS) {
// Flood
sys.stopEvent();
} else {
if (message[0] == '>') {
// Green texting.
sys.sendHtmlAll(
"<span style='color:" + sys.getColor(src) + "'><timestamp/> "
+ mimic_message_name_style(src) + "</span> <span style='color:#060'>"
+ html_escape(message) + "</span>",
chan
);
sys.stopEvent();
}
}
src_object.last_message = current_time;
}
}
}

function on_server_start_up()
{
twist_moves();
twist_types("std");
SESSION.channels(CHANNEL_MAIN).welcome_message = WELCOME_MESSAGES[sys.rand(0, WELCOME_MESSAGES.length)];
// Channels.
// System channel.
var chan_id = sys.createChannel("Rinkernator");
CHANNEL_CORE = SESSION.channels(chan_id);
CHANNEL_CORE.welcome_message = "Various system messages will be printed here. Auth only.";
CHANNEL_CORE.auth_only = true;
CHANNEL_CORE.permanent = true;
update_announcement();
}
SESSION.identifyScriptAs("AAMS");
SESSION.registerUserFactory(POUser);
SESSION.registerChannelFactory(POChannel);
SESSION.registerGlobalFactory(POGlobal);

({

afterChangeTeam: on_after_change_team,
afterChannelJoin: on_after_channel_join,
afterLogIn: on_after_log_in,
beforeBattleMatchup: on_before_battle_matchup,
beforeChallengeIssued: on_before_challenge_issued,
beforeChannelCreated: on_before_channel_created,
beforeChannelDestroyed: on_before_channel_destroyed,
beforeChannelJoin: on_before_channel_join,
beforeChatMessage: on_before_chat_message,
beforeLogIn: on_before_log_in,
serverStartUp: on_server_start_up

})
Edited by Undergamed, Dec 7 2011, 12:59 PM.
Offline Profile Quote Post Goto Top
 
shuckle14
Member Avatar
Bananated
[ *  *  *  *  *  * ]
What happened to the server .-.
Posted Image
Offline Profile Quote Post Goto Top
 
+Sandslash
Member Avatar
inferior
[ *  *  *  *  *  *  *  * ]
probably got drunk while celebrating his birthday and kicked his pc or something
Offline Profile Quote Post Goto Top
 
shuckle14
Member Avatar
Bananated
[ *  *  *  *  *  * ]
The server died again when I was about to sweep BBM with Cobalion. True story.
Posted Image
Offline Profile Quote Post Goto Top
 
+BBM
Member Avatar
hates crunk
[ *  *  *  *  *  * ]
Posted Image
work in progress
Offline Profile Quote Post Goto Top
 
+Sandslash
Member Avatar
inferior
[ *  *  *  *  *  *  *  * ]
cobalion doesn't sweep anything true story
Offline Profile Quote Post Goto Top
 
shuckle14
Member Avatar
Bananated
[ *  *  *  *  *  * ]
uh that team didn't have a quagsire and you're last words were "I really shouldn't have blown up steelix" so thats a sweep enough for me
Posted Image
Offline Profile Quote Post Goto Top
 
+Sandslash
Member Avatar
inferior
[ *  *  *  *  *  *  *  * ]
Posted Image
Offline Profile Quote Post Goto Top
 
+Sandslash
Member Avatar
inferior
[ *  *  *  *  *  *  *  * ]
look at what you've done shuckle
you have angered the server
Offline Profile Quote Post Goto Top
 
shuckle14
Member Avatar
Bananated
[ *  *  *  *  *  * ]
I angered nothing. It was your talk of a sacrilege Dual-Weather team that caused to crash.
Posted Image
Offline Profile Quote Post Goto Top
 
+Sandslash
Member Avatar
inferior
[ *  *  *  *  *  *  *  * ]
you accusing 5th gen starters of sucking ass caused it
anyway it's up again lolz
Offline Profile Quote Post Goto Top
 
+Sir Spanky
Member Avatar
Less bananated than Shippou
[ *  *  *  *  *  *  *  * ]
Server is down.
Neon Twilight: thats really gay
Neon Twilight: so gay
Neon Twilight: gayer than bbm and spanky sex gay
Offline Profile Quote Post Goto Top
 
Jordan
Shelgon
[ *  * ]
I've put mine up. Hopefully Fats is around soon
Offline Profile Quote Post Goto Top
 
+BBM
Member Avatar
hates crunk
[ *  *  *  *  *  * ]
hwo i get 2 srvr???//
work in progress
Offline Profile Quote Post Goto Top
 
+Sandslash
Member Avatar
inferior
[ *  *  *  *  *  *  *  * ]
you can't because fats is fat
Offline Profile Quote Post Goto Top
 
Fats
Feebas
[ * ]
MY BAD FOLKS. also the gravestone picture is HILARIOUS
Offline Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
ZetaBoards - Free Forum Hosting
Fully Featured & Customizable Free Forums
Learn More · Register for Free
Go to Next Page
« Previous Topic · Server Suggestions and Announcements · Next Topic »
Add Reply