mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-31 09:06:46 +00:00
Warning fixes, general cleanup (#5053)
This commit is contained in:
@@ -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(
|
||||
|
||||
@@ -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] = {
|
||||
|
||||
Reference in New Issue
Block a user