blob: 9ce44a38d3ed8464eb3e40f70d3b31ce5b476fc7 (
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
31
32
33
34
|
// This is the global event dispatcher
// Do not add code to this file. Please only add callfuncs
//
// Author: meko
-|script|#GlobalHandler|-1
{
end;
OnPCLoginEvent:
set @login_event, 1;
callfunc "getHeadStyles"; // converts class, color and hair
callfunc "ClearVariables"; // removes / converts old variables
// add more here
set @login_event, 2;
end;
OnPCKillEvent:
callfunc "elanore_decrease_exp"; // decrease heal exp for doing bad things
end;
OnPCKilledEvent:
callfunc "fightclub_event_killed"; // this is used by the 1v1 arena
end;
OnPCDieEvent:
callfunc "fightclub_GoBack"; // this used by the battle master
callfunc "fightclub_event_die"; // this is used by the 1v1 arena
end;
OnInit: //fixme: change to OnInterIfInit
callfunc "ClearGlobalVars";
end;
}
|