Spec act on give

From The Final Challenge Wiki
Revision as of 09:17, 12 July 2011 by Natilena (talk | contribs)
Jump to navigation Jump to search

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 <string vnum 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, description vnum specified in the #STRINGS section.

Example:

N 1200 spec_act_on_give 20 1 2788 -1 1212 * Spec assigned to mob vnum 1200.

When given object of vnum 20, load and give PC object of item 2788, using vnum 1212 strings.

N 1200 spec_act_on_give 20 0 322 -1 -1 * Comment.

When given object of vnum 20, transfer PC to room 322 with default message displayed.