summaryrefslogtreecommitdiff
path: root/npc/functions/global_event_handler.txt
blob: 75a2fabcd62e946167800ba3765a311b800bdf66 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
-	script	#GlobalHandler	NPC32767,{
    end;

OnPCLoginEvent:
    @login_event = 1;
    //callfunc "fixHeadStyles"; // convert headstyles
    //callfunc "ClearVariables"; // removes / converts old variables
    callfunc "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:
    callfunc "MobPoints";
    end;

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

OnInit:
    callfunc "MOTD"; // set the MOTD array
    end;
}