summaryrefslogblamecommitdiff
path: root/npc/functions/global_event_handler.txt
blob: 8e1116dc27ee85f6e56c6c41dcd9d14f96d7972b (plain) (tree)
1
2
3
4
5
6
7
8
9
 
                                          

        
               
                     
                       

                                                                    
                                                             

                     

        

                                                                              

        
               
                

        
             
                     
                                          

        
       
                                 
        
 
-	script	#GlobalHandler	NPC32767,{
    end;

OnPCLoginEvent:
    @login_event = 1;
    adddefaultskills();
    //callfunc "fixHeadStyles"; // convert headstyles
    //callfunc "ClearVariables"; // removes / converts old variables
    DisplayMOTD(); // send the motd to the client, if enabled
    // add more here
    @login_event = 2;
    end;

OnPCKillEvent:
    callfunc "elanore_decrease_exp"; // decrease heal exp for doing bad things
    end;

OnMobKillEvent:
    MobPoints();
    end;

OnPCDieEvent:
    @necromancer = 0;
    set @killerrid, 0; // reset killer rid
    end;

OnInit:
    MOTD(); // set the MOTD array
    end;
}