Fix for LoadBot() hp issue

This commit is contained in:
Uleat 2015-11-04 23:30:46 -05:00
parent a6f6e18969
commit 86f35e45d3

View File

@ -3737,9 +3737,9 @@ Bot* Bot::LoadBot(uint32 botID, std::string* errorMessage)
" `drakkin_tattoo`," " `drakkin_tattoo`,"
" `drakkin_details`," " `drakkin_details`,"
" `ac`," /*not in-use[26]*/ " `ac`," /*not in-use[26]*/
" `atk`," " `atk`," /*not in-use[27]*/
" `hp`," " `hp`,"
" `mana`," /*not in-use[29]*/ " `mana`,"
" `str`," /*not in-use[30]*/ " `str`," /*not in-use[30]*/
" `sta`," /*not in-use[31]*/ " `sta`," /*not in-use[31]*/
" `cha`," /*not in-use[32]*/ " `cha`," /*not in-use[32]*/
@ -3753,8 +3753,8 @@ Bot* Bot::LoadBot(uint32 botID, std::string* errorMessage)
" `poison`," /*not in-use[40]*/ " `poison`," /*not in-use[40]*/
" `disease`," /*not in-use[41]*/ " `disease`," /*not in-use[41]*/
" `corruption`," /*not in-use[42]*/ " `corruption`," /*not in-use[42]*/
" `show_helm`," " `show_helm`,"//43
" `follow_distance`" " `follow_distance`"//44
" FROM `bot_data`" " FROM `bot_data`"
" WHERE `bot_id` = '%u'", " WHERE `bot_id` = '%u'",
botID botID
@ -3791,8 +3791,8 @@ Bot* Bot::LoadBot(uint32 botID, std::string* errorMessage)
atoi(row[23]), atoi(row[23]),
atoi(row[24]), atoi(row[24]),
atoi(row[25]), atoi(row[25]),
atoi(row[27]),
atoi(row[28]), atoi(row[28]),
atoi(row[29]),
defaultNPCTypeStruct.MR, defaultNPCTypeStruct.MR,
defaultNPCTypeStruct.CR, defaultNPCTypeStruct.CR,
defaultNPCTypeStruct.DR, defaultNPCTypeStruct.DR,