diff options
-rw-r--r-- | doc/script_commands.txt | 10 | ||||
-rw-r--r-- | src/map/script.c | 3 |
2 files changed, 13 insertions, 0 deletions
diff --git a/doc/script_commands.txt b/doc/script_commands.txt index 6aa75e82a..bb714d856 100644 --- a/doc/script_commands.txt +++ b/doc/script_commands.txt @@ -5091,6 +5091,16 @@ Example: searchstores 10,1; --------------------------------------- + +*delequip <equipment slot>; + +This command will destroy whatever is currently equipped in the invoking +character's specified equipment slot. For a full list of possible equipment +slots see 'getequipid'. + +This command will return 1 if an item was deleted and 0 otherwise. + +--------------------------------------- //===================================== 4.1 - End of Player Item-Related Commands //===================================== diff --git a/src/map/script.c b/src/map/script.c index c57b086f4..aea4d978f 100644 --- a/src/map/script.c +++ b/src/map/script.c @@ -7969,6 +7969,9 @@ BUILDIN(delequip) if(i >= 0) { pc->unequipitem(sd,i,3); //recalculate bonus pc->delitem(sd,i,1,0,2,LOG_TYPE_SCRIPT); + script_pushint(st,1); + } else { + script_pushint(st,0); } return true; |