diff options
Diffstat (limited to 'npc/commands/grantpower.txt')
-rw-r--r-- | npc/commands/grantpower.txt | 13 |
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); } |