[Commands] Delete #showbonusstats Command (#3437)

# Notes
- Never seen this used, also missing 99% of the bonuses data.
This commit is contained in:
Alex King 2023-06-24 14:09:39 -04:00 committed by GitHub
parent 10086ce97c
commit 8c9849ec73
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 0 additions and 52 deletions

View File

@ -293,7 +293,6 @@ int command_init(void)
command_add("setstartzone", "[Zone ID|Zone Short Name] - Sets your or your target's starting zone (Use '0' or 'Reset' to allow the player use of /setstartcity)", AccountStatus::QuestTroupe, command_setstartzone) ||
command_add("setstat", "Sets the stats to a specific value.", AccountStatus::Max, command_setstat) ||
command_add("setxp", "[value] - Set your or your player target's experience", AccountStatus::GMAdmin, command_setxp) ||
command_add("showbonusstats", "[item|spell|all] Shows bonus stats for target from items or spells. Shows both by default.", AccountStatus::Guide, command_showbonusstats) ||
command_add("showbuffs", "List buffs active on your target or you if no target", AccountStatus::Guide, command_showbuffs) ||
command_add("shownumhits", "Shows buffs numhits for yourself.", AccountStatus::Player, command_shownumhits) ||
command_add("shownpcgloballoot", "Show global loot entries for your target NPC", AccountStatus::Guide, command_shownpcgloballoot) ||
@ -1131,7 +1130,6 @@ void command_bot(Client *c, const Seperator *sep)
#include "gm_commands/setstartzone.cpp"
#include "gm_commands/setstat.cpp"
#include "gm_commands/setxp.cpp"
#include "gm_commands/showbonusstats.cpp"
#include "gm_commands/showbuffs.cpp"
#include "gm_commands/shownpcgloballoot.cpp"
#include "gm_commands/shownumhits.cpp"

View File

@ -246,7 +246,6 @@ void command_setskillall(Client *c, const Seperator *sep);
void command_setstartzone(Client *c, const Seperator *sep);
void command_setstat(Client *c, const Seperator *sep);
void command_setxp(Client *c, const Seperator *sep);
void command_showbonusstats(Client *c, const Seperator *sep);
void command_showbuffs(Client *c, const Seperator *sep);
void command_shownumhits(Client *c, const Seperator *sep);
void command_shownpcgloballoot(Client *c, const Seperator *sep);

View File

@ -1,49 +0,0 @@
#include "../client.h"
void command_showbonusstats(Client *c, const Seperator *sep)
{
if (c->GetTarget() == 0) {
c->Message(Chat::White, "ERROR: No target!");
}
else if (!c->GetTarget()->IsMob() && !c->GetTarget()->IsClient()) {
c->Message(Chat::White, "ERROR: Target is not a Mob or Player!");
}
else {
bool bAll = false;
if (sep->arg[1][0] == '\0' || strcasecmp(sep->arg[1], "all") == 0) {
bAll = true;
}
if (bAll || (strcasecmp(sep->arg[1], "item") == 0)) {
c->Message(Chat::White, "Target Item Bonuses:");
c->Message(
Chat::White,
" Accuracy: %i%% Divine Save: %i%%",
c->GetTarget()->GetItemBonuses().Accuracy,
c->GetTarget()->GetItemBonuses().DivineSaveChance
);
c->Message(
Chat::White,
" Flurry: %i%% HitChance: %i%%",
c->GetTarget()->GetItemBonuses().FlurryChance,
c->GetTarget()->GetItemBonuses().HitChance / 15
);
}
if (bAll || (strcasecmp(sep->arg[1], "spell") == 0)) {
c->Message(Chat::White, " Target Spell Bonuses:");
c->Message(
Chat::White,
" Accuracy: %i%% Divine Save: %i%%",
c->GetTarget()->GetSpellBonuses().Accuracy,
c->GetTarget()->GetSpellBonuses().DivineSaveChance
);
c->Message(
Chat::White,
" Flurry: %i%% HitChance: %i%% ",
c->GetTarget()->GetSpellBonuses().FlurryChance,
c->GetTarget()->GetSpellBonuses().HitChance / 15
);
}
c->Message(Chat::White, " Effective Casting Level: %i", c->GetTarget()->GetCasterLevel(0));
}
}