diff options
author | Yohann Ferreira <bertram@cegetel.net> | 2006-10-19 02:43:26 +0000 |
---|---|---|
committer | Yohann Ferreira <bertram@cegetel.net> | 2006-10-19 02:43:26 +0000 |
commit | c38af49bd66095b581e7eca10a91e100391201c3 (patch) | |
tree | 9fefeb60de43b3a8be3c21be965f3045088defeb /src/dalstorage.cpp | |
parent | b5857d43bfc4ac08ed99cb02a149d6cb63f13862 (diff) | |
download | manaserv-c38af49bd66095b581e7eca10a91e100391201c3.tar.gz manaserv-c38af49bd66095b581e7eca10a91e100391201c3.tar.bz2 manaserv-c38af49bd66095b581e7eca10a91e100391201c3.tar.xz manaserv-c38af49bd66095b581e7eca10a91e100391201c3.zip |
Added a backend to get item reference information. The xml file isn't ready yet.
Diffstat (limited to 'src/dalstorage.cpp')
-rw-r--r-- | src/dalstorage.cpp | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/src/dalstorage.cpp b/src/dalstorage.cpp index 87387352..44e702ef 100644 --- a/src/dalstorage.cpp +++ b/src/dalstorage.cpp @@ -645,12 +645,12 @@ void DALStorage::flush(AccountPtr const &account) << (*it)->getPosition().x << ", " << (*it)->getPosition().y << ", " << (*it)->getMapId() << ", " - << (*it)->getRawStat(STAT_STR) << ", " - << (*it)->getRawStat(STAT_AGI) << ", " - << (*it)->getRawStat(STAT_VIT) << ", " - << (*it)->getRawStat(STAT_INT) << ", " - << (*it)->getRawStat(STAT_DEX) << ", " - << (*it)->getRawStat(STAT_LUK) << ");"; + << (*it)->getRawStat(STAT_STRENGTH) << ", " + << (*it)->getRawStat(STAT_AGILITY) << ", " + << (*it)->getRawStat(STAT_VITALITY) << ", " + << (*it)->getRawStat(STAT_INTELLIGENCE) << ", " + << (*it)->getRawStat(STAT_DEXTERITY) << ", " + << (*it)->getRawStat(STAT_LUCK) << ");"; // get the character id std::ostringstream sql2; @@ -677,16 +677,16 @@ void DALStorage::flush(AccountPtr const &account) << " x = " << (*it)->getPosition().x << ", " << " y = " << (*it)->getPosition().y << ", " << " map_id = " << (*it)->getMapId() << ", " - << " str = " << (*it)->getRawStat(STAT_STR) << ", " - << " agi = " << (*it)->getRawStat(STAT_AGI) << ", " - << " vit = " << (*it)->getRawStat(STAT_VIT) << ", " + << " str = " << (*it)->getRawStat(STAT_STRENGTH) << ", " + << " agi = " << (*it)->getRawStat(STAT_AGILITY) << ", " + << " vit = " << (*it)->getRawStat(STAT_VITALITY) << ", " #if defined(MYSQL_SUPPORT) || defined(POSTGRESQL_SUPPORT) - << " `int` = " << (*it)->getRawStat(STAT_INT) << ", " + << " `int` = " << (*it)->getRawStat(STAT_INTELLIGENCE) << ", " #else - << " int = " << (*it)->getRawStat(STAT_INT) << ", " + << " int = " << (*it)->getRawStat(STAT_INTELLIGENCE) << ", " #endif - << " dex = " << (*it)->getRawStat(STAT_DEX) << ", " - << " luck = " << (*it)->getRawStat(STAT_LUK) + << " dex = " << (*it)->getRawStat(STAT_DEXTERITY) << ", " + << " luck = " << (*it)->getRawStat(STAT_LUCK) << " where id = " << (*it)->getDatabaseID() << ";"; } mDb->execSql(sql3.str()); |