Commit 87f8ac21ca6d2d086984dfc39b1869dc51ecd36fauthor:vitasic<[email protected]>Date:tue June - the: +: - -+0400Add Fake Playersdiff--git A/src/server/game/handlers/chathandler.cpp b/src/server/game/handlers/Chathandler.cppindex 966eae5. 3F4E3FB100755---a/src/server/game/handlers/ChatHandler.cpp+ + b/src/server/game/handlers/chathandler.cpp@@-274,8+274, -@@voidWorldsession::handlemessagechatopcode (Worldpacket &recv_data)BOOLReceiverisplayer = Accountmgr::isplayeraccount (receiver receiver->getsession ()getsecurity (): Sec_player); if(!receiver | | (Senderisplayer &&!receiverisplayer &&!receiver->isacceptwhispers () &&!receiver-> Isinwhisperwhitelist (sender->GetGuid ()))) {+//If Fake who List system on then show player DND+if(sworld->Getboolconfig (config_fake_who_list))+ { + sworld->Sendworldtext (lang_not_whisper);+return; + } +Else+{sendplayernotfoundnotice (to); return;+ } } if(!sworld->getboolconfig (config_allow_two_side_interaction_chat) && Senderisplayer &&receiverisplayer) diff--git A/src/server/game/handlers/mischandler.cpp b/src/server/game/handlers/Mischandler.cppindex 11f0857. DFC4B6A100755---a/src/server/game/handlers/MiscHandler.cpp+ + b/src/server/game/handlers/mischandler.cpp@@-356,8+356, +@@voidWorldsession::handlewhoopcode (Worldpacket &recv_data)++Displaycount; }--Data.put (0, Displaycount);//Insert Right count, Count displayed+ +if(Sworld->getboolconfig (config_fake_who_list) && Displaycount < the) + { +//Fake players on the Who LIST 0, 1, 2, 3, 4, 5 6+ QueryResult result = Characterdatabase.query ("SELECT Guid,name,race,class,level,zone,gender from characters WHERE online>1 and level > 3"); +if(Result)+ { + Do+ { + Field *fields = result->Fetch ();+ + std::stringPName = fields[1]. GetString ();//player Name+ std::stringGname;//Guild Name+ UInt32 lvl = fields[4]. GetUInt32 ();//player level+ UInt32 Class_ = fields[3]. GetUInt32 ();//Player Class+ UInt32 race = fields[2]. GetUInt32 ();//Player Race+ UInt32 Pzoneid = fields[5]. GetUInt32 ();//Player Zone ID+ uint8 gender = fields[6]. GetUInt8 ();//Player Gender+ + data << pname;//player Name+ Data << gname;//Guild Name+ Data << uint32 (LVL);//player level+ Data << UInt32 (CLASS_);//Player Class+ Data << UInt32 (race);//Player Race+ Data << uint8 (gender);//Player Gender+ Data << UInt32 (Pzoneid);//Player Zone ID+ +if((++matchcount) = = the) + Break; + } while(result->NextRow ()); + } + } + + data.put (0, MatchCount);//Insert Right count, Count displayedData.put (4, MatchCount);//Insert Right count, count of matchesSendpacket (&data);d iff--git A/src/server/game/world/world.cpp b/src/server/game/world/World.cppindex 8A6B4CD. 518EFFD100755---a/src/server/game/world/World.cpp+ + b/src/server/game/world/world.cpp@@-667,6+667,7@@voidWorld::loadconfigsettings (BOOLreload) M_bool_configs[config_allow_two_side_who_list]= Configmgr::getbooldefault ("allowtwoside.wholist",false); M_bool_configs[config_allow_two_side_add_friend]= Configmgr::getbooldefault ("Allowtwoside.addfriend",false); M_bool_configs[config_allow_two_side_trade]= Configmgr::getbooldefault ("Allowtwoside.trade",false);+ M_bool_configs[config_fake_who_list] = Configmgr::getbooldefault ("Fake.WHO.List",false); M_int_configs[config_strict_player_names]= Configmgr::getintdefault ("Strictplayernames",0); M_int_configs[config_strict_charter_names]= Configmgr::getintdefault ("Strictcharternames",0); M_int_configs[config_strict_pet_names]= Configmgr::getintdefault ("Strictpetnames",0);d iff--git a/src/server/game/world/world.h b/src/server/game/world/World.hindex f566ece. 0D430BF100755---a/src/server/game/world/World.h+ + b/src/server/game/world/world.h@@- -,6+ -,7@@enumworldboolconfigs config_allow_two_side_who_list, Config_allow_two_side_add_friend, CONFIG_ALLOW_TWO_SIDE_ Trade,+config_fake_who_list, Config_all_taxi_paths, Config_instant_taxi, Config_instance_ignore_level,diff
--git a/src/server/worldserver/worldserver.conf.dist b/src/server/worldserver/Worldserver.conf.distindex 9f0ad53. 40A04A1100644---a/src/server/worldserver/worldserver.conf.dist+ + b/src/server/worldserver/worldserver.conf.dist@@-1601,6+1601, -@@ Allowtwoside.trade =0talentsinspecting=1+# Fake.WHO.List+# Add fake players to fillinchWho lists (who isOnline list,"O"buttonifThere is less Then+# theReal players online (need toSetOnline=2 inchCharacter Databaseinchorder to work)+# Default:0(Disabled)+#1(enabled)++fake.who.list =0+ # ###################################################################################################