summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2023-10-28 14:22:54 -0300
committerJesusaves <cpntb1@ymail.com>2023-10-28 14:22:54 -0300
commit9990bbec0cafbfec0a52bdae53845265068ac60e (patch)
tree6829c8b95014a2508efc17759708cd241c50bea7
parent03562f1ef1a8896a3056b0d3ef667b0c02ad19a3 (diff)
downloadserverdata-9990bbec0cafbfec0a52bdae53845265068ac60e.tar.gz
serverdata-9990bbec0cafbfec0a52bdae53845265068ac60e.tar.bz2
serverdata-9990bbec0cafbfec0a52bdae53845265068ac60e.tar.xz
serverdata-9990bbec0cafbfec0a52bdae53845265068ac60e.zip
The Blightbringer can be lost/robbed if you die in a PvP scenario.
Even if it was in the storage, it'll be lost. Doesn't apply to other legendary heroes. If robber fails to acquire the Blightbringer, it returns to Monster King.
-rw-r--r--npc/functions/hub.txt12
1 files changed, 12 insertions, 0 deletions
diff --git a/npc/functions/hub.txt b/npc/functions/hub.txt
index 4285b1b97..58f3dc0bf 100644
--- a/npc/functions/hub.txt
+++ b/npc/functions/hub.txt
@@ -1246,6 +1246,18 @@ function script HUB_PvP {
// You get 0.5 times killed player level, and 0 times job level
getexp (.@bxp/2), 0;
}
+
+ // Determine changes in the blightbringer
+ if ($SHADY_HOLDER$ != "" && !islegendary()) {
+ if ($SHADY_HOLDER$ == strcharinfo(0, "error", killedrid)) {
+ // They right for the weapon was lost
+ DelItemFromEveryPlayer(Blightbringer);
+ $SHADY_HOLDER$="";
+ // Assign the weapon its new master IF they can hold it
+ // Otherwise, it returns to its rightful owner - The Monster King
+ addtimer(10, "Impregnable#B7F::OnBlightbringer");
+ }
+ }
return;
}