mirror of
https://github.com/mod-playerbots/mod-playerbots
synced 2025-11-29 15:58:20 +08:00
miscs
This commit is contained in:
@@ -717,11 +717,11 @@ AiPlayerbot.DefaultTalentsOrder.5.1 =
|
|||||||
AiPlayerbot.RandomClassSpecProbability.5.2 = 30
|
AiPlayerbot.RandomClassSpecProbability.5.2 = 30
|
||||||
AiPlayerbot.DefaultTalentsOrder.5.2 =
|
AiPlayerbot.DefaultTalentsOrder.5.2 =
|
||||||
# DeathKnight
|
# DeathKnight
|
||||||
AiPlayerbot.RandomClassSpecProbability.6.0 = 33
|
AiPlayerbot.RandomClassSpecProbability.6.0 = 30
|
||||||
AiPlayerbot.DefaultTalentsOrder.6.0 =
|
AiPlayerbot.DefaultTalentsOrder.6.0 =
|
||||||
AiPlayerbot.RandomClassSpecProbability.6.1 = 33
|
AiPlayerbot.RandomClassSpecProbability.6.1 = 40
|
||||||
AiPlayerbot.DefaultTalentsOrder.6.1 =
|
AiPlayerbot.DefaultTalentsOrder.6.1 =
|
||||||
AiPlayerbot.RandomClassSpecProbability.6.2 = 33
|
AiPlayerbot.RandomClassSpecProbability.6.2 = 30
|
||||||
AiPlayerbot.DefaultTalentsOrder.6.2 =
|
AiPlayerbot.DefaultTalentsOrder.6.2 =
|
||||||
# Shaman
|
# Shaman
|
||||||
AiPlayerbot.RandomClassSpecProbability.7.0 = 33
|
AiPlayerbot.RandomClassSpecProbability.7.0 = 33
|
||||||
|
|||||||
@@ -1221,9 +1221,9 @@ void PlayerbotFactory::InitEquipment(bool incremental)
|
|||||||
items[slot].push_back(itemId);
|
items[slot].push_back(itemId);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (items[slot].size() >= 10) break;
|
if (items[slot].size() >= 25) break;
|
||||||
}
|
}
|
||||||
} while (items[slot].size() < 10 && desiredQuality-- > ITEM_QUALITY_NORMAL);
|
} while (items[slot].size() < 25 && desiredQuality-- > ITEM_QUALITY_NORMAL);
|
||||||
}
|
}
|
||||||
|
|
||||||
for (uint8 slot = 0; slot < EQUIPMENT_SLOT_END; ++slot)
|
for (uint8 slot = 0; slot < EQUIPMENT_SLOT_END; ++slot)
|
||||||
|
|||||||
@@ -641,8 +641,7 @@ std::vector<std::string> PlayerbotHolder::HandlePlayerbotCommand(char const* arg
|
|||||||
char* charname = strtok (nullptr, " ");
|
char* charname = strtok (nullptr, " ");
|
||||||
if (!cmd)
|
if (!cmd)
|
||||||
{
|
{
|
||||||
messages.push_back("usage: list/reload/tweak/self or add/init/remove PLAYERNAME");
|
messages.push_back("usage: list/reload/tweak/self or add/init/remove PLAYERNAME or addclass CLASSNAME");
|
||||||
messages.push_back(" addclass CLASSNAME");
|
|
||||||
return messages;
|
return messages;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -714,6 +713,10 @@ std::vector<std::string> PlayerbotHolder::HandlePlayerbotCommand(char const* arg
|
|||||||
|
|
||||||
if (!strcmp(cmd, "addclass"))
|
if (!strcmp(cmd, "addclass"))
|
||||||
{
|
{
|
||||||
|
if (!charname) {
|
||||||
|
messages.push_back("addclass: invalid CLASSNAME(warrior/paladin/hunter/rogue/priest/shaman/mage/warlock/druid/dk)");
|
||||||
|
return messages;
|
||||||
|
}
|
||||||
uint8 claz;
|
uint8 claz;
|
||||||
if (!strcmp(charname, "warrior"))
|
if (!strcmp(charname, "warrior"))
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -36,9 +36,9 @@ bool AttackAnythingAction::isUseful()
|
|||||||
if (context->GetValue<TravelTarget*>("travel target")->Get()->isTraveling() &&
|
if (context->GetValue<TravelTarget*>("travel target")->Get()->isTraveling() &&
|
||||||
ChooseRpgTargetAction::isFollowValid(bot, *context->GetValue<TravelTarget*>("travel target")->Get()->getPosition())) //Bot is traveling
|
ChooseRpgTargetAction::isFollowValid(bot, *context->GetValue<TravelTarget*>("travel target")->Get()->getPosition())) //Bot is traveling
|
||||||
return false;
|
return false;
|
||||||
if (bot->IsInCombat()) {
|
// if (bot->IsInCombat()) {
|
||||||
return false;
|
// return false;
|
||||||
}
|
// }
|
||||||
Unit* target = GetTarget();
|
Unit* target = GetTarget();
|
||||||
|
|
||||||
if (!target)
|
if (!target)
|
||||||
|
|||||||
@@ -755,7 +755,7 @@ bool MovementAction::IsMovingAllowed()
|
|||||||
bot->HasUnitState(UNIT_STATE_LOST_CONTROL))
|
bot->HasUnitState(UNIT_STATE_LOST_CONTROL))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
if (bot->GetMotionMaster()->GetMotionSlot(MOTION_SLOT_CONTROLLED)) {
|
if (bot->GetMotionMaster()->GetMotionSlotType(MOTION_SLOT_CONTROLLED) != NULL_MOTION_TYPE) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user