From 00d268d32a345cb48488032bf012d621b40de54a Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Mon, 6 May 2019 08:54:24 -0300 Subject: I need a fallback as @item cannot create legendary weapons. --- npc/commands/grantpower.txt | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/npc/commands/grantpower.txt b/npc/commands/grantpower.txt index 81d599800..0e678657c 100644 --- a/npc/commands/grantpower.txt +++ b/npc/commands/grantpower.txt @@ -10,6 +10,16 @@ OnCall: .@request$ = ""; .@request$ += implode(.@atcmd_parameters$, " "); + if (is_admin()) { + if (.@request$ == "" && !$LEGENDARYINIT) { + inventoryplace Lightbringer, 3; // Script Handled: LB and AS + getitembound DemureAxe, 1, 1; + getitembound Tyranny, 1, 1; + getitembound Runestaff, 1, 1; + $LEGENDARYINIT=true; + Exception("Legendary weapons not previously initialized.", RB_ISFATAL|RB_DISPBOTTOM); + } + } // Player is not attached .@id = getcharid(0, .@request$); -- cgit v1.2.3-60-g2f50