diff options
author | Jesusaves <cpntb1@ymail.com> | 2020-01-22 23:16:36 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2020-01-22 23:16:36 -0300 |
commit | 7e2bf74ba8a0c7bf5529c001777579799617c9c4 (patch) | |
tree | 821d6b8c2acc4dfc0a6c7b713975dce84977da05 /npc/functions | |
parent | 9812a14ced434f8540b940f5da14e7b743088ed1 (diff) | |
download | serverdata-7e2bf74ba8a0c7bf5529c001777579799617c9c4.tar.gz serverdata-7e2bf74ba8a0c7bf5529c001777579799617c9c4.tar.bz2 serverdata-7e2bf74ba8a0c7bf5529c001777579799617c9c4.tar.xz serverdata-7e2bf74ba8a0c7bf5529c001777579799617c9c4.zip |
Alias: battleparam(...) == readbattleparam(getcharid(3), ...)
Diffstat (limited to 'npc/functions')
-rw-r--r-- | npc/functions/honor.txt | 2 | ||||
-rw-r--r-- | npc/functions/util.txt | 5 |
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 { |