I can't find where to post about this (too idiot plx) so I'm posting here... fell free to move it.
Bug on Newest SVN (June 1st)
File: ioban.cpp
Description: As I can see we are using another field(value) to check a banned account but ioban is still using (account) field to check bans, this means that a banned char can still login and we will receive a error msg always when a char login on server.
fix:
find:
replace to:
simple xD
another good fix its about GM CM GOD having the same outfit... to change this ..:
iologindata.cpp
find:
replace to:
Hope u like it,
Yours Diogo.
Bug on Newest SVN (June 1st)
File: ioban.cpp
Description: As I can see we are using another field(value) to check a banned account but ioban is still using (account) field to check bans, this means that a banned char can still login and we will receive a error msg always when a char login on server.
fix:
find:
Code:
query << "SELECT `id` FROM `bans` WHERE `[B][COLOR="Red"]value[/COLOR][/B]` = " << account << " AND `type` = " << (BanType_t)BANTYPE_DELETION << " AND `active` = 1";
replace to:
Code:
query << "SELECT `id` FROM `bans` WHERE `[B][COLOR="Red"]account[/COLOR][/B]` = " << account << " AND `type` = " << (BanType_t)BANTYPE_DELETION << " AND `active` = 1";
simple xD
another good fix its about GM CM GOD having the same outfit... to change this ..:
iologindata.cpp
find:
Code:
if(player->hasCustomFlag(PlayerCustomFlag_GamemasterPrivileges))
player->defaultOutfit.lookType = 75;
else
player->defaultOutfit.lookType = result->getDataInt("looktype");
Code:
if(player->hasCustomFlag(PlayerCustomFlag_GamemasterPrivileges))
{
if (player->groupId == 6) //God
player->defaultOutfit.lookType = 266;
if (player->groupId == 5) //CM
player->defaultOutfit.lookType = 266;
if (player->groupId == 4) //GM
player->defaultOutfit.lookType = 75;
}
else //normal player
{
player->defaultOutfit.lookType = result->getDataInt("looktype");
}
Hope u like it,
Yours Diogo.
Last edited: