From 8c9849ec73bba06ecf559cd8d2d24fd75ae852a7 Mon Sep 17 00:00:00 2001 From: Alex King <89047260+Kinglykrab@users.noreply.github.com> Date: Sat, 24 Jun 2023 14:09:39 -0400 Subject: [PATCH] [Commands] Delete #showbonusstats Command (#3437) # Notes - Never seen this used, also missing 99% of the bonuses data. --- zone/command.cpp | 2 -- zone/command.h | 1 - zone/gm_commands/showbonusstats.cpp | 49 ----------------------------- 3 files changed, 52 deletions(-) delete mode 100755 zone/gm_commands/showbonusstats.cpp diff --git a/zone/command.cpp b/zone/command.cpp index cf6fbe73f..d39da78ab 100644 --- a/zone/command.cpp +++ b/zone/command.cpp @@ -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" diff --git a/zone/command.h b/zone/command.h index 72c35050b..914f6442b 100644 --- a/zone/command.h +++ b/zone/command.h @@ -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); diff --git a/zone/gm_commands/showbonusstats.cpp b/zone/gm_commands/showbonusstats.cpp deleted file mode 100755 index 2680b36f1..000000000 --- a/zone/gm_commands/showbonusstats.cpp +++ /dev/null @@ -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)); - } -} -