This repository has been archived by the owner on Jan 7, 2019. It is now read-only.
/
vanguard.class.php
121 lines (114 loc) · 3.53 KB
/
vanguard.class.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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
<?php
/*
* Project: EQdkp-Plus
* License: Creative Commons - Attribution-Noncommercial-Share Alike 3.0 Unported
* Link: http://creativecommons.org/licenses/by-nc-sa/3.0/
* -----------------------------------------------------------------------
* Began: 2009
* Date: $Date$
* -----------------------------------------------------------------------
* @author $Author$
* @copyright 2006-2011 EQdkp-Plus Developer Team
* @link http://eqdkp-plus.com
* @package eqdkp-plus
* @version $Rev$
*
* $Id$
*/
if ( !defined('EQDKP_INC') ){
header('HTTP/1.0 404 Not Found');exit;
}
if(!class_exists('vanguard')) {
class vanguard extends game_generic {
public $version = '2.1';
protected $this_game = 'vanguard';
protected $types = array('classes', 'races', 'filters', 'roles');
protected $classes = array();
protected $races = array();
protected $factions = array();
protected $filters = array();
public $langs = array('english');
protected $class_dependencies = array(
array(
'name' => 'race',
'type' => 'races',
'admin' => false,
'decorate' => true,
'parent' => false
),
array(
'name' => 'class',
'type' => 'classes',
'admin' => false,
'decorate' => true,
'primary' => true,
'colorize' => true,
'roster' => true,
'recruitment' => true,
'parent' => array(
'race' => array(
// dependancy missing: http://vanguard.wikia.com/wiki/Races
0 => 'all', // Unknown
1 => 'all', // Dark Elf
2 => 'all', // Dwarf
3 => 'all', // Gnome
4 => 'all', // Goblin
5 => 'all', // Half Elf
6 => 'all', // Halfling
7 => 'all', // High Elf
8 => 'all', // Kojani
9 => 'all', // Kurashasa
10 => 'all', // Lesser Giant
11 => 'all', // Mordebi
12 => 'all', // Orc
13 => 'all', // Qaliathari
14 => 'all', // Raki
15 => 'all', // Thestran
16 => 'all', // Varanjar
17 => 'all', // Varanthari
18 => 'all', // Vulmane
19 => 'all', // Wood Elf
),
),
),
);
public $default_roles = array(
1 => array(3,4,5,15),
2 => array(6,11,17),
3 => array(7,8,10,12,13,16),
4 => array(1,2,6,9,11,14,17)
);
protected $glang = array();
protected $lang_file = array();
protected $path = '';
public $lang = false;
/**
* Initialises filters
*
* @param array $langs
*/
protected function load_filters($langs){
if(!$this->classes) {
$this->load_type('classes', $langs);
}
foreach($langs as $lang) {
$names = $this->classes[$this->lang];
$this->filters[$lang][] = array('name' => '-----------', 'value' => false);
foreach($names as $id => $name) {
$this->filters[$lang][] = array('name' => $name, 'value' => 'class:'.$id);
}
$this->filters[$lang] = array_merge($this->filters[$lang], array(
array('name' => '-----------', 'value' => false),
array('name' => $this->glang('unknown', true, $lang), 'value' => 'class:0,1,4,7,8'),
array('name' => $this->glang('cloth', true, $lang), 'value' => 'class:5,9,13,14,17,21'),
array('name' => $this->glang('leather', true, $lang), 'value' => 'class:2,3,11'),
array('name' => $this->glang('chain', true, $lang), 'value' => 'class:18,19,20'),
array('name' => $this->glang('plate', true, $lang), 'value' => 'class:6,10,12,16,22'),
));
}
}
public function install($install=false){
}
}
}
?>