From 7e2bf74ba8a0c7bf5529c001777579799617c9c4 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Wed, 22 Jan 2020 23:16:36 -0300 Subject: Alias: battleparam(...) == readbattleparam(getcharid(3), ...) --- npc/functions/honor.txt | 2 +- npc/functions/util.txt | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) (limited to 'npc/functions') 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 { -- cgit v1.2.3-70-g09d2