Перейти к содержанию

nejiko

Проверенные
  • Постов

    367
  • Зарегистрирован

  • Посещение

  • Победитель дней

    19

Сообщения, опубликованные nejiko

  1. при отправке запроса выдает такую ошибку:

    Access denied for user 'root'@'localhost' (using password: NO)

    в файле db.php пароли логины и т.д. верны....

    Это как?

    Почему не работает то?


    <style>
    .hide {
    display: none;
    }
    .show {
    display: yes;
    }
    </style>
    <script type='text/javascript'>
    function upd(id) {
    if (id==1){
    document.getElementById('vk_id').className='show';
    }
    if (id==2){
    document.getElementById('vk_id').className='hide';
    }
    }
    </script>
    <center>
    1. Кликаете на баннер: <br />
    <!-- ваш баннер -->
    <a target="_blank" href="http://game100rus.com/index.php?do=votes&id=17974"><img border="0" src="http://ic.pics.livejournal.com/samaritanyn/10860637/47753/47753_original.gif" alt="game100rus.com"></a>
    <!-- /MMORPG TOP 100 LA2, WOW, RO, RF Online, PW, Aion, etc. MMORPG Private Servers. Приватные сервера онлайн игр и игровые порталы. -->
    <br />
    2. Голосуете <br />
    3. Выбираете Топ в котором вы проголосовали
    <form method="POST">
    <input name='top' type='radio' value='1' onchange="upd(2);" onkeyup="upd(2);" onblur="upd(2);" ><label>Game100rus.com</label><br />
    4. Вводите логин и получаете бонус <br />
    Введите логин:
    <br /><input type='text' name='login'>
    <br /><input type='hidden' name='vote'><br />
    <div id="vk_id" class="hide">Введите своё ID Вконтакте: <input type='text' name='vk_id'><br /></div>
    <input type='submit' value='Получить поинты!'>
    </form>
    </center>

    </td>
    </tr>
    </table>
    </td>
    </tr>
    </table>
    <div style="height:75px;"></div><center>
    <div class="clearer"></div>
    <div id="footer"><div style="width:500px; height:90px; margin-left:auto; margin-right:auto;"><?php include("footer.php"); ?></div></div>
    </center>
    <script type="text/javascript">
    load_menu();
    LINK_ajax('motd.php', 'main_div');
    LINK_ajax('login.php', 'login_div');
    login_hide(2);
    server_status()
    LINK_ajax('selectlang.php', 'selectlang_div');
    </script>
    </div>
    </div>
    </body>

    </html>
    <?php
    fim();
    ?>
    <?php
    $host = "127.0.0.1";
    $user = "root";
    $pass = "123nejiko";
    $rodb = "ragnarok";
    $db = mysql_connect($host, $user, $pass) or die(mysql_error());
    @mysql_select_db($rodb,$db);
    ?>
    <?
    /*
    Добавить в таблицу login 5 полей:
    ALTER TABLE `login` ADD `vote` INT( 5 ) NOT NULL DEFAULT '0',
    ADD `vote_time` INT( 100 ) NOT NULL DEFAULT '0',
    ADD `vote_ip` VARCHAR( 100 ) NOT NULL DEFAULT '0',
    ADD `vote2_time` INT( 100 ) NOT NULL DEFAULT '0',
    ADD `vote2_ip` VARCHAR( 100 ) NOT NULL DEFAULT '0',
    ADD `vote3_time` INT( 100 ) NOT NULL DEFAULT '0',
    ADD `vote3_ip` VARCHAR( 100 ) NOT NULL DEFAULT '0'
    */

    $top = array(
    1 => array(1 => "http://game100rus.com/sitedetails_17974.html", 2 => "vote_time", 3 => "vote_ip"),
    );

    if (isset($_POST['vote'])) {
    if ($_POST['login'] == '') { echo "<br />Вы не ввели логин"; }

    if ($_POST['top'] == '') { echo "<br />Вы не выбрали Топ"; }

    $num_top = $_POST['top'];

    $user = trim($_POST['login']); // Логин
    $vk_id = trim($_POST['vk_id']); // Айди Контакта
    $result = mysql_query ("select * from `login` WHERE `userid`='".mysql_real_escape_string($user)."'",$db) or die(mysql_error());
    $myrow = mysql_fetch_array($result);
    $curr_time = time(); //Текущее время
    $vote_time = $myrow[$top[$num_top][2]]; // Последний раз голосовал

    $stranica = file_get_contents($top[$num_top][1]); //Получаем статистику
    $userip = $_SERVER['REMOTE_ADDR']; //IP юзера

    $ip = mysql_query ("select * from `login` WHERE `vote_ip`='$userip' and `userid`<>'$user'",$db) or die(mysql_error());
    $check_ip = mysql_fetch_array($ip);
    $vote_ip = $check_ip[$top[$num_top][3]];
    $pos = strpos($stranica, $userip); // Ищем данные пользователя в статистике
    if ($num_top == 3)
    {
    $pos = strpos($stranica, $vk_id); // Ищем данные пользователя в статистике
    }

    if (($curr_time-$vote_time) < 3600*12) { echo "<br />Вы голосовали менее 12 часов назад";} else {
    if ($vote_ip == $userip) { echo "<br />Вы уже голосовали"; } else {

    if ($pos === false) {
    echo "<br />Вы не проголосовали. " ;
    } else {
    $curr_time = time();
    $update_vote = mysql_query ("UPDATE `login` set `vote`=`vote`+'1', `".$top[$num_top][2]."`='$curr_time', `".$top[$num_top][3]."`='$userip' WHERE `userid`='$user'",$db) or die(mysql_error());
    $points = mysql_query ("select * from `login` WHERE `userid`='$user'",$db) or die(mysql_error());
    $points2 = mysql_fetch_array($points);

    do
    {
    printf("
    <table width='481' height='10' border='-1'> <tr>
    <td width='105px' height='10px' align='center' ><br>У вас %s голоса(-ов)</td>
    </tr>
    </table>",$points2["vote"]);
    }
    while ($points2 = mysql_fetch_array($points));
    echo "<br />Бонус зачислен.";
    }}
    }
    }
    ?>

    Поподробнее бы, что не работает конкретно? Что пишет? Логи мб?

    Та всё исправил взял скрипт от medlmen

  2. Почему не работает то?


    <style>
    .hide {
    display: none;
    }
    .show {
    display: yes;
    }
    </style>
    <script type='text/javascript'>
    function upd(id) {
    if (id==1){
    document.getElementById('vk_id').className='show';
    }
    if (id==2){
    document.getElementById('vk_id').className='hide';
    }
    }
    </script>
    <center>
    1. Кликаете на баннер: <br />
    <!-- ваш баннер -->
    <a target="_blank" href="http://game100rus.com/index.php?do=votes&id=17974"><img border="0" src="http://ic.pics.livejournal.com/samaritanyn/10860637/47753/47753_original.gif" alt="game100rus.com"></a>
    <!-- /MMORPG TOP 100 LA2, WOW, RO, RF Online, PW, Aion, etc. MMORPG Private Servers. Приватные сервера онлайн игр и игровые порталы. -->
    <br />
    2. Голосуете <br />
    3. Выбираете Топ в котором вы проголосовали
    <form method="POST">
    <input name='top' type='radio' value='1' onchange="upd(2);" onkeyup="upd(2);" onblur="upd(2);" ><label>Game100rus.com</label><br />
    4. Вводите логин и получаете бонус <br />
    Введите логин:
    <br /><input type='text' name='login'>
    <br /><input type='hidden' name='vote'><br />
    <div id="vk_id" class="hide">Введите своё ID Вконтакте: <input type='text' name='vk_id'><br /></div>
    <input type='submit' value='Получить поинты!'>
    </form>
    </center>

    </td>
    </tr>
    </table>
    </td>
    </tr>
    </table>
    <div style="height:75px;"></div><center>
    <div class="clearer"></div>
    <div id="footer"><div style="width:500px; height:90px; margin-left:auto; margin-right:auto;"><?php include("footer.php"); ?></div></div>
    </center>
    <script type="text/javascript">
    load_menu();
    LINK_ajax('motd.php', 'main_div');
    LINK_ajax('login.php', 'login_div');
    login_hide(2);
    server_status()
    LINK_ajax('selectlang.php', 'selectlang_div');
    </script>
    </div>
    </div>
    </body>

    </html>
    <?php
    fim();
    ?>
    <?php
    $host = "127.0.0.1";
    $user = "root";
    $pass = "123nejiko";
    $rodb = "ragnarok";
    $db = mysql_connect($host, $user, $pass) or die(mysql_error());
    @mysql_select_db($rodb,$db);
    ?>
    <?
    /*
    Добавить в таблицу login 5 полей:
    ALTER TABLE `login` ADD `vote` INT( 5 ) NOT NULL DEFAULT '0',
    ADD `vote_time` INT( 100 ) NOT NULL DEFAULT '0',
    ADD `vote_ip` VARCHAR( 100 ) NOT NULL DEFAULT '0',
    ADD `vote2_time` INT( 100 ) NOT NULL DEFAULT '0',
    ADD `vote2_ip` VARCHAR( 100 ) NOT NULL DEFAULT '0',
    ADD `vote3_time` INT( 100 ) NOT NULL DEFAULT '0',
    ADD `vote3_ip` VARCHAR( 100 ) NOT NULL DEFAULT '0'
    */

    $top = array(
    1 => array(1 => "http://game100rus.com/sitedetails_17974.html", 2 => "vote_time", 3 => "vote_ip"),
    );

    if (isset($_POST['vote'])) {
    if ($_POST['login'] == '') { echo "<br />Вы не ввели логин"; }

    if ($_POST['top'] == '') { echo "<br />Вы не выбрали Топ"; }

    $num_top = $_POST['top'];

    $user = trim($_POST['login']); // Логин
    $vk_id = trim($_POST['vk_id']); // Айди Контакта
    $result = mysql_query ("select * from `login` WHERE `userid`='".mysql_real_escape_string($user)."'",$db) or die(mysql_error());
    $myrow = mysql_fetch_array($result);
    $curr_time = time(); //Текущее время
    $vote_time = $myrow[$top[$num_top][2]]; // Последний раз голосовал

    $stranica = file_get_contents($top[$num_top][1]); //Получаем статистику
    $userip = $_SERVER['REMOTE_ADDR']; //IP юзера

    $ip = mysql_query ("select * from `login` WHERE `vote_ip`='$userip' and `userid`<>'$user'",$db) or die(mysql_error());
    $check_ip = mysql_fetch_array($ip);
    $vote_ip = $check_ip[$top[$num_top][3]];
    $pos = strpos($stranica, $userip); // Ищем данные пользователя в статистике
    if ($num_top == 3)
    {
    $pos = strpos($stranica, $vk_id); // Ищем данные пользователя в статистике
    }

    if (($curr_time-$vote_time) < 3600*12) { echo "<br />Вы голосовали менее 12 часов назад";} else {
    if ($vote_ip == $userip) { echo "<br />Вы уже голосовали"; } else {

    if ($pos === false) {
    echo "<br />Вы не проголосовали. " ;
    } else {
    $curr_time = time();
    $update_vote = mysql_query ("UPDATE `login` set `vote`=`vote`+'1', `".$top[$num_top][2]."`='$curr_time', `".$top[$num_top][3]."`='$userip' WHERE `userid`='$user'",$db) or die(mysql_error());
    $points = mysql_query ("select * from `login` WHERE `userid`='$user'",$db) or die(mysql_error());
    $points2 = mysql_fetch_array($points);

    do
    {
    printf("
    <table width='481' height='10' border='-1'> <tr>
    <td width='105px' height='10px' align='center' ><br>У вас %s голоса(-ов)</td>
    </tr>
    </table>",$points2["vote"]);
    }
    while ($points2 = mysql_fetch_array($points));
    echo "<br />Бонус зачислен.";
    }}
    }
    }
    ?>

  3. Народ есть один скрипт взятый с eathena.ws, так вот тут 1 итем почему то даеться бесплатно как убрать такой баг?


    Jazeera,181,118,4 script Реферал Магазин 83,{
    callshop "Ref#shop1",1;
    npcshopattach "Ref#shop1";
    end;

    OnBuyItem:
    if(#YCallFrnd == 1) {
    set @cost,0;
    if ( @bought_quantity > 1) {
    message strcharinfo(0), "Вы можете купить только один итем.";
    end;
    }
    getitem @bought_nameid,@bought_quantity;
    set #YCallFrnd, 2;
    deletearray @bought_quantity, getarraysize(@bought_quantity);
    deletearray @bought_nameid, getarraysize(@bought_nameid);
    end;
    } else {
    mes "[ " + strnpcinfo(3) + " ]";
    mes "Что? " + ((#YCallFrnd==0)? "Вы никого не пригласили никого.":"Вы получили бонус");
    close;
    }

    OnInit:
    npcshopattach "Ref#shop1";
    end;
    }

    - shop Ref#shop1 83,17011:5,12246:3,1100:4,12264:1,677:2

  4. Привет всем, проблема состоит в следующем!

    клиент состоял в папке data

    когда собрал в .grf, то в стилиста в списке причёсок на номере 0 и от 27 до 51 исчезает полностью голова!

    Что может быть??

    До этого было всё отлично, unbollox-ом перевел нормально проверял!

  5. Так попробуй!


    function script supportx2 {
    setarray $arrayofboss[0],1038,1039,1046,1059,1086,1087,1112,1115,1147,1150,1157,1159,1190,1251,1252,1272,1312,1373,1389,1418,1492,1511,1583,1623,1630,1658,1685,1688,1708,1719,1734,1751,1768,1779,1785,1832,1871,1873,1885,1917,2022,2068,2087,2131,2156;
    attachrid(getarg(0));
    if (called){ dispbottom "Вы не можете призвать помощника в данный момент."; getitem 14345,1; } else {
    if (BaseLevel <= 10) { set @supp,1002; }
    if (BaseLevel <= 30 && BaseLevel > 10) { set @supp,1100; }
    if (BaseLevel <= 50 && BaseLevel > 30) { set @supp,1156; }
    if (BaseLevel <= 70 && BaseLevel > 50) { set @supp,1385; }
    if (BaseLevel <= 98 && BaseLevel > 70) { set @supp,2085; }
    if (BaseLevel >= 99) {
    set @supp,$arrayofboss[rand(getarraysize($arrayofboss))]; }
    set called,1;
    dispbottom "Помошник призван на 30 минут";
    summon "Помошник["+strcharinfo(0)+"]",@supp,1800000;
    }
    }
    - script support_system -1,{
    OnPcDieEvent:
    if (called) { set called,0; getitem 14345,1;}
    end;
    OnPCLoginEvent:
    if(called == 1 || given == 0) {
    percentheal 100,0;
    set called,0;
    getitem 14345,1;
    set given,1;
    }
    end;
    OnPCLogoutEvent:
    if(called == 1) {
    percentheal -100,0;
    }
    end;
    }

    и это!


    14345,Animal_Scroll,Animal Scroll,2,0,,0,,,,,0xFFFFFFFF,7,2,,,,,,{ callfunc "supportx2",getcharid(3); },{},{}

  6. Результат работы ака готовая функция

    https://gist.github....-anasol/6151513

    Интересно, что быстрее: массив, с индексами ввдие skillid, или case?

    Теоретически быстрее должен быть массив, тогда будет просто

    return @$my_array$[getarg(0)];

    А теперь вспоминаем что в массиве рошечки максимум 128 элементов, и юзаем кейсы :)

    Подскажите как соеденить ваш скрипт, что-бы он показывал не ID, а наименование!

  7. похапе https://gist.github....-anasol/6151510

    Чтобы сделать функцию для получения имени скилла.

    Строится на основе работабщих скиллов(не за комментированных) в skill_db

    И для самых маленькихленивых

    Результат работы ака готовая функция

    https://gist.github....-anasol/6151513

    За работоспособность и актуальноть не отвечаю, сделал из эмулятора который был, а какой он я не знаю

    А как ее использовать?

  8. Может тебе место дать халявное на пару месяцев ? А там глядишь и понравится на выделенке сидеть...

    xD классное предложение))

    Я только за но я просто хотел баланс для начала поднастроить,но если ты не против тогда давай это обсудим))))

  9. Здравствуйте народ!

    Случилась такая ситуация, у меня сервер находиться на Ноуте, ноут работает от WiFi роутера!

    Теперь ближе к делу, внутрений IP 192.168.1.4

    Внешний динамический XXX.XXX.XXX.XXX

    Для временного сервера онлайн использую no-ip

    Выходит так, комп который так же покдлючен к WiFI сетке получилось подключить но нужно было прописать в clientinfo.xml

    Мой внутренний IP тоесть 192.168.1.4

    Для остальных ( интернет пользователи ) по идеи должен быть прописан xxx.no-ip.org, но они не могут подключиться!

    Вот конфиги!

    char_athena.conf

    // Athena Character configuration file.
    // Note: "Comments" are all text on the right side of a double slash "//"
    // Whatever text is commented will not be parsed by the servers, and serves
    // only as information/reference.
    // Server Communication username and password.
    userid: kill
    passwd: pik
    // Server name, use alternative character such as ASCII 160 for spaces.
    // NOTE: Do not use spaces in the name, or guild emblems won't work client-side!
    server_name: World of Ragnarok
    // Wisp name for server: used to send wisp from server to players (between 4 to 23 characters)
    wisp_server_name: WoR
    // Login Server IP
    // The character server connects to the login server using this IP address.
    // NOTE: This is useful when you are running behind a firewall or are on
    // a machine with multiple interfaces.
    login_ip: 192.168.1.4
    // The character server listens on the interface with this IP address.
    // NOTE: This allows you to run multiple servers on multiple interfaces
    // while using the same ports for each server.
    //bind_ip: 127.0.0.1
    // Login Server Port
    login_port: 6900
    // Character Server IP
    // The IP address which clients will use to connect.
    // Set this to what your server's public IP address is.
    char_ip: wor.no-ip.org
    // Character Server Port
    char_port: 6121
    //Time-stamp format which will be printed before all messages.
    //Can at most be 20 characters long.
    //Common formats:
    // %I:%M:%S %p (hour:minute:second 12 hour, AM/PM format)
    // %H:%M:%S (hour:minute:second, 24 hour format)
    // %d/%b/%Y (day/Month/year)
    //For full format information, consult the strftime() manual.
    //timestamp_format: [%d/%b %H:%M]
    //If redirected output contains escape sequences (color codes)
    stdout_with_ansisequence: no
    //Makes server output more silent by ommitting certain types of messages:
    //1: Hide Information messages
    //2: Hide Status messages
    //4: Hide Notice Messages
    //8: Hide Warning Messages
    //16: Hide Error and SQL Error messages.
    //32: Hide Debug Messages
    //Example: "console_silent: 7" Hides information, status and notice messages (1+2+4)
    console_silent: 0
    // Console Commands
    // Allow for console commands to be used on/off
    // This prevents usage of >& log.file
    console: off
    // Option to force a player to create an e-mail.
    // If a player have default e-mail, and if you activate this option, the player can only connect in the game (to arrive on a map) like follow:
    // - Create at least 1 character
    // - Select 1 character
    // - Select DEL to enter his/her e-mail. (if OK is choosen, client says to the player: 'invalid e-mail')
    // - If his/her e-mail is correct, the player enter in the game (an e-mail is saved definitively).
    // - If his/her e-mail is incorrect, he/she have 'incorrect e-mail' and must select again DEL.
    // - After entering in the game (when the player arrives on a map), DEL and SEL/OK button work normaly for all next connections.
    // Resume: If a player have "incorrect/invalid e-mail" when he/she click on 'OK' button,
    // the player must click 'DEL' button and register his/her NEW e-mail to enter in the game
    // So, default is 0, because administrator must explain to their players before to activate this option.
    email_creation: 0
    // Type of server.
    // No functional side effects at the moment.
    // Displayed next to the server name in the client.
    // 0=normal, 1=maintenance, 2=over 18, 3=paying, 4=P2P
    char_maintenance: 0
    // Enable or disable creation of new characters.
    // Now it is actually supported [Kevin]
    char_new: 1
    // Display (New) in the server list.
    char_new_display: 0
    // Maximum users able to connect to the server. Set to 0 for unlimited.
    max_connect_user: 0
    // Minimum GM level that is allowed to bypass the server limit of users.
    gm_allow_level: 99
    // How often should the server save all files? (In seconds)
    // Note: Applies to all data files on TXT servers.
    // On SQL servers, it applies to guilds (character save interval is defined on the map config)
    autosave_time: 60
    // Display information on the console whenever characters/guilds/parties/pets are loaded/saved?
    save_log: yes
    // Character server flatfile database
    char_txt: save/athena.txt
    // Friends list flatfile database
    friends_txt: save/friends.txt
    // Start point, Map name followed by coordinates (x,y)
    start_point: novicefield,71,100
    // Starting weapon for new characters
    start_weapon: 1201
    // Starting armor for new characters
    start_armor: 2301
    // Starting zeny for new characters
    start_zeny: 100000
    // Size for the fame-lists
    fame_list_alchemist: 10
    fame_list_blacksmith: 10
    fame_list_taekwon: 10
    // Guild earned exp modifier.
    // Adjusts taxed exp before adding it to the guild's exp. For example, if set
    // to 200, the guild receives double the player's taxed exp.
    guild_exp_rate: 100000
    // Name used for unknown characters
    unknown_char_name: Unknown
    // To log the character server?
    log_char: 1
    // Log Filename
    char_log_filename: log/char.log
    // Allow or not identical name for characters but with a different case (upper/lower):
    // example: Test-test-TEST-TesT; Value: 0 not allowed (default), 1 allowed
    name_ignoring_case: no
    // Manage possible letters/symbol in the name of charater. Control character (0x00-0x1f) are never accepted. Possible values are:
    // NOTE: Applies to character, party and guild names.
    // 0: no restriction (default)
    // 1: only letters/symbols in 'char_name_letters' option.
    // 2: Letters/symbols in 'char_name_letters' option are forbidden. All others are possibles.
    char_name_option: 0
    // Set the letters/symbols that you want use with the 'char_name_option' option.
    // Note: Don't add spaces unless you mean to add 'space' to the list.
    char_name_letters: abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890 АБВГДЕИЙКЛМНОПРСТОУЯЮЧХЗЖЭЦУФЫЪЩШ йцукенгшщзхъфывапролджэячсмитьбю
    // How many Characters are allowed per Account ? (0 = disabled)
    chars_per_account: 0
    // Restrict character deletion by BaseLevel
    // 0: no restriction (players can delete characters of any level)
    // -X: you can't delete chars with BaseLevel <= X
    // Y: you can't delete chars with BaseLevel >= Y
    // e.g. char_del_level: 80 (players can't delete characters with 80+ BaseLevel)
    char_del_level: 0
    // Amount of time in seconds by which the character deletion is delayed.
    // Default: 86400 (24 hours)
    // NOTE: Requires client 2010-08-03aragexeRE or newer.
    char_del_delay: 86400
    // What folder the DB files are in (item_db.txt, etc.)
    db_path: db
    //NOTE: The following online listing options are only for TXT servers.
    // Filename of the file which receives the online players list in text
    online_txt_filename: online.txt
    // Filename of the file which receives the online players list, but in html version
    online_html_filename: online.html
    // Choose how to display online players.
    // (sorting operation with a lot of online players can take time on a slow computer)
    // 0: no sorting (default)
    // 1: by alphabetical order of their name
    // 2: by number of their zenys
    // 3: by their base level
    // 4: by their job (and job level inside the same job)
    // 5: by alphabetical order of their actual map location
    online_sorting_option: 0
    // Choose which columns that you want display in the online files. Do the addition of these values:
    // (if value is 0, no file is done)
    // 1: name (just the name, no function like 'GM')
    // 2: job
    // 4: levels
    // 8: map name
    // 16: mapname and coordonates
    // 32: zenys
    // 64: name (with 'GM' if the player is a GM)
    // default value: 1 (only name)
    online_display_option: 1
    // minimum GM level to display 'GM' when we want to display it (default: 1)
    online_gm_display_min_level: 20
    // refresh time (in sec) of the html file in the explorer (default 20)
    online_refresh_html: 20
    import: conf/import/char_conf.txt

    map_athena.conf


    // ______ __ __
    // /\ _ \/\ \__/\ \
    // __\ \ \L\ \ \ ,_\ \ \___ __ ___ __
    // /'__`\ \ __ \ \ \/\ \ _ `\ /'__`\/' _ `\ /'__`\
    ///\ __/\ \ \/\ \ \ \_\ \ \ \ \/\ __//\ \/\ \/\ \L\.\_
    //\ \____\\ \_\ \_\ \__\\ \_\ \_\ \____\ \_\ \_\ \__/.\_\
    // \/____/ \/_/\/_/\/__/ \/_/\/_/\/____/\/_/\/_/\/__/\/_/
    // _ _ _ _ _ _ _ _ _ _ _ _ _
    // / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \
    //( e | n | g | l | i | s | h ) ( A | t | h | e | n | a )
    // \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/
    //
    //--------------------------------------------------------------
    //eAthena Map-Server Configuration File
    //--------------------------------------------------------------

    // Note: "Comments" are all text on the right side of a double slash "//"
    // Whatever text is commented will not be parsed by the servers, and serves
    // only as information/reference.
    //--------------------------------------------------------------
    // Configuration Info
    //--------------------------------------------------------------
    // Interserver communication passwords, set in account.txt (or equiv.)
    userid: kill
    passwd: pik

    // Character Server IP
    // The map server connects to the character server using this IP address.
    // NOTE: This is useful when you are running behind a firewall or are on
    // a machine with multiple interfaces.
    char_ip: 192.168.1.4
    // The map server listens on the interface with this IP address.
    // NOTE: This allows you to run multiple servers on multiple interfaces
    // while using the same ports for each server.
    //bind_ip: 127.0.0.1

    // Character Server Port
    char_port: 6121
    // Map Server IP
    // The IP address which clients will use to connect.
    // Set this to what your server's public IP address is.
    map_ip: wor.no-ip.org

    // Map Server Port
    map_port: 5121
    //Time-stamp format which will be printed before all messages.
    //Can at most be 20 characters long.
    //Common formats:
    // %I:%M:%S %p (hour:minute:second 12 hour, AM/PM format)
    // %H:%M:%S (hour:minute:second, 24 hour format)
    // %d/%b/%Y (day/Month/year)
    //For full format information, consult the strftime() manual.
    //timestamp_format: [%d/%b %H:%M]

    //If redirected output contains escape sequences (color codes)
    stdout_with_ansisequence: no
    //Makes server output more silent by ommitting certain types of messages:
    //1: Hide Information messages
    //2: Hide Status messages
    //4: Hide Notice Messages
    //8: Hide Warning Messages
    //16: Hide Error and SQL Error messages.
    //32: Hide Debug Messages
    //Example: "console_silent: 7" Hides information, status and notice messages (1+2+4)
    console_silent: 0

    //Where should the map data be read from?
    map_cache_file: db/map_cache.dat
    //Where should all database data be read from?
    db_path: db

    // Enable the @guildspy and @partyspy at commands?
    // Note that enabling them decreases packet sending performance.
    enable_spy: no
    // Read map data from GATs and RSWs in GRF files or a data directory
    // as referenced by grf-files.txt rather than from the mapcache?
    use_grf: no

    // Console Commands
    // Allow for console commands to be used on/off
    // This prevents usage of >& log.file
    console: off
    // Database autosave time
    // All characters are saved on this time in seconds (example:
    // autosave of 60 secs with 60 characters online -> one char is saved every
    // second)
    autosave_time: 300

    // Min database save intervals (in ms)
    // Prevent saving characters faster than at this rate (prevents char-server
    // save-load getting too high as character-count increases)
    minsave_time: 100
    // Apart from the autosave_time, players will also get saved when involved
    // in the following (add as needed):
    // 1: after every successful trade
    // 2: after every vending transaction
    // 4: after closing storage/guild storage.
    // 8: After hatching/returning to egg a pet.
    // 16: After successfully sending a mail with attachment
    // 32: After successfully submitting an item for auction
    // 64: After successfully get/delete/complete a quest
    // NOTE: These settings decrease the chance of dupes/lost items when there's a
    // server crash at the expense of increasing the map/char server lag. If your
    // server rarely crashes, but experiences interserver lag, you may want to set
    // these off.
    save_settings: 127

    // Message of the day file, when a character logs on, this message is displayed.
    motd_txt: conf/motd.txt
    // When @help or @h is typed when you are a gm, this is displayed for helping new gms understand gm commands.
    help_txt: conf/help.txt
    help2_txt: conf/help2.txt
    charhelp_txt: conf/charhelp.txt

    // Scripts
    import: npc/scripts_main.conf
    // Maps:
    import: conf/maps_athena.conf

    import: conf/import/map_conf.txt

    login_athena.conf


    // Athena Login Server configuration file.
    // Translated by Peter Kieser

    // Note: "Comments" are all text on the right side of a double slash "//"
    // Whatever text is commented will not be parsed by the servers, and serves
    // only as information/reference.
    // The login server listens on the interface with this IP address.
    // NOTE: This allows you to run multiple servers on multiple interfaces
    // while using the same ports for each server.
    //bind_ip: 127.0.0.1

    // Login Server Port
    login_port: 6900

    //Time-stamp format which will be printed before all messages.
    //Can at most be 20 characters long.
    //Common formats:
    // %I:%M:%S %p (hour:minute:second 12 hour, AM/PM format)
    // %H:%M:%S (hour:minute:second, 24 hour format)
    // %d/%b/%Y (day/Month/year)
    //For full format information, consult the strftime() manual.
    //timestamp_format: [%d/%b %H:%M]
    //If redirected output contains escape sequences (color codes)
    stdout_with_ansisequence: no

    //Makes server output more silent by ommitting certain types of messages:
    //1: Hide Information messages
    //2: Hide Status messages
    //4: Hide Notice Messages
    //8: Hide Warning Messages
    //16: Hide Error and SQL Error messages.
    //32: Hide Debug Messages
    //Example: "console_silent: 7" Hides information, status and notice messages (1+2+4)
    console_silent: 0
    // Console Commands
    // Allow for console commands to be used on/off
    // This prevents usage of >& log.file
    console: off

    // Can you use _M/_F to make new accounts on the server?
    new_account: yes
    // Account registration flood protection system
    // allowed_regs is the number of registrations allowed in time_allowed (in seconds)
    allowed_regs: 1
    time_allowed: 10

    // Log Filename. All operations received by the server are logged in this file.
    login_log_filename: log/login.log
    // To log the login server?
    // NOTE: The login-sql server needs the login logs to enable dynamic pass failure bans.
    log_login: yes

    // Indicate how to display date in logs, to players, etc.
    date_format: %Y-%m-%d %H:%M:%S
    // Indicate the minimum GM level of player that the server accepts to connection.
    // 0: all players (normal player are 0. it's default), 1-99: GM level at least with level x
    min_level_to_connect: 0

    // Starting additional sec from now for the limited time at creation of account
    // -1: new account are created with UNlimited time (default value)
    // 0 or more: new accounts was created by addition of the value (in sec) to the actual time (to set first limited time)
    start_limited_time: -1
    // Check The clientversion set in the clientinfo ?
    check_client_version: no

    // What version we would allow to connect? (if the options above is enabled..)
    client_version_to_connect: 20
    // Store passwords as MD5 hashes instead of plaintext ?
    // NOTE: Will not work with clients that use
    use_MD5_passwords: no

    // Ipban features (SQL only)
    ipban.enable: yes
    //ipban.sql.db_hostname: 127.0.0.1
    //ipban.sql.db_port: 3306
    //ipban.sql.db_username: ragnarok
    //ipban.sql.db_password: ragnarok
    //ipban.sql.db_database: ragnarok
    //ipban.sql.codepage:
    //ipban.sql.ipban_table: ipbanlist
    // Dynamic password failure ipban system
    ipban.dynamic_pass_failure_ban: yes
    ipban.dynamic_pass_failure_ban_interval: 5
    ipban.dynamic_pass_failure_ban_limit: 7
    ipban.dynamic_pass_failure_ban_duration: 5
    // Interval (in seconds) to clean up expired IP bans. 0 = disabled. default = 60.
    // NOTE: Even if this is disabled, expired IP bans will be cleaned up on login server start/stop.
    // Players will still be able to login if an ipban entry exists but the expiration time has already passed.
    ipban_cleanup_interval: 60

    // Interval (in minutes) to execute a DNS/IP update. Disabled by default.
    // Enable it if your server uses a dynamic IP which changes with time.
    //ip_sync_interval: 10
    // DNS Blacklist Blocking
    // If enabled, each incoming connection will be tested against the blacklists
    // on the specified dnsbl_servers (comma-separated list)
    use_dnsbl: no
    dnsbl_servers: dnsbl.deltaanime.net

    // Which account engine to use.
    // 'auto' selects the first engine available (txt, sql, then others)
    // (defaults to auto)
    account.engine: auto

    // Account data storage configuration
    // TXT
    account.txt.account_db: save/account.txt
    account.txt.case_sensitive: no
    // SQL
    //account.sql.db_hostname: 127.0.0.1
    //account.sql.db_port: 3306
    //account.sql.db_username: ragnarok
    //account.sql.db_password: ragnarok
    //account.sql.db_database: ragnarok
    //account.sql.codepage:
    //account.sql.case_sensitive: no
    //account.sql.account_db: login
    //account.sql.accreg_db: global_reg_value

    import: conf/inter_athena.conf
    import: conf/import/login_conf.txt

    Порты открыты

    6c61440d4308b9f4f4873ec75339.png

    NO-IP использует внешний IP

    9f53c95a4e28398b1118303ee939.png

    Вот внутренний

    9d50f5ed5ef8fc3eee7d9ed163a0.png

    Собственно люди не конектяться к серверу,а локальный ПК который по WiFi так же работает может конектиться,что я прописал не так?

  10. у меня что-то 100% не совпадает даже если смотреть по msg_athena.conf


    650: Baby Shadow Chaser
    651: Expanded Super Novice
    652: Expanded Super Baby
    653: Kagerou
    654: Oboro
    655: Unknown Job
    // Extended Vending system
    700: You do not have enough CashPoint
    701: You do not have enough items
    702: Seller has not enough space in your inventory
    703: Seller can not take all the item
    704: You have selected: %s
    705: You've opened %s's shop. Sale is carried out: %s
    706: Current Currency: %s
    707: %s has bought '%s' in the amount of %d. Revenue: %d %s
    708: Full revenue from %s is %d %s
    // Dragon Mount
    700: You have mounted a Dragon.
    701: This player cannot mount a Dragon with his/her current job.
    702: This player's Dragon has been released.
    703: You cannot mount a Dragon while in disguise.
    // Ranger Warg
    704: You have obtained a Warg.
    705: This player cannot have a Warg with his/her current job.
    706: This player's Warg has been released.
    707: You cannot mount a Warg while in disguise.
    708: You cannot have a Warg and a Warg Mount at the same time.
    709: You cannot have a Warg while you have a Falcon

  11. Когда люди научатся читать что пишет компилятор или афина, ну он же пишет понятным языком что необъявлена переменная USESKILL_FAIL_LEVEL.

    У тебя используется переменная в clif_skill_fail(sd,MC_VENDING,USESKILL_FAIL_LEVEL,0) MC_VENDING посмотри как именно она обьявлена, хотя в твоем случаи это может быть немного сложнее.

    Далее все ошибки по большей части связаны с необъявленой переменной.

    LOG_TYPE_VENDING - тоже надо обьявить, лично мне не могу сказать по примерам вашим куда стоит копать в плане обьявления идентификаторов лень дальше искать решение.

    Ну ладно, исходник сделан для афины revision 15154 если я не ошибаюсь, у вас не афина выход - качаем афину и смотрим в ней что и как реализовано в зависимости от ваших ошибок в часности ищем как обьявлены идентификаторы USESKILL_FAIL_LEVEL и LOG_TYPE_VENDING после смотрим на что именно изменили в вашем эмуляторе эти переменные либо добавляемесли их удалили и смотрим внимательно принцип реализации типа параметров, ну собственно это все, дальше либо сами либо за вас ктото исправит.

    Поясни где смотреть как она объявлена?

×
×
  • Создать...
Яндекс.Метрика