Jump to content

kaxias

Members
  • Posts

    53
  • Joined

  • Last visited

    Never
  • Donations

    0.00 GBP 

Everything posted by kaxias

  1. BlueBoy u can set PlayerbotAI.RestrictBotLevel = 80 max level 60 default https://github.com/blueboy/portalzero/blob/master/src/game/playerbot/playerbot.conf.dist.in#L67
  2. [gist]3755633[/gist] why did u need this changes in Playerbotzero?
  3. fix to mangos 11430 but not sure if this the right way! diff --git a/src/game/playerbot/PlayerbotMgr.cpp b/src/game/playerbot/PlayerbotMgr.cpp index 404430b..bcf2612 100644 --- a/src/game/playerbot/PlayerbotMgr.cpp +++ b/src/game/playerbot/PlayerbotMgr.cpp @@ -9,6 +9,7 @@ #include "../Chat.h" #include "../Language.h" #include "../Guild.h" +#include "../GuildMgr.h" #include "../WaypointMovementGenerator.h" class LoginQueryHolder; @@ -662,7 +663,7 @@ void PlayerbotMgr::HandleMasterIncomingPacket(const WorldPacket& packet) uint32 GuildId = bot->GetGuildId(); if (!GuildId) return; - Guild *pGuild = sObjectMgr.GetGuildById(GuildId); + Guild *pGuild = sGuildMgr.GetGuildById(GuildId); if (!pGuild) return; pGuild->LogBankEvent(GUILD_BANK_LOG_REPAIR_MONEY, 0, bot->GetGUIDLow(), TotalCost);
  4. I'm not sure if does only warning! i'm use vc90 and i spot this warning when i install playerbot!
  5. warning fix in vc10 diff --git a/win/VC100/game.vcxproj.filters b/win/VC100/game.vcxproj.filters index daf1591..0f04dea 100644 --- a/win/VC100/game.vcxproj.filters +++ b/win/VC100/game.vcxproj.filters @@ -495,6 +495,7 @@ </ClCompile> <ClCompile Include="..\\..\\src\\game\\playerbot\\PlayerbotWarriorAI.cpp"> <Filter>World/Handlers</Filter> + </ClCompile> <ClCompile Include="..\\..\\src\\game\\vmap\\BIH.cpp"> <Filter>vmaps</Filter> </ClCompile> @@ -953,6 +954,7 @@ </ClInclude> <ClInclude Include="..\\..\\src\\game\\playerbot\\PlayerbotWarriorAI.h"> <Filter>World/Handlers</Filter> + </ClInclude> <ClInclude Include="..\\..\\src\\game\\vmap\\BIH.h"> <Filter>vmaps</Filter> </ClInclude>
  6. hi Blueboy! observed some changes not necessary. https://gist.github.com/957756
  7. Hi Guys! I found this code LFG on the Internet! but do not know who the author of the code! LINK I believe was taken from the RSA my problem when I compile and give me this error. ObjectMgr.cpp ..\\..\\src\\game\\ObjectMgr.cpp(202): error C2663: 'std::_Hash<_Traits>::find' : 2 overloads have no legal conversion for 'this' pointer with [ _Traits=std::tr1::_Umap_traits<uint32,Group *,std::_Hash_compare<uint32,std::hash<uint32>,std::equal_to<size_t>>,std::allocator<std::pair<const uint32,Group *>>,false> ] file ObjectMgr.cpp Group* ObjectMgr::GetGroup(ObjectGuid guid) const { GroupMap::const_iterator itr = mGroupMap.find(guid); if (itr != mGroupMap.end()) return itr->second; return NULL; } if possible someone help me. I will be grateful.
  8. i did but it is not right way to do!
  9. dont work after core 10156 m_spellproto in aura HandlePhase broken!
  10. Hello! you has the mangos-ru to speak your language! and this is not discrimination by language, because I'm not British or American. There is not a site like mangos in my language. so I have to speak in English. please speak in English for all to understand what you speak!
  11. Please do not interpret me wrong! but I just want to help because I love this patch! fix white space was to avoid conflicts in the future!
  12. by your ripo in chat.cpp have 1 space http://github.com/blueboy/mangos/blob/master/src/game/Chat.cpp#L707 for the mangos have 8 space http://github.com/mangos/mangos/blob/master/src/game/Chat.cpp#L705 so you have white space to fix!
  13. try on! md playbot cd playbot git pull git://github.com/mangos/mangos.git git branch playbot git pull git://github.com/blueboy/mangos.git git diff master playbot > playerbot .diff so you can see the difference diff --git a/src/game/Chat.cpp b/src/game/Chat.cpp index 8dc9148..10020d7 100644 --- a/src/game/Chat.cpp +++ b/src/game/Chat.cpp @@ -702,7 +702,9 @@ ChatCommand * ChatHandler::getCommandTable() { "flusharenapoints",SEC_ADMINISTRATOR, false, &ChatHandler::HandleFlushArenaPointsCommand, "", NULL }, { "repairitems", SEC_GAMEMASTER, true, &ChatHandler::HandleRepairitemsCommand, "", NULL }, { "waterwalk", SEC_GAMEMASTER, false, &ChatHandler::HandleWaterwalkCommand, "", NULL }, - { "quit", SEC_CONSOLE, true, &ChatHandler::HandleQuitCommand, "", NULL }, + //Playerbot mod + { "bot", SEC_PLAYER, false, &ChatHandler::HandlePlayerbotCommand, "", NULL }, + { "quit", SEC_CONSOLE, true, &ChatHandler::HandleQuitCommand, "", NULL }, { NULL, 0, false, NULL, "", NULL } }; @@ -935,7 +937,7 @@ bool ChatHandler::ExecuteCommandInTable(ChatCommand *table, const char* text, co fullcmd.c_str(),p->GetName(),GetAccountId(),p->GetPositionX(),p->GetPositionY(),p->GetPositionZ(),p->GetMapId(), sel_guid.GetString().c_str()); } - else // 0 account -> console + else // 0 account -> console { sLog.outCommand(GetAccountId(),"Command: %s [Account: %u from %s]", fullcmd.c_str(),GetAccountId(),GetAccountId() ? "RA-connection" : "Console");
  14. hi Blueboy FIX white space, VC80 and VC100 http://www.mediafire.com/?ymxmudedjwd
  15. you can fix with this diff! diff --git a/win/VC100/game.vcxproj b/win/VC100/game.vcxproj index 44858d5..7da58d2 100644 --- a/win/VC100/game.vcxproj +++ b/win/VC100/game.vcxproj @@ -455,6 +455,19 @@ <ClCompile Include="..\\..\\src\\game\\PetHandler.cpp" /> <ClCompile Include="..\\..\\src\\game\\PetitionsHandler.cpp" /> <ClCompile Include="..\\..\\src\\game\\Player.cpp" /> + <ClCompile Include="..\\..\\src\\game\\PlayerbotAI.cpp" /> + <ClCompile Include="..\\..\\src\\game\\PlayerbotClassAI.cpp" /> + <ClCompile Include="..\\..\\src\\game\\PlayerbotDeathKnightAI.cpp" /> + <ClCompile Include="..\\..\\src\\game\\PlayerbotDruidAI.cpp" /> + <ClCompile Include="..\\..\\src\\game\\PlayerbotHunterAI.cpp" /> + <ClCompile Include="..\\..\\src\\game\\PlayerbotMageAI.cpp" /> + <ClCompile Include="..\\..\\src\\game\\PlayerbotMgr.cpp" /> + <ClCompile Include="..\\..\\src\\game\\PlayerbotPaladinAI.cpp" /> + <ClCompile Include="..\\..\\src\\game\\PlayerbotPriestAI.cpp" /> + <ClCompile Include="..\\..\\src\\game\\PlayerbotRogueAI.cpp" /> + <ClCompile Include="..\\..\\src\\game\\PlayerbotShamanAI.cpp" /> + <ClCompile Include="..\\..\\src\\game\\PlayerbotWarlockAI.cpp" /> + <ClCompile Include="..\\..\\src\\game\\PlayerbotWarriorAI.cpp" /> <ClCompile Include="..\\..\\src\\game\\PlayerDump.cpp" /> <ClCompile Include="..\\..\\src\\game\\PointMovementGenerator.cpp" /> <ClCompile Include="..\\..\\src\\game\\PoolManager.cpp" /> @@ -591,6 +604,19 @@ <ClInclude Include="..\\..\\src\\game\\Pet.h" /> <ClInclude Include="..\\..\\src\\game\\PetAI.h" /> <ClInclude Include="..\\..\\src\\game\\Player.h" /> + <ClInclude Include="..\\..\\src\\game\\PlayerbotAI.h" /> + <ClInclude Include="..\\..\\src\\game\\PlayerbotClassAI.h" /> + <ClInclude Include="..\\..\\src\\game\\PlayerbotDeathKnightAI.h" /> + <ClInclude Include="..\\..\\src\\game\\PlayerbotDruidAI.h" /> + <ClInclude Include="..\\..\\src\\game\\PlayerbotHunterAI.h" /> + <ClInclude Include="..\\..\\src\\game\\PlayerbotMageAI.h" /> + <ClInclude Include="..\\..\\src\\game\\PlayerbotMgr.h" /> + <ClInclude Include="..\\..\\src\\game\\PlayerbotPaladinAI.h" /> + <ClInclude Include="..\\..\\src\\game\\PlayerbotPriestAI.h" /> + <ClInclude Include="..\\..\\src\\game\\PlayerbotRogueAI.h" /> + <ClInclude Include="..\\..\\src\\game\\PlayerbotShamanAI.h" /> + <ClInclude Include="..\\..\\src\\game\\PlayerbotWarlockAI.h" /> + <ClInclude Include="..\\..\\src\\game\\PlayerbotWarriorAI.h" /> <ClInclude Include="..\\..\\src\\game\\PlayerDump.h" /> <ClInclude Include="..\\..\\src\\game\\PointMovementGenerator.h" /> <ClInclude Include="..\\..\\src\\game\\PoolManager.h" /> diff --git a/win/VC100/game.vcxproj.filters b/win/VC100/game.vcxproj.filters index 804e667..a32fd38 100644 --- a/win/VC100/game.vcxproj.filters +++ b/win/VC100/game.vcxproj.filters @@ -445,6 +445,45 @@ <ClCompile Include="..\\..\\src\\game\\Camera.cpp"> <Filter>Object</Filter> </ClCompile> + <ClCompile Include="..\\..\\src\\game\\PlayerbotAI.cpp"> + <Filter>Object</Filter> + </ClCompile> + <ClCompile Include="..\\..\\src\\game\\PlayerbotClassAI.cpp"> + <Filter>Object</Filter> + </ClCompile> + <ClCompile Include="..\\..\\src\\game\\PlayerbotDeathKnightAI.cpp"> + <Filter>Object</Filter> + </ClCompile> + <ClCompile Include="..\\..\\src\\game\\PlayerbotDruidAI.cpp"> + <Filter>Object</Filter> + </ClCompile> + <ClCompile Include="..\\..\\src\\game\\PlayerbotHunterAI.cpp"> + <Filter>Object</Filter> + </ClCompile> + <ClCompile Include="..\\..\\src\\game\\PlayerbotMageAI.cpp"> + <Filter>Object</Filter> + </ClCompile> + <ClCompile Include="..\\..\\src\\game\\PlayerbotMgr.cpp"> + <Filter>Object</Filter> + </ClCompile> + <ClCompile Include="..\\..\\src\\game\\PlayerbotPaladinAI.cpp"> + <Filter>Object</Filter> + </ClCompile> + <ClCompile Include="..\\..\\src\\game\\PlayerbotPriestAI.cpp"> + <Filter>Object</Filter> + </ClCompile> + <ClCompile Include="..\\..\\src\\game\\PlayerbotRogueAI.cpp"> + <Filter>Object</Filter> + </ClCompile> + <ClCompile Include="..\\..\\src\\game\\PlayerbotShamanAI.cpp"> + <Filter>Object</Filter> + </ClCompile> + <ClCompile Include="..\\..\\src\\game\\PlayerbotWarlockAI.cpp"> + <Filter>Object</Filter> + </ClCompile> + <ClCompile Include="..\\..\\src\\game\\PlayerbotWarriorAI.cpp"> + <Filter>Object</Filter> + </ClCompile> </ItemGroup> <ItemGroup> <ClInclude Include="..\\..\\src\\game\\AccountMgr.h"> @@ -838,5 +877,44 @@ <ClInclude Include="..\\..\\src\\game\\Camera.h"> <Filter>Object</Filter> </ClInclude> + <ClInclude Include="..\\..\\src\\game\\PlayerbotAI.h"> + <Filter>Object</Filter> + </ClInclude> + <ClInclude Include="..\\..\\src\\game\\PlayerbotClassAI.h"> + <Filter>Object</Filter> + </ClInclude> + <ClInclude Include="..\\..\\src\\game\\PlayerbotDeathKnightAI.h"> + <Filter>Object</Filter> + </ClInclude> + <ClInclude Include="..\\..\\src\\game\\PlayerbotDruidAI.h"> + <Filter>Object</Filter> + </ClInclude> + <ClInclude Include="..\\..\\src\\game\\PlayerbotHunterAI.h"> + <Filter>Object</Filter> + </ClInclude> + <ClInclude Include="..\\..\\src\\game\\PlayerbotMageAI.h"> + <Filter>Object</Filter> + </ClInclude> + <ClInclude Include="..\\..\\src\\game\\PlayerbotMgr.h"> + <Filter>Object</Filter> + </ClInclude> + <ClInclude Include="..\\..\\src\\game\\PlayerbotPaladinAI.h"> + <Filter>Object</Filter> + </ClInclude> + <ClInclude Include="..\\..\\src\\game\\PlayerbotPriestAI.h"> + <Filter>Object</Filter> + </ClInclude> + <ClInclude Include="..\\..\\src\\game\\PlayerbotRogueAI.h"> + <Filter>Object</Filter> + </ClInclude> + <ClInclude Include="..\\..\\src\\game\\PlayerbotShamanAI.h"> + <Filter>Object</Filter> + </ClInclude> + <ClInclude Include="..\\..\\src\\game\\PlayerbotWarlockAI.h"> + <Filter>Object</Filter> + </ClInclude> + <ClInclude Include="..\\..\\src\\game\\PlayerbotWarriorAI.h"> + <Filter>Object</Filter> + </ClInclude> </ItemGroup> </Project> \\ No newline at end of file
  16. BlueBoy Look at this diff, correct white spaces, and includes VB2010 and VB2005! Special look Here! CharacterDatabase.PExecute("UPDATE characters SET online = 0 WHERE guid = '%u'", guid); - sLog.outDebug( "SESSION: Sent SMSG_LOGOUT_COMPLETE Message" ); - CharacterDatabase.PExecute("UPDATE characters SET online = 0 WHERE account = '%u'", - GetAccountId()); DEBUG_LOG( "SESSION: Sent SMSG_LOGOUT_COMPLETE Message" ); http://www.mediafire.com/?0gldjtmtaj2
  17. Hi BlueBoy i try to invite playerbot for injoin the grupo for do instance!
  18. Mangos core 10149 UBD BattleGround Patch VeHicle e Dungoen_Finde Patch from zergtmn All patch works well, including PlayerBot. logout happens every time it is to invite for group another player!
  19. there is a bug! Invite the player to the party, player will logouf of the game!
  20. I'm trying to give more XP for those who complete the quest if the premium is active! but I see that this is not happening! can someone help me fix it? uint32 XP = q_status.m_rewarded ? 0 : uint32(pQuest->XPValue( this )*sWorld.getConfig(CONFIG_FLOAT_RATE_XP_QUEST)); if (GetSession()->IsPremium()) uint32 XP = q_status.m_rewarded ? 0 : uint32(pQuest->XPValue( this )*sWorld.getConfig(CONFIG_FLOAT_RATE_XP_QUEST_PREMIUM)); sorry forgot it! it my pc have problem!
  21. Well this patch of the user who invited anyone to play on server! After having accepted the invitation. both can earn more XP for killing noobs, for completing quests, explored territories! I do not know where this patch came out! I have modified to mangos 10112. http://www.mediafire.com/file/nm22xt2zjny/PATCH-ACCOUNT-PREMIUM.rar if someone wants to implement this patch feel free to modify! forget to put it has to create a php script and put it on your website to work! sorry for my bad ingles!
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use