bonus_script "<script code>",<duration>{,<flag>{,<type>{,<char_id>}}}
This command will attach a script to a player for a given duration, in seconds.
After that time, the script will automatically expire. The same bonus cannot be
stacked.
Note that the maximum number of 'bonus_script' commands that can run simultaneously
for a player is 20 (MAX_PC_BONUS_SCRIPT in 'src/map/pc.h').
Flags:
&1: Remove when dead.
&2: Removable by Dispell.
&4: Removable by Clearance.
&8: Remove when logout.
Types:
0: Buff
1: Debuff
Example:
// Apple gives you +5 Str bonus for 1 minute when it's consumed.
512,Apple,Apple,0,15,,20,,,,,0xFFFFFFFF,63,2,,,,,,{ bonus_script "{ bonus bStr,5; }",60; },{},{}