summaryrefslogtreecommitdiff
path: root/npc/functions
diff options
context:
space:
mode:
Diffstat (limited to 'npc/functions')
-rw-r--r--npc/functions/honor.txt2
-rw-r--r--npc/functions/util.txt5
2 files changed, 6 insertions, 1 deletions
diff --git a/npc/functions/honor.txt b/npc/functions/honor.txt
index e09f6b02f..5ab2e42c8 100644
--- a/npc/functions/honor.txt
+++ b/npc/functions/honor.txt
@@ -13,7 +13,7 @@ function script get_BR {
// attachrid() and detachrid()
// readbattleparam(.@rid)
- // Load
+ // Or rather: battleparam()
if (attachrid(.@rid)) {
.@br+=BaseLevel;
} else {
diff --git a/npc/functions/util.txt b/npc/functions/util.txt
index ad74c75ae..d829c4524 100644
--- a/npc/functions/util.txt
+++ b/npc/functions/util.txt
@@ -835,6 +835,11 @@ function script mercrank {
}
}
+// alias to readbattleparam(getcharid(3), ?? )
+function script battleparam {
+ return readbattleparam(getcharid(3), getarg(0));
+}
+
// gettimeparam(GETTIME_X)
// Returns the number of seconds/minutes/hours/days/months/years since 01/01/1970
function script gettimeparam {