View Single Post
  #4  
Old 06-21-2009, 01:19 PM
xXziroXx xXziroXx is offline
Malorian
xXziroXx's Avatar
Join Date: May 2004
Posts: 5,289
xXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant future
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.
__________________
Follow my work on social media post-Graal:Updated august 2025.
Reply With Quote