summaryrefslogtreecommitdiff
path: root/npc/functions/hub.txt
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2020-01-23 21:51:46 -0300
committerJesusaves <cpntb1@ymail.com>2020-01-23 21:51:46 -0300
commitf1499d5aed6aecff54e234ac5e305d6748eda3af (patch)
tree29a7e63c5876fb8087000c280c62b89b49b192e6 /npc/functions/hub.txt
parent76359f9526f426243a09df520ace1c7fb0fe6ada (diff)
downloadserverdata-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/hub.txt')
-rw-r--r--npc/functions/hub.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/npc/functions/hub.txt b/npc/functions/hub.txt
index 7263037f7..9fc9c9876 100644
--- a/npc/functions/hub.txt
+++ b/npc/functions/hub.txt
@@ -260,8 +260,12 @@ function script HUB_PvP {
// Prepare local variables
.@atk=get_BR(getcharid(3));
.@def=get_BR(killedrid);
+ .@honor=calc_HR(.@atk, .@def);
.@m$=getmap();
+ if (ispvpmap(.@m$)) {
+ }
+
// TODO: Start using readparam2() to read if the opponent was worthy
// That is, read total attack, defense, HP, evasion and hit chance
// And compare with your own readparam2(), then use a % and a table