blob: 4d453c838f22ab11d5893b570d7e982ec3d8ccd0 (
plain) (
tree)
|
|
// This is the global event dispatcher
// Do not add code to this file. Please only add callfuncs
//
// Author: meko
-|script|#GlobalHandler|32767
{
end;
OnPCLoginEvent:
set @login_event, 1;
callfunc "fixHeadStyles"; // convert headstyles
callfunc "ClearVariables"; // removes / converts old variables
callfunc "DisplayMOTD"; // send the motd to the client, if enabled
callfunc "getBroadcast"; // get the scheduled broadcast, if any
// add more here
set @login_event, 2;
end;
OnPCKillEvent:
callfunc "elanore_decrease_exp"; // decrease heal exp for doing bad things
end;
OnMobKillEvent:
callfunc "MobPoints";
end;
OnPCDieEvent:
callfunc "fightclub_GoBack"; // this used by the battle master
//callfunc "fightclub_event_die"; // this is used by the 1v1 arena
set @necromancer, 0;
set @_M_BLOCK, 0; // reset magic block on death
set @killerrid, 0; // reset killer rid
end;
OnInit:
callfunc "ClearGlobalVars";
callfunc "MOTD"; // set the MOTD array
end;
}
|