Spec act on give
Revision as of 14:24, 9 February 2011 by Tynian (talk | contribs) (Created page with "spec_act_on_give is a Mob Extended Function. It provides for special behavior when an object is given to target mob from a PC. Usage: N <mob vnum> spec_act_on_give <obj vn...")
spec_act_on_give is a Mob Extended Function. It provides for special behavior when an object is given to target mob from a PC.
Usage:
N <mob vnum> spec_act_on_give <obj vnum to receive> <action type> <target vnum> -1 <action description or -1>
Field | Description |
---|---|
mob vnum | The vnum of the mob that this special function should be attached to |
obj vnum to receive | This is the object vnum that the mobs expects to be given |
action type | 0 is the action type for transferring a PC. 1 is the action type for giving a PC an object in return for the item given. |
target vnum | For action type 0 (transfer), this is the vnum of the room to transfer the character to For action type 1 (give), this is the object vnum to give the character |
-1 | (Field not used) |
action description | -1 is the default description. Otherwise, a code change is necessary, and a number will be assigned as the action description. |
Example:
N 1200 spec_act_on_give 20 1 2788 -1 -1 * Spec assigned to mob vnum 1200. When given object of vnum 20, load and give PC object of item 2788, using default description