MG Mud User | 88f1247 | 2016-06-24 23:31:02 +0200 | [diff] [blame^] | 1 | DEPRECATED |
| 2 | SYNOPSIS |
| 3 | int drop(void) |
| 4 | int drop(int silently) |
| 5 | |
| 6 | DESCRIPTION |
| 7 | In compat mode this lfun is used by the efun transfer(). |
| 8 | |
| 9 | It is called to check if an object wants to be moved out of |
| 10 | the inventory of a living object. drop() should return 1 to |
| 11 | prevent dropping. This is the opposite of the get() function. |
| 12 | That is because if drop() is not defined, it will always be |
| 13 | possible to drop an object. |
| 14 | |
| 15 | If the object self-destructs when drop() is called, be sure to |
| 16 | return 1, as the destructed item surely not can be dropped. |
| 17 | |
| 18 | Most compat mode LPC libraries to define one argument for |
| 19 | drop. If silently is true, no messages should be written. |
| 20 | |
| 21 | HISTORY |
| 22 | Deprecated in LDMud 3.3 as transfer() has been deprecated. |
| 23 | |
| 24 | SEE ALSO |
| 25 | transfer(E) |