summaryrefslogtreecommitdiff
path: root/world/map/npc/items
diff options
context:
space:
mode:
authorJesusaves <jesusalva@themanaworld.org>2020-03-24 12:36:38 -0300
committerGitHub <noreply@github.com>2020-03-24 15:36:38 +0000
commit12524fc0f3bdc91c25311f7af76a823bc8522e7c (patch)
tree7f76435124f503666550b403cde529ac8619118c /world/map/npc/items
parentc617262d333f9e571ad4acdfe0abf04619b570e4 (diff)
downloadserverdata-12524fc0f3bdc91c25311f7af76a823bc8522e7c.tar.gz
serverdata-12524fc0f3bdc91c25311f7af76a823bc8522e7c.tar.bz2
serverdata-12524fc0f3bdc91c25311f7af76a823bc8522e7c.tar.xz
serverdata-12524fc0f3bdc91c25311f7af76a823bc8522e7c.zip
Release Assassin Set (#550)
Add assassin set as a brawnling set to good ol' Iilia. Now Luvia collected an useless unique gear! Your chances to get the Heart Of Isis just went down from 25% to 20%! Who'll be the first unlucky player to obtain the Assassin Shirt?! PS. Cannot be equipped with weapons. But can be equipped with shields. It does not boost attack strength - focus if you want to deal any serious damage. Also, GMs are able to equip it even while armed, but they'll suffer an agi penalty. This got spammy and buggy, so it is for GMs only from time begin. PPS. Brawling is a non-canon combat style. Do not expect to be able to actually kill stuff with it. Oh, but it probably will be fun. Tell me if it needs any other serious tweaks.
Diffstat (limited to 'world/map/npc/items')
-rw-r--r--world/map/npc/items/brawling_item.txt23
1 files changed, 23 insertions, 0 deletions
diff --git a/world/map/npc/items/brawling_item.txt b/world/map/npc/items/brawling_item.txt
new file mode 100644
index 00000000..097de378
--- /dev/null
+++ b/world/map/npc/items/brawling_item.txt
@@ -0,0 +1,23 @@
+// Items which can only be used while unarmed
+// Variables passed to this script:
+// @slotId The slot in which the item would have been equipped in. This is passed automagically when called in an equip script.
+
+function|script|BrawlingItem
+{
+ if (getequipid(equip_hand1) == -1)
+ goto L_Return;
+
+ message strcharinfo(0), "This item's curse does not allow it to be used with weapons equipped.";
+
+ // This is for debug
+ if (getgmlevel() >= 60)
+ bonus bAgi, -7;
+ if (getgmlevel() >= 60)
+ goto L_Return;
+
+ callfunc "UnequipLater";
+ goto L_Return;
+
+L_Return:
+ return;
+}