netpain 0 Posted January 29, 2015 Report Share Posted January 29, 2015 Добрый день. Подскажите как вручную добавлять классы и расы персонажей? EQDKP Plus 0.6.4.13 Quote Link to comment Share on other sites More sharing options...
Ирдириэль 26 Posted January 29, 2015 Report Share Posted January 29, 2015 Можно, через файл /игра/index.php 1 Quote Link to comment Share on other sites More sharing options...
netpain 0 Posted January 30, 2015 Author Report Share Posted January 30, 2015 Периодически не грузятся страницы, адресная строка имеет вид "admin/index.php?s=" Как подобное можно исправить? Quote Link to comment Share on other sites More sharing options...
Фай Д. Флоурайт 33 Posted January 30, 2015 Report Share Posted January 30, 2015 Это так не понять, что у вас там за проблема. на сервере смотреть надо. 1 Quote Link to comment Share on other sites More sharing options...
netpain 0 Posted January 30, 2015 Author Report Share Posted January 30, 2015 Вроде делаю все правильно (вродебы) Но новый класс и раса не появляются, если у когото есть время гляньте пжл код, и укажите на мою ошибку. Класс "корабль" и раса "Прайден" <?php /****************************** * EQdkp * Copyright 2002-2003 * Licensed under the GNU GPL. See COPYING for full terms. * ------------------ * DAoC.php * Began: Fri May 13 2005 * * $Id: index.php 3575 2009-01-14 11:12:58Z wallenium $ * ******************************/ if ( !defined('EQDKP_INC') ) { header('HTTP/1.0 404 Not Found'); exit; } class Manage_Game { var $gamename = 'Allods'; var $maxlevel = 80; var $version = '1.2'; function do_it($install,$lang) { global $db; if($lang == 'de') { $classes = array( array('Ship','Ship',0,20), array('Krieger','Platte',0,80), array('Paladin','Platte',0,80), array('Heiler','Platte',0,80), array('Beschwцrer','Stoff',0,80), array('Magier','Stoff',0,80), array('Behьter','Leder',0,80), array('Psioniker','Leder',0,80), array('Spдher','Leder',0,80), array('Ship','Leder',0,80), ); $races = array( 'Priden', 'Gibberlings', 'Elfen', 'Kanians', 'Xadaganians', 'Orks', 'Arisen' 'Ship' ); $factions = array( 'Die Liga', 'Das Imperium' ); }else if($lang == 'ru') { $classes = array( array('Корабль','Корабль',0,20), array('Воин','Латы',0,80), array('Храмовник','Латы',0,80), array('Жрец','Латы',0,80), array('Некромант','Роба',0,80), array('Волшебник','Роба',0,80), array('Язычник','Кожа',0,80), array('Мистик','Кожа',0,80), array('Разведчик','Кожа',0,80), array('Бард','Кожа',0,80), array('Корабль','Доски',0,80), ); $races = array( 'Корабль', 'Гибберлинги', 'Эльфы', 'Кания', 'Хадаган', 'Орки', 'Восставшие' 'Прайден', ); $factions = array( 'Лига', 'Империя' ); }else { $classes = array( array('Ship','Корабль',0,20), array('Warrior','Латы',0,80), array('Paladin','Латы',0,80), array('Priest','Латы',0,80), array('Necromancer','Роба',0,80), array('Mage','Роба',0,80), array('Druid','Кожа',0,80), array('Psionic','Кожа',0,80), array('Stalker','Кожа',0,80), array('Bard','Кожа',0,80), array('Ship','доски',0,80), ); $races = array( 'Ship', 'Gibberlings', 'Elves', 'Kanians', 'Xadaganians', 'Orcs', 'Arisen' 'Priden', ); $factions = array( 'The League', 'The Empire' ); } // The Class colors $classColorsCSS = array( 'Warrior' => '#a58a57', 'Paladin' => '#00e1c8', 'Priest' => '#ffff50', 'Necromancer' => '#f12b47', 'Mage' => '#2f91ff', 'Druid' => '#ff8000', 'Psionic' => '#ff80ff', 'Stalker' => '#00c800', 'Bard' => '#00FF7F', 'Ship' => #000080', ); //lets do some tweak on the templates dependent on the game $aq = array(); //Itemstats array_push($aq, "UPDATE __plus_config SET config_value = '0' WHERE config_name = 'pk_itemstats' ;"); array_push($aq, "UPDATE __plus_config SET config_value = '0' WHERE config_name = 'pk_is_autosearch' ;"); // this is the fix stuff.. instert the new information // into the database. moved it to a new class, its easier to // handle $gmanager = new GameManagerPlus(); $game_config = array( 'classes' => $classes, 'races' => $races, 'factions' => $factions, 'class_colors' => $classColorsCSS, 'max_level' => $this->maxlevel, 'add_sql' => $aq, 'version' => $this->version, ); $gmanager->ChangeGame($this->gamename, $game_config, $lang); } } ?> Quote Link to comment Share on other sites More sharing options...
Фай Д. Флоурайт 33 Posted January 30, 2015 Report Share Posted January 30, 2015 Навскидку - версию новее поставьте, в первых строчках скрипта вот переменная. Тогда в админцентре запросит и выполнит обновление игрового модуля. Quote Link to comment Share on other sites More sharing options...
netpain 0 Posted February 10, 2015 Author Report Share Posted February 10, 2015 Подскажите как установить новую версию? удалил старую папку аллодс, закинул по фтп новую. (если не удалить а просто закинуть или закинуть с заменой то ничего в админке не отображается) Теперь в аминке дкп Установленная версия: Allods V.1.2 Доступная версия: Allods V. Ошибка Переустановить Нажимаю переустановить и ничего не происходит. В какую сторону копать? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.