I added something like this on Maloria a while back, since I too was annoyed by it, and thought this might solve it. Note that it didn't.
PHP Code:
function onActionPlayerOnline()
{
// --- JOINING OF CLASSES
temp.class_list = {
"functions_misc",
"functions_stats",
"functions_skills",
"functions_items",
"functions_combat",
"functions_nations",
"player_system",
"player_initialize",
"quest_log"
};
while (!temp.isJoined) {
temp.isJoined = true;
temp.attempts ++;
for (temp.class: temp.class_list) {
player.join(temp.class);
if (!(temp.class in player.joinedclasses))
temp.isJoined = false;
}
}
if (temp.attempts > 1)
echo("[" @ player.account @ "] All classes joined after" SPC temp.attempts SPC "attempts!");
}
I still get errors whenever the client enters a level that might use a function that's supposed to be joined to a player.