• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Newest SVN TFS bug/fix

diogo

New Member
Joined
May 24, 2008
Messages
16
Reaction score
0
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:
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");
replace to:
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:
Back
Top