blob: a6d634ed5ec89d4b6e65521c382def97c117b3a1 (
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
// The Mana World scripts.
// Author:
// The Mana World Team
// Description:
// Controls most, if not all, global events on this server.
// Please only use callfunc("") here; This script is loaded
// early on and direct function assignment will cause fails.
// TODO: Move "new quest" notification here. (Or deprecate)
// Helper function for scripted Monster Kills.
function script fix_mobkill {
killedrid=getarg(0);
doevent "#GlobalHandler::OnNPCKillEvent";
return;
}
- script #GlobalHandler NPC_HIDDEN,{
end;
OnPCLoginEvent:
callfunc("updateSpotlight");
callfunc("ReceiveMOTD");
callfunc("ReceiveScheduledBroadcast");
callfunc("FixBankVault");
callfunc("GrantSuperSkill");
end;
OnPCLogoutEvent:
callfunc("UnequipCookie");
callfunc("MundaneLogout");
callfunc("fishing_cleanup", @fishing_spot$);
callfunc("ATLFightEnd");
// Variable cleanup
@fishing_spot$ = "";
end;
OnPCDieEvent:
callfunc("ForcedUnmount");
callfunc("MundaneDeath");
callfunc("ATLFightEnd");
end;
OnPCBaseLvUpEvent:
//callfunc("newquestwarning");
end;
OnNPCKillEvent:
$MONSTERS_KILLED+=1;
MONSTERS_KILLED+=1;
callfunc("EnoraKills");
if ($MONSTERS_KILLED % 1000000 == 0)
callfunc("GetBeanieCopter");
end;
OnPCKillEvent:
$PLAYERS_KILLED+=1;
PLAYERS_KILLED+=1;
end;
OnSkillInvoke:
callfunc("SkillInvoked");
end;
}
|