I guess you already know now,
it is
NPC Code:
putnpc2 x,y, {
script
};
So you put the code inside the
command itself. If you want to make
an npc duplicating itself then you
will need to use join.
To give parameters to the new npcs,
do
NPC Code:
with (npcs[npcscount-1]) {
this.vars = ...
}
after you have used putnpc2