diff options
author | Jesusaves <cpntb1@ymail.com> | 2019-05-06 08:54:24 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2019-05-06 08:54:24 -0300 |
commit | 00d268d32a345cb48488032bf012d621b40de54a (patch) | |
tree | e73fb2d03e08abc5cc38cedf24c196901debca11 | |
parent | a54776898210edf8e74826a49709cadaa8c3c5f3 (diff) | |
download | serverdata-00d268d32a345cb48488032bf012d621b40de54a.tar.gz serverdata-00d268d32a345cb48488032bf012d621b40de54a.tar.bz2 serverdata-00d268d32a345cb48488032bf012d621b40de54a.tar.xz serverdata-00d268d32a345cb48488032bf012d621b40de54a.zip |
I need a fallback as @item cannot create legendary weapons.
-rw-r--r-- | npc/commands/grantpower.txt | 10 |
1 files changed, 10 insertions, 0 deletions
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$); |