|
@@ -21433,6 +21433,19 @@ BUILDIN_FUNC(getexp2) {
|
|
|
return SCRIPT_CMD_SUCCESS;
|
|
|
}
|
|
|
|
|
|
+/**
|
|
|
+* Force stat recalculation of sd
|
|
|
+* recalculatestat;
|
|
|
+* @author [secretdataz]
|
|
|
+**/
|
|
|
+BUILDIN_FUNC(recalculatestat) {
|
|
|
+ TBL_PC* sd;
|
|
|
+
|
|
|
+ nullpo_retr(SCRIPT_CMD_FAILURE, sd);
|
|
|
+
|
|
|
+ status_calc_pc(sd, SCO_FORCE);
|
|
|
+ return SCRIPT_CMD_SUCCESS;
|
|
|
+}
|
|
|
#include "../custom/script.inc"
|
|
|
|
|
|
// declarations that were supposed to be exported from npc_chat.c
|
|
@@ -22009,6 +22022,7 @@ struct script_function buildin_func[] = {
|
|
|
BUILDIN_DEF(navigateto,"s???????"),
|
|
|
BUILDIN_DEF(adopt,"vv"),
|
|
|
BUILDIN_DEF(getexp2,"ii?"),
|
|
|
+ BUILDIN_DEF(recalculatestat,""),
|
|
|
|
|
|
#include "../custom/script_def.inc"
|
|
|
|