summaryrefslogtreecommitdiff
path: root/npc/commands
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2021-02-18 04:02:52 -0300
committerJesusaves <cpntb1@ymail.com>2021-02-18 04:02:52 -0300
commit802c15e6a7f4c07b7fe0a7ed47d1defbcce4824d (patch)
treee09b3aafeaad9251fbcdcf146960bab4df12f0ee /npc/commands
parente28a3651adad1c976e5286c356e7eca21f6234cf (diff)
downloadserverdata-802c15e6a7f4c07b7fe0a7ed47d1defbcce4824d.tar.gz
serverdata-802c15e6a7f4c07b7fe0a7ed47d1defbcce4824d.tar.bz2
serverdata-802c15e6a7f4c07b7fe0a7ed47d1defbcce4824d.tar.xz
serverdata-802c15e6a7f4c07b7fe0a7ed47d1defbcce4824d.zip
Aegis Shield Blackbox
Diffstat (limited to 'npc/commands')
-rw-r--r--npc/commands/grantpower.txt13
1 files changed, 13 insertions, 0 deletions
diff --git a/npc/commands/grantpower.txt b/npc/commands/grantpower.txt
index 3ce37e47b..d051c5896 100644
--- a/npc/commands/grantpower.txt
+++ b/npc/commands/grantpower.txt
@@ -55,6 +55,19 @@ OnCall:
detachrid();
attachrid(.@ori);
delitem .@ite, 1;
+ switch (.@ite) {
+ case DemureAxe:
+ $DEMUR_HOLDER$ = .@request$; break;
+ case Tyranny:
+ $TYRAN_HOLDER$ = .@request$; break;
+ case Runestaff:
+ $RUNES_HOLDER$ = .@request$; break;
+ case AegisShield:
+ $AEGIS_HOLDER$ = .@request$; break;
+ default:
+ Exception("Invalid legendary item "+str(.@ite),
+ RB_DEFAULT|RB_IRCBROADCAST); break;
+ }
} else {
Exception("Player not found.", RB_ISFATAL|RB_SPEECH);
}