diff options
author | Jesusaves <cpntb1@ymail.com> | 2020-01-23 21:51:46 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2020-01-23 21:51:46 -0300 |
commit | f1499d5aed6aecff54e234ac5e305d6748eda3af (patch) | |
tree | 29a7e63c5876fb8087000c280c62b89b49b192e6 /npc/functions/honor.txt | |
parent | 76359f9526f426243a09df520ace1c7fb0fe6ada (diff) | |
download | serverdata-f1499d5aed6aecff54e234ac5e305d6748eda3af.tar.gz serverdata-f1499d5aed6aecff54e234ac5e305d6748eda3af.tar.bz2 serverdata-f1499d5aed6aecff54e234ac5e305d6748eda3af.tar.xz serverdata-f1499d5aed6aecff54e234ac5e305d6748eda3af.zip |
Calculate HR in the flow, create function for PVP Mapflags vs duel
Diffstat (limited to 'npc/functions/honor.txt')
-rw-r--r-- | npc/functions/honor.txt | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/npc/functions/honor.txt b/npc/functions/honor.txt index 3b470bf63..3794ce4c3 100644 --- a/npc/functions/honor.txt +++ b/npc/functions/honor.txt @@ -4,6 +4,12 @@ // Description: // PvP Honor Rank system +// Returns if a map is on PVP Mode or Not +// ispvpmap( {mapid} ) +function script ispvpmap { + .@mapa$=getarg(0, getmapname()); + return (getmapflag(.@mapa$, mf_pvp) || getmapflag(.@mapa$, mf_pvp_noparty) || getmapflag(.@mapa$, mf_pvpnoguild)); + // Numerical representation of player strength // get_BR( getcharid(3) ) function script get_BR { |