feat(Scripts/Commands): Item restoration command (#9538)

* Implement item restore command & move itemmove to new item cmd

* Implement LANG_COMMAND_DISABLED

* Prevent command usage if no config is set

* WIP: `.item restore list`

* Fix restore list & create base for restore item

* Send item to player via mail

* Put player as last argument

* Use Postmaster & fix restore list

* Show item name in restore list

* Update HandleItemMoveCommand to be using the api

Co-authored-by: Skjalf <47818697+Nyeriah@users.noreply.github.com>

* Send item instantly if online
This commit is contained in:
Noxies
2021-12-09 03:57:15 +01:00
committed by GitHub
parent 8ae8db5283
commit c95c29838b
7 changed files with 226 additions and 35 deletions

View File

@@ -228,7 +228,10 @@ enum AcoreStrings
LANG_CMD_AMBIGUOUS = 194,
LANG_CMD_HELP_GENERIC = 195,
LANG_CMD_NO_HELP_AVAILABLE = 196,
// Room for more level 1 197-199 not used
LANG_ITEM_RESTORE_LIST = 197,
LANG_ITEM_RESTORE_LIST_EMPTY = 198,
LANG_ITEM_RESTORE_MISSING = 199,
// level 2 chat
LANG_NO_SELECTION = 200,
@@ -1231,6 +1234,7 @@ enum AcoreStrings
LANG_COMMAND_QUEST_NOT_COMPLETE = 5069,
// Room for more strings 5070-9999
LANG_COMMAND_DISABLED = 5070,
// Level requirement notifications
LANG_SAY_REQ = 6604,