Рейтинг темы:
  • 0 Голос(ов) - 0 в среднем
  • 1
  • 2
  • 3
  • 4
  • 5
привязка сайта 2
#1
Сборка l2-wt.
Все ок уже порт открыт. Все что надо открыто.
Осталась одна проблема.
Что ставить тут?
[Изображение: 30ce46e92527.jpg]

Добавлено через 5 минут
Ни подошла ни одна Т_Т
Ответ
#2
Не ужели сложно самому поправить запросы?
Web программист\разработчик

— Есть только один способ проделать большую работу — полюбить ее. Если вы к этому не пришли, подождите. Не беритесь за дело.
Ответ
#3
Подскажите как. Буду признателен.

Добавлено через 11 минут
Или скажи что тебе дать чтобы ты помог. Очень прошу.
Ответ
#4
\inc\l2db\ открываем модуль своей сборки и сверяем запросы, сначала начни сравнивать

Код:
    "setPassword" => "
        UPDATE `[color=Red]accounts[/color]`
        SET `password`='{pass}'
        WHERE `login`='{login}'",
    
    "setAccessLevelAccount" => "
        UPDATE `[color=red]accounts[/color]`
        SET `accessLevel`='{level}'
        WHERE `login`='{login}'",
        
    "setAccessLevelCharacter" => "
        UPDATE `[color=red]characters[/color]`
        SET `accesslevel`='{level}'
        WHERE `charId`='{charID}'",


Названия таблиц, столбцов.
Web программист\разработчик

— Есть только один способ проделать большую работу — полюбить ее. Если вы к этому не пришли, подождите. Не беритесь за дело.
Ответ
#5
Код:
<?php
/**
* STRESS WEB
* @author S.T.R.E.S.S.
* @copyright 2008 - 2011 STRESS WEB
* @version 11
* @web http://stressweb.ru
*/
if (!defined("STRESSWEB")) die ("Access denied...");
$sName = "EmuEnt";
$qList[$sName] = array (

    "fields" => array(
        "accessLevel"=>"accessLevel",
        "charID"=>"charId",
        ),
    
    "itemType" => array (
        0    => "dress",
        1    => "leftearring",
        2    => "rightearring",
        4    => "necklace",
        5    => "rightring",
        6    => "leftring",
        8    => "helmet",
        9    => "weapon",
        11    => "gloves",
        12    => "top",
        13    => "lower",
        14    => "bots",

        3    => "shield",
        7    => "weapon",
        10    => "shield",
        15    => "righthair",
        16    => "weapon",
        17    => "lefthair",
        18    => "lefthair",
        20    => "righthair",
        22    => "braslet",
        ),

    "insAccount" => "
        INSERT INTO `accounts` (`login`,`password`,`accessLevel`,`l2question`,`l2answer`,`l2email`)
        VALUES ('{login}','{pass}','0','{l2question}','{l2answer}','{l2email}')",
    
    "insItem" => "
            INSERT INTO `items` (`owner_id`,`object_id`,`item_id`,`count`,`enchant_level`,`loc`,`loc_data`)
            VALUES ('{ownerID}', '{objectID}', '{itemID}', '{count}', '{enchant}', 'INVENTORY', '0')",
    
    "setPassword" => "
        UPDATE `accounts`
        SET `password`='{pass}'
        WHERE `login`='{login}'",
    
    "setAccessLevelAccount" => "
        UPDATE `accounts`
        SET `accessLevel`='{level}'
        WHERE `login`='{login}'",
        
    "setAccessLevelCharacter" => "
        UPDATE `characters`
        SET `accesslevel`='{level}'
        WHERE `charId`='{charID}'",
        
    "setTeleport" => "
        UPDATE `characters`
        SET `x`='{x}',`y`='{y}',`z`='{z}',`lastteleport`='{lastteleport}'
        WHERE `charId`='{charID}'",
    
    "setItem" => "
        UPDATE `items`
        SET `count`='{count}', `enchant_level`='{enchant}'
        WHERE `object_id`='{objectID}'",
    
    "setItemCount" => "
        UPDATE `items`
        SET `count` = '{count}'
        WHERE `owner_id` = '{ownerID}' AND `object_id` = '{objectID}'",
            
    "getCountAccounts" => "
        SELECT count(0)
        FROM accounts {where}",
    
    "getCountCharacters" => "
        SELECT count(0)
        FROM characters {where}",
    
    "getCountClans" => "
        SELECT count(0)
        FROM clan_data",
    
    "getCountHuman" => "
        SELECT count(0)
        FROM characters
        WHERE race='0' AND accesslevel='0'",
    
    "getCountElf" => "
        SELECT count(0)
        FROM characters
        WHERE race='1' AND accesslevel='0'",
    
    "getCountDElf" => "
        SELECT count(0)
        FROM characters
        WHERE race='2' AND accesslevel='0'",
    
    "getCountOrc" => "
        SELECT count(0)
        FROM characters
        WHERE race='3' AND accesslevel='0'",
    
    "getCountDwarf" => "
        SELECT count(0)
        FROM characters
        WHERE race='4' AND accesslevel='0'",
    
    "getCountKamael" => "
        SELECT count(0)
        FROM characters
        WHERE race='5' AND accesslevel='0'",
    
    "getCountDawn" => "
        SELECT count(0)
        FROM seven_signs
        WHERE cabal='dawn'",
    
    "getCountDusk" => "
        SELECT count(0)
        FROM seven_signs
        WHERE cabal='dusk'",
    
    "getAccount" => "
        SELECT login,password,lastactive,accessLevel,lastIP
        FROM `accounts`
        WHERE `login`='{login}' {where}
        LIMIT 1",
        
    "getAccounts" => "
        SELECT login,lastactive,accessLevel,lastIP
        FROM `accounts` {where}
        ORDER BY {order}
        LIMIT {limit}",
        
    "getCharactersList" => "
        SELECT characters.account_name, characters.charId, characters.char_name, characters.level, characters.accesslevel, characters.lastAccess, char_templates.ClassName
        FROM `characters`
        LEFT JOIN `char_templates` ON characters.base_class = char_templates.ClassId {where}
        ORDER BY characters.char_name
        LIMIT {limit}",
    
    "getCharacter" => "
        SELECT characters.account_name, characters.char_name, characters.level, characters.sex, characters.base_class, characters.online, characters.exp, characters.sp, characters.karma, characters.pvpkills, characters.pkkills, characters.accesslevel, characters.onlinetime, characters.lastAccess, char_templates.ClassName, clan_data.clan_name
        FROM `characters`
        LEFT JOIN `char_templates` ON characters.base_class = char_templates.ClassId
        LEFT JOIN `clan_data` ON characters.clanid = clan_data.clan_id
        WHERE characters.charId='{charID}'",
        
    "getCharacterInfo" => "
        SELECT characters.account_name, characters.char_name, characters.level, characters.maxHp, characters.maxCp, characters.maxMp, characters.sex, characters.exp, characters.sp, characters.pvpkills, characters.pkkills, characters.karma, characters.race, characters.base_class, characters.accesslevel, characters.lastAccess, char_templates.ClassName, char_templates.STR, char_templates.CON, char_templates.DEX, char_templates._INT, char_templates.WIT, char_templates.MEN
        FROM `characters`
        LEFT JOIN `char_templates` ON characters.base_class = char_templates.ClassId
        WHERE characters.charId='{charID}'",
        
    "getAccountCharacters" => "
        SELECT characters.account_name, characters.charId AS charID, characters.char_name, characters.level, characters.accesslevel, characters.lastAccess, characters.online, characters.onlinetime, characters.punish_level as in_jail, char_templates.ClassName, clan_data.clan_name
        FROM `characters`
        LEFT JOIN `char_templates` ON characters.base_class = char_templates.ClassId
        LEFT JOIN `clan_data` ON characters.clanid = clan_data.clan_id
        WHERE characters.account_name='{account}'
        ORDER BY characters.char_name",
    
    "getTopClan"=>"
        SELECT clan_data.clan_name, clan_data.clan_id, clan_data.ally_name, clan_data.clan_level, clan_data.reputation_score, clan_data.hasCastle, characters.char_name, ccount
        FROM `clan_data`
        LEFT JOIN `characters` ON characters.charId = clan_data.leader_id  
        LEFT JOIN (
            SELECT clanid, count(level) AS ccount
            FROM characters
            WHERE clanid GROUP BY clanid
            ) AS levels ON clan_data.clan_id = levels.clanid
        ORDER BY clan_data.clan_level DESC, clan_data.reputation_score DESC
        LIMIT {limit}",
    
    "getTop" => "
        SELECT characters.char_name, characters.level, characters.sex, characters.pvpkills, characters.pkkills, characters.online, characters.onlinetime, char_templates.ClassName, clan_data.clan_name, clan_data.clan_id
        FROM `characters`
        LEFT JOIN `char_templates` ON characters.classid = char_templates.ClassId
        LEFT JOIN `clan_data` ON characters.clanid = clan_data.clan_id
        WHERE characters.accesslevel='0'
        ORDER BY characters.{order} DESC
        LIMIT {limit}",
        
    "getClanCharacters" => "
        SELECT characters.char_name, characters.level, characters.sex, characters.pvpkills, characters.pkkills, characters.online, characters.onlinetime, char_templates.ClassName, clan_data.clan_name, clan_data.clan_id
        FROM `characters`
        LEFT JOIN `char_templates` ON characters.classid = char_templates.ClassId
        LEFT JOIN `clan_data` ON characters.clanid = clan_data.clan_id
        WHERE characters.clanid='{clanid}'
        ORDER BY characters.level DESC",
    
    "getOnline" => "
        SELECT characters.char_name, characters.level, characters.sex, characters.pvpkills, characters.pkkills, characters.online, characters.onlinetime, char_templates.ClassName, clan_data.clan_name, clan_data.clan_id
        FROM `characters`
        LEFT JOIN `char_templates` ON characters.classid = char_templates.ClassId
        LEFT JOIN `clan_data` ON characters.clanid = clan_data.clan_id
        WHERE characters.accesslevel='0' AND characters.online='1'
        ORDER BY characters.level DESC, characters.onlinetime DESC",
    
    "getEpicStatus" => "
        SELECT grandboss_spawnlist.respawn_time, npc.name, npc.level
        FROM grandboss_spawnlist
        LEFT JOIN npc ON grandboss_spawnlist.boss_id = npc.id
        ORDER BY npc.level DESC",
    
    "getRaidStatus" => "
        SELECT raidboss_spawnlist.respawn_time, npc.level, npc.name
        FROM raidboss_spawnlist
        LEFT JOIN npc ON raidboss_spawnlist.boss_id = npc.id
        ORDER BY npc.level DESC, npc.name ASC",
        
    "getClan" => "
        SELECT clan_name
        FROM clan_data
        WHERE clan_id='{clanid}'",
        
    "getCastles" => "
        SELECT castle.name, castle.id, castle.taxPercent, castle.siegeDate, clan_data.clan_name, clan_data.clan_id
        FROM castle
        LEFT JOIN clan_data ON clan_data.hasCastle = castle.id",
    
    "getForts" => "
        SELECT fort.name as name, fort.id,fort.siegeDate,clan_data.clan_name,clan_data.clan_id
        FROM fort Left Join clan_data ON clan_data.hasFort = fort.id",
    
    "getSiege" => "
        SELECT siege_clans.castle_id, siege_clans.clan_id, siege_clans.type, siege_clans.castle_owner, clan_data.clan_name
        FROM siege_clans
        LEFT JOIN clan_data ON clan_data.clan_id = siege_clans.clan_id
        WHERE castle_id='{castle}'",
    
    "getOlympiad" => "
        SELECT characters.char_name, olympiad_nobles.olympiad_points, olympiad_nobles.competitions_done, char_templates.ClassName, characters.sex
        FROM olympiad_nobles
        LEFT JOIN char_templates ON olympiad_nobles.class_id = char_templates.ClassId
        LEFT JOIN characters ON olympiad_nobles.charId = characters.charId
        ORDER BY olympiad_nobles.class_id, olympiad_nobles.olympiad_points DESC",
    
    "getInventory" => "
        SELECT items.object_id,items.item_id,items.count,items.enchant_level,items.loc,
            CASE WHEN armor.name != '' THEN armor.name
            WHEN weapon.name != '' THEN weapon.name
            WHEN etcitem.name != '' THEN etcitem.name
            END AS name,
            CASE WHEN armor.crystal_type != '' THEN 'armor'
            WHEN weapon.crystal_type != '' THEN 'weapon'
            WHEN etcitem.crystal_type != '' THEN 'etc'
            END AS `type`
        FROM `items`
        LEFT JOIN `armor` ON armor.item_id = items.item_id
        LEFT JOIN weapon ON weapon.item_id = items .item_id
        LEFT JOIN etcitem ON etcitem.item_id = items.item_id
        WHERE items.owner_id='{charID}'
        ORDER BY {order}",
        
    "getCharInventory" => "
        SELECT items.object_id,items.item_id,items.count,items.enchant_level,items.loc,items.loc_data,armorName,weaponName,etcName,armorType,weaponType,etcType
        FROM `items`
        LEFT JOIN (
            SELECT item_id, name AS armorName, crystal_type AS armorType
            FROM `armor`
            ) AS aa ON aa.item_id = items.item_id
        LEFT JOIN (
            SELECT item_id, name AS weaponName, crystal_type AS weaponType
            FROM `weapon`
            ) AS ww ON ww.item_id = items.item_id
        LEFT JOIN (
            SELECT item_id, name AS etcName, crystal_type AS etcType
            FROM `etcitem`
            ) AS ee ON ee.item_id = items.item_id
        WHERE items.owner_id='{charID}' AND items.loc='{loc}'
        ORDER BY items.loc_data",
    
    "getItemByObjectID" => "
        SELECT `count`, `enchant_level`, `item_id`
        FROM `items`
        WHERE `object_id`='{objectID}'",
    
    "getLastTeleport" => "
        SELECT `char_name`,`online`,`accesslevel`,`punish_level` as in_jail,`lastteleport`
        FROM `characters`
        WHERE `charId`='{charID}'",
    
    "getItem" => "
        SELECT `object_id`, `count`
        FROM `items`
        WHERE `owner_id` = '{charID}' AND `item_id` = '{itemID}' AND `loc` = 'INVENTORY'
        LIMIT 1",
    
    "getMax" => "
            SELECT MAX(`object_id`)+1 AS `max`
            FROM `items`",
    
    "delAccounts" => "
        DELETE FROM accounts
        WHERE login='{login}'",
    
    "delItemByID" => "
        DELETE FROM `items`
        WHERE `item_id`='{item}'",
    
    "delCharByID" => "
        DELETE FROM `characters`
        WHERE `charId`='{charID}'",
        
    "delItemByOwner" => "
        DELETE FROM `items`
        WHERE `owner_id`='{charID}'",
        
    "delItemByObjectID" => "
        DELETE FROM `items`
        WHERE `object_id`='{objectID}'",
    
    "delItemByIDOwner" => "
        DELETE FROM `items`
        WHERE `item_id`='{item}' AND `owner_id`='{charID}'",
    
    "other" => array(
        "DELETE FROM character_friends    WHERE charId='{charID}' OR friendId='{charID}'",
        "DELETE FROM character_hennas WHERE charId='{charID}'",
        "DELETE FROM character_macroses WHERE charId='{charID}'",
        "DELETE FROM character_quests WHERE charId='{charID}'",
        "DELETE FROM character_recipebook WHERE charId='{charID}'",
        "DELETE FROM character_shortcuts WHERE charId='{charID}'",
        "DELETE FROM character_skills WHERE charId='{charID}'",
        "DELETE FROM character_skills_save WHERE charId='{charID}'",
        "DELETE FROM character_subclasses WHERE charId='{charID}'",    
        "DELETE FROM seven_signs WHERE charId='{charID}'",
        "DELETE FROM items WHERE owner_id='{charID}'",
        "DELETE FROM clan_data WHERE leader_id='{charID}'",
        ),

    "l2top" => array(
        
        "getName" => "
            SELECT *
            FROM `l2top`
            WHERE `nick`='{nick}' AND `time`='{time}'",
            
        "getChar" => "
            SELECT account_name, charId AS charID, online
            FROM `characters`
            WHERE `char_name`='{name}'",
        
        "getItem" => "
            SELECT `item_id`,`count`
            FROM `items`
            WHERE `owner_id`='{ownerID}' AND `item_id`='{itemID}' AND `loc`='INVENTORY'",
        
        "getMax" => "
            SELECT MAX(`object_id`)+1 AS `max`
            FROM `items`",
        
        "insItem" => "
            INSERT INTO `items` (`owner_id`,`object_id`,`item_id`,`count`,`enchant_level`,`loc`,`loc_data`)
            VALUES ('{charID}', '{objectID}', '{itemID}', '{count}', '0', 'INVENTORY', '0')",
        
        "insl2top" => "
            INSERT INTO `l2top` (`nick`,`ip`,`time`)
            VALUES ('{nick}','{ip}','{time}')",
        
        "setItem" => "
            UPDATE `items`
            SET `count`=`count`+'{count}'
            WHERE `owner_id`='{ownerID}' AND `item_id`='{itemID}' AND `loc`='INVENTORY'",
        ),
        
);
?>
То открыл?
(На сайте поставил EmuEnt)

Добавлено через 20 минут
Я вот сравниваю sql запрос с данными в sql ах сервака. Все совпадает.

Добавлено через 29 минут
Код:
    "itemType" => array (
        0    => "dress",
        1    => "leftearring",
        2    => "rightearring",
        4    => "necklace",
        5    => "rightring",
        6    => "leftring",
        8    => "helmet",
        9    => "weapon",
        11    => "gloves",
        12    => "top",
        13    => "lower",
        14    => [color=Red]"bots"[/color],
Я поставил "feet"

Добавлено через 30 минут
У меня просто в арморе нету bots у меня пишет feet.

Добавлено через 39 минут
[STIGMATED], ПЛЗ помоги. )

Добавлено через 1 час 23 минуты
ап тему!!!
Ответ


Возможно похожие темы ...
Тема Автор Ответы Просмотры Последний пост
  Помогите вытянуть окошко с сайта Rork 1 1,651 01-16-2017, 07:17 PM
Последний пост: L2jm
  Привязка PW-soft к сайту Amidamaru 2 1,478 05-08-2016, 08:30 PM
Последний пост: Amidamaru
  Бд с хостинга сайта 4arli 4 1,645 08-17-2014, 10:44 AM
Последний пост: 4arli
  Открытие сайта через HTML Noize 1 1,196 03-29-2013, 05:50 PM
Последний пост: [STIGMATED]
  Подключение сайта к MySQL бд Time of Gods 7 1,861 12-16-2012, 12:02 PM
Последний пост: FiveWorld
  Хостинг сайта. Time of Gods 8 2,024 12-10-2012, 05:13 PM
Последний пост: Place
  Привязка StressWeb 12 spartana 4 2,411 11-13-2012, 07:04 PM
Последний пост: Mafio
  Привязка маг профы к маг скину ElefanD 16 3,317 09-09-2012, 01:21 PM
Последний пост: Ctudent
  Привязка скила к придмету Deron 1 1,347 04-07-2012, 06:14 AM
Последний пост: Ro_0TT
  Привязка 1tester1 20 5,381 02-14-2012, 06:39 PM
Последний пост: Ro_0TT

Перейти к форуму:


Пользователи, просматривающие эту тему: 2 Гость(ей)