Warning fixes

This commit is contained in:
brainiac
2025-12-28 02:12:41 -08:00
parent e12c52a66a
commit 94ca0c44d1
25 changed files with 54 additions and 72 deletions
+1 -3
View File
@@ -145,9 +145,7 @@ void bot_command_clone(Client *c, const Seperator *sep)
return;
}
bool available_flag = false;
!database.botdb.QueryNameAvailability(bot_name, available_flag);
bool available_flag = database.botdb.QueryNameAvailability(bot_name);
if (!available_flag) {
c->Message(
+2 -2
View File
@@ -82,8 +82,8 @@ void bot_command_pickpocket(Client *c, const Seperator *sep)
}
// Setup variables for calcs
bool steal_skill = my_bot->GetSkill(EQ::skills::SkillPickPockets);
bool steal_chance = steal_skill * 100 / (5 * over_level + 5);
uint16 steal_skill = my_bot->GetSkill(EQ::skills::SkillPickPockets);
int steal_chance = steal_skill * 100 / (5 * over_level + 5);
// Determine whether to steal money or an item.
uint32 money[6] = {