mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-16 22:58:34 +00:00
Script and server code query updates for bots_updater
This commit is contained in:
+765
-345
File diff suppressed because it is too large
Load Diff
@@ -883,7 +883,7 @@ bool Bot::AIDoSpellCast(uint8 i, Mob* tar, int32 mana_cost, uint32* oDontDoAgain
|
||||
int32 hasMana = GetMana();
|
||||
|
||||
// Allow bots to cast buff spells even if they are out of mana
|
||||
if(RuleB(Bots, BotFinishBuffing)) {
|
||||
if(RuleB(Bots, FinishBuffing)) {
|
||||
if(manaCost > hasMana) {
|
||||
// Let's have the bots complete the buff time process
|
||||
if(AIspells[i].type & SpellType_Buff) {
|
||||
|
||||
+4
-4
@@ -2041,23 +2041,23 @@ void QuestManager::popup(const char *title, const char *text, uint32 popupid, ui
|
||||
#ifdef BOTS
|
||||
|
||||
int QuestManager::createbotcount() {
|
||||
return RuleI(Bots, CreateBotCount);
|
||||
return RuleI(Bots, CreationLimit);
|
||||
}
|
||||
|
||||
int QuestManager::spawnbotcount() {
|
||||
return RuleI(Bots, SpawnBotCount);
|
||||
return RuleI(Bots, SpawnLimit);
|
||||
}
|
||||
|
||||
bool QuestManager::botquest()
|
||||
{
|
||||
return RuleB(Bots, BotQuest);
|
||||
return RuleB(Bots, QuestableSpawnLimit);
|
||||
}
|
||||
|
||||
bool QuestManager::createBot(const char *name, const char *lastname, uint8 level, uint16 race, uint8 botclass, uint8 gender)
|
||||
{
|
||||
QuestManagerCurrentQuestVars();
|
||||
std::string TempErrorMessage;
|
||||
uint32 MaxBotCreate = RuleI(Bots, CreateBotCount);
|
||||
uint32 MaxBotCreate = RuleI(Bots, CreationLimit);
|
||||
|
||||
if (initiator && initiator->IsClient())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user