forked from photogabble/blacknova
-
Notifications
You must be signed in to change notification settings - Fork 0
/
global_defines.php
84 lines (82 loc) · 5.78 KB
/
global_defines.php
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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
<?php
// Blacknova Traders - A web-based massively multiplayer space combat and trading game
// Copyright (C) 2001-2014 Ron Harwood and the BNT development team
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
//
// File: global_defines.php
// Log constants
define('LOG_LOGIN', 1); // Sent when logging in
define('LOG_LOGOUT', 2); // Sent when logging out
define('LOG_ATTACK_OUTMAN', 3); // Sent to target when better engines
define('LOG_ATTACK_OUTSCAN', 4); // Sent to target when better cloak
define('LOG_ATTACK_EWD', 5); // Sent to target when EWD engaged
define('LOG_ATTACK_EWDFAIL', 6); // Sent to target when EWD failed
define('LOG_ATTACK_LOSE', 7); // Sent to target when he lost
define('LOG_ATTACKED_WIN', 8); // Sent to target when he won
define('LOG_TOLL_PAID', 9); // Sent when paid a toll
define('LOG_HIT_MINES', 10); // Sent when hit mines
define('LOG_SHIP_DESTROYED_MINES', 11); // Sent when destroyed by mines
define('LOG_PLANET_DEFEATED_D', 12); // Sent when one of your defeated planets is destroyed instead of captured
define('LOG_PLANET_DEFEATED', 13); // Sent when a planet is defeated
define('LOG_PLANET_NOT_DEFEATED', 14); // Sent when a planet survives
define('LOG_RAW', 15); // This log is sent as-is
define('LOG_TOLL_RECV', 16); // Sent when you receive toll money
define('LOG_DEFS_DESTROYED', 17); // Sent for destroyed sector defenses
define('LOG_PLANET_EJECT', 18); // Sent when ejected from a planet due to team switch
define('LOG_BADLOGIN', 19); // Sent when bad login
define('LOG_PLANET_SCAN', 20); // Sent when a planet has been scanned
define('LOG_PLANET_SCAN_FAIL', 21); // Sent when a planet scan failed
define('LOG_PLANET_CAPTURE', 22); // Sent when a planet is captured
define('LOG_SHIP_SCAN', 23); // Sent when a ship is scanned
define('LOG_SHIP_SCAN_FAIL', 24); // Sent when a ship scan fails
define('LOG_XENOBE_ATTACK', 25); // Xenobes send this to themselves
define('LOG_STARVATION', 26); // Sent when colonists are starving... Is this actually used in the game?
define('LOG_TOW', 27); // Sent when a player is towed
define('LOG_DEFS_DESTROYED_F', 28); // Sent when a player destroys fighters
define('LOG_DEFS_KABOOM', 29); // Sent when sector fighters destroy you
define('LOG_HARAKIRI', 30); // Sent when self-destructed
define('LOG_TEAM_REJECT', 31); // Sent when player refuses invitation
define('LOG_TEAM_RENAME', 32); // Sent when renaming a team
define('LOG_TEAM_M_RENAME', 33); // Sent to members on team rename
define('LOG_TEAM_KICK', 34); // Sent to booted player
define('LOG_TEAM_CREATE', 35); // Sent when created a team
define('LOG_TEAM_LEAVE', 36); // Sent when leaving a team
define('LOG_TEAM_NEWLEAD', 37); // Sent when leaving a team, appointing a new leader
define('LOG_TEAM_LEAD', 38); // Sent to the new team leader
define('LOG_TEAM_JOIN', 39); // Sent when joining a team
define('LOG_TEAM_NEWMEMBER', 40); // Sent to leader on join
define('LOG_TEAM_INVITE', 41); // Sent to invited player
define('LOG_TEAM_NOT_LEAVE', 42); // Sent to leader on leave
define('LOG_ADMIN_HARAKIRI', 43); // Sent to admin on self-destruct
define('LOG_ADMIN_PLANETDEL', 44); // Sent to admin on planet destruction instead of capture
define('LOG_DEFENCE_DEGRADE', 45); // Sent sector fighters have no supporting planet
define('LOG_PLANET_CAPTURED', 46); // Sent to player when he captures a planet
define('LOG_BOUNTY_CLAIMED', 47); // Sent to player when they claim a bounty
define('LOG_BOUNTY_PAID', 48); // Sent to player when their bounty on someone is paid
define('LOG_BOUNTY_CANCELLED', 49); // Sent to player when their bounty is refunded
define('LOG_SPACE_PLAGUE', 50); // Sent when space plague attacks a planet
define('LOG_PLASMA_STORM', 51); // Sent when a plasma storm attacks a planet
define('LOG_BOUNTY_FEDBOUNTY', 52); // Sent when the federation places a bounty on a player
define('LOG_PLANET_BOMBED', 53); // Sent after bombing a planet
define('LOG_ADMIN_ILLEGVALUE', 54); // Sent to admin on planet destruction instead of capture
define('LOG_ADMIN_PLANETCHEAT', 55); // Sent to admin due to planet hack (hack_id, ip, planet_id, ship_id)
// Ban system defines
define('ID_WATCH', 0x00, true); // Player flagged as being watched.
define('ID_LOCKED', 0x01, true); // Player flagged as being Locked.
define('24HR_BAN', 0x02, true); // Player flagged with a 24 Hour Ban.
define('ID_BAN', 0x03, true); // Player flagged as banned by ShipID.
define('IP_BAN', 0x04, true); // Player flagged as banned by IP Address.
define('MULTI_BAN', 0x05, true); // Player flagged as banned by either IP or ShipID.
?>