!!! this mod needs a rework for language and css, if u use it, it won't be multilingual!!!
hi.
for version 1.8.1 i think^^
the mod is not perfect but it shows u how to integrate a race. we may make it better together
1.open ur db.
insert this
Display Spoiler
REPLACE INTO `uni1_vars` VALUES (802, 'miner', 900, '', 0, 1.00, 2, 0, 0, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0.00, 0.30, 0.00, -0.15, 0.00, 0.00, 0.00, 0.20, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
REPLACE INTO `uni1_vars` VALUES (803, 'krieger', 900, '', 0, 1.00, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, NULL, NULL, NULL, NULL, 0, 0, 0, NULL, 0.30, 0.30, 0.30, 0.10, 0.10, 0.30, 0.00, -0.20, -0.20, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, NULL, '', '', '', '', '', '', '', '');
REPLACE INTO `uni1_vars` VALUES (801, 'forscher', 900, '', 0, 1.00, 2, 0, 0, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0.00, 0.00, 0.30, 0.00, -0.20, 0.00, 0.00, 0.00, 0.20, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
REPLACE INTO `uni1_vars` VALUES (804, 'haendler', 900, '', 0, 1.00, 2, 0, 0, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0.00, 0.00, 0.00, 0.05, 0.05, -0.30, 0.00, 0.00, 0.10, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
and
this
Display Spoiler
ALTER TABLE `uni1_users` ADD(
`race` TINYINT(4) NULL DEFAULT '0',
`forscher` SMALLINT(6) NULL DEFAULT '0',
`miner` SMALLINT(6) NULL DEFAULT '0',
`krieger` SMALLINT(6) NULL DEFAULT '0',
`haendler` SMALLINT(6) NULL DEFAULT '0',
`race_date` INT(10) NULL DEFAULT '0'
)
this made ur races/classes
2.copy the php file into
includes/pages/game/
3.open
languages/de/TECH.php and add
Display Spoiler
800 => 'Klassen',
802 => 'Miner',
803 => 'Krieger',
801 => 'Forscher',
804 => 'Händler',
to line 182
this has to be done for all languages
4.copy pictures to folder styles/themes/gow/img/
thats ist
the choosing page can be reached under game.php?page=race
u can use this link in the gamemenu
this can be find under styles/templates/game/main.navigation.tpl
Display Spoiler
thats it. its a quick and dirty. this mod is no beauty, but its working, have wirtten it for an older system once.
there should be a language integration as well as css, this will be fixed later. untill that, this mod is monolanguage^^
if u wish to add the racechoice to the registry i mad a little hack for it. the 2 php files from the zip called login have to be copied in includes/pages/login/
pls make copies of the originales befor.
this calls the choose race page directly after the registration of an new user
hi.
for version 1.8.1 i think^^
the mod is not perfect but it shows u how to integrate a race. we may make it better together
1.open ur db.
insert this
REPLACE INTO `uni1_vars` VALUES (802, 'miner', 900, '', 0, 1.00, 2, 0, 0, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0.00, 0.30, 0.00, -0.15, 0.00, 0.00, 0.00, 0.20, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
REPLACE INTO `uni1_vars` VALUES (803, 'krieger', 900, '', 0, 1.00, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, NULL, NULL, NULL, NULL, 0, 0, 0, NULL, 0.30, 0.30, 0.30, 0.10, 0.10, 0.30, 0.00, -0.20, -0.20, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, NULL, '', '', '', '', '', '', '', '');
REPLACE INTO `uni1_vars` VALUES (801, 'forscher', 900, '', 0, 1.00, 2, 0, 0, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0.00, 0.00, 0.30, 0.00, -0.20, 0.00, 0.00, 0.00, 0.20, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
REPLACE INTO `uni1_vars` VALUES (804, 'haendler', 900, '', 0, 1.00, 2, 0, 0, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0.00, 0.00, 0.00, 0.05, 0.05, -0.30, 0.00, 0.00, 0.10, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
and
this
ALTER TABLE `uni1_users` ADD(
`race` TINYINT(4) NULL DEFAULT '0',
`forscher` SMALLINT(6) NULL DEFAULT '0',
`miner` SMALLINT(6) NULL DEFAULT '0',
`krieger` SMALLINT(6) NULL DEFAULT '0',
`haendler` SMALLINT(6) NULL DEFAULT '0',
`race_date` INT(10) NULL DEFAULT '0'
)
this made ur races/classes
2.copy the php file into
includes/pages/game/
3.open
languages/de/TECH.php and add
800 => 'Klassen',
802 => 'Miner',
803 => 'Krieger',
801 => 'Forscher',
804 => 'Händler',
to line 182
this has to be done for all languages
4.copy pictures to folder styles/themes/gow/img/
thats ist
the choosing page can be reached under game.php?page=race
u can use this link in the gamemenu
this can be find under styles/templates/game/main.navigation.tpl
<li><a href="game.php?page=race">{$LNG['tech'][800]}</a></li>
thats it. its a quick and dirty. this mod is no beauty, but its working, have wirtten it for an older system once.
there should be a language integration as well as css, this will be fixed later. untill that, this mod is monolanguage^^
if u wish to add the racechoice to the registry i mad a little hack for it. the 2 php files from the zip called login have to be copied in includes/pages/login/
pls make copies of the originales befor.
this calls the choose race page directly after the registration of an new user