summaryrefslogtreecommitdiff
path: root/src/map/atcommand.c
diff options
context:
space:
mode:
authorshennetsind <ind@henn.et>2013-08-14 11:00:40 -0300
committershennetsind <ind@henn.et>2013-08-14 11:00:40 -0300
commit0b05acb2fb1f64ec500b9b2ebc9cc9af08f36724 (patch)
treeaec5b9e26f80371d15840656515342450f21353b /src/map/atcommand.c
parentab1fad052cd771e183f496f5db922fa03a13edea (diff)
downloadhercules-0b05acb2fb1f64ec500b9b2ebc9cc9af08f36724.tar.gz
hercules-0b05acb2fb1f64ec500b9b2ebc9cc9af08f36724.tar.bz2
hercules-0b05acb2fb1f64ec500b9b2ebc9cc9af08f36724.tar.xz
hercules-0b05acb2fb1f64ec500b9b2ebc9cc9af08f36724.zip
Fix for Bug #7471
HELLO WORLD. DADDY IS BACK. Fixed ancient pc_calc_skillpoint bug that'd count guild skills towards the player's total. Special Thanks to malufett and the countless who provided us with debug information on this issue. This commit implements a temporary command @skdebug, in case there are people still reproducing the issue please include the output of this command in your new report, it displays the information required for us to adjust any possible oddities. http://hercules.ws/board/tracker/issue-7471-skill-points-not-evenly-distributed-anymore/ Signed-off-by: shennetsind <ind@henn.et>
Diffstat (limited to 'src/map/atcommand.c')
-rw-r--r--src/map/atcommand.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/map/atcommand.c b/src/map/atcommand.c
index cd7b74d6b..587a3e12f 100644
--- a/src/map/atcommand.c
+++ b/src/map/atcommand.c
@@ -9502,6 +9502,19 @@ ACMD(costume){
return true;
}
+/* for debugging purposes (so users can easily provide us with debug info) */
+/* should be trashed as soon as its no longer necessary */
+ACMD(skdebug) {
+ sprintf(atcmd_output,"second: %d; third: %d",sd->sktree.second,sd->sktree.third);
+ clif->message(fd,atcmd_output);
+ sprintf(atcmd_output,"pc_calc_skilltree_normalize_job: %d",pc->calc_skilltree_normalize_job(sd));
+ clif->message(fd,atcmd_output);
+ sprintf(atcmd_output,"change_lv_2nd/3rd: %d/%d",sd->change_level_2nd,sd->change_level_3rd);
+ clif->message(fd,atcmd_output);
+ sprintf(atcmd_output,"pc_calc_skillpoint:%d",pc->calc_skillpoint(sd));
+ clif->message(fd,atcmd_output);
+ return true;
+}
/**
* Fills the reference of available commands in atcommand DBMap
**/
@@ -9765,6 +9778,7 @@ void atcommand_basecommands(void) {
ACMD_DEF(fontcolor),
ACMD_DEF(searchstore),
ACMD_DEF(costume),
+ ACMD_DEF(skdebug),
};
AtCommandInfo* cmd;
int i;