summaryrefslogtreecommitdiff
path: root/npc/commands
diff options
context:
space:
mode:
Diffstat (limited to 'npc/commands')
-rw-r--r--npc/commands/grantpower.txt11
1 files changed, 6 insertions, 5 deletions
diff --git a/npc/commands/grantpower.txt b/npc/commands/grantpower.txt
index a68e11d00..b059a9155 100644
--- a/npc/commands/grantpower.txt
+++ b/npc/commands/grantpower.txt
@@ -51,20 +51,21 @@ OnCall:
getitembound .@ite, 1, 1; // Account bound or char bound? (1 or 4)
dispbottom l("You received the @@ from @@.", getitemlink(.@ite), strcharinfo(0, "someone", .@ori));
consoleinfo("%s is the new owner for the %s.", strcharinfo(0), getitemname(.@ite));
+ .@request$ = strcharinfo(0);
detachrid();
attachrid(.@ori);
delitem .@ite, 1;
switch (.@ite) {
case DemureAxe:
- $DEMUR_HOLDER$ = strcharinfo(0); break;
+ $DEMUR_HOLDER$ = .@request$; break;
case Tyranny:
- $TYRAN_HOLDER$ = strcharinfo(0); break;
+ $TYRAN_HOLDER$ = .@request$; break;
case Runestaff:
- $RUNES_HOLDER$ = strcharinfo(0); break;
+ $RUNES_HOLDER$ = .@request$; break;
case AegisShield:
- $AEGIS_HOLDER$ = strcharinfo(0); break;
+ $AEGIS_HOLDER$ = .@request$; break;
case Blightbringer:
- $SHADY_HOLDER$ = strcharinfo(0); break;
+ $SHADY_HOLDER$ = .@request$; break;
default:
Exception("Invalid legendary item "+str(.@ite),
RB_DEFAULT|RB_IRCBROADCAST); break;